/* ============================================================
   乐谱互译 Web — 继承官网设计语言（深空蓝 + 青/金/奶油）
   ============================================================ */

:root {
  --bg: #04070d;
  --bg-2: #09111c;
  --ink: #08111d;
  --cream: #fff4d9;
  --text: #f7fbff;
  --muted: rgba(247, 251, 255, 0.72);
  --dim: rgba(247, 251, 255, 0.48);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(139, 230, 255, 0.38);
  --cyan: #82ecff;
  --blue: #5a98ff;
  --gold: #ffd879;
  --rose: #ffb6c6;
  --danger: #ff7d92;
  --success: #9fffd8;
  --card: rgba(255, 255, 255, 0.055);
  --card-2: rgba(8, 17, 29, 0.55);
  --radius: 22px;
  --radius-lg: 30px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  min-height: 100%;
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

body {
  background:
    radial-gradient(circle at var(--mx, 76%) var(--my, 8%), rgba(130, 236, 255, 0.2), transparent 22rem),
    radial-gradient(circle at 12% 16%, rgba(255, 216, 121, 0.08), transparent 30rem),
    linear-gradient(140deg, #03050a 0%, #07111f 48%, #0c1c2c 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.6) 55%, transparent 94%);
}

a { color: inherit; text-decoration: none; }
img { display: block; }

/* ---------- 胶囊导航 ---------- */
.topbar {
  position: sticky;
  top: 14px;
  z-index: 100;
  width: min(1480px, calc(100% - 48px));
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(7, 14, 25, 0.62);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.24);
}
.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
  white-space: nowrap;
  padding-left: 6px;
}
.topbar-brand .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(130, 236, 255, 0.22);
  flex: none;
}
.topbar-brand .brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.topbar-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  font-size: 14px;
  transition: transform 0.25s var(--ease), color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.topbar-nav a:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: rgba(130, 236, 255, 0.34);
  background: rgba(255, 255, 255, 0.075);
}
.topbar-nav a.active {
  color: var(--ink);
  background: linear-gradient(135deg, #fff6da, #9ff1ff 48%, #88a8ff);
  box-shadow: 0 10px 30px rgba(79, 153, 255, 0.3);
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding-right: 6px;
}
.topbar-user .user-points {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.topbar-user .user-points b { color: var(--gold); font-weight: 900; }

/* ---------- 布局 ---------- */
.container {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 90px;
}
.page-head { margin-bottom: 34px; }
.page-head h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.06em;
}
.page-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.section-title {
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.05em;
  margin: 56px 0 22px;
}
.section-eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- 玻璃卡片 ---------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.045));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 60px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}
.card.clickable { cursor: pointer; }
.card.clickable:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 40px rgba(130, 236, 255, 0.12);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  cursor: pointer;
  transition: transform 0.25s var(--ease), filter 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(130, 236, 255, 0.34); background: rgba(255, 255, 255, 0.1); }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary {
  color: var(--ink);
  border-color: transparent;
  background: linear-gradient(135deg, #fff6da, #9ff1ff 48%, #88a8ff);
  box-shadow: 0 18px 46px rgba(79, 153, 255, 0.3);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); background: linear-gradient(135deg, #fff6da, #9ff1ff 48%, #88a8ff); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); }
.btn-text { border-color: transparent; background: transparent; box-shadow: none; color: var(--cyan); padding: 0 10px; }
.btn-text:hover:not(:disabled) { background: rgba(130, 236, 255, 0.1); }
.btn-danger { border-color: rgba(255, 125, 146, 0.4); color: var(--danger); background: transparent; }
.btn-danger:hover:not(:disabled) { background: rgba(255, 125, 146, 0.1); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 15px; }

/* ---------- 表单控件 ---------- */
.input, .select {
  height: 44px;
  padding: 0 16px;
  background: rgba(8, 17, 29, 0.55);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.input:focus, .select:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(130, 236, 255, 0.12);
}
.input::placeholder { color: var(--dim); }
.select option { background: var(--bg-2); }
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}

/* ---------- 筛选标签 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 850;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.chip:hover { transform: translateY(-2px); border-color: rgba(130, 236, 255, 0.34); }
.chip.active {
  color: var(--ink);
  background: linear-gradient(135deg, #fff6da, #9ff1ff);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(79, 153, 255, 0.3);
}

/* ---------- 网格 ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- 乐谱卡片 ---------- */
.score-card-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(8, 17, 29, 0.6);
  margin-bottom: 16px;
}
.score-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.card.clickable:hover .score-card-cover img { transform: scale(1.06); }
.score-card-title {
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.score-card-meta {
  margin-top: 5px;
  font-size: 12px;
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.score-card-tags { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 36px; }
.pager button {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.pager button:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(130, 236, 255, 0.34); }
.pager button.active {
  color: var(--ink);
  background: linear-gradient(135deg, #fff6da, #9ff1ff);
  border-color: transparent;
}
.pager button:disabled { opacity: 0.35; cursor: not-allowed; }

/* ---------- 进度条 ---------- */
.progress {
  height: 8px;
  background: rgba(8, 17, 29, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--cyan), var(--blue));
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(130, 236, 255, 0.6);
  transition: width 300ms var(--ease);
}

/* ---------- 空状态 / 错误 ---------- */
.empty { padding: 60px 20px; text-align: center; color: var(--dim); }
.empty .empty-icon { color: var(--dim); margin-bottom: 14px; }
.empty .empty-icon svg { width: 48px; height: 48px; }
.empty .empty-text { font-size: 15px; font-weight: 700; margin-bottom: 18px; color: var(--muted); }

/* ---------- 骨架屏 ---------- */
.skeleton {
  background: rgba(255, 255, 255, 0.06);
  background-image: linear-gradient(90deg, transparent 0, rgba(255,255,255,0.09) 40px, transparent 80px);
  background-size: 200px 100%;
  background-repeat: no-repeat;
  animation: skeleton-flow 1.5s linear infinite;
  border-radius: 14px;
}
@keyframes skeleton-flow {
  from { background-position: -200px 0; }
  to { background-position: calc(100% + 200px) 0; }
}

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 5, 10, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms var(--ease);
}
.modal-mask.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 400px;
  max-width: calc(100vw - 40px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  padding: 30px;
  background:
    radial-gradient(circle at 25% 0%, rgba(130, 236, 255, 0.14), transparent 16rem),
    rgba(9, 17, 28, 0.92);
  box-shadow: var(--shadow);
  transform: scale(0.95) translateY(10px);
  transition: transform 250ms var(--ease);
}
.modal-mask.open .modal { transform: scale(1) translateY(0); }
.modal-title { font-size: 22px; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 8px; }
.modal-desc { font-size: 13px; color: var(--muted); margin-bottom: 22px; line-height: 1.7; }
.modal-close {
  float: right;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s var(--ease);
}
.modal-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  z-index: 300;
  transform: translateX(-50%);
  border: 1px solid rgba(130, 236, 255, 0.3);
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  background: rgba(7, 14, 25, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4), 0 0 30px rgba(130, 236, 255, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms var(--ease);
  max-width: calc(100vw - 40px);
}
.toast.show { opacity: 1; }

/* ---------- 上传区 ---------- */
.dropzone {
  border: 1.5px dashed rgba(130, 236, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 52px 24px;
  text-align: center;
  cursor: pointer;
  background: rgba(130, 236, 255, 0.03);
  transition: all 0.25s var(--ease);
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--cyan);
  background: rgba(130, 236, 255, 0.08);
  box-shadow: 0 0 50px rgba(130, 236, 255, 0.12) inset;
}
.dropzone .dz-icon { color: var(--cyan); margin-bottom: 14px; }
.dropzone .dz-icon svg { width: 46px; height: 46px; }
.dropzone .dz-title { font-size: 16px; font-weight: 850; letter-spacing: -0.01em; }
.dropzone .dz-desc { margin-top: 8px; font-size: 13px; color: var(--dim); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: 54px;
  padding: 64px 0 24px;
}
.hero-copy { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(130, 236, 255, 0.22);
  color: #d6fbff;
  background: rgba(130, 236, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 900;
}
.spark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(130, 236, 255, 0.1), 0 0 22px rgba(130, 236, 255, 0.9);
  animation: spark 2.1s ease-in-out infinite;
}
@keyframes spark {
  0%, 100% { transform: scale(0.88); opacity: 0.76; }
  50% { transform: scale(1.16); opacity: 1; }
}
.hero-title {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.075em;
}
.hero-title .line { display: block; }
.hero-title .warm {
  color: transparent;
  background: linear-gradient(90deg, #fff, var(--cream) 46%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-sub {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.85;
}
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
  max-width: 820px;
}
.meta-pill {
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.meta-pill b { display: block; margin-bottom: 6px; color: #fff; font-size: 15px; font-weight: 900; }
.meta-pill span { color: var(--dim); font-size: 13px; line-height: 1.5; }

/* ---------- Hero 设备视觉（官网同款） ---------- */
.hero-visual {
  position: relative;
  min-height: 600px;
  perspective: 1200px;
}
.sun-ring {
  position: absolute;
  inset: 6% auto auto 0%;
  width: 340px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,244,217,0.95) 0 26%, rgba(255,216,121,0.18) 27% 42%, transparent 43%),
    conic-gradient(from 35deg, transparent, rgba(130,236,255,0.34), transparent 35%, rgba(255,216,121,0.26), transparent 72%);
  opacity: 0.7;
  animation: slow-spin 24s linear infinite;
}
.device {
  position: absolute;
  left: 6%;
  top: 6%;
  width: min(360px, 78vw);
  min-height: 500px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 46px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06)),
    rgba(6, 12, 22, 0.82);
  box-shadow: var(--shadow);
  transform: rotateX(7deg) rotateY(-13deg) rotateZ(2deg);
  animation: device-float 7s ease-in-out infinite;
  overflow: hidden;
}
@keyframes device-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -16px; }
}
.device::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 36px;
  background: linear-gradient(155deg, #f8f1df, #e8fbff);
}
.device-screen {
  position: relative;
  z-index: 1;
  min-height: 464px;
  padding: 18px;
  border-radius: 32px;
  color: var(--ink);
  overflow: hidden;
}
.device-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-weight: 900;
}
.device-head img {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  object-fit: cover;
  background: #fff;
}
.scan-window {
  position: relative;
  min-height: 224px;
  padding: 18px;
  border-radius: 28px;
  background: #fffaf0;
  box-shadow: 0 18px 40px rgba(8, 17, 29, 0.13);
  overflow: hidden;
}
.staff {
  position: absolute;
  inset: 52px 14px auto 14px;
  height: 116px;
  opacity: 0.45;
  background: repeating-linear-gradient(to bottom, transparent 0 17px, #0b1b2c 18px 20px);
}
.notation {
  position: relative;
  display: grid;
  gap: 20px;
  margin-top: 38px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 0.09em;
}
.notation div { display: flex; align-items: center; gap: 14px; }
.notation span { animation: note-rise 4.2s ease-in-out infinite; }
.notation span:nth-child(2n) { animation-delay: 0.5s; }
.notation span:nth-child(3n) { animation-delay: 1s; }
@keyframes note-rise {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.scan-line {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 40px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 24px rgba(130, 236, 255, 0.9);
  animation: scan 3.2s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { transform: translateY(0); opacity: 0.58; }
  50% { transform: translateY(150px); opacity: 1; }
}
.result-list { display: grid; gap: 10px; margin-top: 18px; }
.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 18px;
  background: rgba(8, 17, 29, 0.08);
  font-size: 13px;
  font-weight: 900;
}
.result-item i {
  width: 42%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  animation: meter 2.8s ease-in-out infinite;
}
.result-item:nth-child(2) i { width: 55%; animation-delay: 0.35s; }
.result-item:nth-child(3) i { width: 34%; animation-delay: 0.7s; }
@keyframes meter {
  0%, 100% { transform: scaleX(0.72); transform-origin: left; opacity: 0.65; }
  50% { transform: scaleX(1); opacity: 1; }
}
.float-card {
  position: absolute;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}
.qr-card {
  right: 0;
  bottom: 58px;
  width: 200px;
  padding: 13px;
  transform: rotate(5deg);
  animation: card-float 6.4s ease-in-out infinite;
}
.qr-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 22px;
  padding: 9px;
  background: #fff;
}
.qr-card p { margin: 10px 4px 2px; font-size: 13px; font-weight: 900; line-height: 1.45; }
.metric-card {
  left: 0;
  bottom: 10px;
  width: 236px;
  padding: 18px;
  transform: rotate(-5deg);
  animation: card-float 7.2s ease-in-out infinite reverse;
}
.metric-card small { color: var(--dim); font-weight: 900; }
.metric-card b { display: block; margin: 8px 0 14px; font-size: 30px; letter-spacing: -0.05em; }
.curve {
  height: 54px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 70%, var(--cyan) 0 4px, transparent 5px),
    radial-gradient(circle at 34% 45%, var(--gold) 0 4px, transparent 5px),
    radial-gradient(circle at 57% 58%, #9fffd8 0 4px, transparent 5px),
    radial-gradient(circle at 82% 30%, var(--cyan) 0 4px, transparent 5px),
    linear-gradient(135deg, rgba(255,255,255,0.11), rgba(255,255,255,0.035));
  overflow: hidden;
}

