/* ============ 明佑司典 · 设计令牌（青绿+藏青+金） ============ */
:root {
  --primary: #0d9488;
  --primary-light: #2dd4bf;
  --primary-dark: #0f766e;
  --blue: #3b82f6;
  --navy: #16324f;
  --ink: #1f2937;
  --muted: #64748b;
  --gold: #c3923f;
  --gold-light: #f7c948;
  --bg: #f6fbfa;
  --bg-alt: #eef7f5;
  --card: #ffffff;
  --line: #e2efeC;
  --shadow-sm: 0 6px 16px rgba(13, 148, 136, .08);
  --shadow-md: 0 12px 32px rgba(13, 148, 136, .14);
  --shadow-lg: 0 34px 100px rgba(15, 23, 42, .18);
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }

/* ============ 按钮 ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; cursor: pointer; font-family: inherit; font-size: 15px;
  border-radius: 999px; padding: 10px 22px; transition: all .25s ease; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: #fff;
  box-shadow: 0 6px 16px rgba(13, 148, 136, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13, 148, 136, .36); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { color: var(--primary); background: rgba(13, 148, 136, .08); }
.btn-outline { background: #fff; color: var(--primary-dark); border: 1.5px solid rgba(13, 148, 136, .35); }
.btn-outline:hover { border-color: var(--primary); background: rgba(13, 148, 136, .06); transform: translateY(-2px); }
.btn-lg { padding: 14px 32px; font-size: 17px; }
.btn-block { width: 100%; }
.linklike { background: none; border: none; color: var(--primary); cursor: pointer; font: inherit; padding: 0; }
.linklike:hover { text-decoration: underline; }

/* ============ 导航（毛玻璃吸顶） ============ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent; transition: all .3s ease; }
.nav.scrolled { background: rgba(255, 255, 255, .9); border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(22, 50, 79, .06); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 72px;
  display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 2px 10px rgba(22, 50, 79, .18); background: #eef7f5; }
.brand-name { font-size: 21px; font-weight: 800; color: var(--navy); letter-spacing: 2px; line-height: 1.15; }
.brand-name small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 2.5px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 15px; color: var(--ink); position: relative; padding: 6px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  border-radius: 3px; background: linear-gradient(90deg, var(--primary-light), var(--primary)); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-burger span { width: 22px; height: 2.5px; border-radius: 2px; background: var(--navy); transition: all .3s; }

/* ============ Hero ============ */
.hero { position: relative; overflow: visible; padding: 158px 24px 96px;
  background: linear-gradient(180deg, #f0fdfa 0%, #ecfeff 100%); }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; z-index: 0; }
.hero-blob-1 { width: 480px; height: 480px; left: -140px; top: -120px; background: #99f6e4; }
.hero-blob-2 { width: 420px; height: 420px; right: -120px; bottom: -140px; background: #bfdbfe; }

/* 吉祥物主视觉：秋日窗边 16:9 动图，贴右垂直居中，约占头部 4/5 */
.hero-bg { position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  width: min(80%, 1000px); aspect-ratio: 16 / 9; z-index: 1; pointer-events: none; overflow: hidden;
  background: radial-gradient(ellipse at 60% 50%, #1b3a5c 0%, #15294a 50%, #0f1f36 100%);
  /* 四边 alpha 羽化：左侧淡出露出页面浅青底（文字全天可读），右/上/下自然消边 */
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,.5) 17%, #000 52%, #000 85%, rgba(0,0,0,.45) 93%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 13%, #000 85%, transparent 100%);
          mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,.5) 17%, #000 52%, #000 85%, rgba(0,0,0,.45) 93%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 13%, #000 85%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
/* video 元素彻底隐藏：仅作画布数据源，页面无可见 video，Edge 下载/投屏悬浮条无从触发 */
.hero-bg-video { display: none !important; }
/* 画布与封面图承担视觉输出 */
.hero-bg-canvas, .hero-bg-photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg-photo { display: none; }
.hero-bg.video-failed .hero-bg-canvas { display: none; }
.hero-bg.video-failed .hero-bg-photo { display: block; }
/* 羽化已由容器 mask 完成，无需再叠白色渐变 */
.hero-bg-mask { display: none; }

.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 48px;
  align-items: center; position: relative; z-index: 2; }
.hero-copy { max-width: 620px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 16px; font-size: 13.5px; color: var(--primary-dark); box-shadow: var(--shadow-sm); }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, .25); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(45,212,191,.3);} 50% { box-shadow: 0 0 0 7px rgba(45,212,191,.08);} }
.hero h1 { font-size: 52px; line-height: 1.22; color: var(--navy); font-weight: 900; margin: 22px 0 18px; }
.hero h1 em { background: linear-gradient(100deg, var(--primary-light), var(--primary-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: 17px; max-width: 540px;
  text-shadow: 0 1px 10px rgba(240,253,250,.9), 0 0 24px rgba(240,253,250,.75); }
.hero-cta { display: flex; gap: 16px; margin: 30px 0 24px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: #fff; border: 1px solid var(--line); color: var(--muted); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; box-shadow: var(--shadow-sm); }
.hero-art { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-ring { display: none; }

/* 吉祥物主视觉：电影级自然融入（无硬框，四边渐隐） */
.mascot-stage { position: relative; z-index: 1; width: min(470px, 100%); aspect-ratio: 560 / 706;
  background: transparent; border-radius: 0; overflow: hidden; box-shadow: none;
  /* 径向遮罩做在容器上，把内部放大溢出的视频一起裁掉——四边渐隐看不到边界 */
  -webkit-mask-image: radial-gradient(ellipse 74% 82% at 50% 46%, #000 44%, rgba(0,0,0,.9) 64%, rgba(0,0,0,.45) 82%, rgba(0,0,0,.12) 92%, transparent 100%);
          mask-image: radial-gradient(ellipse 74% 82% at 50% 46%, #000 44%, rgba(0,0,0,.9) 64%, rgba(0,0,0,.45) 82%, rgba(0,0,0,.12) 92%, transparent 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: float 9s ease-in-out infinite; }
/* 背后彩色光晕：把视频边缘颜色晕开，消除与页面背景的硬边界 */
.mascot-stage::before { content: ""; position: absolute; inset: -8%; z-index: 0;
  background: radial-gradient(ellipse at 50% 42%, rgba(20,40,80,.5) 0%, rgba(20,40,80,.22) 40%, rgba(13,148,136,.08) 64%, transparent 80%);
  filter: blur(36px); pointer-events: none;
  -webkit-mask-image: none; mask-image: none; }
.mascot-video { position: absolute; inset: -5%; width: 110%; height: 110%; object-fit: cover;
  transform: translateY(-3%); z-index: 1;
  animation: slowZoom 20s ease-in-out infinite alternate; }
@keyframes slowZoom { 0% { transform: scale(1) translateY(-3%); } 100% { transform: scale(1.07) translateY(-4%); } }
.mascot-photo { display: none; position: absolute; inset: -5%; width: 110%; height: 110%; object-fit: cover;
  transform: translateY(-3%); z-index: 1; }
.mascot-stage.video-failed .mascot-photo { display: block; }
.mascot-stage.video-failed .mascot-video { display: none; }
/* 左右两侧额外渐隐：让视频自然衔接到文字区与页面浅青背景 */
.stage-fade { position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background:
    linear-gradient(90deg, rgba(240,253,250,.82) 0%, rgba(240,253,250,.32) 15%, transparent 30%),
    linear-gradient(270deg, rgba(240,253,250,.72) 0%, rgba(240,253,250,.22) 14%, transparent 30%),
    linear-gradient(180deg, rgba(240,253,250,.30) 0%, transparent 12%),
    linear-gradient(0deg, rgba(240,253,250,.30) 0%, transparent 12%); }

/* 场景动效 */
.rays { transform-box: view-box; transform-origin: 430px 104px; animation: raySpin 48s linear infinite; }
@keyframes raySpin { to { transform: rotate(360deg); } }
.cloud { transform-box: fill-box; }
.cloud-1 { animation: drift 13s ease-in-out infinite; }
.cloud-2 { animation: drift2 17s ease-in-out infinite; }
@keyframes drift { 0%,100% { transform: translateX(0);} 50% { transform: translateX(16px);} }
@keyframes drift2 { 0%,100% { transform: translateX(0);} 50% { transform: translateX(-14px);} }
.flag { transform-box: fill-box; transform-origin: 8% 50%; animation: flagWave 3.2s ease-in-out infinite; }
@keyframes flagWave { 0%,100% { transform: skewY(0deg);} 50% { transform: skewY(-5deg);} }

/* 水墨远山视差 */
.mt-far { transform-box: view-box; animation: mtDrift 34s ease-in-out infinite; }
.mt-near { transform-box: view-box; animation: mtDrift2 22s ease-in-out infinite; }
@keyframes mtDrift { 0%,100% { transform: translateX(0);} 50% { transform: translateX(18px);} }
@keyframes mtDrift2 { 0%,100% { transform: translateX(0);} 50% { transform: translateX(-13px);} }

/* 终点书山轻浮动 */
.goal { transform-box: fill-box; animation: goalBob 5s ease-in-out infinite; }
@keyframes goalBob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-3px);} }

.dash-path { animation: dashRun 1.5s linear infinite; }
@keyframes dashRun { to { stroke-dashoffset: -36; } }

/* 獬豸宝宝行走循环 */
.mascot { transform-box: fill-box; animation: walkBob .56s ease-in-out infinite; }
@keyframes walkBob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-5px);} }
.leg-l, .leg-r { transform-box: fill-box; transform-origin: 50% 12%; }
.leg-l { animation: stepL .56s ease-in-out infinite; }
.leg-r { animation: stepR .56s ease-in-out infinite; }
@keyframes stepL { 0%,100% { transform: rotate(15deg);} 50% { transform: rotate(-13deg) translateY(-3px);} }
@keyframes stepR { 0%,100% { transform: rotate(-13deg) translateY(-3px);} 50% { transform: rotate(15deg);} }
.arm-r { transform-box: fill-box; transform-origin: 55% 12%; animation: armSwing .56s ease-in-out infinite; }
@keyframes armSwing { 0%,100% { transform: rotate(10deg);} 50% { transform: rotate(-9deg);} }
.balance { transform-box: fill-box; transform-origin: 50% 0%; animation: balanceSwing 1.12s ease-in-out infinite; }
@keyframes balanceSwing { 0%,100% { transform: rotate(-3.5deg);} 50% { transform: rotate(3.5deg);} }
.head { transform-box: fill-box; transform-origin: 50% 100%; animation: headBob 1.12s ease-in-out infinite; }
@keyframes headBob { 0%,100% { transform: rotate(-2.4deg);} 50% { transform: rotate(2.4deg) translateY(-1px);} }
.eye-l, .eye-r { transform-box: fill-box; transform-origin: 50% 50%; animation: blink 4.6s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1);} 96% { transform: scaleY(.08);} }

