/* ============================================================
   MMGC 落地页 · 布局与组件样式
   规范：零圆角（仅 2px 徽章/关闭、8px 二维码白名单）· 零阴影 · 4px 基线
   视觉体系：透气黑 6 层 + 兰博基尼金 CTA + 体素青焦点
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--c-abyss);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--c-gold); color: var(--text-on-gold); }

/* ---------- 容器 ---------- */
.container { width: 100%; max-width: var(--w-content); margin: 0 auto; padding: 0 var(--sp-6); }
.container.wide { max-width: var(--w-wide); }

/* ---------- 排版基础 ---------- */
.eyebrow {
  font-family: var(--font-en);
  font-size: 12px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-disabled);
  display: block; margin-bottom: var(--sp-3);
}
.h2 {
  font-size: 28px; font-weight: 600; line-height: 1.3;
  letter-spacing: 0.5px; margin-bottom: var(--sp-3);
}
.section-sub { color: var(--text-muted); font-size: 14px; max-width: 640px; }
.gold-text { color: var(--c-gold); }
.mono { font-family: var(--font-mono); }

/* ---------- 按钮（零圆角 · 无阴影） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  height: 48px; padding: 0 32px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; letter-spacing: 1px;
  border: 0; cursor: pointer; border-radius: 0;
  transition: background-color 120ms linear, color 120ms linear, border-color 120ms linear;
  white-space: nowrap;
}
.btn-gold { background: var(--c-gold); color: var(--text-on-gold); }
.btn-gold:hover { background: var(--c-gold-hover); }
.btn-gold:active { background: var(--c-gold-press); }
.btn-gold:focus-visible { outline: 2px solid var(--c-gold-text); outline-offset: 2px; }

.btn-ghost {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-normal);
}
.btn-ghost:hover { background: var(--c-teal); color: var(--text-on-gold); border-color: var(--c-teal); }
.btn-ghost:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 2px; }

/* ---------- 顶栏 / Sticky 导航 ---------- */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  height: 64px; display: flex; align-items: center;
  border-bottom: 1px solid transparent;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: var(--sp-2); font-weight: 600; font-size: 15px; letter-spacing: 1px; }
.brand-logo { display: block; height: 28px; width: auto; }
.nav-links { display: flex; align-items: center; gap: var(--sp-6); }
.nav-links a { color: var(--text-muted); font-size: 13px; transition: color 120ms linear; }
.nav-links a:hover { color: var(--text-primary); }

#sticky-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: 64px; background: var(--c-dark-iron);
  border-bottom: 1px solid var(--border-normal);
  transform: translateY(-100%); transition: transform 200ms ease-out;
}
#sticky-nav.show { transform: translateY(0); }
#sticky-nav .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
#sticky-nav .nav-links { gap: var(--sp-5); }

/* ---------- 区块通用 ---------- */
section { padding: var(--sp-24) 0; position: relative; }
.section-head { text-align: center; margin-bottom: var(--sp-12); }
.section-head .section-sub { margin: 0 auto; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: 64px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image:
    linear-gradient(var(--c-surface-mid) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-surface-mid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 0%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--sp-16); align-items: center; }
.hero-title { font-size: 44px; font-weight: 700; line-height: 1.25; letter-spacing: 0.5px; margin-bottom: var(--sp-5); }
.hero-sub { color: var(--text-muted); font-size: 15px; line-height: 1.8; max-width: 520px; margin-bottom: var(--sp-8); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }
.hero-note { font-size: 12px; color: var(--text-muted); margin-top: var(--sp-4); }
.trust-bar { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-8); }
.trust-bar .chip {
  font-size: 12px; color: var(--text-muted);
  border: 1px solid var(--border-subtle); padding: 6px 12px; background: var(--c-charcoal);
}

/* Hero 对比图（SVG 像素体素占位，上线前替换为真机截图 A2） */
.hero-visual { position: relative; }
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--sp-4); align-items: center; }
.compare-box {
  background: var(--c-charcoal); border: 1px solid var(--border-subtle);
  padding: var(--sp-4); aspect-ratio: 1 / 1; display: flex; flex-direction: column;
}
.compare-box .cap { font-size: 11px; color: var(--text-disabled); letter-spacing: 1px; text-transform: uppercase; margin-bottom: var(--sp-3); font-family: var(--font-en); }
.compare-arrow { color: var(--c-gold); font-size: 28px; font-weight: 700; }
.hero-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--c-gold), transparent); opacity: 0.6; }

