/* ============================================================
   腐宅漫画 官网样式
   配色：玫粉 #e8568c / 藕紫 #7c5cbf / 暖黄 #ffb347
   ============================================================ */

:root {
  --pink: #e8568c;
  --pink-deep: #c93a6f;
  --purple: #7c5cbf;
  --purple-deep: #5a3fa0;
  --yellow: #ffb347;
  --bg: #fff7fa;
  --bg-soft: #fff0f5;
  --bg-dark: #2d2333;
  --text: #3a2e3f;
  --text-soft: #7a6b80;
  --line: #f3dde6;
  --card: #ffffff;
  --shadow: 0 8px 28px rgba(232, 86, 140, 0.12);
  --radius: 16px;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== 顶部导航 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 250, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.brand em {
  color: var(--pink);
  font-style: normal;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--text-soft);
}
.nav-links a:hover { color: var(--pink); }
.nav-cta {
  background: var(--pink);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--pink-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.nav-toggle:hover { background: var(--bg-soft); }

/* ========== Hero ========== */
.hero {
  padding: 72px 0 60px;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(124, 92, 191, 0.18), transparent 60%),
    radial-gradient(800px 300px at 0% 10%, rgba(232, 86, 140, 0.18), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--pink);
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.15;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.hero h1 span {
  background: linear-gradient(120deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-soft);
  margin-bottom: 28px;
  max-width: 520px;
}
.hero-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--text-soft);
}
.hero-meta li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-meta li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink);
  color: #fff;
  padding: 14px 34px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(232, 86, 140, 0.35);
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn-primary:hover { background: var(--pink-deep); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
}

.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-phone img {
  width: 300px;
  border-radius: 36px;
  box-shadow: 0 24px 60px rgba(45, 35, 51, 0.25);
  border: 8px solid #fff;
}
.hero-phone::before {
  content: "";
  position: absolute;
  inset: 8% -6% -6% 8%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 40px;
  z-index: -1;
  opacity: 0.35;
  filter: blur(2px);
}

/* ========== 通用 Section ========== */
.section { padding: 80px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head h2 {
  font-size: 34px;
  margin-bottom: 10px;
}
.section-head p {
  color: var(--text-soft);
  font-size: 16px;
}

/* ========== 功能特色 ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--text-soft); font-size: 14px; }

/* ========== 截图展示 ========== */
.shots {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.shots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 720px;
  margin: 0 auto;
}
.shot-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.shot-card img {
  border-radius: 10px;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #eee;
}
.shot-card h4 {
  margin-top: 14px;
  font-size: 16px;
  text-align: center;
}
.shot-card span {
  display: block;
  text-align: center;
  color: var(--text-soft);
  font-size: 13px;
  margin-top: 2px;
}

/* ========== 版本信息 ========== */
.version-band {
  background: var(--bg-dark);
  color: #fff;
  border-radius: 24px;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.version-band h3 { font-size: 24px; margin-bottom: 10px; }
.version-band p { color: #d9cfe0; font-size: 14px; }
.version-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  font-size: 14px;
}
.version-list li {
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
  border-radius: 10px;
}
.version-list b { color: var(--yellow); font-weight: 600; margin-right: 6px; }

/* ========== FAQ ========== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after {
  content: "+";
  font-size: 22px;
  color: var(--pink);
  transition: transform 0.2s ease;
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--text-soft);
  font-size: 14px;
  padding: 0 22px;
}
.faq-item.open .faq-a {
  max-height: 240px;
  padding: 0 22px 18px;
}

/* ========== 底部 CTA ========== */
.cta {
  text-align: center;
  padding: 80px 24px;
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(232, 86, 140, 0.2), transparent 70%),
    var(--bg-dark);
  color: #fff;
  border-radius: 24px;
  margin: 0 24px;
}
.cta h2 { font-size: 32px; margin-bottom: 12px; }
.cta p { color: #d9cfe0; margin-bottom: 28px; }
.cta .btn-primary { background: var(--yellow); color: var(--bg-dark); box-shadow: 0 8px 22px rgba(255, 179, 71, 0.35); }
.cta .btn-primary:hover { background: #ff9f2e; }

/* ========== Footer ========== */
.site-footer {
  padding: 36px 0 48px;
  text-align: center;
  color: var(--text-soft);
  font-size: 14px;
}
.site-footer .brand {
  justify-content: center;
  margin-bottom: 10px;
  font-size: 16px;
}
.site-footer .brand img { width: 26px; height: 26px; }

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 38px; }
  .hero-phone img { width: 240px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .shots-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .version-band { grid-template-columns: 1fr; padding: 28px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    gap: 14px;
  }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .version-list { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 26px; }
}
