/* =========================================================
   欲漫涩 yumansemanhua.cn · 全站样式
   主题：琥珀橙 · 蛋壳奶油系
   结构：变量 → 基础 → 通用组件 → 各区块 → 响应式
   ========================================================= */

:root {
  /* 色板（源自暖橙渐变蛋壳图标与奶油底色） */
  --bg:        #FFFBF5;
  --bg-soft:   #FFF2E4;
  --card:      #FFFFFF;
  --ink:       #4A2F16;
  --ink-soft:  #8A6B4C;
  --brand:     #F97316;
  --brand-deep:#EA580C;
  --brand-dark:#C2410C;
  --brand-soft:#FEE2C8;
  --line:      #F6E7D3;
  --accent:    #FBBF24;
  --accent-soft:#FDF3D7;
  --shadow:    0 16px 40px rgba(200, 110, 30, 0.10);
  --radius:    18px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-deep); }

::selection { background: var(--brand-soft); color: var(--ink); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

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

.container-narrow { max-width: 860px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn-lg { padding: 16px 44px; font-size: 17px; }
.btn-sm { padding: 10px 24px; font-size: 14px; min-height: 44px; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.30);
}
.btn-primary:hover {
  background: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.34);
}
.btn-primary:active { transform: translateY(0); }

.btn-light {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}
.btn-light:hover { background: var(--bg-soft); transform: translateY(-2px); }
.btn-light:active { transform: translateY(0); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(200, 110, 30, 0.14);
}
.brand-name {
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 24px;
  color: var(--ink);
  line-height: 1;
}
.brand-domain {
  font-size: 12px;
  color: var(--ink-soft);
  border-left: 1px solid var(--line);
  padding-left: 12px;
  line-height: 1.4;
}

.nav-menu { display: flex; gap: 26px; }
.nav-menu a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav-menu a:hover { color: var(--brand-deep); border-color: var(--brand); }

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首屏 Hero ---------- */
.hero {
  padding: 84px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(249, 115, 22, 0.14), transparent 62%),
    radial-gradient(700px 380px at -8% 112%, rgba(251, 191, 36, 0.14), transparent 62%),
    var(--bg);
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--brand-deep);
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-title {
  margin: 18px 0 0;
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  font-size: clamp(38px, 5.6vw, 60px);
  line-height: 1.18;
  color: var(--ink);
}
.hero-title em {
  display: block;
  font-style: normal;
  color: var(--brand-deep);
  font-size: 0.78em;
  margin-top: 6px;
}

.hero-desc {
  margin: 22px 0 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-note { font-size: 14px; color: var(--ink-soft); }

.hero-stats {
  margin: 44px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  list-style: none;
}
.hero-stat { flex: 1; padding: 0 24px; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat + .hero-stat { border-left: 1px solid var(--line); }
.hero-stat dt {
  margin: 0;
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 30px;
  line-height: 1.1;
  color: var(--ink);
}
.hero-stat dd { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}
.phone-frame {
  width: min(290px, 82%);
  background: var(--card);
  border: 10px solid #fff;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}
.phone-frame img { width: 100%; height: auto; }
.hero-icon-badge {
  position: absolute;
  bottom: -8px;
  right: 4%;
  width: 108px;
  height: auto;
  object-fit: cover;
  border-radius: 24px;
  border: 5px solid #fff;
  box-shadow: 0 14px 28px rgba(200, 110, 30, 0.20);
}
.deco-heart { position: absolute; }
.deco-heart-1 { top: 6%; left: 6%; }
.deco-heart-2 { top: 32%; right: 3%; }

/* ---------- 通用区块头 ---------- */
.section { padding: 88px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--brand-deep);
  text-transform: uppercase;
}
.section-head h2 { margin: 12px 0 0; font-size: 34px; font-weight: 700; color: var(--ink); }
.section-desc { margin: 14px 0 0; font-size: 15px; line-height: 1.8; color: var(--ink-soft); }

/* ---------- 产品展示 ---------- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.device {
  background: var(--card);
  border: 10px solid #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.device img { width: 100%; height: auto; }
.showcase-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.showcase-num {
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 20px;
  color: var(--accent);
}
.showcase-meta h3 { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.showcase-tag { font-size: 14px; color: var(--ink-soft); }

/* ---------- 内容发现 ---------- */
.genres-panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 52px 48px;
}
.genres-row {
  display: flex;
  align-items: center;
  gap: 44px;
}
.genres-main { flex: 1; min-width: 0; }
.genre-block + .genre-block { margin-top: 30px; }
.genre-label { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--brand-dark); }
.chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  line-height: 1.4;
}
.chip-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.genres-art {
  width: 160px;
  height: auto;
  object-fit: cover;
  border-radius: 24px;
  border: 4px solid #fff;
  box-shadow: 0 12px 24px rgba(200, 110, 30, 0.14);
  flex-shrink: 0;
}

