/* ============================================================
   三号动漫 - 官网落地页样式（app 版）
   主题：清新亮色 · 珊瑚橙 × 青绿
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #F6F7FC;
  --bg-soft: #FFFFFF;
  --card: #FFFFFF;
  --card-2: #FFF9F7;
  --line: #E6E9F4;
  --line-strong: #D6DBEE;
  --ink: #1C2340;
  --muted: #67718F;
  --primary: #FF5C7A;
  --primary-2: #FF9A5C;
  --teal: #17C3B2;
  --violet: #8A7CFF;
  --grad-main: linear-gradient(135deg, #FF5C7A 0%, #FF9A5C 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 68px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

/* ---------- 通用组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border: 1px solid rgba(255, 92, 122, 0.35);
  border-radius: 999px;
  color: #F0476A;
  background: rgba(255, 92, 122, 0.07);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.section {
  padding: 5.5rem 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section h2 {
  margin-top: 1.1rem;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.section-lead {
  max-width: 34em;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.9rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: var(--grad-main);
  box-shadow: 0 10px 26px rgba(255, 92, 122, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 154, 92, 0.42);
}

.btn-ghost {
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: #0FA396;
}

.btn-lg {
  padding: 1rem 2.6rem;
  font-size: 1.08rem;
}

/* ---------- 头部导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(28, 35, 64, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav > a:not(.nav-download) {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav > a:not(.nav-download):hover {
  color: var(--primary);
}

.nav-download {
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  color: #fff;
  background: var(--grad-main);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(255, 92, 122, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 154, 92, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  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: calc(var(--header-h) + 4rem) 0 4.5rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 420px at 12% 18%, rgba(255, 92, 122, 0.14), transparent 70%),
    radial-gradient(620px 460px at 90% 70%, rgba(23, 195, 178, 0.14), transparent 70%),
    radial-gradient(420px 320px at 65% 0%, rgba(255, 154, 92, 0.1), transparent 70%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy .eyebrow {
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.9rem, 7vw, 4.7rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.hero-sub {
  margin-top: 0.9rem;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  color: #0FA396;
  letter-spacing: 0.02em;
}

.hero-desc {
  max-width: 34em;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.hero-tags li {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hero-tags li:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.hero-meta {
  margin-top: 1.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: min(320px, 82%);
  border-radius: 34px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: 0 28px 64px rgba(28, 35, 64, 0.16);
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
}

.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 22px;
  border-radius: 12px;
  background: var(--ink);
  z-index: 1;
}

.phone-badge {
  position: absolute;
  right: 24px;
  bottom: 24px;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--grad-main);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(255, 92, 122, 0.4);
}

/* ---------- 数据指标 ---------- */
.stats {
  padding: 0 0 5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 2.2rem 2.4rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(28, 35, 64, 0.06);
}

.stat-item {
  text-align: center;
  border-right: 1px solid var(--line);
  padding: 0 1.2rem;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
}

.stat-item span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------- 核心功能 ---------- */
.features {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}

.feature-card {
  padding: 1.8rem 1.7rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 195, 178, 0.55);
  box-shadow: 0 16px 36px rgba(28, 35, 64, 0.08);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: #fff;
  background: var(--grad-main);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  margin-top: 1.2rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.feature-card p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- 热门题材 ---------- */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}

.genre-card {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.genre-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 92, 122, 0.5);
}

.genre-media {
  position: relative;
  overflow: hidden;
}

.genre-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.genre-card:hover .genre-media img {
  transform: scale(1.05);
}