/* ---------- 价值三栏 ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.why-card { background: var(--c-charcoal); border: 1px solid var(--border-subtle); padding: var(--sp-8); transition: border-color 120ms linear; }
.why-card:hover { border-color: var(--border-normal); }
.why-num { font-family: var(--font-mono); font-size: 12px; color: var(--c-gold); letter-spacing: 2px; margin-bottom: var(--sp-4); }
.why-card h3 { font-size: 18px; font-weight: 600; margin-bottom: var(--sp-3); }
.why-card p { color: var(--text-muted); font-size: 14px; }

/* ---------- 工作流 ---------- */
.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); counter-reset: step; }
.step { background: var(--c-charcoal); border: 1px solid var(--border-subtle); padding: var(--sp-6); position: relative; }
.step .step-no {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; color: var(--c-gold);
  border: 1px solid var(--border-normal); padding: 4px 8px; display: inline-block; margin-bottom: var(--sp-4);
}
.step h4 { font-size: 15px; font-weight: 600; margin-bottom: var(--sp-2); }
.step p { color: var(--text-muted); font-size: 13px; line-height: 1.7; }

/* ---------- 核心功能 8 卡 ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.feat-card { background: var(--c-charcoal); border: 1px solid var(--border-subtle); padding: var(--sp-6); transition: border-color 120ms linear; }
.feat-card:hover { border-color: var(--border-normal); }
.feat-icon { width: 44px; height: 44px; margin-bottom: var(--sp-4); color: var(--c-gold); }
.feat-card h4 { font-size: 15px; font-weight: 600; margin-bottom: var(--sp-2); }
.feat-en { font-family: var(--font-en); font-size: 10px; letter-spacing: 2px; color: var(--text-disabled); text-transform: uppercase; display: block; margin-bottom: var(--sp-2); }
.feat-card p { color: var(--text-muted); font-size: 13px; line-height: 1.7; }

/* ---------- 格式矩阵表 ---------- */
.fmt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fmt-table thead th {
  text-align: left; background: var(--c-charcoal); color: var(--text-muted);
  font-weight: 500; padding: var(--sp-4); border-bottom: 1px solid var(--border-normal);
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
}
.fmt-table td { padding: var(--sp-4); border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.fmt-table tbody tr { transition: background-color 120ms linear; }
.fmt-table tbody tr:hover { background: var(--c-surface-mid); }
.fmt-table .fmt-name { font-weight: 600; }
.fmt-table .fmt-en { font-family: var(--font-en); font-size: 11px; color: var(--text-disabled); letter-spacing: 1px; }
.fmt-table .free { color: var(--c-gold); font-weight: 600; }
.fmt-table .paid { color: var(--c-cyan); font-weight: 600; }
.fmt-note { margin-top: var(--sp-5); font-size: 13px; color: var(--text-muted); border-left: 2px solid var(--c-gold); padding-left: var(--sp-4); line-height: 1.8; }

/* ---------- 画廊 ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.gallery-card {
  background: var(--c-charcoal); border: 1px solid var(--border-subtle);
  cursor: pointer; transition: border-color 120ms linear; overflow: hidden;
}
.gallery-card:hover { border-color: var(--border-normal); }
.gallery-card .art-svg { width: 100%; aspect-ratio: 4 / 3; background: var(--c-abyss); }
.gallery-card .g-cap { padding: var(--sp-4); font-size: 13px; color: var(--text-muted); }
.gallery-card .g-tag { font-family: var(--font-en); font-size: 10px; letter-spacing: 2px; color: var(--text-disabled); text-transform: uppercase; display: block; margin-bottom: 4px; }

/* 灯箱 */
#lightbox {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0.72);
  display: none; align-items: center; justify-content: center; padding: var(--sp-8);
}
#lightbox.open { display: flex; }
#lightbox .lb-inner { max-width: 720px; width: 100%; background: var(--c-dark-iron); border: 1px solid var(--border-normal); }
#lightbox .lb-img { width: 100%; aspect-ratio: 4 / 3; background: var(--c-abyss); }
#lightbox .lb-cap { padding: var(--sp-4) var(--sp-5); font-size: 13px; color: var(--text-muted); }
#lightbox .lb-close { position: absolute; top: var(--sp-6); right: var(--sp-6); width: 36px; height: 36px; background: var(--c-charcoal); color: var(--text-primary); border: 1px solid var(--border-normal); cursor: pointer; border-radius: 2px; font-size: 18px; }
#lightbox .lb-close:hover { background: var(--c-surface-hi); }

