* {
  box-sizing: border-box;
}

:root {
  --bg: #f7fbff;
  --bg-2: #edf5ff;
  --text: #0b1220;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-2: #06b6d4;
  --accent: #7c3aed;
  --card: rgba(255, 255, 255, 0.68);
  --card-strong: rgba(255, 255, 255, 0.9);
  --border: rgba(148, 163, 184, 0.24);
  --shadow: 0 28px 90px rgba(15, 23, 42, 0.13);
  --soft-shadow: 0 16px 46px rgba(15, 23, 42, 0.09);
  --ring: rgba(37, 99, 235, 0.16);
}

html[data-theme="dark"] {
  --bg: #06101f;
  --bg-2: #101827;
  --text: #edf5ff;
  --muted: #9aa8bd;
  --primary: #60a5fa;
  --primary-2: #22d3ee;
  --accent: #a78bfa;
  --card: rgba(15, 23, 42, 0.58);
  --card-strong: rgba(15, 23, 42, 0.82);
  --border: rgba(148, 163, 184, 0.18);
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.4);
  --soft-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  --ring: rgba(96, 165, 250, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(37, 99, 235, 0.18), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(6, 182, 212, 0.18), transparent 31%),
    radial-gradient(circle at 46% 76%, rgba(124, 58, 237, 0.12), transparent 34%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

body::selection {
  color: #fff;
  background: var(--primary);
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0%;
  height: 3px;
  z-index: 100;
  background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--accent));
  box-shadow: 0 0 18px var(--ring);
}

.ambient {
  position: fixed;
  pointer-events: none;
  z-index: -3;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.9;
  animation: float 12s ease-in-out infinite alternate;
}

.ambient-a {
  width: 360px;
  height: 360px;
  top: 110px;
  left: -130px;
  background: rgba(37, 99, 235, 0.13);
}

.ambient-b {
  width: 420px;
  height: 420px;
  right: -170px;
  top: 280px;
  background: rgba(6, 182, 212, 0.13);
  animation-delay: -3s;
}

.ambient-c {
  width: 300px;
  height: 300px;
  left: 44%;
  bottom: -120px;
  background: rgba(124, 58, 237, 0.12);
  animation-delay: -6s;
}

@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(24px, -18px, 0) scale(1.06); }
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.038;
  z-index: -2;
  background-image:
    linear-gradient(90deg, #000 1px, transparent 1px),
    linear-gradient(#000 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

.glass-panel {
  position: relative;
  background: linear-gradient(145deg, var(--card), rgba(255, 255, 255, 0.36));
  border: 1px solid var(--border);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

html[data-theme="dark"] .glass-panel {
  background: linear-gradient(145deg, var(--card), rgba(15, 23, 42, 0.34));
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.44), transparent 34%, rgba(255,255,255,0.08));
  opacity: 0.7;
}

.nav {
  position: sticky;
  top: 16px;
  z-index: 20;
  width: min(1120px, calc(100% - 32px));
  height: 68px;
  margin: 16px auto 0;
  padding: 0 12px 0 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-photo {
  width: 42px;
  height: 42px;
  padding: 2px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2), var(--accent));
  box-shadow: 0 10px 28px var(--ring);
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
}

.brand-text {
  font-size: 17px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
}

.nav-links a {
  padding: 10px 15px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.nav-links a:focus-visible,
.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.theme-toggle:focus-visible,
.support-chip:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

.theme-toggle {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text);
  background: var(--card-strong);
  border: 1px solid var(--border);
  font-size: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px) rotate(8deg);
  box-shadow: 0 16px 28px var(--ring);
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 84px);
  padding: 86px 0 76px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-2);
  box-shadow: 0 0 0 8px rgba(6, 182, 212, 0.12);
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

h1 span {
  color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-2), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
}

.type-line {
  min-height: 36px;
  margin: 24px 0 0;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 800;
  color: var(--text);
}

.cursor {
  color: var(--primary);
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

.subtitle {
  width: min(700px, 100%);
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.88;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: 34px;
}

.hero-action-btn {
  min-width: 228px;
  flex: 0 0 228px;
}

.primary-btn,
.secondary-btn {
  min-width: 166px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4 54%, #7c3aed);
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.28);
}

