/* ==========================================================================
   栗子漫画 Lizimhapp.cn —— 营销单页样式
   主题：暖栗色 · 纸感 · 移动端优先
   目录：1.变量  2.基础  3.导航  4.面包屑  5.Hero  6.功能卡  7.读法Tabs
        8.纸色  9.热门漫画  10.下载指南  11.FAQ  12.页脚  13.动效与响应式
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --c-primary: #d97b29;        /* 焦糖橙 */
  --c-primary-deep: #a85a1e;   /* 栗子棕 */
  --c-accent: #f2a95c;         /* 浅杏 */
  --c-bg: #fbf4e9;             /* 米纸底 */
  --c-card: #fffdf8;           /* 卡片白 */
  --c-text: #5b3a1e;           /* 主文字 */
  --c-text-soft: #8a6b47;      /* 次级文字 */
  --c-line: #eeddc5;           /* 分隔线 */
  --radius: 18px;
  --shadow: 0 10px 30px rgba(150, 90, 30, .14);
  --maxw: 1120px;
}

/* ---------- 2. 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-deep); text-decoration: none; }
a:hover { opacity: .85; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
section { scroll-margin-top: 76px; }

/* 区块通用 */
.section { padding: 64px 0; }
.section-kicker {
  font-size: 13px; letter-spacing: 2px; color: var(--c-primary); font-weight: 700;
  text-transform: uppercase; margin-bottom: 10px;
}
.section h2 { font-size: 26px; line-height: 1.4; color: var(--c-primary-deep); margin-bottom: 12px; }
.section-sub { color: var(--c-text-soft); margin-bottom: 34px; max-width: 640px; }

/* 按钮 */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #f6a83e, #d96a2a);
  color: #fff; box-shadow: 0 8px 22px rgba(217, 107, 42, .35);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(217, 107, 42, .45); }
.btn-ghost {
  background: transparent; color: var(--c-primary-deep);
  border: 2px solid var(--c-primary); 
}
.btn-download { background: var(--c-primary); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 16px 40px; font-size: 17px; }

/* ---------- 3. 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 244, 233, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(150, 90, 30, .12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--c-primary-deep); font-weight: 800; font-size: 20px; }
.brand-icon { color: var(--c-primary); display: inline-flex; }
.main-nav { display: none; gap: 4px; }
.main-nav a { padding: 8px 12px; border-radius: 999px; font-size: 15px; color: var(--c-text); }
.main-nav a:hover { background: rgba(217, 123, 41, .12); color: var(--c-primary-deep); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--c-primary-deep); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
/* 移动端展开菜单 */
.main-nav.open {
  display: flex; position: absolute; left: 0; right: 0; top: 60px;
  flex-direction: column; background: var(--c-bg); border-bottom: 1px solid var(--c-line);
  padding: 10px 18px 16px; gap: 2px; box-shadow: 0 12px 24px rgba(150,90,30,.12);
}

/* ---------- 4. 面包屑 ---------- */
.breadcrumb { padding: 14px 18px 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; gap: 6px; font-size: 13px; color: var(--c-text-soft); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--c-line); }
.breadcrumb a { color: var(--c-text-soft); }
.breadcrumb [aria-current] { color: var(--c-primary-deep); font-weight: 600; }

/* ---------- 5. Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 60px 0 72px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
/* 漂浮的圆点背景 */
.dot { position: absolute; border-radius: 50%; background: rgba(217, 123, 41, .16); animation: dotFloat 7s ease-in-out infinite; }
.dot-1 { width: 90px; height: 90px; top: 12%; left: 6%; }
.dot-2 { width: 46px; height: 46px; top: 68%; left: 12%; animation-delay: 1.2s; }
.dot-3 { width: 26px; height: 26px; top: 24%; right: 8%; animation-delay: 2s; background: rgba(242, 169, 92, .5); }
.dot-4 { width: 60px; height: 60px; bottom: 10%; right: 20%; animation-delay: .6s; }
.dot-5 { width: 16px; height: 16px; top: 55%; right: 34%; animation-delay: 2.6s; background: rgba(168, 90, 30, .3); }
@keyframes dotFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }

