/* ==========================================================================
   饭饭丨智慧校园 — 设计系统（编辑杂志版）
   概念：一本叫《饭饭》的校园生活志。
   纸张米白 + 印刷专色（饭饭橙/圈圈绿/校车黄）+ 宋体大标题 + 黑体正文。
   细线分栏 · 不对称网格 · 杂志目录 · 行式列表。
   ========================================================================== */

/* ---------- Token ---------- */
:root {
  /* 纸与墨 */
  --paper: #FBF7F0;
  --paper-2: #F3ECE1;
  --ink: #211D18;
  --ink-soft: #4A443C;
  --muted: #6B6156;

  /* 细线 */
  --line: #E3DACD;
  --line-strong: #C9BDA9;

  /* 印刷专色 */
  --orange: #E4572A;
  --orange-deep: #BE3E14;
  --green: #1E6E46;
  --green-deep: #155338;
  --yellow: #D98F0B;
  --yellow-deep: #A96E05;

  --white: #FFFFFF;

  /* 字体 */
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;

  /* 圆角（克制） */
  --r: 4px;
  --r-lg: 8px;

  /* 布局 */
  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 40px);

  /* 动效 */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); line-height: 1.2; font-weight: 900; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--orange); color: #fff; }

/* ---------- 容器 / 节 ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; }

/* ---------- 排版工具 ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 18px; height: 2px;
  background: var(--accent, var(--orange));
}
.kicker.orange { --accent: var(--orange); color: var(--orange-deep); }
.kicker.green { --accent: var(--green); color: var(--green-deep); }
.kicker.yellow { --accent: var(--yellow); color: var(--yellow-deep); }

.display {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--ink);
}
.h-section {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.16;
  letter-spacing: -.01em;
}
.lead {
  font-family: var(--sans);
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--ink-soft);
  line-height: 1.85;
  max-width: 36em;
}
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { margin-top: 16px; }

/* ---------- 按钮 / 链接 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 30px;
  border-radius: 2px;
  border: 1.5px solid transparent;
  transition: transform .3s var(--spring), box-shadow .3s, background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(228, 87, 42, .28); }

.btn-line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(33, 29, 24, .2); }

/* 文字箭头链接 */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1.5px solid var(--ink);
  transition: gap .3s var(--spring), color .2s, border-color .2s;
}
.link-arrow .arr { transition: transform .3s var(--spring); }
.link-arrow:hover { gap: 13px; color: var(--accent, var(--orange)); border-color: var(--accent, var(--orange)); }
.link-arrow:hover .arr { transform: translateX(2px); }

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 240, .86);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 8px 24px rgba(33, 29, 24, .05); }
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .02em;
}
.brand-logo {
  width: 38px; height: 38px;
  border-radius: var(--r);
  overflow: hidden;
  flex: none;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-dot { color: var(--orange); font-family: var(--sans); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative;
  padding: 8px 15px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 3px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { transform: scaleX(1); }

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  padding: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform .3s var(--ease), opacity .2s; }
.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 {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 0;
  border-bottom: 1px solid var(--line);
}
.hero-top {
  display: grid;
  grid-template-columns: 1.5fr .5fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(46px, 8vw, 104px);
  line-height: 1.06;
  letter-spacing: -.015em;
  margin: 22px 0 24px;
}
.hero-title .sep { color: var(--orange); }
.hero-desc { max-width: 30em; color: var(--ink-soft); font-size: 17px; }
.hero-cta { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 34px; }

/* hero 右侧刊头信息 */
.hero-meta {
  border-left: 1px solid var(--line);
  padding-left: 26px;
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
}
.hero-meta b { color: var(--ink); font-weight: 700; }

/* 目录（杂志式） */
.toc {
  margin-top: clamp(48px, 7vw, 84px);
  border-top: 1px solid var(--line);
}
.toc-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s var(--ease), background-color .2s;
}
.toc-row:hover { padding-left: 14px; }
.toc-num {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 16px;
  color: var(--accent, var(--orange));
  flex: none;
}
.toc-name {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(20px, 3vw, 30px);
  flex: none;
}
.toc-dots { flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-5px); }
.toc-desc { font-family: var(--sans); font-size: 14px; color: var(--muted); flex: none; }
.toc-arrow { font-size: 18px; color: var(--muted); flex: none; transition: transform .3s var(--spring), color .2s; }
.toc-row:hover .toc-arrow { transform: translateX(4px); color: var(--ink); }
.toc-row.orange { --accent: var(--orange); }
.toc-row.green { --accent: var(--green); }
.toc-row.yellow { --accent: var(--yellow); }

/* ---------- 章节（三大业务） ---------- */
.chapter { border-bottom: 1px solid var(--line); }
.chapter-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  padding: clamp(56px, 8vw, 110px) 0;
}
.chapter.flip .chapter-inner { grid-template-columns: 1fr auto; }
.chapter-num {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(64px, 10vw, 140px);
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent, var(--orange));
  opacity: .9;
}
.chapter.flip .chapter-num { text-align: right; }
.chapter-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(30px, 4.5vw, 54px);
  margin-bottom: 18px;
}
.chapter-quote {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--ink);
  margin-bottom: 26px;
}
.chapter-quote::before { content: "「"; color: var(--accent, var(--orange)); }
.chapter-quote::after { content: "」"; color: var(--accent, var(--orange)); }