.primary-btn b {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 14px;
}

.secondary-btn {
  color: var(--primary);
  background: var(--card-strong);
  border: 1px solid var(--border);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px var(--ring);
}

.primary-btn.small {
  min-width: 140px;
  padding: 12px 20px;
  font-size: 15px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.hero-stats div {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 25px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.hero-stats div::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  right: -32px;
  top: -32px;
  border-radius: 50%;
  background: var(--ring);
}

.hero-stats strong {
  position: relative;
  display: block;
  font-size: 21px;
  color: var(--primary);
  z-index: 1;
}

.hero-stats span {
  position: relative;
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  z-index: 1;
}

.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1100px;
}

.profile-card {
  width: min(100%, 438px);
  min-height: 534px;
  padding: 34px;
  margin-top: -18px;
  border-radius: 44px;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.profile-card > *:not(.card-glow) {
  position: relative;
  z-index: 1;
}

.card-glow {
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(circle at 68% 18%, rgba(37, 99, 235, 0.28), transparent 26%),
    radial-gradient(circle at 28% 74%, rgba(6, 182, 212, 0.22), transparent 24%),
    radial-gradient(circle at 50% 48%, rgba(124, 58, 237, 0.14), transparent 30%);
  animation: spinGlow 12s linear infinite;
}

@keyframes spinGlow {
  to { transform: rotate(360deg); }
}

.floating-pill {
  position: absolute;
  z-index: 2;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--text);
  background: var(--card-strong);
  border: 1px solid var(--border);
  box-shadow: var(--soft-shadow);
  font-size: 13px;
  font-weight: 900;
}

.pill-one {
  top: 34px;
  left: 28px;
  animation: bob 4s ease-in-out infinite;
}

.pill-two {
  right: 26px;
  top: 122px;
  animation: bob 4.4s ease-in-out infinite reverse;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.avatar-wrap {
  width: 196px;
  height: 196px;
  margin: 30px auto 24px;
  padding: 7px;
  border-radius: 54px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(219,234,254,0.76));
  border: 1px solid var(--border);
  box-shadow: 0 26px 60px rgba(37, 99, 235, 0.2);
}

html[data-theme="dark"] .avatar-wrap {
  background: linear-gradient(135deg, rgba(30,41,59,0.96), rgba(30,64,175,0.42));
}

.avatar-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 46px;
  border: 4px solid rgba(255,255,255,0.86);
}

.profile-card h2 {
  margin: 0;
  font-size: 31px;
  letter-spacing: -0.045em;
}

.profile-card > p {
  margin: 10px 0 24px;
  color: var(--muted);
}

.mini-window,
.product-preview {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.88)),
    radial-gradient(circle at 70% 0%, rgba(96,165,250,0.24), transparent 36%);
  border: 1px solid rgba(255,255,255,0.12);
}

.mini-window {
  margin: 29px auto 0;
  padding: 18px;
  border-radius: 24px;
  text-align: left;
}

.window-dots {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
}

.window-dots i,
.browser-bar span {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #94a3b8;
}

.window-dots i:nth-child(1),
.browser-bar span:nth-child(1) { background: #ef4444; }
.window-dots i:nth-child(2),
.browser-bar span:nth-child(2) { background: #f59e0b; }
.window-dots i:nth-child(3),
.browser-bar span:nth-child(3) { background: #22c55e; }

.terminal-text {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #dbeafe;
  font-size: 13px;
  margin-bottom: 10px;
}

.prompt {
  color: #67e8f9;
}

.code-lines span {
  display: block;
  height: 12px;
  margin: 11px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(96,165,250,0.9), rgba(34,211,238,0.45));
}

.code-lines span:nth-child(1) { width: 84%; }
.code-lines span:nth-child(2) { width: 62%; }
.code-lines span:nth-child(3) { width: 73%; }


.update-panel {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.update-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.update-head strong {
  color: #f8fbff;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.update-head span {
  color: rgba(219, 234, 254, 0.68);
  font-size: 12px;
}

.update-list {
  display: grid;
  gap: 10px;
}

.update-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 14px;
  color: #eaf4ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.update-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(103, 232, 249, 0.28);
}

.update-link span {
  font-size: 13px;
  line-height: 1.45;
}

.update-link b {
  color: #67e8f9;
  font-size: 15px;
}

.update-more {
  padding: 4px 2px 0;
  color: rgba(219, 234, 254, 0.62);
  font-size: 12px;
}

.section,
.product-section {
  padding: 68px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 32px;
}

.section-title p {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(31px, 4vw, 48px);
  letter-spacing: -0.045em;
}

.section-title span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.product-card {
  border-radius: 40px;
  padding: 34px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 30px;
  align-items: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-card > * {
  position: relative;
  z-index: 1;
}

.product-card::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -120px;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ring), transparent 65%);
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.09);
  font-size: 13px;
  font-weight: 950;
}

