/* ============================================================
   MobiCode Studio 官网 — 深色科技感主题
   ============================================================ */
:root {
  --bg: #070b14;
  --bg-2: #0b1120;
  --surface: #101a2e;
  --surface-2: #16233c;
  --border: rgba(148, 170, 215, 0.14);
  --border-strong: rgba(148, 170, 215, 0.24);
  --text: #eaf0fb;
  --text-dim: #9aa7bd;
  --text-faint: #6b7890;
  --blue: #4d7dff;
  --blue-deep: #2f5fd0;
  --teal: #35d0ba;
  --grad: linear-gradient(120deg, #4d7dff 0%, #35d0ba 100%);
  --grad-soft: linear-gradient(120deg, rgba(77,125,255,.16), rgba(53,208,186,.14));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Consolas, "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 12% -5%, rgba(77,125,255,.16), transparent 60%),
    radial-gradient(700px 460px at 90% 8%, rgba(53,208,186,.10), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(47,95,208,.12), transparent 60%);
  pointer-events: none;
}

::selection { background: rgba(77,125,255,.4); }

.container { width: min(1140px, 92%); margin: 0 auto; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============ 导航栏 ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand .brand-name { font-size: 1.08rem; letter-spacing: .2px; }
.brand .brand-name b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: .94rem;
  font-weight: 500;
  transition: all .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav-links a.active { color: var(--text); background: rgba(77,125,255,.16); }

.nav-cta {
  margin-left: 8px;
  padding: 9px 18px !important;
  background: var(--grad);
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(77,125,255,.35);
}
.nav-cta:hover { transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 0;
  transition: all .22s;
  font-family: var(--font);
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px rgba(77,125,255,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(77,125,255,.5); }
.btn-ghost {
  background: rgba(255,255,255,.05);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--blue); }
.btn-sm { padding: 10px 20px; font-size: .92rem; }

/* ============ Hero ============ */
.hero { padding: 90px 0 70px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  color: var(--teal); font-size: .85rem; font-weight: 600;
  margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.15; font-weight: 800; letter-spacing: -.5px; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 22px 0 32px; color: var(--text-dim); font-size: 1.12rem; max-width: 34em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta .item .num { font-size: 1.5rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-meta .item .lbl { color: var(--text-faint); font-size: .85rem; }

/* 手机模型 */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 290px;
  border-radius: 42px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 12px;
  box-shadow: var(--shadow), 0 0 80px rgba(77,125,255,.18);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 20px; border-radius: 12px; background: var(--bg);
  z-index: 2;
}
.phone img { border-radius: 30px; aspect-ratio: 9/19; object-fit: cover; width: 100%; }

/* ============ 通用区块 ============ */
section { padding: 76px 0; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head .eyebrow {
  color: var(--teal); font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; font-size: .8rem;
}
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; margin: 10px 0 12px; }
.section-head p { color: var(--text-dim); max-width: 40em; margin: 0 auto; }

/* ============ 特性卡片 ============ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-soft); opacity: 0; transition: opacity .25s;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.feature-card:hover::after { opacity: 1; }
.feature-card > * { position: relative; z-index: 1; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); border: 1px solid var(--border-strong);
  margin-bottom: 20px; font-size: 1.5rem;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-dim); font-size: .95rem; }

/* ============ 截图展示 ============ */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shot {
  border-radius: 26px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .3s;
}
.shot:hover { transform: translateY(-8px) scale(1.02); }
.shot img { aspect-ratio: 9/19; object-fit: cover; width: 100%; }
.shot .cap { padding: 12px; text-align: center; color: var(--text-dim); font-size: .88rem; border-top: 1px solid var(--border); }

/* ============ 语言标签 ============ */
.lang-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.lang-chip {
  padding: 10px 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); font-weight: 600; font-size: .92rem;
  transition: all .2s;
}
.lang-chip:hover { color: var(--text); border-color: var(--blue); transform: translateY(-2px); }

/* ============ CTA ============ */
.cta {
  border-radius: 26px;
  background: linear-gradient(120deg, rgba(47,95,208,.35), rgba(53,208,186,.22));
  border: 1px solid var(--border-strong);
  padding: 60px 40px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
.cta p { color: var(--text-dim); margin: 14px 0 30px; }

/* ============ 页脚 ============ */
footer { border-top: 1px solid var(--border); padding: 46px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-grid h4 { font-size: .95rem; margin-bottom: 16px; color: var(--text); }
.footer-grid a { display: block; color: var(--text-dim); font-size: .9rem; margin-bottom: 10px; transition: color .2s; }
.footer-grid a:hover { color: var(--teal); }
.footer-brand p { color: var(--text-dim); font-size: .9rem; margin-top: 14px; max-width: 26em; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-faint); font-size: .85rem; }

/* ============ 下载页 ============ */
.dl-card {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px;
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: 26px;
  padding: 44px; align-items: center;
}
.dl-info h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.dl-info .ver { color: var(--teal); font-weight: 700; }
.dl-list { margin: 22px 0; display: grid; gap: 12px; }
.dl-list li { list-style: none; display: flex; gap: 10px; color: var(--text-dim); }
.dl-list li::before { content: "✓"; color: var(--teal); font-weight: 700; }
.dl-qr { text-align: center; }
.dl-qr .qr-box { background: #fff; padding: 14px; border-radius: 16px; display: inline-block; }
.dl-qr img { width: 170px; height: 170px; }
.dl-qr p { color: var(--text-dim); font-size: .88rem; margin-top: 12px; }

.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.spec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; text-align: center; }
.spec .k { color: var(--text-faint); font-size: .82rem; margin-bottom: 6px; }
.spec .v { font-weight: 700; font-size: 1.05rem; }

/* ============ 更新日志 ============ */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--blue), var(--teal)); opacity: .4; }
.tl-item { position: relative; margin-bottom: 40px; }
.tl-item::before {
  content: ""; position: absolute; left: -28px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 12px rgba(77,125,255,.6);
}
.tl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.tl-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.tl-ver { background: var(--grad); color: #fff; font-weight: 700; padding: 4px 14px; border-radius: 999px; font-size: .9rem; }
.tl-date { color: var(--text-faint); font-size: .85rem; }
.tl-tag { border: 1px solid var(--border-strong); color: var(--teal); font-size: .75rem; padding: 3px 10px; border-radius: 999px; }
.tl-card ul { margin-left: 2px; }
.tl-card li { list-style: none; color: var(--text-dim); padding: 5px 0 5px 22px; position: relative; font-size: .94rem; }
.tl-card li::before { content: "▸"; position: absolute; left: 2px; color: var(--blue); }

/* ============ FAQ ============ */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0;
  color: var(--text); font-size: 1.02rem; font-weight: 600;
  padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font);
}
.faq-q .icon { color: var(--teal); font-size: 1.3rem; transition: transform .25s; }
.faq-item.open .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--text-dim); }
.faq-a-inner { padding: 0 24px 20px; }
.faq-item.open .faq-a { max-height: 400px; }

/* ============ 功能页详情块 ============ */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 70px; }
.detail:nth-child(even) .detail-media { order: 2; }
.detail-media img { border-radius: 26px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.detail h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 14px; }
.detail p { color: var(--text-dim); margin-bottom: 18px; }
.check-list li { list-style: none; padding: 6px 0 6px 28px; position: relative; color: var(--text-dim); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ============ 入场动画 ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .phone-wrap { margin-top: 20px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .dl-card { grid-template-columns: 1fr; text-align: center; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .detail:nth-child(even) .detail-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    background: rgba(7,11,20,.97); flex-direction: column; align-items: stretch;
    padding: 16px; gap: 6px; display: none; border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; }
  .nav-toggle { display: block; }
  .feature-grid, .shots, .spec-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
