* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

html.theme-dark {
  --background: #08110c;
  --background-soft: #0b180f;
  --card: #0e1a12;
  --card-elevated: #13251a;
  --border: #223828;
  --foreground: #eff9f1;
  --muted: #91a090;
  --secondary: #17251b;
  --brand: #39c86a;
  --brand-text: #39c86a;
  --brand-foreground: #07100b;
  --signal: #43b8f5;
  --harvest: #f2a51a;
  --danger: #e1492d;
  --halo: rgba(57, 200, 106, 0.16);
}

html.theme-light {
  --background: #f4f1e6;
  --background-soft: #e8efe2;
  --card: #ffffff;
  --card-elevated: #f7fbf4;
  --border: #cfdccf;
  --foreground: #142016;
  --muted: #647163;
  --secondary: #e6eee3;
  --brand: #39c86a;
  --brand-text: #147a3b;
  --brand-foreground: #07100b;
  --signal: #126ba2;
  --harvest: #c46f00;
  --danger: #b63a24;
  --halo: rgba(57, 200, 106, 0.18);
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, var(--halo) 0, transparent 32rem),
    linear-gradient(180deg, var(--background), var(--background-soft));
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 60%, transparent);
  outline-offset: 3px;
}

.qr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(6px);
}

.qr-lightbox[hidden] {
  display: none;
}

.qr-lightbox-card {
  position: relative;
  width: min(320px, 100%);
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  color: #0f1412;
  text-align: center;
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.42);
}

.qr-lightbox-card img {
  width: 100%;
  max-height: min(74vh, 460px);
  display: block;
  object-fit: contain;
  border-radius: 12px;
}

.qr-lightbox-card p {
  margin: 12px 0 0;
  color: #8b8f8d;
  font-size: 12px;
}

.qr-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #0f1412;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(18px);
}