.product-copy h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 43px);
  letter-spacing: -0.045em;
}

.product-copy p {
  margin: 16px 0 24px;
  color: var(--muted);
  line-height: 1.88;
}

.product-preview {
  padding: 16px;
  border-radius: 30px;
  box-shadow: 0 22px 56px rgba(15,23,42,0.22);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 16px;
}

.browser-bar em {
  margin-left: 8px;
  color: #94a3b8;
  font-style: normal;
  font-size: 13px;
}

.chat-preview {
  display: grid;
  gap: 12px;
}

.chat-row {
  max-width: 84%;
  padding: 13px 15px;
  border-radius: 18px;
  color: #e5eefc;
  line-height: 1.55;
  font-size: 14px;
}

.chat-row.user {
  justify-self: end;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.chat-row.ai {
  justify-self: start;
  background: rgba(255, 255, 255, 0.12);
}

.chat-row.compact {
  max-width: 60%;
}

.chat-input {
  margin-top: 8px;
  padding: 14px 16px;
  color: #94a3b8;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.health-section {
  padding-top: 28px;
}

.health-card::after {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.18), transparent 66%);
}

.health-tag {
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
}

html[data-theme="dark"] .health-tag {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.13);
}

.health-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: -6px 0 24px;
}

.health-points span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.16);
  font-size: 13px;
  font-weight: 800;
}

html[data-theme="dark"] .health-points span {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(110, 231, 183, 0.16);
}

.health-preview {
  background:
    linear-gradient(135deg, rgba(6, 78, 59, 0.94), rgba(15, 23, 42, 0.9)),
    radial-gradient(circle at 76% 0%, rgba(45, 212, 191, 0.22), transparent 38%);
}

.health-dashboard-preview {
  display: grid;
  gap: 14px;
}

.health-preview-top,
.line-head,
.health-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.health-preview-top strong {
  color: #f0fdfa;
  font-size: 17px;
}

