/* —— 梦潮汐AI · 深海潮汐主题 —— */
:root {
  --bg: #06141f;
  --bg-soft: #081e2c;
  --card: #0b2536;
  --card-hover: #0e2e44;
  --border: rgba(148, 208, 220, .14);
  --text: #e7f5f3;
  --text-dim: #93b3bd;
  --accent: #3ecfc0;
  --accent2: #f2c879;
  --grad: linear-gradient(120deg, #3ecfc0 0%, #4aa8e8 100%);
  --gold-grad: linear-gradient(120deg, #f6d492 0%, #f2c879 60%, #e8b464 100%);
  --radius: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- 导航 ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6, 20, 31, .78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; letter-spacing: .5px;
}
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px;
  object-fit: cover; display: block;
  box-shadow: 0 0 16px rgba(62, 207, 192, .45);
}
.nav-links { display: flex; gap: 26px; font-size: 15px; align-items: center; }
.nav-links a { color: var(--text-dim); transition: color .2s; line-height: 1; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 600; }
/* CTA 优先级要压过 .nav-links a 的 padding */
.nav-links a.nav-cta {
  background: var(--grad); color: #06202c !important;
  padding: 9px 22px; border-radius: 999px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(62, 207, 192, .35);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: .3s;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 8px 4% 16px; background: rgba(6, 20, 31, .97);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a { padding: 10px 0; color: var(--text-dim); border-bottom: 1px solid var(--border); }
.mobile-menu a.active { color: var(--accent); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: flex; }

/* ---------- 首屏 ---------- */
.hero {
  padding: 140px 0 40px;
  background:
    radial-gradient(640px 320px at 12% 8%, rgba(62, 207, 192, .13), transparent 70%),
    radial-gradient(520px 300px at 88% 22%, rgba(74, 168, 232, .11), transparent 70%),
    var(--bg);
  position: relative; overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center;
}
.hero-inner > * { min-width: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(242, 200, 121, .1); color: var(--accent2);
  border: 1px solid rgba(242, 200, 121, .3);
  padding: 6px 16px; border-radius: 999px;
  font-size: 13px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.25; font-weight: 800; margin-bottom: 20px;
}
.hero h1 .hl {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead { color: var(--text-dim); font-size: 17px; margin-bottom: 34px; max-width: 500px; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px;
  font-size: 16px; font-weight: 600; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary {
  background: var(--grad); color: #06202c;
  box-shadow: 0 8px 24px rgba(62, 207, 192, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(62, 207, 192, .5); }
.btn-ghost {
  border: 1px solid var(--border); color: var(--text);
  background: rgba(255, 255, 255, .03);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .07); transform: translateY(-2px); }
.hero-visual { position: relative; }
.hero-visual .wave-ring {
  position: absolute; inset: -30px -30px auto auto; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(62, 207, 192, .18) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-img {
  width: min(320px, 100%); margin: 0 auto;
  border-radius: 34px; overflow: hidden;
  border: 1px solid rgba(148, 208, 220, .25);
  box-shadow: 0 24px 60px rgba(0, 8, 14, .6), 0 0 44px rgba(62, 207, 192, .16);
}
.hero-meta { display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta .item strong { font-size: 22px; display: block; color: var(--accent2); }
.hero-meta .item span { color: var(--text-dim); font-size: 13px; }

/* 首屏底部分浪线 */
.wave-divider { line-height: 0; background: var(--bg-soft); }
.wave-divider svg { display: block; width: 100%; height: 60px; }

/* ---------- 分区通用 ---------- */
section { padding: 90px 0; }
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-tag {
  color: var(--accent2); font-size: 13px; letter-spacing: 3px;
  text-transform: uppercase; margin-bottom: 10px;
}
.sec-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.sec-head p { color: var(--text-dim); margin-top: 12px; }
/* 标题下的小浪纹 */
.sec-head h2::after {
  content: ""; display: block; width: 64px; height: 4px;
  margin: 14px auto 0; border-radius: 2px;
  background: var(--gold-grad);
}

/* ---------- 功能卡片 ---------- */
.features { background: var(--bg-soft); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-3 > * { min-width: 0; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 28px;
  transition: transform .25s, background .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); background: var(--card-hover); border-color: rgba(62, 207, 192, .4); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(62, 207, 192, .12); border: 1px solid rgba(62, 207, 192, .3);
  display: grid; place-items: center; font-size: 24px; margin-bottom: 20px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 15px; }

/* ---------- 界面预览 ---------- */
.shots {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; justify-content: center;
}
.shots > * { min-width: 0; }
.shot {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 10px; transition: transform .25s, border-color .25s;
}
.shot:hover { transform: translateY(-6px); border-color: rgba(62, 207, 192, .45); }
.shot img {
  width: 100%; border-radius: 12px;
  aspect-ratio: 400 / 864; object-fit: cover; object-position: center top;
}
.shot figcaption { text-align: center; color: var(--text-dim); font-size: 14px; padding: 10px 0 4px; }

/* ---------- 使用步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps > * { min-width: 0; }
.step {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 28px; position: relative;
  transition: transform .25s, border-color .25s;
}
.step:hover { transform: translateY(-6px); border-color: rgba(62, 207, 192, .4); }
.step .num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold-grad); color: #3a2c10;
  display: grid; place-items: center;
  font-size: 19px; font-weight: 800; margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(242, 200, 121, .3);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 15px; }

/* ---------- 角色卡片 ---------- */
.role-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.role-grid > * { min-width: 0; }
.role-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.role-card:hover { transform: translateY(-6px); border-color: rgba(62, 207, 192, .45); }
.role-card .avatar {
  aspect-ratio: 640 / 922; overflow: hidden; position: relative;
}
.role-card .avatar img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .4s;
}
.role-card:hover .avatar img { transform: scale(1.05); }
.role-card .info { padding: 20px 18px 24px; }
.role-card h3 { font-size: 19px; margin-bottom: 4px; }
.role-card h3 small { color: var(--text-dim); font-size: 12.5px; font-weight: 400; margin-left: 8px; }
.role-card .tag {
  display: inline-block; font-size: 12px; color: var(--accent2);
  background: rgba(242, 200, 121, .1); border: 1px solid rgba(242, 200, 121, .3);
  padding: 3px 12px; border-radius: 999px; margin-bottom: 12px;
}
.role-card p { color: var(--text-dim); font-size: 14px; }
.fine-print { text-align: center; color: var(--text-dim); font-size: 13px; margin-top: 28px; opacity: .8; }

/* ---------- 题材标签墙 ---------- */
.theme-tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.theme-tags span {
  padding: 8px 20px; border-radius: 999px; font-size: 14px;
  color: var(--text-dim); background: var(--card); border: 1px solid var(--border);
  transition: color .2s, border-color .2s;
}
.theme-tags span:hover { color: var(--accent); border-color: rgba(62, 207, 192, .4); }

/* ---------- 下载区 ---------- */
.download {
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(62, 207, 192, .14), transparent 70%),
    var(--bg-soft);
}
.dl-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 24px; padding: 56px;
}
.dl-box h2 { font-size: clamp(24px, 3.5vw, 34px); margin-bottom: 14px; }
.dl-box .sub { color: var(--text-dim); margin-bottom: 30px; }
.dl-list { list-style: none; margin-bottom: 34px; }
.dl-list li {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-dim); font-size: 15px; padding: 6px 0;
}
.dl-list li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.dl-side { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.qr {
  width: 170px; height: 170px; border-radius: 18px;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .06);
  position: relative;
}
.qr::after {
  content: "安卓扫码下载"; position: absolute; bottom: -30px;
  color: var(--text-dim); font-size: 13px; white-space: nowrap;
}
.qr svg { width: 84%; height: 84%; }
.qr canvas, .qr img { width: 84% !important; height: 84% !important; }
.qr.empty { color: #4a6a78; font-size: 13px; }
.store-note { font-size: 13px; color: var(--text-dim); text-align: center; margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
details {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; margin-bottom: 14px; overflow: hidden;
  transition: border-color .2s;
}
details[open] { border-color: rgba(62, 207, 192, .4); }
summary {
  cursor: pointer; list-style: none;
  padding: 20px 24px; font-size: 16px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; font-size: 22px; color: var(--accent);
  transition: transform .25s; flex-shrink: 0;
}
details[open] summary::after { transform: rotate(45deg); }
details .ans { padding: 0 24px 22px; color: var(--text-dim); font-size: 15px; }

/* ---------- 内页头 ---------- */
.page-hero {
  padding: 150px 0 56px;
  background:
    radial-gradient(560px 280px at 50% 0%, rgba(62, 207, 192, .12), transparent 72%),
    var(--bg);
  text-align: center;
}
.page-hero h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 14px; }
.page-hero p { color: var(--text-dim); max-width: 640px; margin: 0 auto; }
.page-hero .crumb { font-size: 13px; color: var(--text-dim); margin-bottom: 18px; }
.page-hero .crumb a { color: var(--accent); }

/* ---------- 页脚 ---------- */
body > footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 40px; text-align: center;
  color: var(--text-dim); font-size: 14px;
  background: var(--bg);
}
body > footer .foot-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 14px; flex-wrap: wrap; }
body > footer a:hover { color: var(--text); }
.foot-seo { max-width: 760px; margin: 18px auto 0; font-size: 13px; opacity: .75; line-height: 1.9; }

/* ---------- 友情链接（静态直出，仅 index.html 一处） ---------- */
.friend-links {
  display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap;
  gap: 8px 16px; max-width: 760px; margin: 0 auto 14px; padding-top: 14px;
  border-top: 1px dashed var(--border); font-size: 13px;
}
.fl-label { color: var(--text-dim); opacity: .85; }
.fl-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.fl-list a { color: var(--text-dim); opacity: .85; transition: color .2s, opacity .2s; }
.fl-list a:hover { color: var(--text); opacity: 1; }
.fl-list a.pending {
  color: var(--text-dim); opacity: .5; cursor: default;
  border-bottom: 1px dashed var(--border);
}
.fl-list a.pending:hover { color: var(--text-dim); opacity: .5; }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed; right: 28px; bottom: 40px; z-index: 99;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad); color: #06202c;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(62, 207, 192, .4);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s, transform .3s, visibility .3s, box-shadow .2s;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { box-shadow: 0 12px 28px rgba(62, 207, 192, .55); }
.back-top .arrow { font-size: 20px; font-weight: 700; line-height: 1; }
.back-top .txt { display: none; }