/* 路边道具不断后退（前进感） */
.prop { transform-box: view-box; animation: passBy linear infinite; }
.p1 { animation-duration: 6.5s; } .p2 { animation-duration: 8.5s; animation-delay: -2.2s; }
.p3 { animation-duration: 5.6s; animation-delay: -4.1s; } .p4 { animation-duration: 9.5s; animation-delay: -5.4s; }
@keyframes passBy {
  0% { transform: translateX(566px); opacity: 0; }
  8% { opacity: .95; }
  76% { opacity: .95; }
  100% { transform: translateX(-150px); opacity: 0; }
}

.tw { transform-box: fill-box; transform-origin: center; animation: twinkle 2.8s ease-in-out infinite; }
.tw-2 { animation-delay: .7s; } .tw-3 { animation-delay: 1.3s; } .tw-4 { animation-delay: 1.9s; }
@keyframes twinkle { 0%,100% { transform: scale(.45); opacity: .35;} 50% { transform: scale(1.1); opacity: .95;} }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-14px);} }
.sparkle { position: absolute; width: 14px; height: 14px; background: var(--gold-light); z-index: 2;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: .85; }
.sparkle.s1 { top: 12%; left: 14%; animation: sparkle 2.6s ease-in-out infinite; }
.sparkle.s2 { top: 6%; right: 20%; width: 10px; height: 10px; animation: sparkle 3.2s .6s infinite; }
.sparkle.s3 { bottom: 18%; left: 6%; width: 11px; height: 11px; animation: sparkle 2.9s 1.1s infinite; }
.sparkle.s4 { bottom: 8%; right: 10%; animation: sparkle 3.5s .3s infinite; }
@keyframes sparkle { 0%,100% { transform: scale(.4) rotate(0deg); opacity: .3;} 50% { transform: scale(1.15) rotate(90deg); opacity: .95;} }
.float-card { display: none; position: absolute; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); z-index: 2;
  border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; font-size: 13.5px;
  color: var(--navy); font-weight: 600; box-shadow: var(--shadow-md); animation: float 6s ease-in-out infinite; }