.health-preview-top span,
.line-head b {
  color: rgba(204, 251, 241, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-card {
  padding: 14px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-card span {
  display: block;
  color: rgba(204, 251, 241, 0.68);
  font-size: 12px;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  color: #f0fdfa;
  font-size: 18px;
}

.metric-card strong.has-value {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.metric-card strong small {
  margin-left: 4px;
  color: rgba(204, 251, 241, 0.7);
  font-size: 12px;
  font-weight: 850;
}

.metric-card strong.loading {
  color: rgba(240, 253, 250, 0.72);
}

.health-line-card,
.health-list div {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.health-line-card {
  padding: 14px;
}

.line-head span {
  color: #e6fffb;
  font-size: 13px;
  font-weight: 800;
}

.sparkline {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 74px;
  margin-top: 12px;
}

.sparkline i {
  flex: 1;
  min-width: 10px;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, #5eead4, rgba(14, 165, 233, 0.55));
  box-shadow: 0 10px 20px rgba(20, 184, 166, 0.18);
}

.sparkline i:nth-child(1) { height: 46%; }
.sparkline i:nth-child(2) { height: 72%; }
.sparkline i:nth-child(3) { height: 54%; }
.sparkline i:nth-child(4) { height: 82%; }
.sparkline i:nth-child(5) { height: 64%; }
.sparkline i:nth-child(6) { height: 88%; }

.sparkline.is-real {
  position: relative;
  display: block;
  height: 118px;
  margin-top: 12px;
  padding: 4px 2px 0;
}

.trend-chart {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.trend-grid-line {
  stroke: rgba(204, 251, 241, 0.12);
  stroke-width: 1;
}

.trend-line-intake,
.trend-line-burn {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.trend-line-intake {
  stroke: #67e8f9;
}

.trend-line-burn {
  stroke: #a7f3d0;
}

.trend-fill-intake {
  fill: rgba(103, 232, 249, 0.12);
}

.trend-fill-burn {
  fill: rgba(167, 243, 208, 0.08);
}

.trend-point {
  cursor: pointer;
  fill: rgba(15, 23, 42, 0.92);
  stroke-width: 3;
  transition: r 0.16s ease, filter 0.16s ease;
}

.trend-point.intake {
  stroke: #67e8f9;
}

.trend-point.burn {
  stroke: #a7f3d0;
}

.trend-point:hover,
.trend-point:focus {
  r: 6;
  filter: drop-shadow(0 0 8px rgba(103, 232, 249, 0.5));
  outline: none;
}

.trend-tooltip {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 8px;
  min-width: 138px;
  padding: 8px 10px;
  border-radius: 14px;
  color: #eafffb;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(204, 251, 241, 0.18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  font-size: 12px;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.trend-tooltip.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.trend-tooltip strong {
  display: block;
  color: #ffffff;
  font-size: 12px;
}








.sync-state.updated {
  color: #99f6e4;
}

.sync-state.pending {
  color: rgba(254, 240, 138, 0.92);
}

.sync-state.sync-error {
  color: rgba(254, 202, 202, 0.92);
}

.health-list {
  display: grid;
  gap: 10px;
}

.health-list div {
  padding: 12px 14px;
}

.health-list span {
  color: rgba(240, 253, 250, 0.84);
  font-size: 13px;
}

.health-list b {
  color: #99f6e4;
  font-size: 12px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 26px 0 60px;
}

.feature-card,
.qr-card {
  border-radius: 32px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
}

.feature-card {
  padding: 29px;
}

.feature-card:hover,
.qr-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(37, 99, 235, 0.28);
}

.feature-card > *,
.qr-card > * {
  position: relative;
  z-index: 1;
}

.icon {
  width: 54px;
  height: 54px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  font-size: 25px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.13), rgba(6, 182, 212, 0.1));
  box-shadow: inset 0 0 0 1px var(--border);
}

.feature-card h3 {
  margin: 20px 0 8px;
  font-size: 22px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.76;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 292px));
  justify-content: center;
  gap: 24px;
}

.qr-card {
  padding: 24px;
  text-align: center;
}

.qr-shell {
  width: min(100%, 206px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.12));
  border: 1px solid var(--border);
}

.qr-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: contain;
  padding: 10px;
  background: rgba(255,255,255,0.96);
  border-radius: 21px;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.qr-card h3 {
  margin: 18px 0 6px;
  font-size: 20px;
}

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

.sponsor {
  padding-bottom: 78px;
}

.sponsor-quiet {
  padding-top: 48px;
}

.section-title-quiet p,
.section-title-quiet span {
  color: var(--muted);
}

.sponsor-text {
  width: min(680px, 100%);
  margin: -6px auto 24px;
  text-align: center;
  color: var(--muted);
  line-height: 1.85;
}

.support-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
}

.support-chip {
  position: relative;
  padding: 18px 20px;
  border-radius: 24px;
  text-align: left;
  cursor: pointer;
  overflow: visible;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.support-chip:hover,
.support-chip:focus-visible,
.support-chip.active {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(37, 99, 235, 0.25);
}

.support-chip-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.support-chip-copy strong {
  font-size: 17px;
}

.support-chip-copy span {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.qr-pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 16px);
  transform: translateX(-50%) translateY(8px) scale(0.96);
  width: 210px;
  padding: 12px;
  border-radius: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  box-shadow: var(--shadow);
}

.qr-pop::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 18px;
  height: 18px;
  transform: translateX(-50%) rotate(45deg);
  background: inherit;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.support-chip:hover .qr-pop,
.support-chip:focus-visible .qr-pop,
.support-chip.active .qr-pop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.qr-pop img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: contain;
  background: rgba(255,255,255,0.98);
  border-radius: 18px;
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, 0.92);
}