/* 卖点行式列表 */
.points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  margin-bottom: 30px;
}
.points li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}
.points li::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent, var(--orange));
  transform: translateY(-1px);
}
.chapter-body .link-arrow { margin-top: 6px; }
.chapter.orange { --accent: var(--orange); }
.chapter.green { --accent: var(--green); }
.chapter.yellow { --accent: var(--yellow); }

/* ---------- 数据栏 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: clamp(28px, 4vw, 44px) 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-num .u { color: var(--accent, var(--orange)); }
.stat-label { margin-top: 10px; font-family: var(--sans); font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.stat.orange { --accent: var(--orange); }
.stat.green { --accent: var(--green); }
.stat.yellow { --accent: var(--yellow); }
.stat.ink { --accent: var(--ink); }

/* ---------- 信任列表 ---------- */
.trust-list li {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.trust-list li:last-child { border-bottom: 1px solid var(--line); }
.trust-list .t-title { font-family: var(--serif); font-weight: 900; font-size: clamp(20px, 2.6vw, 28px); }
.trust-list .t-desc { font-family: var(--sans); color: var(--ink-soft); font-size: 15px; align-self: center; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: clamp(72px, 10vw, 140px) 0; }
.cta .display { font-size: clamp(34px, 5.5vw, 64px); }
.cta .lead { margin: 20px auto 36px; }
.cta-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* 扫码入口 */
.mp-entry {
  display: flex;
  gap: clamp(28px, 4vw, 60px);
  justify-content: center;
  flex-wrap: wrap;
  margin: 4px 0 30px;
}
.mp-item { display: flex; flex-direction: column; align-items: center; }
.mp-code {
  width: clamp(148px, 15vw, 172px);
  aspect-ratio: 1;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 18px rgba(33, 29, 24, .07);
}
.mp-code img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-label { font-family: var(--serif); font-weight: 900; font-size: 17px; margin-top: 16px; }
.mp-sub { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 3px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); background: var(--paper-2); }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: clamp(48px, 6vw, 72px) 0;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 26em; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a, .footer-col span { display: block; color: var(--ink-soft); font-size: 15px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- 子页 ---------- */
.sub-hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
}
.sub-hero .display { margin: 20px 0 22px; }
.sub-hero-grid {
  display: grid;
  grid-template-columns: 1.6fr .4fr;
  gap: 40px;
  align-items: end;
}
.sub-hero-cta { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.sub-hero-meta { font-size: 13px; color: var(--muted); line-height: 2; }
.sub-hero-meta b { color: var(--ink); }

/* 子页「清单」标题 */
.list-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 8px;
}
.list-head .lh-num { font-family: var(--serif); font-weight: 900; color: var(--accent, var(--orange)); }

/* 子页大卖点（行式） */
.big-points { margin-top: 8px; }
.big-points li {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.big-points li:last-child { border-bottom: 1px solid var(--line); }
.big-points .bp-title { font-family: var(--serif); font-weight: 900; font-size: clamp(19px, 2.4vw, 26px); }
.big-points .bp-desc { font-family: var(--sans); color: var(--ink-soft); font-size: 15px; }
.big-points .bp-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent, var(--orange));
  border: 1px solid var(--accent, var(--orange));
  padding: 2px 8px;
  border-radius: 2px;
  margin-left: 10px;
  vertical-align: middle;
  white-space: nowrap;
}

/* 分组标题（编辑式子标题） */
.group-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: clamp(40px, 5vw, 56px) 0 6px;
}
.group-title::before {
  content: "";
  width: 22px; height: 3px;
  background: var(--accent, var(--green));
}

/* 流程步骤 */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.flow .step {
  padding: 30px 22px;
  border-right: 1px solid var(--line);
  position: relative;
}
.flow .step:last-child { border-right: none; }
.flow .s-num {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 15px;
  color: var(--accent, var(--yellow));
}
.flow .s-title { font-family: var(--serif); font-weight: 900; font-size: 20px; margin: 14px 0 8px; }
.flow .s-desc { font-family: var(--sans); font-size: 14px; color: var(--muted); }

/* ---------- 渐入 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .07s; }
.reveal[data-delay="2"] { transition-delay: .14s; }
.reveal[data-delay="3"] { transition-delay: .21s; }

/* ---------- 无障碍 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-top, .sub-hero-grid { grid-template-columns: 1fr; }
  .hero-meta { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 20px; }
  .chapter-inner, .chapter.flip .chapter-inner { grid-template-columns: 1fr; gap: 12px; }
  .chapter.flip .chapter-num { text-align: left; }
  .chapter-num { font-size: clamp(52px, 12vw, 96px); }
  .points { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .trust-list li, .big-points li { grid-template-columns: 1fr; gap: 8px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow .step:nth-child(2) { border-right: none; }
  .flow .step:nth-child(3), .flow .step:nth-child(4) { border-top: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 62px; left: 12px; right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 8px;
    box-shadow: 0 20px 50px rgba(33, 29, 24, .12);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 16px; }
  .nav-links a::after { left: 16px; right: 16px; bottom: 5px; }
  .nav-actions .btn { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: none; }
  .flow { grid-template-columns: 1fr; }
  .flow .step { border-right: none; border-top: 1px solid var(--line); }
  .flow .step:first-child { border-top: none; }
  .footer-top { grid-template-columns: 1fr; }
  .toc-desc { display: none; }
}