/* ---------- 功能卡 ---------- */
.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--ink);
  background: linear-gradient(135deg, #fff9e8, #dffaff);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s var(--ease);
}
.feature-icon svg { width: 26px; height: 26px; }
.card.clickable:hover .feature-icon { transform: rotate(-5deg) scale(1.08); }
.feature-title { font-size: 20px; font-weight: 900; letter-spacing: -0.03em; }
.feature-desc { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.feature-arrow {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  transition: gap 0.25s var(--ease);
}
.card.clickable:hover .feature-arrow { gap: 14px; }

/* ---------- 图标 ---------- */
.icon { width: 18px; height: 18px; flex: none; }

/* ---------- 通用工具 ---------- */
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted { color: var(--muted); }
.faint { color: var(--dim); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.hidden { display: none !important; }

.fade-in { animation: fade-in 500ms var(--ease); }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 官网内容板块：流程/对比/风险/网络/CTA/footer ---------- */
.section-block { padding: 90px 0 0; }
.section-lead {
  max-width: 730px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
  margin-top: 48px;
}
.sticky-copy {
  position: sticky;
  top: 100px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 42px;
  background:
    radial-gradient(circle at 25% 0%, rgba(130, 236, 255, 0.16), transparent 18rem),
    rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 74px rgba(0, 0, 0, 0.21);
}
.sticky-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  font-weight: 900;
}
.sticky-copy p { color: var(--muted); line-height: 1.85; }

.step-stack { display: grid; gap: 18px; }
.flow-card {
  min-height: 230px;
  padding: 26px;
  border-radius: 42px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.055));
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.flow-card.light {
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 18%, rgba(130, 236, 255, 0.45), transparent 12rem),
    linear-gradient(135deg, #fff8e8, #eaf9ff);
}
.flow-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}
.step-no {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--cream);
  font-weight: 950;
}
.light .step-no { color: #fff; background: var(--ink); }
.flow-card h3 {
  margin-bottom: 9px;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.045em;
  font-weight: 900;
}
.flow-card p {
  max-width: 660px;
  color: var(--muted);
  line-height: 1.82;
}
.flow-card.light p { color: rgba(8, 17, 29, 0.68); }
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 850;
}
.light .chip-row span { color: rgba(8, 17, 29, 0.78); background: rgba(8, 17, 29, 0.07); border-color: transparent; }
.mini-score {
  margin-top: 22px;
  min-height: 100px;
  border-radius: 24px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 15px, rgba(8,17,29,0.42) 16px 18px),
    rgba(255, 255, 255, 0.8);
  color: var(--ink);
  padding: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.contrast {
  position: relative;
  margin: 70px 0 0;
  padding: 44px;
  border-radius: 48px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(130, 236, 255, 0.6), transparent 18rem),
    linear-gradient(135deg, #fff8df, #f1fbff 62%, #dfe9ff);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.contrast::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -160px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, rgba(8,17,29,0.1), rgba(130,236,255,0.5), rgba(255,216,121,0.45), rgba(8,17,29,0.1));
  opacity: 0.74;
  animation: slow-spin 28s linear infinite;
}
@keyframes slow-spin { to { transform: rotate(360deg); } }
.contrast-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: end;
}
.contrast h2 {
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  font-weight: 900;
}
.contrast p { color: rgba(8, 17, 29, 0.7); line-height: 1.88; font-size: 17px; }