.qr-pop p {
  margin: 10px 0 2px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (hover: none), (pointer: coarse) {
  .support-chip:hover {
    transform: none;
    box-shadow: var(--soft-shadow);
    border-color: var(--border);
  }

  .support-chip:hover .qr-pop,
  .support-chip:focus-visible .qr-pop {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px) scale(0.96);
  }

  .support-chip.active {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: rgba(37, 99, 235, 0.25);
  }

  .support-chip.active .qr-pop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

footer {
  padding: 30px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0 0 12px;
}

.beian-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  line-height: 1.7;
}

.beian-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.beian-link:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.police-beian img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 18px;
}

.beian-separator {
  color: rgba(100, 116, 139, 0.48);
}

html[data-theme="dark"] .beian-separator {
  color: rgba(154, 168, 189, 0.44);
}

.fade-up {
  opacity: 0;
  transform: translateY(22px);
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .nav {
    gap: 10px;
  }

  .nav-links {
    display: flex;
    max-width: 50vw;
    overflow-x: auto;
    white-space: nowrap;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    scroll-snap-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 38px;
    padding-top: 64px;
  }

  .eyebrow {
    justify-content: center;
  }

  .subtitle,
  .actions {
    margin-left: auto;
    margin-right: auto;
  }

  .actions {
    justify-content: center;
  }

  .hero-action-btn {
    flex-basis: 228px;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card {
    text-align: center;
  }

  .icon {
    margin: 0 auto;
  }
}

@media (max-width: 620px) {
  .nav,
  .page {
    width: min(100% - 22px, 1120px);
  }

  .nav {
    top: 10px;
    height: 60px;
    margin-top: 10px;
    gap: 8px;
  }

  .nav-links {
    max-width: 42vw;
    gap: 4px;
    padding: 4px;
  }

  .nav-links a {
    padding: 8px 10px;
    font-size: 12px;
  }

  .brand-text {
    font-size: 15px;
  }

  .brand-photo {
    width: 38px;
    height: 38px;
    border-radius: 15px;
  }

  .brand img {
    border-radius: 13px;
  }

  .theme-toggle {
    width: 42px;
    height: 42px;
  }

  .hero {
    min-height: auto;
    padding: 48px 0 40px;
    gap: 28px;
  }

  h1 {
    letter-spacing: -0.055em;
    font-size: clamp(34px, 10vw, 44px);
  }

  .subtitle {
    font-size: 15px;
    line-height: 1.8;
  }

  .type-line {
    min-height: 56px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  .actions .primary-btn,
  .actions .secondary-btn,
  .hero-action-btn {
    width: 100%;
    min-height: 52px;
    min-width: 0;
    flex: none;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 28px;
  }

  .hero-stats div {
    padding: 16px;
    border-radius: 20px;
  }

  .profile-card {
    min-height: auto;
    padding: 22px;
    margin-top: 0;
    border-radius: 30px;
  }

  .floating-pill {
    display: none;
  }

  .avatar-wrap {
    width: 148px;
    height: 148px;
    margin-top: 10px;
    margin-bottom: 18px;
    border-radius: 38px;
  }

  .avatar-photo {
    border-radius: 30px;
  }

  .profile-card h2 {
    font-size: 28px;
  }

  .profile-card > p {
    margin: 8px 0 18px;
    font-size: 14px;
  }

  .mini-window {
    margin-top: 20px;
    padding: 14px;
    border-radius: 20px;
  }

  .terminal-text {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .update-head strong {
    font-size: 13px;
  }

  .update-head span,
  .update-more {
    font-size: 11px;
  }

  .update-link {
    padding: 10px 11px;
    border-radius: 12px;
  }

  .update-link span {
    font-size: 12px;
  }

  .section,
  .product-section {
    padding: 48px 0;
  }

  .section-title {
    margin-bottom: 24px;
  }

  .section-title h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .section-title span {
    font-size: 14px;
    line-height: 1.7;
  }

  .product-card {
    padding: 20px;
    border-radius: 28px;
    gap: 20px;
  }

  .product-copy p {
    line-height: 1.8;
  }

  .product-preview {
    padding: 12px;
    border-radius: 22px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .sparkline.is-real {
    height: 104px;
    padding-bottom: 0;
  }


  .health-points {
    gap: 8px;
  }

  .health-points span {
    font-size: 12px;
  }

  .browser-bar {
    padding-bottom: 12px;
  }

  .chat-row,
  .chat-row.compact {
    max-width: 92%;
    font-size: 13px;
    padding: 11px 13px;
  }

  .chat-input {
    font-size: 13px;
    padding: 12px 14px;
  }

  .feature-grid {
    gap: 14px;
    padding: 18px 0 46px;
  }

  .feature-card {
    padding: 22px;
    border-radius: 24px;
  }

  .feature-card h3 {
    margin-top: 16px;
    font-size: 20px;
  }

  .qr-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .qr-card {
    padding: 18px;
    border-radius: 24px;
  }

  .support-mini-grid {
    grid-template-columns: 1fr;
  }

  .support-chip {
    text-align: center;
    padding: 16px 18px;
  }

  .support-chip:hover {
    transform: none;
    box-shadow: var(--soft-shadow);
    border-color: var(--border);
  }

  .support-chip.active {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: rgba(37, 99, 235, 0.25);
  }

  .qr-pop {
    display: none;
    position: static;
    width: min(220px, 100%);
    margin: 14px auto 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .qr-pop::after {
    display: none;
  }

  .support-chip:hover .qr-pop,
  .support-chip:focus-visible .qr-pop {
    display: none;
    transform: none;
  }

  .support-chip.active .qr-pop {
    display: block;
    transform: translateY(0) scale(1);
    animation: supportQrIn 0.18s ease both;
  }

  @keyframes supportQrIn {
    from {
      opacity: 0;
      transform: translateY(6px) scale(0.98);
    }

    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .qr-shell {
    max-width: 184px;
  }

  footer {
    padding: 20px 0 32px;
  }

  .beian-links {
    display: grid;
    justify-items: center;
    gap: 6px;
  }

  .beian-separator {
    display: none;
  }
}


@media (max-width: 420px) {
  .nav,
  .page {
    width: min(100% - 16px, 1120px);
  }

  .nav {
    padding: 0 10px 0 12px;
  }

  .nav-links {
    max-width: 40vw;
  }

  .nav-links a {
    padding: 7px 9px;
    font-size: 12px;
  }

  .brand-text {
    font-size: 14px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-copy,
  .product-copy {
    text-align: left;
  }

  .subtitle,
  .section-title span,
  .product-copy p,
  .feature-card p,
  .sponsor-text {
    font-size: 14px;
  }

  .actions {
    gap: 10px;
  }

  .primary-btn,
  .secondary-btn {
    padding: 14px 16px;
    font-size: 15px;
  }

  .hero-action-btn b {
    width: 22px;
    height: 22px;
  }

  .profile-card,
  .product-card,
  .qr-card {
    border-radius: 22px;
  }

  .window-dots {
    margin-bottom: 12px;
  }

  .update-link {
    align-items: flex-start;
  }
}

/* 2026-06-03：个人主页新增健身记录网站入口 */
.hero-action-btn {
  min-width: 210px;
  flex-basis: 210px;
}

.fitness-action-btn,
.fitness-btn {
  background: linear-gradient(135deg, #16a34a, #22c55e 54%, #0f766e);
  box-shadow: 0 20px 42px rgba(34, 197, 94, 0.25);
}

.hero-stats {
  grid-template-columns: repeat(4, 1fr);
}

.fitness-section {
  padding-top: 28px;
}

.fitness-card::after {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.2), transparent 66%);
}

.fitness-tag {
  color: #16a34a;
  background: rgba(34, 197, 94, 0.1);
}

html[data-theme="dark"] .fitness-tag {
  color: #86efac;
  background: rgba(34, 197, 94, 0.13);
}

.fitness-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: -6px 0 24px;
}

.fitness-points span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.16);
  font-size: 13px;
  font-weight: 800;
}

html[data-theme="dark"] .fitness-points span {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(134, 239, 172, 0.16);
}

.fitness-preview {
  background:
    linear-gradient(135deg, rgba(20, 83, 45, 0.95), rgba(15, 23, 42, 0.91)),
    radial-gradient(circle at 76% 0%, rgba(74, 222, 128, 0.22), transparent 38%);
}

.fitness-dashboard-preview {
  display: grid;
  gap: 14px;
}

.fitness-preview-top,
.fitness-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fitness-preview-top strong {
  color: #f0fdf4;
  font-size: 17px;
}

.fitness-preview-top span {
  color: rgba(220, 252, 231, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.fitness-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.fitness-metric-card {
  padding: 14px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fitness-metric-card span {
  display: block;
  color: rgba(220, 252, 231, 0.68);
  font-size: 12px;
}

.fitness-metric-card strong {
  display: block;
  margin-top: 8px;
  color: #f0fdf4;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.fitness-metric-card strong small {
  margin-left: 4px;
  color: rgba(220, 252, 231, 0.72);
  font-size: 12px;
  font-weight: 850;
}

.fitness-line-card,
.fitness-list div {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.fitness-line-card {
  padding: 16px;
}

.fitness-bars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  height: 124px;
  margin-top: 14px;
  padding: 10px 4px 0;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    repeating-linear-gradient(
      to top,
      rgba(255,255,255,0.06) 0,
      rgba(255,255,255,0.06) 1px,
      transparent 1px,
      transparent 28px
    );
}

.fitness-trend-bar {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  outline: none;
}

.fitness-trend-fill {
  position: relative;
  width: clamp(18px, 72%, 32px);
  height: var(--bar-height, 42%);
  border-radius: 999px;
  background: linear-gradient(180deg, #bbf7d0 0%, #4ade80 55%, rgba(22, 163, 74, 0.92) 100%);
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.fitness-trend-fill::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 10px;
  height: 22%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  filter: blur(0.2px);
}

.fitness-trend-fill::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(var(--duration-glow, 18%) - 2px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #e0f2fe;
  box-shadow: 0 0 0 4px rgba(224, 242, 254, 0.14), 0 0 18px rgba(191, 219, 254, 0.45);
}

.fitness-trend-bar:hover .fitness-trend-fill,
.fitness-trend-bar:focus-visible .fitness-trend-fill {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 30px rgba(34, 197, 94, 0.3);
  filter: saturate(1.08);
}

.fitness-trend-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  min-width: 148px;
  max-width: 190px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(7, 16, 29, 0.92);
  border: 1px solid rgba(187, 247, 208, 0.16);
  color: #f8fafc;
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 18px 30px rgba(8, 15, 28, 0.28);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 4;
}

.fitness-trend-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(7, 16, 29, 0.92);
  border-right: 1px solid rgba(187, 247, 208, 0.16);
  border-bottom: 1px solid rgba(187, 247, 208, 0.16);
}

.fitness-trend-bar:hover .fitness-trend-tooltip,
.fitness-trend-bar:focus-visible .fitness-trend-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.fitness-trend-bar.has-data .fitness-trend-fill {
  opacity: 1;
}

.fitness-trend-bar:not(.has-data) .fitness-trend-fill {
  opacity: 0.38;
  background: linear-gradient(180deg, rgba(187,247,208,0.55), rgba(74,222,128,0.26));
  box-shadow: none;
}

.fitness-list {
  display: grid;
  gap: 10px;
}

.fitness-list div {
  padding: 12px 14px;
}

.fitness-list span {
  color: rgba(240, 253, 244, 0.84);
  font-size: 13px;
}

.fitness-list b {
  color: #bbf7d0;
  font-size: 12px;
}

@media (max-width: 900px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .hero-stats,
  .fitness-summary-grid {
    grid-template-columns: 1fr;
  }

  .fitness-points {
    gap: 8px;
  }

  .fitness-points span {
    font-size: 12px;
  }

  .fitness-bars {
    gap: 8px;
    height: 112px;
    margin-top: 12px;
  }

  .fitness-trend-fill {
    width: min(100%, 24px);
  }

  .fitness-trend-tooltip {
    min-width: 132px;
    max-width: 160px;
    font-size: 10px;
  }
}

/* 2026-06-03：健身网站公开汇总数据同步 */
.fitness-bars.is-real {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025)),
    repeating-linear-gradient(
      to top,
      rgba(255,255,255,0.07) 0,
      rgba(255,255,255,0.07) 1px,
      transparent 1px,
      transparent 28px
    );
}

.fitness-metric-card strong.loading {
  opacity: 0.55;
}