.nav-inner {
  width: min(1152px, 100%);
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand-lockup,
.brand-mark,
.nav-actions,
.social-link,
.avatar-link,
.profile-link,
.profile-avatar,
.nav-pill,
.wechat-trigger,
.icon-button {
  display: inline-flex;
  align-items: center;
}

.brand-lockup {
  flex: 1 1 auto;
  min-width: 0;
  gap: 9px;
  color: var(--brand-text);
  font-size: 14px;
  font-weight: 800;
}

.brand-mark {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  justify-content: center;
  color: var(--brand-text);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.nav-actions {
  position: relative;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 8px;
}

.nav-pill,
.social-link,
.wechat-trigger,
.icon-button {
  min-height: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--secondary) 40%, transparent);
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 650;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-pill:hover,
.social-link:hover,
.wechat-trigger:hover,
.wechat-trigger[aria-expanded="true"],
.icon-button:hover {
  border-color: color-mix(in srgb, #07c160 40%, var(--border));
  background: color-mix(in srgb, var(--secondary) 70%, transparent);
  color: #07c160;
}

.social-link {
  gap: 8px;
}

.social-dot {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--foreground);
  color: var(--background);
  font-size: 10px;
  font-weight: 900;
}

.wechat-wrap {
  position: relative;
}

.wechat-trigger {
  gap: 5px;
  border-radius: 999px;
  cursor: pointer;
}

.wechat-icon {
  width: 12px;
  height: 12px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
}

.wechat-icon svg,
.theme-icon {
  width: 100%;
  height: 100%;
  display: block;
}

.wechat-icon svg,
.theme-icon,
.theme-icon path,
.theme-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.wechat-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 176px;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 24px 68px color-mix(in srgb, #000 34%, transparent);
  color: var(--foreground);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.wechat-popover.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
}

.popover-head button {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

.popover-head button:hover {
  color: var(--foreground);
}

.qr-preview {
  width: 100%;
  min-height: 176px;
  max-height: 236px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #fff;
  padding: 0;
  cursor: zoom-in;
}

.qr-preview img {
  width: 100%;
  max-height: 236px;
  display: block;
  object-fit: contain;
  transition: transform 150ms ease;
}

.qr-preview:hover img {
  transform: scale(1.035);
}

.wechat-popover strong,
.wechat-popover span {
  padding: 0 2px;
}

.wechat-popover span {
  color: var(--muted);
  font-size: 12px;
}

.wechat-popover strong {
  color: var(--foreground);
  font-size: 12px;
  text-align: center;
}

.wechat-popover > span {
  text-align: center;
}

.icon-button {
  width: 28px;
  min-height: 28px;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.theme-icon {
  width: 14px;
  height: 14px;
}

.theme-dark .moon-icon,
.theme-light .sun-icon {
  display: none;
}

.profile-link {
  gap: 7px;
  min-height: 32px;
  padding: 1px 2px 1px 0;
}

.profile-avatar {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  justify-content: center;
  overflow: visible;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border: 2px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  object-fit: cover;
  transition: border-color 180ms ease;
}

.profile-status {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--background);
  border-radius: 50%;
  background: var(--brand);
}

.profile-meta {
  display: block;
  line-height: 1.1;
}

.profile-meta strong,
.profile-meta span {
  display: block;
}

.profile-meta strong {
  color: var(--foreground);
  font-size: 12px;
  font-weight: 760;
  transition: color 180ms ease;
}

.profile-meta span {
  margin-top: 2px;
  color: color-mix(in srgb, var(--muted) 72%, transparent);
  font-size: 10px;
}

.profile-link:hover .profile-avatar img {
  border-color: color-mix(in srgb, var(--brand) 70%, transparent);
}

.profile-link:hover .profile-meta strong {
  color: var(--brand-text);
}

.nav-separator {
  width: 1px;
  height: 18px;
  margin: 0 2px;
  background: color-mix(in srgb, var(--border) 72%, transparent);
}

.avatar-link {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  justify-content: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand) 48%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}

.avatar-link img,
.avatar-ring img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

main {
  width: min(1152px, 100%);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.hero {
  min-height: min(720px, calc(100vh - 58px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 56px;
  align-items: center;
  padding: 72px 0 54px;
}

.hero-copy {
  min-width: 0;
}

.avatar-ring {
  width: 88px;
  height: 88px;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid color-mix(in srgb, var(--brand) 58%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  box-shadow: 0 0 48px color-mix(in srgb, var(--brand) 24%, transparent);
}

h1 {
  margin: 0;
  color: var(--brand-text);
  font-size: clamp(56px, 8vw, 96px);
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 0 80px color-mix(in srgb, var(--brand) 22%, transparent);
}

.hero-subtitle {
  margin: 24px 0 0;
  color: var(--foreground);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 840;
}

.hero-note {
  max-width: 660px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 820;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  border-color: color-mix(in srgb, var(--brand) 70%, transparent);
  background: var(--brand);
  color: var(--brand-foreground);
}

.button-secondary {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  background: transparent;
  color: var(--brand-text);
}

.button-secondary:hover {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}

.radar-board {
  position: relative;
  min-width: 0;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    linear-gradient(color-mix(in srgb, var(--signal) 10%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--signal) 10%, transparent) 1px, transparent 1px),
    radial-gradient(circle at 48% 46%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 58%),
    radial-gradient(circle at 72% 66%, color-mix(in srgb, var(--signal) 13%, transparent), transparent 30%),
    color-mix(in srgb, var(--card) 94%, transparent);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
}

.radar-board::before,
.radar-board::after {
  content: "";
  position: absolute;
  inset: 54px;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-radius: 50%;
}

.radar-board::after {
  inset: 110px;
  border-color: color-mix(in srgb, var(--signal) 25%, transparent);
}

.radar-sweep {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180px;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--brand), transparent);
  animation: sweep 5.8s linear infinite;
}

@keyframes sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-dot {
  position: absolute;
  z-index: 1;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 24px color-mix(in srgb, var(--brand) 60%, transparent);
}

.radar-dot.signal {
  background: var(--signal);
  box-shadow: 0 0 24px color-mix(in srgb, var(--signal) 60%, transparent);
}

.radar-dot.harvest {
  background: var(--harvest);
  box-shadow: 0 0 24px color-mix(in srgb, var(--harvest) 60%, transparent);
}

.radar-label {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  gap: 6px;
}

.radar-label strong {
  color: var(--foreground);
  font-size: 15px;
}

.radar-label span {
  color: var(--muted);
  font-size: 12px;
}

.section {
  margin-top: 72px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--card) 94%, transparent);
}