.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.risk-card {
  min-height: 180px;
  padding: 22px;
  border-radius: 32px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.05));
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}
.risk-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 34px;
  letter-spacing: -0.06em;
  font-weight: 900;
}
.risk-card p { color: var(--muted); line-height: 1.75; }

.network {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 28px;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 52px;
  background:
    radial-gradient(circle at 70% 12%, rgba(130, 236, 255, 0.16), transparent 22rem),
    rgba(255, 255, 255, 0.065);
  box-shadow: var(--shadow);
  margin-top: 70px;
}
.network h2 {
  margin: 14px 0 18px;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 900;
}
.network p { color: var(--muted); line-height: 1.85; font-size: 16px; }
.constellation {
  position: relative;
  min-height: 400px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 244, 217, 0.08), transparent 16rem),
    rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.constellation::before {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(130, 236, 255, 0.2);
  border-radius: 50%;
  animation: pulse-ring 4s ease-in-out infinite;
}
.constellation::after {
  content: "";
  position: absolute;
  inset: 29%;
  border: 1px solid rgba(255, 216, 121, 0.16);
  border-radius: 50%;
  animation: pulse-ring 5.2s ease-in-out infinite reverse;
}
@keyframes pulse-ring {
  0%, 100% { transform: scale(0.95); opacity: 0.58; }
  50% { transform: scale(1.05); opacity: 1; }
}
.node {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 70px;
  min-height: 70px;
  padding: 12px;
  border-radius: 24px;
  color: var(--ink);
  background: linear-gradient(135deg, #fff9e8, #dffaff);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2);
  font-weight: 950;
  text-align: center;
  animation: card-float 6s ease-in-out infinite;
}
@keyframes card-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
.node:nth-child(1) { left: 10%; top: 14%; }
.node:nth-child(2) { right: 10%; top: 16%; animation-delay: 0.7s; }
.node:nth-child(3) { left: 22%; bottom: 16%; animation-delay: 1.4s; }
.node:nth-child(4) { right: 20%; bottom: 18%; animation-delay: 2.1s; }
.node.center {
  left: 50%;
  top: 50%;
  min-width: 120px;
  min-height: 120px;
  transform: translate(-50%, -50%);
  border-radius: 34px;
  color: #fff;
  background: linear-gradient(135deg, #0d1d31, #173a59);
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: none;
}

.cta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 30px;
  align-items: center;
  margin: 70px 0 50px;
  padding: 42px;
  border-radius: 54px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 20%, rgba(130, 236, 255, 0.7), transparent 14rem),
    linear-gradient(135deg, #fff9e8, #e7faff);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cta h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 900;
}
.cta .cta-eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: rgba(8, 17, 29, 0.55);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.cta p {
  max-width: 660px;
  color: rgba(8, 17, 29, 0.68);
  line-height: 1.85;
  font-size: 16px;
}
.contact-steps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.contact-steps span {
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(8, 17, 29, 0.08);
  color: rgba(8, 17, 29, 0.76);
  font-weight: 900;
  font-size: 13px;
}
.qr-large {
  position: relative;
  z-index: 1;
  padding: 13px;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 28px 64px rgba(8, 17, 29, 0.22);
  transform: rotate(2.5deg);
}
.qr-large img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 24px;
}

