/* ============================================================
   Cimoc漫画Pro 官网样式表（深海蓝 · 科技青主题）
   主题：海盐白底 + 深海蓝/科技青渐变（与蓝色 Cimoc 图标呼应），
   界面截图以 9:16 手机框全屏展示，零裁切。
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --primary: #2563EB;
  --primary-deep: #1D4ED8;
  --cyan: #38BDF8;
  --amber: #FFB454;
  --bg: #F5F9FF;
  --bg-2: #E9F2FF;
  --surface: #F0F6FF;
  --card: #FFFFFF;
  --ink: #1B2A4A;
  --ink-soft: #6E83A6;
  --line: #D8E5F7;
  --radius-lg: 30px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 20px 48px rgba(37, 99, 235, 0.18);
  --shadow-card: 0 10px 28px rgba(37, 99, 235, 0.12);
  --grad: linear-gradient(135deg, #2563EB, #38BDF8);
  --header-h: 72px;
  --space: clamp(64px, 9vw, 118px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

.container { width: min(1160px, 100% - 48px); margin-inline: auto; }

.container-narrow { width: min(820px, 100% - 48px); }

.section { padding-block: var(--space); }

.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary-deep);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-head h2 {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 1px;
}

.section-sub { margin-top: 12px; color: var(--ink-soft); font-size: 15px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 700;
  padding: 13px 26px;
  font-size: 15px;
  min-height: 46px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.40);
}

.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 14px 32px rgba(37, 99, 235, 0.52); }

.btn-ghost {
  background: #fff;
  color: var(--primary-deep);
  border: 2px solid var(--line);
}

.btn-ghost:hover { border-color: var(--primary); transform: translateY(-2px); }

.btn-light {
  background: #fff;
  color: var(--primary-deep);
  box-shadow: 0 12px 30px rgba(27, 42, 74, 0.22);
}

.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(27, 42, 74, 0.28); }

.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-xl { padding: 18px 44px; font-size: 17px; }

/* ---------- 顶部导航 ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(245, 249, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.12);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; }

.brand-logo { width: 42px; height: 42px; border-radius: 12px; }

.brand-name { font-size: 20px; font-weight: 900; letter-spacing: 1px; }

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  color: var(--ink-soft);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover { color: var(--primary-deep); background: #E3EEFF; }

.nav a.active { color: var(--primary-deep); background: #D5E6FF; font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + 64px); overflow: hidden; }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(640px 460px at 12% 10%, rgba(56, 189, 248, 0.22), transparent 65%),
    radial-gradient(560px 440px at 88% 18%, rgba(37, 99, 235, 0.18), transparent 65%),
    radial-gradient(480px 380px at 50% 118%, rgba(255, 180, 84, 0.10), transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 56px;
}

.hero-text { max-width: 600px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: #E3EEFF;
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.9);
}

.hero h1 {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: clamp(32px, 4.8vw, 50px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }

.hero-chips span {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hero-chips span:hover { border-color: var(--primary); color: var(--primary-deep); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }

.hero-note { font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; }

.hero-meta { font-size: 13px; color: #93A7C9; }

/* 主视觉：9:16 手机框（截图全屏展示，零裁切） */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 18px; }

.hero-card {
  position: relative;
  width: min(300px, 88%);
  aspect-ratio: 9 / 16;
  border-radius: 30px;
  border: 8px solid #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  background: #fff;
}

.hero-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 18px rgba(27, 42, 74, 0.18);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.chip-logo { top: 16px; left: 16px; padding: 6px 12px 6px 6px; }

.chip-logo img { width: 30px; height: 30px; border-radius: 9px; }

.chip-num {
  bottom: 16px;
  right: 16px;
  padding: 8px 14px;
  color: var(--primary-deep);
  background: linear-gradient(135deg, #EAF2FF, #E3EEFF);
}

.hero-caption { font-size: 14px; color: var(--ink-soft); }

/* ---------- 阅读体验（手机框三卡） ---------- */
.phone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.phone-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 18px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.phone-card:hover { transform: translateY(-6px); border-color: rgba(37, 99, 235, 0.5); box-shadow: var(--shadow-card); }

.phone-frame {
  position: relative;
  width: min(230px, 88%);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  border: 6px solid #F0F6FF;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.16);
}

.phone-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.phone-no {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-deep);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(27, 42, 74, 0.18);
}