.genre-tag {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.tag-hot { background: #FF5C7A; }
.tag-daily { background: #8A7CFF; }
.tag-heal { background: #17C3B2; }
.tag-love { background: #FF8A4C; }

.genre-card h3 {
  margin-top: 0.2rem;
  padding: 1.1rem 1.2rem 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.genre-card > p {
  padding: 0.4rem 1.2rem 1.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- 追更日历 ---------- */
.calendar {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}

.calendar-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  text-align: left;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.calendar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 195, 178, 0.55);
  box-shadow: 0 16px 36px rgba(28, 35, 64, 0.08);
}

.calendar-card.active {
  border-color: var(--teal);
  background: linear-gradient(160deg, rgba(23, 195, 178, 0.12), rgba(255, 255, 255, 0.9) 55%);
}

.cal-day {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0FA396;
}

.cal-genre {
  font-size: 1.15rem;
  font-weight: 800;
}

.cal-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- 版本更新（时间轴） ---------- */
.timeline {
  --tl-time: 7.5rem;
  --tl-rail: 3rem;
  position: relative;
  margin-top: 3rem;
  display: grid;
  gap: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: calc(var(--tl-time) + var(--tl-rail) / 2 - 1px);
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 92, 122, 0.55), rgba(23, 195, 178, 0.45));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: var(--tl-time) var(--tl-rail) 1fr;
  align-items: start;
  padding: 1.3rem 0;
}

.timeline-item time {
  padding-top: 0.25rem;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: right;
  padding-right: 1rem;
}

.timeline-dot {
  justify-self: center;
  width: 14px;
  height: 14px;
  margin-top: 0.32rem;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--teal);
  box-shadow: 0 0 0 4px rgba(23, 195, 178, 0.16);
}

.timeline-content {
  padding-left: 1.6rem;
  padding-bottom: 0.4rem;
}

.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.timeline-content p {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.93rem;
  max-width: 38em;
}

/* ---------- 下载中心 ---------- */
.download-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  padding: 3rem;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 92, 122, 0.1), rgba(23, 195, 178, 0.08) 55%), #fff;
  border: 1px solid var(--line-strong);
}

.download-info h2 {
  margin-top: 1rem;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  margin: 1.6rem 0 2rem;
}

.download-meta li {
  font-size: 0.93rem;
  color: var(--muted);
}

.download-meta strong {
  color: var(--ink);
  font-weight: 700;
}

.download-notes {
  padding: 1.6rem 1.7rem;
  border-radius: var(--radius-sm);
  background: rgba(28, 35, 64, 0.03);
  border: 1px solid var(--line);
  align-self: center;
}

.download-notes h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.download-notes li {
  position: relative;
  padding-left: 1.1rem;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.download-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* ---------- 常见问题 ---------- */
.faq-list {
  max-width: 760px;
  margin: 3rem auto 0;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 0.4rem;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-arrow {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.25s ease, color 0.25s ease;
}

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 0.4rem 1.3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 3.2rem 0 2.6rem;
  background: #171D38;
  color: #CDD3EA;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
}

.footer-slogan {
  color: #8E96BC;
  font-size: 0.92rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.8rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.5rem;
  color: #8E96BC;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #FF8A9E;
}

.footer-copy {
  margin-top: 0.6rem;
  color: #5E6791;
  font-size: 0.85rem;
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: var(--grad-main);
  box-shadow: 0 10px 24px rgba(255, 92, 122, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top svg {
  width: 22px;
  height: 22px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 420px;
    margin-inline: auto;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 0;
  }

  .stat-item {
    border-right: none;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-panel {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 2.2rem;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 4rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    padding: 1rem 1.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav > a {
    padding: 0.7rem 0.4rem;
    font-size: 1rem;
  }

  .nav-download {
    text-align: center;
    margin-top: 0.5rem;
  }

  .hero {
    padding-top: calc(var(--header-h) + 2.6rem);
  }

  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    --tl-time: 0;
    --tl-rail: 2rem;
  }

  .timeline::before {
    left: calc(var(--tl-rail) / 2 - 1px);
  }

  .timeline-item {
    grid-template-columns: var(--tl-rail) 1fr;
  }

  .timeline-item time {
    display: none;
  }

  .timeline-content {
    padding-left: 1.2rem;
  }
}

@media (max-width: 520px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .feature-grid,
  .genre-grid {
    grid-template-columns: 1fr;
  }

  .download-panel {
    padding: 1.6rem;
  }
}

/* ---------- 可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