/* ---------- 手机端底部下载条 ---------- */
.mobile-dl {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 98;
  padding: 10px 4% calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(6, 20, 31, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.mobile-dl .btn {
  width: 100%; justify-content: center; padding: 13px 0; font-size: 15px;
}

/* ---------- PC 扫码弹层 ---------- */
.dl-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.dl-modal.open { opacity: 1; visibility: visible; }
.dl-modal__mask {
  position: absolute; inset: 0;
  background: rgba(2, 10, 16, .74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dl-modal__card {
  position: relative; z-index: 1;
  width: min(400px, 92vw);
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px 24px 24px; text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  transform: translateY(14px) scale(.97);
  transition: transform .28s;
}
.dl-modal.open .dl-modal__card { transform: none; }
.dl-modal__close {
  position: absolute; top: 10px; right: 12px;
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: transparent; color: var(--text-dim);
  font-size: 22px; line-height: 1; cursor: pointer;
  transition: background .2s, color .2s;
}
.dl-modal__close:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.dl-modal h3 { font-size: 19px; margin-bottom: 6px; }
.dl-modal__sub { color: var(--text-dim); font-size: 13px; }
.dl-qrrow { display: flex; gap: 18px; justify-content: center; margin: 20px 0 12px; }
.dl-qr-item { text-align: center; font-size: 13px; color: var(--text-dim); }
.dl-qr-item span { display: block; margin-top: 8px; }
.dl-qr-item[hidden] { display: none; }
.dl-modal__qr {
  width: 142px; height: 142px;
  background: #fff; border-radius: 12px; padding: 8px;
  display: grid; place-items: center; overflow: hidden;
}
.dl-modal__qr[hidden] { display: none; }
.dl-modal__qr img, .dl-modal__qr canvas { width: 100% !important; height: 100% !important; display: block; }
.dl-modal__qr.empty { color: #4a6a78; font-size: 13px; }
.dl-modal__hint { color: var(--text-dim); font-size: 12.5px; line-height: 1.6; }
.dl-modal__links {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 13px;
}
.dl-modal__links a { color: var(--accent); }
.dl-modal__links a:hover { color: #fff; }
.dl-modal__links span { color: var(--border); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 300;
  transform: translateX(-50%) translateY(10px);
  background: rgba(4, 16, 24, .88); color: #fff;
  padding: 10px 20px; border-radius: 999px;
  font-size: 14px; pointer-events: none;
  opacity: 0; transition: opacity .25s, transform .25s;
  max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
body.modal-open { overflow: hidden; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .mobile-dl { display: block; }
  .back-top { right: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  body { padding-bottom: 66px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 110px 0 30px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero p.lead { max-width: none; }
  .hero-img { width: min(260px, 74%); }
  .hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
  .hero-meta .item strong { font-size: 16px; }
  .hero-meta .item span { font-size: 11.5px; }
  .features .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card { padding: 24px 18px; }
  .card .icon { width: 44px; height: 44px; font-size: 20px; margin-bottom: 14px; }
  .card h3 { font-size: 16.5px; }
  .card p { font-size: 13.5px; }
  /* 界面预览 / 角色：两列网格（偶数张排满） */
  .shots { grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 560px; margin: 0 auto; }
  .shot { padding: 6px; border-radius: 14px; }
  .shot img { border-radius: 9px; }
  .shot figcaption { font-size: 12.5px; padding: 8px 0 2px; }
  .role-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .role-card .info { padding: 14px 12px 18px; }
  .role-card h3 { font-size: 16.5px; }
  .role-card h3 small { display: block; margin: 2px 0 0; }
  .role-card p { font-size: 12.5px; }
  /* 三步指南：整卡横滑 */
  .steps {
    display: flex; overflow-x: auto;
    gap: 14px; padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .steps::-webkit-scrollbar { display: none; }
  .steps .step { flex: 0 0 74%; scroll-snap-align: start; }
  .step { padding: 24px 18px; }
  .step .num { width: 38px; height: 38px; font-size: 16px; margin-bottom: 12px; }
  .step h3 { font-size: 16px; }
  .step p { font-size: 13.5px; }
  .dl-box { grid-template-columns: 1fr; padding: 36px 26px; text-align: center; }
  .dl-side { display: none; }
  .dl-list { display: inline-block; text-align: left; }
  .btn-row { justify-content: center; }
  section { padding: 64px 0; }
  .page-hero { padding: 120px 0 40px; }
}
@media (max-width: 360px) {
  .features .grid-3 { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; max-width: 300px; }
  .role-grid { grid-template-columns: 1fr; }
}