/* ---------- 热门排行 ---------- */
.rank-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: -22px 0 38px;
}
.rank-tab {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  padding: 8px 22px;
  border-radius: 999px;
  line-height: 1.4;
}
.rank-tab-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.rank-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 10px 26px rgba(200, 110, 30, 0.05);
}
.rank-num {
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 46px;
  line-height: 1;
  color: var(--brand);
}
.rank-body h3 { margin: 8px 0 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.rank-tags { margin: 0; font-size: 14px; letter-spacing: 0.04em; color: var(--ink-soft); }
.rank-stat { margin: 0; font-size: 14px; color: var(--ink-soft); }
.rank-stat strong { color: var(--brand-deep); font-size: 16px; font-weight: 600; }

/* ---------- 内容详情 ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.detail-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 24px;
}
.detail-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--brand-deep);
}
.detail-card h3 { margin: 12px 0 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.detail-card p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--ink-soft); }

/* ---------- 常见问题 ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 26px;
}
.faq-item h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.faq-item p { margin: 10px 0 0; font-size: 14px; line-height: 1.8; color: var(--ink-soft); }
.faq-item a {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}

/* ---------- 用户评价 ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
}
.review-text { margin: 0; font-size: 14px; line-height: 1.9; color: var(--ink-soft); flex: 1; }
.review-meta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.review-author { font-size: 14px; font-weight: 600; color: var(--ink); }
.review-meta time { font-size: 12px; color: var(--ink-soft); }

/* ---------- 下载引导 ---------- */
.cta-panel {
  position: relative;
  overflow: hidden;
  background: var(--brand-dark);
  border-radius: 32px;
  padding: 72px 40px;
  text-align: center;
}
.cta-panel::before,
.cta-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-panel::before {
  width: 320px;
  height: 320px;
  right: -90px;
  top: -110px;
  background: rgba(251, 191, 36, 0.20);
}
.cta-panel::after {
  width: 260px;
  height: 260px;
  left: -80px;
  bottom: -120px;
  background: rgba(254, 226, 200, 0.22);
}
.cta-eyebrow {
  position: relative;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
}
.cta-panel h2 {
  position: relative;
  margin: 14px 0 0;
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  font-size: 40px;
  color: #fff;
}
.cta-desc {
  position: relative;
  margin: 16px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.86);
}
.cta-panel .btn { position: relative; margin-top: 34px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #571F0B; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 44px 24px;
}
.footer-brand .brand-name { color: #fff; }
.footer-domain { margin: 8px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  text-decoration: none;
  padding: 11px 0;
  transition: color .18s ease;
}
.footer-nav a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 64px 0 72px; }
  .hero-visual { min-height: 0; }
  .phone-frame { width: min(270px, 70%); }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
}

@media (max-width: 960px) {
  .showcase-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .rank-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .genres-panel { padding: 40px 28px; }
  .genres-row { flex-direction: column; align-items: flex-start; gap: 28px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 14px;
    box-shadow: 0 20px 30px rgba(200, 110, 30, 0.08);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    border-color: transparent;
  }
  .nav-menu a + a { border-top: 1px solid var(--line); }
  .nav-menu a:hover { border-color: transparent; color: var(--brand-deep); }
  .header-inner { height: 64px; }
  .brand-domain { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: 28px; }
  .hero-title { font-size: 34px; }
  .hero-desc { font-size: 15px; }
  .hero-stats { flex-wrap: wrap; gap: 18px; }
  .hero-stat { padding: 0 18px; }
  .hero-icon-badge { width: 88px; }
  .review-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .cta-panel { padding: 56px 24px; }
  .cta-panel h2 { font-size: 32px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom-inner { flex-direction: column; }
}

/* ---------- 无障碍：尊重减弱动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