.stat-item {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: 0;
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.stat-value {
  color: var(--foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 16px;
  font-weight: 850;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(64px, 1fr) auto minmax(64px, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.section-heading::before,
.section-heading::after {
  content: "";
  height: 1px;
  background: color-mix(in srgb, var(--border) 86%, transparent);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-width: 0;
  min-height: 176px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--card) 95%, transparent);
  padding: 18px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  background: color-mix(in srgb, var(--card-elevated) 96%, transparent);
  box-shadow: 0 18px 52px color-mix(in srgb, var(--brand) 8%, transparent);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.tag {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand-text);
  padding: 0 9px;
  font-size: 11px;
  font-weight: 780;
}

.tag-signal {
  border-color: color-mix(in srgb, var(--signal) 42%, transparent);
  background: color-mix(in srgb, var(--signal) 11%, transparent);
  color: var(--signal);
}

.tag-harvest {
  border-color: color-mix(in srgb, var(--harvest) 42%, transparent);
  background: color-mix(in srgb, var(--harvest) 14%, transparent);
  color: var(--harvest);
}

.card-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  color: var(--brand-text);
  font-size: 12px;
  font-weight: 900;
}

.card h2 {
  margin: 0;
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.35;
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.card-link {
  display: inline-flex;
  margin-top: 18px;
  color: color-mix(in srgb, var(--brand-text) 78%, transparent);
  font-size: 13px;
  font-weight: 780;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border));
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 12%, transparent), transparent 58%),
    color-mix(in srgb, var(--card) 94%, transparent);
  padding: 28px;
}

.contact-section .section-heading {
  margin-bottom: 14px;
}

.contact-copy h2 {
  margin: 0;
  color: var(--foreground);
  font-size: 26px;
  line-height: 1.2;
}

.contact-copy p {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--muted);
}

.contact-actions {
  display: grid;
  gap: 14px;
  justify-items: end;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(178px, 1fr));
  gap: 12px;
}

.qr-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--card-elevated) 96%, transparent);
  padding: 10px;
}

.qr-thumb {
  width: 82px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #fff;
  padding: 0;
  cursor: zoom-in;
}

.qr-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 150ms ease;
}

.qr-thumb:hover img {
  transform: scale(1.035);
}

.qr-card strong,
.qr-card span {
  display: block;
}

.qr-card span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.footer {
  width: min(1152px, 100%);
  display: grid;
  margin: 0 auto;
  padding: 38px 24px 46px;
  border-top: 1px solid color-mix(in srgb, var(--border) 30%, transparent);
  color: var(--muted);
  text-align: center;
}

.footer-slogan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.footer-rule {
  width: 82px;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 44%, transparent));
}

.footer-rule:last-child {
  background: linear-gradient(270deg, transparent, color-mix(in srgb, var(--brand) 44%, transparent));
}

.footer-slogan p {
  margin: 0;
  color: color-mix(in srgb, var(--brand-text) 80%, transparent);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.32em;
}

.footer-meta {
  margin: 14px 0 0;
  color: color-mix(in srgb, var(--muted) 32%, transparent);
  font-size: 11px;
  letter-spacing: 0.16em;
}
@media (max-width: 980px) {
  .profile-meta {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .grid-3,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .stat-item:last-child {
    border-bottom: 0;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-items: start;
  }
}

@media (max-width: 760px) {
  .nav-pill.optional,
  .wechat-label {
    display: none;
  }

  .nav-inner,
  main,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-actions {
    gap: 6px;
  }

  .hero {
    min-height: 0;
    padding-top: 46px;
  }

  h1 {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 21px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .radar-board {
    min-height: 360px;
  }

  .wechat-popover {
    right: -58px;
  }

  .contact-section {
    padding: 20px;
  }

  .qr-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .qr-card {
    width: 100%;
  }

  .footer-slogan {
    gap: 12px;
  }

  .footer-rule {
    width: 36px;
  }

  .footer-slogan p {
    font-size: 12px;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 560px) {
  .brand-lockup span:nth-child(2) {
    display: none;
  }

  .wechat-trigger {
    width: 34px;
    padding: 0;
    justify-content: center;
  }

  .profile-link {
    padding-right: 0;
  }

  .nav-separator,
  .icon-button {
    display: none;
  }
}