.web-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 30px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
}
.web-footer a { color: rgba(255, 255, 255, 0.8); }

/* ---------- 官网同款动效：滚动进度条 / 颗粒噪点 / 入场 reveal ---------- */
.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 90;
  width: 100%;
  height: 3px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), var(--cyan), var(--blue));
  box-shadow: 0 0 24px rgba(130, 236, 255, 0.7);
  pointer-events: none;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05) 0 1px, transparent 1px),
    radial-gradient(circle at 78% 76%, rgba(255,255,255,0.04) 0 1px, transparent 1px);
  background-size: 3px 3px, 4px 4px;
  mix-blend-mode: screen;
}
.reveal-fx {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition: opacity 0.85s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-fx.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .topbar-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-visual { min-height: 620px; }
  .device {
    left: 50%;
    transform: translateX(-50%) rotateX(7deg) rotateY(-8deg) rotateZ(1deg);
  }
  .hero-meta { grid-template-columns: 1fr; }
  .story-grid, .contrast-inner, .network, .cta { grid-template-columns: 1fr; }
  .sticky-copy { position: relative; top: 0; }
  .risk-grid { grid-template-columns: 1fr; }
  .qr-large { width: min(280px, 100%); }
}
@media (max-width: 768px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .topbar { width: calc(100% - 24px); }
  .container { width: calc(100% - 24px); padding: 28px 0 60px; }
  .modal { padding: 22px; border-radius: 26px; }
}
@media (max-width: 640px) {
  .hero-visual { min-height: 660px; }
  .device { width: min(330px, 92vw); top: 4%; }
  .float-card {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 18px auto 0;
    transform: none;
  }
  .qr-card, .metric-card { width: min(260px, 92%); }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
}
