/* ==========================================================================
   东斗D · 个人主页样式
   深色 / 薄荷绿主色（取自 logo）/ 单页静态
   ========================================================================== */

:root {
  --bg: #0a0e13;
  --bg-alt: #0d1219;
  --card: #121a22;
  --card-2: #16202a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #edf1f5;
  --muted: #93a1b0;
  --mint: #3ddc84;
  --mint-soft: rgba(61, 220, 132, 0.12);
  --yellow: #ffcf3f;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --head-h: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
code { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; }
button { font: inherit; color: inherit; }

.wrap {
  width: min(1140px, calc(100% - 48px));
  margin-inline: auto;
}

/* 顶部滚动进度条 ---------------------------------------------------------- */
.scroll-bar {
  position: fixed;
  inset: 0 auto auto 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--mint), var(--yellow));
  z-index: 60;
  transition: width 0.1s linear;
}

/* ==========================================================================
   顶部导航
   ========================================================================== */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--head-h);
  z-index: 50;
  background: rgba(10, 14, 19, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-head.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 14, 19, 0.92);
}

.head-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  min-width: 0;
}
.brand-logo {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(61, 220, 132, 0.28));
  transition: transform 0.3s var(--ease);
}
.brand:hover .brand-logo { transform: translateY(-1px) scale(1.03); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand-text em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--muted);
  margin-top: 5px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  color: #b7c2ce;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a.is-active { color: var(--mint); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--mint);
  transform: translateX(-50%);
}

.head-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #04220f;
  background: var(--mint);
  box-shadow: 0 6px 18px rgba(61, 220, 132, 0.22);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.head-cta svg { width: 14px; height: 14px; }
.head-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(61, 220, 132, 0.32); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.28s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   首屏
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(var(--head-h) + 72px) 0 96px;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(61, 220, 132, 0.13), transparent 62%),
    radial-gradient(700px 460px at 8% 92%, rgba(255, 207, 63, 0.07), transparent 60%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(720px 640px at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(720px 640px at 50% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 620px;
  height: 620px;
  right: -180px;
  top: -220px;
  background: radial-gradient(circle, rgba(61, 220, 132, 0.18), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--mint);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-soft);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.12); }
  50% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0.03); }
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.9rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
}
.hero h1 .hl {
  background: linear-gradient(100deg, var(--mint) 10%, #9df3bd 55%, var(--yellow) 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin-top: 24px;
  max-width: 30em;
  color: #a9b6c3;
  font-size: 16.5px;
  line-height: 1.85;
}

/* 创作者代码胶囊 ---------------------------------------------------------- */
.code-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}
.code-label { font-size: 13px; color: var(--muted); }
.code-chip code {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--mint);
}
.copy-btn {
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #04220f;
  background: var(--mint);
  cursor: pointer;
  transition: transform 0.18s var(--ease), opacity 0.2s;
}
.copy-btn:hover { transform: translateY(-1px); }
.copy-btn.is-done { background: var(--yellow); }
.copy-btn-sm {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  white-space: nowrap;
}
.copy-btn-sm.is-done { background: var(--mint); color: #04220f; border-color: transparent; }

/* 「绑定」按钮：和复制同尺寸，主色实心 */
.bind-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  color: #04220f;
  background: var(--mint);
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.bind-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(61, 220, 132, 0.32); }

/* 灰色复制按钮（支持区专用，默认低调） */
.copy-btn-gray {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}
.copy-btn-gray:hover { background: rgba(255, 255, 255, 0.13); }
.copy-btn-gray.is-done { background: var(--mint); border-color: transparent; color: #04220f; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--mint);
  color: #04220f;
  box-shadow: 0 10px 26px rgba(61, 220, 132, 0.24);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(61, 220, 132, 0.34); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); transform: translateY(-2px); }

/* 首屏右侧：头像 + 数据卡 ------------------------------------------------- */
.hero-media { position: relative; display: flex; justify-content: center; }
.profile-card {
  position: relative;
  width: 100%;
  max-width: 386px;
  padding: 30px 26px 20px;
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(120% 92% at 50% 0%, rgba(61, 220, 132, 0.16), transparent 60%),
    var(--card);
  border: 1px solid var(--line-strong);
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.5);
}
.avatar-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 16px;
}
.avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid rgba(61, 220, 132, 0.28);
  background: radial-gradient(circle, rgba(61, 220, 132, 0.16), transparent 68%);
}
.avatar {
  position: relative;
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(61, 220, 132, 0.9);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}
.pc-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}
.pc-name em {
  font-style: normal;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--mint);
}
.pc-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }

.pc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pc-stats div + div { border-left: 1px solid var(--line); }
.pc-stats b {
  display: block;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}
.pc-stats b small {
  font-size: 12px;
  font-weight: 700;
  color: var(--mint);
  margin-left: 1px;
}
.pc-stats span { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.pc-note { margin-top: 14px; font-size: 11px; line-height: 1.5; color: rgba(147, 161, 176, 0.7); }

/* ==========================================================================
   通用区块
   ========================================================================== */
.section { padding: 100px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec-head { margin-bottom: 52px; max-width: 44em; }
.sec-index {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--mint);
  margin-bottom: 16px;
  font-weight: 700;
}
.sec-head h2 {
  font-size: clamp(1.7rem, 3.1vw, 2.5rem);
  font-weight: 800;
}
.sec-desc { margin-top: 14px; color: var(--muted); font-size: 15.5px; }

/* ==========================================================================
   关于
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: start;
}
.about-text p { color: #b3c0cc; font-size: 16px; line-height: 1.95; }
.about-text p + p { margin-top: 20px; }
.about-text b { color: var(--text); font-weight: 650; }

.about-list { display: grid; gap: 14px; }
.about-list li {
  display: flex;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.about-list li:hover {
  border-color: rgba(61, 220, 132, 0.38);
  transform: translateX(4px);
  background: linear-gradient(160deg, rgba(61, 220, 132, 0.09), rgba(255, 255, 255, 0.012));
}
.about-list .ico {
  flex: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--mint);
  padding-top: 3px;
}
.about-list h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 4px; }
.about-list p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ==========================================================================
   视频卡片
   ========================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.video-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s var(--ease);
}
.video-card:hover {
  transform: translateY(-6px);
  border-color: rgba(61, 220, 132, 0.4);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.5);
}
.video-thumb { position: relative; overflow: hidden; }
.video-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.video-card:hover .video-thumb img { transform: scale(1.05); }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.badge-bili { background: #00aeec; color: #04222c; }
.badge-wx { background: #07c160; color: #032b14; }
.dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  backdrop-filter: blur(4px);
}
.video-body { padding: 15px 18px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.video-body h3 { font-size: 15.5px; font-weight: 700; line-height: 1.4; }
.video-meta { font-size: 12.5px; color: var(--muted); }
.video-link {
  margin-top: auto;
  padding-top: 9px;
  font-size: 13px;
  font-weight: 650;
  color: var(--mint);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.video-link i { font-style: normal; transition: transform 0.25s var(--ease); }
.video-card:hover .video-link i { transform: translateX(5px); }

/* ==========================================================================
   全平台
   ========================================================================== */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.pf {
  --c: #3ddc84;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.platform-grid .pf:nth-child(1) { --c: #00aeec; }
.platform-grid .pf:nth-child(2) { --c: #fe2c55; }
.platform-grid .pf:nth-child(3) { --c: #ff5000; }
.platform-grid .pf:nth-child(4) { --c: #ff2442; }
.platform-grid .pf:nth-child(5) { --c: #07c160; }
.pf:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  background: var(--card-2);
}
.pf-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 30%, transparent);
}
.pf-body { display: flex; flex-direction: column; min-width: 0; }
.pf-body strong { font-size: 16px; font-weight: 700; }
.pf-body em {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf-arrow {
  margin-left: auto;
  font-style: normal;
  color: var(--muted);
  transition: transform 0.25s var(--ease), color 0.25s;
}
.pf:hover .pf-arrow { transform: translateX(4px); color: var(--mint); }
.pf-wide { grid-column: 1 / -1; }
.pf-cta {
  margin-left: auto;
  flex: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #04220f;
  background: var(--mint);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.pf:hover .pf-cta { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(61, 220, 132, 0.35); }
button.pf {
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

/* ==========================================================================
   创作者代码 / 支持
   ========================================================================== */
.support { padding-top: 20px; }
.support-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  padding: 52px;
  border: 1px solid rgba(61, 220, 132, 0.26);
  border-radius: 26px;
  background:
    radial-gradient(600px 300px at 8% 0%, rgba(61, 220, 132, 0.14), transparent 65%),
    var(--card);
  position: relative;
  overflow: hidden;
}
.support-card h2 {
  font-size: clamp(1.6rem, 2.9vw, 2.2rem);
  font-weight: 800;
}
.support-card h2 code {
  color: var(--mint);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.support-text { margin-top: 16px; color: #aebbc7; font-size: 15.5px; line-height: 1.9; }
.support-text b { color: var(--mint); }
.code-chip-lg { margin-top: 26px; }
.code-chip-lg code { font-size: 19px; }

.support-steps {
  display: grid;
  gap: 12px;
  align-content: center;
}
.step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.18);
}
.step span {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #04220f;
  background: var(--mint);
}
.step p { font-size: 14px; color: #c3ced9; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-foot {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.foot-brand img { height: 44px; width: auto; opacity: 0.92; }
.foot-brand p { margin-top: 14px; font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { font-size: 14px; color: #a9b6c3; transition: color 0.2s; }
.foot-links a:hover { color: var(--mint); }
.foot-note {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #6f7d8b;
}

/* ==========================================================================
   公众号二维码弹窗
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 10, 0.78);
  backdrop-filter: blur(6px);
}
.modal-panel {
  position: relative;
  width: min(92vw, 372px);
  max-height: 88vh;
  overflow-y: auto;
  padding: 26px 24px 22px;
  border-radius: 22px;
  text-align: center;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(61, 220, 132, 0.12), transparent 62%),
    var(--card);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.62);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s var(--ease);
}
.modal.is-open .modal-panel { transform: none; }
.modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  transition: color 0.2s, background 0.2s;
}
.modal-x svg { width: 17px; height: 17px; }
.modal-x:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.modal-panel h3 { font-size: 16.5px; font-weight: 700; line-height: 1.45; padding: 0 26px; }
.modal-sub { margin-top: 7px; font-size: 12.5px; color: var(--muted); }
.qr-img {
  display: block;
  width: 100%;
  max-width: 256px;
  margin: 18px auto 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.modal-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.modal-actions .btn { padding: 11px 18px; font-size: 13.5px; }
body.modal-lock { overflow: hidden; }

/* ---------- 唤起游戏的提示条（屏幕上方悬浮） ---------- */
.toast {
  position: fixed;
  top: calc(var(--head-h) + 14px);
  left: 50%;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: min(92vw, 470px);
  padding: 13px 16px;
  border: 1px solid rgba(255, 207, 63, 0.42);
  border-radius: 14px;
  background: rgba(15, 22, 29, 0.97);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.58);
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -14px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  pointer-events: none;
}
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast-icon { flex: 0 0 auto; color: var(--yellow); }
.toast-icon svg { display: block; width: 18px; height: 18px; margin-top: 1px; }
.toast-text { flex: 1 1 auto; }

@media (max-width: 720px) {
  .toast { top: calc(var(--head-h) + 10px); font-size: 12.5px; padding: 12px 14px; }
}

/* 窄屏下代码胶囊多了一颗「绑定」，允许换行避免溢出 */
@media (max-width: 560px) {
  .code-chip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 10px;
    padding: 14px;
    border-radius: 18px;
  }
  .code-chip code { margin-right: auto; }
}

/* ==========================================================================
   进场动画
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-media { max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .support-card { grid-template-columns: 1fr; padding: 40px; gap: 32px; }
  .support-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --head-h: 64px; }
  .nav {
    position: fixed;
    inset: var(--head-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 18px 22px;
    background: rgba(10, 14, 19, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 12px; border-radius: 12px; font-size: 16px; }
  .nav a.is-active::after { display: none; }
  .nav a.is-active { background: rgba(61, 220, 132, 0.1); }
  .nav-toggle { display: flex; }
  .head-cta { display: none; }
  .brand-logo { height: 32px; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  .section { padding: 72px 0; }
  .hero { padding: calc(var(--head-h) + 48px) 0 72px; }
  .video-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .pf-wide { flex-wrap: wrap; row-gap: 10px; }
  .pf-wide .pf-cta { order: 3; margin-left: 64px; }
  .pc-stats b { font-size: 22px; }
  .sec-head { margin-bottom: 36px; }
  .support-card { padding: 28px; border-radius: 20px; }
  .support-steps { grid-template-columns: 1fr; }
  .code-chip { padding-left: 14px; gap: 9px; }
  .btn { padding: 13px 22px; font-size: 14.5px; }
  .foot-inner { gap: 28px; }
}

@media (max-width: 420px) {
  .eyebrow { font-size: 11.5px; letter-spacing: 0.04em; }
  .brand-text strong { font-size: 17px; }
  .brand-text em { letter-spacing: 0.18em; }
  .code-chip code { font-size: 15px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* 尊重系统减弱动效设置 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
