/* dsh-mini 官网 · 深海女仆工坊色板二次元风
   陶瓷白 #f8f6f0 / 深海蓝 #10204d #091333 / 长春花蓝 #8ea5da / 柔金 #c5a468 */

:root {
  --porcelain: #f8f6f0;
  --paper: #ffffff;
  --navy-950: #091333;
  --navy-900: #10204d;
  --navy-800: #1c326b;
  --indigo: #526aa8;
  --periwinkle: #8ea5da;
  --gold: #c5a468;
  --gold-soft: #e2cfaa;
  --ink: #172347;
  --ink-soft: #4d5d7f;
  --bg-tint: #dce6f5;
  --card-shadow: 0 10px 30px rgba(15, 30, 72, 0.10), 0 2px 8px rgba(15, 30, 72, 0.08);
  --radius: 18px;
  --radius-lg: 26px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--porcelain);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-800); text-decoration: none; }
a:hover { color: var(--indigo); }
img { max-width: 100%; display: block; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(71, 91, 145, 0.15);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.brand-ico img { width: 30px; height: 30px; border-radius: 50%; display: block; box-shadow: 0 2px 8px rgba(16, 32, 77, 0.2); }
.brand-name { font-size: 20px; color: var(--navy-900); letter-spacing: 0.5px; }
.brand-tag {
  font-size: 12px;
  color: var(--gold);
  background: rgba(197, 164, 104, 0.14);
  border: 1px solid rgba(197, 164, 104, 0.4);
  padding: 2px 8px;
  border-radius: 999px;
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink-soft);
}
.nav-links a:hover { background: rgba(103, 126, 183, 0.10); color: var(--navy-900); }
.nav-links a.active { color: var(--navy-900); font-weight: 700; }
.nav-dl { margin-left: 4px; }
.nav-burger { display: none; background: none; border: none; font-size: 24px; color: var(--navy-900); cursor: pointer; }
.nav-mobile { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 60%, var(--navy-950) 100%);
  color: #fff;
  border: 1px solid var(--navy-800);
  box-shadow: 0 8px 22px rgba(16, 32, 77, 0.28);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(16, 32, 77, 0.36); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--navy-900);
  border: 1.5px solid rgba(71, 91, 145, 0.35);
}
.btn-ghost:hover { border-color: var(--indigo); background: #fff; }
.btn-lg { padding: 14px 30px; font-size: 17px; }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-ico { width: 17px; height: 17px; flex: none; }
.btn-lg .btn-ico { width: 20px; height: 20px; }
.btn-sm .btn-ico { width: 14px; height: 14px; }
.btn-ghost .btn-ico { opacity: 0.9; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(165deg, #eef3fc 0%, var(--bg-tint) 45%, #d3dff5 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 420px at 82% 18%, rgba(142, 165, 218, 0.35), transparent 70%),
    radial-gradient(480px 380px at 12% 88%, rgba(197, 164, 104, 0.22), transparent 70%),
    radial-gradient(300px 240px at 55% 30%, rgba(255, 255, 255, 0.55), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px 96px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}
.hero-badge {
  display: inline-block;
  font-size: 14px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(197, 164, 104, 0.45);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 52px;
  line-height: 1.15;
  color: var(--navy-950);
  letter-spacing: 1px;
}
.hero-title-sub {
  font-size: 26px;
  font-weight: 600;
  color: var(--indigo);
  letter-spacing: 0;
}
.hero-desc {
  margin: 22px 0 28px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  margin-top: 18px;
  font-size: 13.5px;
  color: #8a94aa;
}
.hero-art { display: flex; justify-content: center; }
.hero-art img {
  max-height: 560px;
  width: auto;
  filter: drop-shadow(0 24px 40px rgba(16, 32, 77, 0.30));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 64px;
  background: var(--porcelain);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* ---------- 通用 section ---------- */
.section-title {
  font-size: 34px;
  color: var(--navy-950);
  text-align: center;
  letter-spacing: 1px;
}
.section-title-dot { color: var(--gold); }
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  margin: 10px 0 44px;
  font-size: 16px;
}

/* ---------- 特性 ---------- */
.features { padding: 80px 24px; max-width: 1120px; margin: 0 auto; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--paper);
  border: 1px solid rgba(71, 91, 145, 0.12);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(15, 30, 72, 0.14); }
.feature-ico {
  font-size: 34px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef3fc, var(--bg-tint));
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
}
.feature-ico img { width: 46px; height: 46px; border-radius: 50%; }
.feature-card h3 { font-size: 18px; color: var(--navy-900); margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- 画廊 ---------- */
.gallery { padding: 20px 24px 90px; background: #eef2fa; }
.gallery .section-title, .gallery .section-sub { max-width: 1120px; margin-left: auto; margin-right: auto; }
.gallery-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gallery-item {
  display: block;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--ink-soft);
}
.gallery-item:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: 0 18px 40px rgba(15, 30, 72, 0.16); color: var(--ink-soft); }
.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: linear-gradient(180deg, #f2f5fc 0%, #e4eaf7 100%);
  border-radius: 12px;
}
.gallery-item figcaption { font-size: 13.5px; margin-top: 12px; }
.gallery-item b { color: var(--navy-900); }
.gallery-go {
  display: inline-block;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--indigo);
  background: rgba(103, 126, 183, 0.10);
  padding: 4px 14px;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.gallery-item:hover .gallery-go { background: rgba(103, 126, 183, 0.18); color: var(--navy-800); }

/* ---------- CTA ---------- */
.cta { padding: 40px 24px 100px; background: #eef2fa; }
.cta-inner {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(16, 32, 77, 0.35);
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 260px at 20% 0%, rgba(142, 165, 218, 0.30), transparent 70%),
              radial-gradient(360px 240px at 90% 100%, rgba(197, 164, 104, 0.25), transparent 70%);
}
.cta-inner h2 { color: #fff; font-size: 30px; line-height: 1.4; position: relative; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; position: relative; }
.cta .btn-primary { background: linear-gradient(135deg, var(--gold) 0%, #d8b87f 100%); color: var(--navy-950); border-color: var(--gold); box-shadow: 0 8px 24px rgba(197, 164, 104, 0.35); }
.cta .btn-primary:hover { color: var(--navy-950); }
.cta .btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.cta-meta { margin-top: 20px; color: rgba(255, 255, 255, 0.65); font-size: 14px; position: relative; }

/* ---------- 子页面通用 ---------- */
.page-hero {
  background: linear-gradient(165deg, #eef3fc 0%, var(--bg-tint) 55%, #d3dff5 100%);
  padding: 64px 24px 56px;
  text-align: center;
}
.page-hero h1 { font-size: 40px; color: var(--navy-950); letter-spacing: 1px; }
.page-hero p { margin-top: 12px; color: var(--ink-soft); font-size: 16px; }
.page-hero-art { width: 130px; margin: 18px auto 0; filter: drop-shadow(0 10px 18px rgba(16, 32, 77, 0.25)); }
.page-body { max-width: 880px; margin: 0 auto; padding: 48px 24px 80px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-list details {
  background: var(--paper);
  border: 1px solid rgba(71, 91, 145, 0.12);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(15, 30, 72, 0.06);
  overflow: hidden;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 700;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: "🐟"; font-size: 16px; }
.faq-list summary::after { content: "+"; margin-left: auto; font-weight: 400; color: var(--indigo); font-size: 20px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details[open] summary { border-bottom: 1px solid rgba(71, 91, 145, 0.10); }
.faq-list .faq-a { padding: 16px 20px 18px; color: var(--ink-soft); font-size: 15px; }
.faq-list .faq-a code {
  background: rgba(103, 126, 183, 0.10);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--navy-800);
}

/* 更新日志 */
.changelog-list { display: flex; flex-direction: column; gap: 22px; }
.changelog-item {
  background: var(--paper);
  border: 1px solid rgba(71, 91, 145, 0.12);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  box-shadow: var(--card-shadow);
  position: relative;
}
.changelog-item::before {
  content: "";
  position: absolute;
  left: 0; top: 26px; bottom: 26px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--periwinkle) 100%);
}
.changelog-ver {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.changelog-ver h2 { font-size: 22px; color: var(--navy-950); }
.changelog-ver .tag {
  font-size: 13px;
  color: var(--gold);
  background: rgba(197, 164, 104, 0.14);
  border: 1px solid rgba(197, 164, 104, 0.4);
  padding: 2px 10px;
  border-radius: 999px;
}
.changelog-item ul { list-style: none; }
.changelog-item li { padding: 5px 0; color: var(--ink-soft); font-size: 15px; }
.changelog-item li::before { content: "🐟"; margin-right: 8px; font-size: 13px; }

/* 教程 */
.tutorial-steps { display: flex; flex-direction: column; gap: 18px; }
.tutorial-step {
  background: var(--paper);
  border: 1px solid rgba(71, 91, 145, 0.12);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: 0 4px 14px rgba(15, 30, 72, 0.06);
}
.tutorial-step h3 {
  font-size: 18px;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.tutorial-step .step-no {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}
.tutorial-step p { color: var(--ink-soft); font-size: 15px; }
.tutorial-step code {
  background: rgba(103, 126, 183, 0.10);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--navy-800);
}
.tutorial-tip {
  margin-top: 26px;
  background: rgba(197, 164, 104, 0.12);
  border: 1px solid rgba(197, 164, 104, 0.45);
  border-radius: 14px;
  padding: 18px 22px;
  font-size: 14.5px;
  color: var(--ink);
}
.tutorial-tip b { color: var(--gold); }

@media (max-width: 620px) {
  .page-hero h1 { font-size: 28px; }
  .changelog-item, .tutorial-step { padding: 20px 18px; }
}

/* ---------- 页脚 ---------- */
.footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.75); padding: 40px 24px 34px; }
.footer-inner { max-width: 1120px; margin: 0 auto; }
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-row + .footer-row { margin-top: 16px; flex-wrap: nowrap; align-items: baseline; }
.footer-brand { font-size: 18px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
.footer-brand-img { width: 24px; height: 24px; border-radius: 50%; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: rgba(255, 255, 255, 0.75); font-size: 14px; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-legal { font-size: 13px; color: rgba(255, 255, 255, 0.55); max-width: none; white-space: nowrap; }
.footer-legal a { color: rgba(255, 255, 255, 0.75); text-decoration: underline; }
.footer-icp a { font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.footer-icp a:hover { color: var(--gold-soft); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 48px; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-art img { max-height: 420px; }
  .hero-title { font-size: 40px; }
  .hero-title-sub { font-size: 21px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .brand-tag { display: none; }
  .nav-links, .nav-dl { display: none; }
  .nav-burger { display: block; margin-left: auto; }
  .nav-mobile {
    display: none;
    flex-direction: column;
    padding: 8px 20px 20px;
    gap: 6px;
    border-top: 1px solid rgba(71, 91, 145, 0.12);
  }
  .nav-mobile.open { display: flex; }
  .nav-mobile a { padding: 10px 8px; font-size: 16px; color: var(--ink); border-radius: 8px; }
  .nav-mobile a.active { color: var(--navy-900); font-weight: 700; }
  .nav-mobile .btn { margin-top: 8px; }
  .hero-inner { padding: 40px 20px 80px; }
  .hero-title { font-size: 32px; }
  .hero-title-sub { font-size: 18px; }
  .hero-desc { font-size: 15.5px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-lg { width: 100%; }
  .hero-art img { max-height: 340px; }
  .section-title { font-size: 26px; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .gallery-item { padding: 12px 12px 12px; }
  .gallery-item figcaption { font-size: 12.5px; }
  .cta-inner { padding: 40px 22px; }
  .cta-inner h2 { font-size: 23px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-legal { white-space: normal; }
}