.hero-inner { display: flex; flex-direction: column; gap: 40px; position: relative; }
.hero-tag {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(217, 123, 41, .14); color: var(--c-primary-deep);
  font-size: 13px; font-weight: 600; margin-bottom: 16px;
}
.hero h1 { font-size: 32px; line-height: 1.35; color: var(--c-primary-deep); margin-bottom: 16px; }
.hero-desc { font-size: 16px; color: var(--c-text-soft); margin-bottom: 26px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-stats { display: flex; gap: 34px; list-style: none; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 20px; color: var(--c-primary); }
.hero-stats span { font-size: 13px; color: var(--c-text-soft); }

/* 手机样机：倾斜 + 上下浮动（本站Hero动画方向：垂直浮动 + 摇摆） */
.hero-visual { display: flex; justify-content: center; position: relative; }
.phone {
  position: relative; width: 216px; padding: 10px; border-radius: 34px;
  background: linear-gradient(160deg, #5b3a1e, #2e1c0f);
  box-shadow: 0 24px 50px rgba(120, 60, 20, .32), inset 0 0 0 2px rgba(255, 244, 227, .18);
  animation: phoneFloat 6s ease-in-out infinite;
  transform-origin: center bottom;
}
.phone-notch { width: 86px; height: 20px; background: #2e1c0f; border-radius: 0 0 14px 14px; margin: 0 auto 8px; }
.phone img { border-radius: 22px; width: 100%; }
.phone-chip {
  position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
  background: #fff; color: var(--c-primary-deep); font-size: 12px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-18px) rotate(3deg); }
}

/* ---------- 6. 核心功能卡 ---------- */
.features { background: linear-gradient(180deg, var(--c-bg), #fff8ec); }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.feature-card {
  position: relative; background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 26px 22px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-num { position: absolute; top: 18px; right: 20px; font-size: 13px; color: var(--c-primary); font-weight: 700; letter-spacing: 1px; }
.feature-icon { display: inline-flex; color: var(--c-primary); margin-bottom: 14px; }
.feature-card h3 { font-size: 18px; color: var(--c-primary-deep); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--c-text-soft); margin-bottom: 12px; }
.card-link { font-size: 14px; font-weight: 600; color: var(--c-primary); }

/* ---------- 7. 读法 Tabs ---------- */
.modes { background: #fffdf6; }
.tab-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tab-btn {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--c-line);
  background: var(--c-card); color: var(--c-text-soft); font-size: 14px; cursor: pointer; font-weight: 600;
  transition: all .25s ease;
}
.tab-btn.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.tab-panel { display: none; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.tab-panel.active { display: grid; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tab-media { border-radius: var(--radius); overflow: hidden; max-width: 320px; margin: 0 auto; box-shadow: var(--shadow); }
.tab-text h3 { font-size: 20px; color: var(--c-primary-deep); margin-bottom: 10px; }
.tab-text p { color: var(--c-text-soft); margin-bottom: 14px; }

/* ---------- 8. 纸色 ---------- */
.paper { background: var(--c-bg); }
.paper-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.paper-card { border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--c-line); transition: transform .3s ease; }
.paper-card:hover { transform: translateY(-4px); }
.paper-card h3 { font-size: 18px; margin-bottom: 8px; }
.paper-card p { font-size: 14px; opacity: .85; }
.paper-dark { background: #22202b; color: #e8e4f0; }
.paper-dark h3 { color: #cfc6e8; }
.paper-cream { background: #f1e4c8; color: #5b4523; }
.paper-cream h3 { color: #7a5a24; }
.paper-teal { background: #d7e8e2; color: #33564c; }
.paper-teal h3 { color: #2c6e5f; }

/* ---------- 9. 热门漫画 ---------- */
.hot { background: #fff8ec; }
.cover-strip {
  display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.cover-strip img {
  flex: 0 0 auto; width: 150px; height: 220px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow);
  scroll-snap-align: start; background: var(--c-line);
}
.cover-strip::-webkit-scrollbar { height: 6px; }
.cover-strip::-webkit-scrollbar-thumb { background: var(--c-primary); border-radius: 3px; }

/* ---------- 10. 下载指南 ---------- */
.download { background: linear-gradient(160deg, var(--c-primary-deep), var(--c-primary)); color: #fff; }
.download .section-kicker { color: #ffe3bd; }
.download h2 { color: #fff; }
.download .section-sub { color: rgba(255, 244, 227, .9); }
.steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 30px; }
.steps li {
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius); padding: 20px; position: relative;
}
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--c-primary-deep);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 10px;
}
.steps h3 { font-size: 16px; margin-bottom: 4px; }
.steps p { font-size: 13px; color: rgba(255, 244, 227, .9); }
.download-cta { text-align: center; }
.download-cta .btn-primary { background: #fff; color: var(--c-primary-deep); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.download-cta .btn-primary:hover { background: #fff6ea; }
.cta-note { margin-top: 12px; font-size: 13px; color: rgba(255, 244, 227, .85); }

/* ---------- 11. FAQ ---------- */
.faq { background: var(--c-bg); }
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-item {
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: 14px; padding: 0 18px;
}
.faq-item summary {
  list-style: none; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--c-primary-deep);
  padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--c-primary); transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { font-size: 14px; color: var(--c-text-soft); padding-bottom: 18px; }

/* ---------- 12. 页脚 ---------- */
.site-footer { background: #2e1c0f; color: #d9c2a3; padding: 44px 0 0; }
.footer-inner { display: flex; flex-direction: column; gap: 20px; padding-bottom: 26px; }
.footer-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-note { font-size: 13px; opacity: .8; max-width: 460px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: #d9c2a3; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-meta { border-top: 1px solid rgba(255, 244, 227, .14); padding: 16px 18px; font-size: 12px; opacity: .75; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }

/* 返回顶部 */
.back-top {
  position: fixed; right: 18px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-primary); color: #fff; border: 0; font-size: 20px; cursor: pointer;
  opacity: 0; visibility: hidden; transition: .3s; box-shadow: var(--shadow); z-index: 90;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { transform: translateY(-3px); }

/* 滚动显现 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- 13. 响应式 ---------- */
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .paper-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .tab-panel { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
  .hero-inner { flex-direction: row; align-items: center; gap: 50px; }
  .hero-copy { flex: 1.15; }
  .hero-visual { flex: 1; }
  .hero h1 { font-size: 40px; }
  .section { padding: 84px 0; }
  .section h2 { font-size: 32px; }
  .cover-strip img { width: 190px; height: 260px; }
}

/* 减弱动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