/* ---------- 定价 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); max-width: 820px; margin: 0 auto; }
.price-card { background: var(--c-charcoal); border: 1px solid var(--border-subtle); padding: var(--sp-8); display: flex; flex-direction: column; }
.price-card.feature { border-color: var(--c-gold); }
.price-card .p-tier { font-family: var(--font-en); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-disabled); }
.price-card .p-name { font-size: 22px; font-weight: 600; margin: var(--sp-2) 0 var(--sp-4); }
.price-card .p-price { font-size: 36px; font-weight: 700; line-height: 1; }
.price-card .p-price small { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.price-card .p-bird { font-size: 12px; color: var(--c-gold); margin-top: var(--sp-2); }
.price-card .p-devices { font-size: 13px; color: var(--text-muted); margin: var(--sp-4) 0; }
.price-card ul { margin: var(--sp-4) 0 var(--sp-6); flex: 1; }
.price-card li { font-size: 13px; color: var(--text-muted); padding: var(--sp-2) 0; display: flex; gap: var(--sp-2); align-items: flex-start; }
.price-card li .sq { flex: 0 0 auto; }
.price-card .btn { width: 100%; }
.price-extra { text-align: center; margin-top: var(--sp-8); font-size: 12px; color: var(--text-disabled); }

/* 4×4 金色方块列表标记 */
.sq { width: 4px; height: 4px; background: var(--c-gold); display: inline-block; margin-top: 7px; flex: 0 0 auto; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details { background: var(--c-charcoal); border: 1px solid var(--border-subtle); margin-bottom: var(--sp-3); border-radius: 0; }
.faq-list details[open] { background: var(--c-surface-mid); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: var(--sp-5) var(--sp-6);
  font-size: 15px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .arrow { color: var(--text-muted); transition: transform 200ms ease-out; font-family: var(--font-mono); }
.faq-list details[open] summary .arrow { transform: rotate(180deg); color: var(--c-gold); }
.faq-list .faq-a { padding: 0 var(--sp-6) var(--sp-5); color: var(--text-muted); font-size: 14px; line-height: 1.8; }

/* ---------- 系统要求 ---------- */
.sysreq-table { width: 100%; max-width: 720px; margin: 0 auto; border-collapse: collapse; font-size: 13px; }
.sysreq-table th, .sysreq-table td { text-align: left; padding: var(--sp-4); border-bottom: 1px solid var(--border-subtle); }
.sysreq-table th { color: var(--text-muted); font-weight: 500; width: 30%; }
.sysreq-table td { color: var(--text-primary); }

/* ---------- CHANGELOG ---------- */
.cl-timeline { max-width: 820px; margin: 0 auto; border-left: 1px solid var(--border-normal); padding-left: var(--sp-8); }
.cl-item { position: relative; margin-bottom: var(--sp-6); }
.cl-item::before {
  content: ""; position: absolute; left: calc(-1 * var(--sp-8) - 4px); top: 6px;
  width: 8px; height: 8px; background: var(--border-normal); border: 1px solid var(--border-normal);
}
.cl-item.cl-latest::before { background: var(--c-gold); border-color: var(--c-gold); }
.cl-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.badge { background: var(--c-surface-mid); border: 2px solid var(--border-normal); border-radius: 2px; padding: 2px 10px; font-family: var(--font-mono); font-size: 13px; color: var(--text-primary); }
.cl-latest .badge { border-color: var(--c-gold); color: var(--c-gold); }
.cl-meta { font-size: 13px; color: var(--text-muted); }
.cl-body { background: var(--c-charcoal); border: 1px solid var(--border-subtle); padding: var(--sp-5); }
.cl-group { margin-bottom: var(--sp-4); }
.cl-group:last-child { margin-bottom: 0; }
.cl-group-title { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-disabled); font-family: var(--font-en); margin-bottom: var(--sp-2); }
.cl-body li { display: flex; gap: var(--sp-3); font-size: 13px; color: var(--text-muted); padding: 4px 0; align-items: flex-start; }
.cl-actions { margin-top: var(--sp-4); display: flex; align-items: center; gap: var(--sp-5); }
.cl-mirror { font-size: 13px; color: var(--text-muted); border-bottom: 1px solid var(--border-normal); padding-bottom: 1px; }
.cl-mirror:hover { color: var(--c-cyan); border-color: var(--c-cyan); }

/* ---------- 结尾 CTA + 页脚 ---------- */
.endcta { text-align: center; }
.endcta .h2 { font-size: 32px; margin-bottom: var(--sp-4); }
.endcta .sub { color: var(--text-muted); margin-bottom: var(--sp-6); }
.endcta .note { font-size: 12px; color: var(--text-disabled); margin-top: var(--sp-4); }
.footer { background: var(--c-dark-iron); border-top: 1px solid var(--border-normal); padding: var(--sp-10) 0; }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-6); align-items: center; }
.footer .f-left { font-size: 13px; color: var(--text-muted); }
.footer .f-right { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.footer .f-right a { font-size: 13px; color: var(--text-muted); }
.footer .f-right a:hover { color: var(--text-primary); }

/* ---------- 滚动入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 240ms ease-out, transform 240ms ease-out; }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 60ms; }
.reveal:nth-child(3) { transition-delay: 120ms; }
.reveal:nth-child(4) { transition-delay: 180ms; }

/* ---------- 响应式 ---------- */
@media (max-width: 1179px) {
  .hero .container { grid-template-columns: 1fr; gap: var(--sp-12); }
  .hero-visual { max-width: 520px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 899px) {
  .h2 { font-size: 24px; }
  .hero-title { font-size: 32px; }
  .nav-links { display: none; }
  #sticky-nav .nav-links { display: none; }
  #sticky-nav .btn span.txt { display: none; }
  .feat-grid, .gallery-grid, .workflow-grid, .price-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); text-align: center; }
  .cl-timeline { padding-left: var(--sp-6); }
  .cl-item::before { left: calc(-1 * var(--sp-6) - 4px); }
  section { padding: var(--sp-16) 0; }
  .container { padding: 0 var(--sp-5); }
}