.phone-body { padding: 20px 8px 0; text-align: center; }

.phone-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-deep);
  background: #E3EEFF;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.phone-body h3 {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 8px;
}

.phone-body p { font-size: 14.5px; color: var(--ink-soft); }

.story-note { margin-top: 26px; text-align: center; font-size: 13px; color: #93A7C9; }

/* ---------- 下载 CTA ---------- */
.section-cta { padding-top: 0; }

.cta-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: linear-gradient(150deg, #2563EB, #38BDF8);
  border-radius: 36px;
  padding: 68px 32px;
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.40);
}

.cta-card::before,
.cta-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.cta-card::before { width: 330px; height: 330px; top: -150px; right: -100px; }
.cta-card::after { width: 270px; height: 270px; bottom: -130px; left: -80px; }

.cta-kicker {
  position: relative;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.92;
  margin-bottom: 18px;
}

.cta-logo {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(27, 42, 74, 0.28);
}

.cta-card h2 {
  position: relative;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.cta-card p { position: relative; font-size: 15px; opacity: 0.94; margin-bottom: 28px; }

.cta-note { margin-bottom: 0 !important; font-size: 13px !important; margin-top: 18px; opacity: 0.88 !important; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item.open { border-color: var(--primary); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.faq-arrow {
  flex: none;
  display: inline-flex;
  color: var(--primary-deep);
  transition: transform 0.25s ease;
}

.faq-arrow svg { width: 20px; height: 20px; }

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a p { padding: 0 24px 20px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- 页脚 ---------- */
.footer {
  background: #0F1F3D;
  color: #EDF4FF;
  padding: 56px 0 32px;
  margin-top: var(--space);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
}

.footer-brand { display: flex; gap: 14px; align-items: center; }

.footer-brand img { width: 52px; height: 52px; border-radius: 14px; }

.footer-brand strong { display: block; font-size: 18px; font-weight: 900; }

.footer-brand span { display: block; font-size: 14px; color: #A7C0E8; }

.footer-nav { display: flex; gap: 6px; flex-wrap: wrap; }

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 14px;
  color: #A7C0E8;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background 0.2s ease;
}

.footer-nav a:hover { color: #fff; background: rgba(56, 189, 248, 0.18); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  text-align: center;
  font-size: 13px;
  color: #A7C0E8;
}

.footer-disclaimer { margin-top: 6px; font-size: 12px; opacity: 0.85; }

/* ---------- 焦点可见性 ---------- */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .phone-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(245, 249, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 20px;
    display: none;
  }

  .nav.open { display: flex; }

  .nav a { padding: 12px 14px; font-size: 16px; }

  .nav-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-text { max-width: none; text-align: center; }
  .hero-chips, .hero-cta, .hero-note, .hero-meta { justify-content: center; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-card { width: min(280px, 80%); }
}

@media (max-width: 620px) {
  .phone-grid { grid-template-columns: 1fr; }
  .header-actions .btn-sm { display: none; }
  .container { width: min(1160px, 100% - 36px); }
  .container-narrow { width: min(820px, 100% - 36px); }
  .cta-card { padding: 52px 24px; }
  .phone-frame { width: min(250px, 92%); }
}

/* ---------- 动画（克制：仅首屏编排一次） ---------- */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge { animation: heroUp 0.6s ease both; }
.hero h1 { animation: heroUp 0.6s ease 0.12s both; }
.hero-sub { animation: heroUp 0.6s ease 0.22s both; }
.hero-chips { animation: heroUp 0.6s ease 0.3s both; }
.hero-cta { animation: heroUp 0.6s ease 0.4s both; }
.hero-note, .hero-meta { animation: heroUp 0.6s ease 0.48s both; }
.hero-visual { animation: heroUp 0.7s ease 0.2s both; }

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