.float-card.fc-1 { top: 5%; left: -9%; animation-delay: .8s; }
.float-card.fc-2 { bottom: 9%; right: -7%; animation-delay: 1.6s; }

/* ============ 数据带 ============ */
.stats { padding: 10px 24px 0; }
.stats-inner { max-width: 1100px; margin: 0 auto; background: var(--navy); border-radius: var(--r-xl);
  display: grid; grid-template-columns: repeat(3, 1fr); padding: 34px 20px; gap: 12px;
  box-shadow: var(--shadow-md); }
.stat { text-align: center; color: #fff; }
.stat b { display: block; font-size: 40px; font-weight: 900; color: var(--primary-light); line-height: 1.1; }
.stat span { font-size: 14px; opacity: .8; }

/* ============ 通用区块 ============ */
.section { max-width: 1200px; margin: 0 auto; padding: 88px 24px 0; }
.section-alt { max-width: none; background: var(--bg-alt); }
.section-alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 34px; color: var(--navy); font-weight: 900; }
.section-head p { color: var(--muted); margin-top: 10px; }

/* ============ 模块宫格 ============ */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.module-card { position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px 26px; cursor: pointer; transition: all .28s ease; overflow: hidden; }
.module-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(13,148,136,.35); }
.module-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--blue)); opacity: 0; transition: opacity .28s; }
.module-card:hover::before { opacity: 1; }
.module-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; background: linear-gradient(135deg, #ccfbf1, #e0f2fe); margin-bottom: 16px; }
.module-card h3 { font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.module-card p { font-size: 14px; color: var(--muted); min-height: 44px; }
.module-status { position: absolute; top: 16px; right: 16px; font-size: 12px; border-radius: 999px; padding: 4px 12px; font-weight: 600; }
.module-status.live { background: #ccfbf1; color: var(--primary-dark); }
.module-status.building { background: #fef3c7; color: #b45309; }
.module-status.locked { background: #f1f5f9; color: #64748b; }
.module-card.locked { opacity: .82; filter: saturate(.65); }
.module-card.locked:hover { transform: translateY(-3px); border-color: rgba(100,116,139,.4); }
.module-go { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--primary); }
.module-card.locked .module-go { color: #64748b; }
.nav-user { font-size: 14px; color: var(--muted); }
.nav-user b { color: var(--navy); font-weight: 700; }

/* ============ 流程步骤 ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 24px;
  text-align: center; transition: all .28s ease; position: relative; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-icon { width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  font-size: 28px; background: linear-gradient(135deg, #f0fdfa, #dbeafe); box-shadow: inset 0 0 0 1px var(--line); }
.step h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--muted); }
.step:not(:last-child)::after { content: "→"; position: absolute; right: -18px; top: 50%; transform: translateY(-50%);
  color: var(--primary-light); font-size: 20px; font-weight: 700; z-index: 1; }

/* ============ 订购卡片 ============ */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 34px 30px; text-align: center; transition: all .28s ease; display: flex; flex-direction: column; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price-card.featured { border: 2px solid var(--primary-light); box-shadow: var(--shadow-md); }
.price-card h3 { color: var(--navy); font-size: 20px; }
.price { font-size: 26px; font-weight: 900; color: var(--gold); margin: 12px 0 18px; }
.price-card ul { list-style: none; color: var(--muted); font-size: 14.5px; display: grid; gap: 10px; margin-bottom: 26px; flex: 1; }
.price-card ul li::before { content: "✓"; color: var(--primary); font-weight: 700; margin-right: 8px; }
.price-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 18px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.price-badge { width: 92px; height: 92px; object-fit: cover; border-radius: 50%; position: absolute;
  top: -30px; right: -14px; border: 4px solid #fff; box-shadow: var(--shadow-sm); animation: float 5s ease-in-out infinite; }

/* ============ 关于/联系 ============ */
.about { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; padding: 8px 24px 0; }
.about-logo img { border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.about-slogan { font-size: 19px; color: var(--gold); font-weight: 700; margin: 10px 0 12px; }
.about-copy p { color: var(--muted); }
.contact-row { display: flex; gap: 32px; margin-top: 24px; flex-wrap: wrap; }
.contact-item span { display: block; font-size: 13px; color: var(--muted); }
.contact-item b { color: var(--navy); font-size: 15.5px; }

/* ============ 页脚 ============ */
.footer { margin-top: 90px; background: var(--navy); color: rgba(255,255,255,.82); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 56px 24px 30px; display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { width: 96px; border-radius: 20px; margin-bottom: 14px; }
.footer-brand p { font-weight: 700; letter-spacing: 1px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; opacity: .75; padding: 5px 0; transition: all .2s; }
.footer-col a:hover { opacity: 1; color: var(--primary-light); }
.footer-bar { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 18px; font-size: 13px; opacity: .6; }

/* ============ 弹层 ============ */
.modal-mask { position: fixed; inset: 0; z-index: 200; background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; }
.modal-mask[hidden] { display: none; }
.modal { position: relative; width: min(420px, 100%); background: #fff; border-radius: var(--r-xl);
  padding: 40px 36px 30px; box-shadow: var(--shadow-lg); animation: modalIn .3s ease; }
@keyframes modalIn { from { transform: translateY(24px) scale(.97); opacity: 0;} to { transform: none; opacity: 1;} }
.modal-close { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 26px;
  color: var(--muted); cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--navy); }
.auth-tabs { display: flex; gap: 8px; background: var(--bg-alt); border-radius: 999px; padding: 5px; margin-bottom: 26px; }
.auth-tab { flex: 1; border: none; background: transparent; padding: 10px; border-radius: 999px;
  font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; transition: all .25s; }
.auth-tab.active { background: #fff; color: var(--primary-dark); box-shadow: var(--shadow-sm); }
#authForm label { display: block; font-size: 13.5px; color: var(--navy); font-weight: 600; margin-bottom: 16px; }
#authForm label[hidden] { display: none; }   /* 覆盖上面的 display:block，确保 hidden 属性生效 */
#authForm input { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--r-md); font: inherit; transition: border-color .2s, box-shadow .2s; background: #fbfefd; }
#authForm input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(13,148,136,.12); }
.auth-error { color: #dc2626; font-size: 13px; min-height: 20px; margin: -6px 0 8px; }
.auth-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }

/* ============ Toast / 回顶 ============ */
.toast { position: fixed; left: 50%; bottom: 46px; transform: translateX(-50%); z-index: 300;
  background: rgba(22, 50, 79, .94); color: #fff; padding: 12px 24px; border-radius: 999px;
  font-size: 14px; box-shadow: var(--shadow-lg); animation: toastIn .3s ease; max-width: 86vw; text-align: center; }
@keyframes toastIn { from { transform: translate(-50%, 16px); opacity: 0;} to { transform: translate(-50%, 0); opacity: 1;} }
.backtop { position: fixed; right: 26px; bottom: 30px; width: 46px; height: 46px; border-radius: 50%;
  border: none; background: #fff; color: var(--primary-dark); font-size: 20px; cursor: pointer;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: all .3s; z-index: 90; }
.backtop.show { opacity: 1; pointer-events: auto; }
.backtop:hover { background: var(--primary); color: #fff; }

/* ============ 进场动画 ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scene-svg, .rays, .cloud, .flag, .mt-far, .mt-near, .goal, .mascot, .leg-l, .leg-r, .arm-r, .balance,
  .head, .eye-l, .eye-r, .prop, .dash-path, .tw, .mascot-stage, .float-card, .price-badge, .sparkle { animation: none; }
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  /* 窄屏：背景视频降级为文字下方的独立图块 */
  .hero { display: flex; flex-direction: column; }
  .hero-inner { order: 1; }
  .hero-bg { order: 2; position: relative; right: auto; top: auto; transform: none;
    width: 100%; max-width: 640px; margin: 8px auto 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 90%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 90%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect; }
  .hero-bg-mask { display: none; }
}
@media (max-width: 1024px) {
  .module-grid, .pricing { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column;
    gap: 0; padding: 8px 24px 16px; box-shadow: var(--shadow-md); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-burger { display: flex; }
  .nav-actions .btn-ghost { display: none; }
  .hero { padding-top: 120px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .hero-cta { flex-wrap: wrap; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .stat b { font-size: 30px; }
  .module-grid, .pricing, .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
