/* ============================================================
   FONKO 时报 · 六堡茶专号 — 报纸版式
   纸底 / 宋体 / 报红 / 双细线
   兼容性：老版 Safari 兜底（flex gap→margin、place-items→flex、
   clamp 前置回退、-webkit-sticky、首字不下沉、reveal 渐进增强）
   ============================================================ */

:root {
  --paper: #f6f1e3;
  --paper-2: #efe8d4;
  --paper-3: #faf6ea;
  --ink: #211c15;
  --ink-soft: #3a332a;
  --muted: #756b58;
  --red: #8b0000;
  --red-soft: #a52a1a;
  --line: #c9bfa6;
  --line-dark: #211c15;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --wrap: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  /* 纸张细纹 */
  background-image:
    repeating-linear-gradient(0deg, rgba(120, 100, 60, .025) 0 1px, transparent 1px 4px);
}

::selection { background: var(--red); color: #fff; }

[hidden] { display: none !important; }

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

a { color: var(--red); text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- 无障碍跳转 ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: #fff; padding: 8px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- 阅读进度条 ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--red); z-index: 120;
}

/* ═══════════ 栏目条（吸顶导航） ═══════════ */
.nav {
  position: -webkit-sticky; /* Safari 6.1–12 需要前缀 */
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line-dark);
  box-shadow: 0 1px 0 rgba(33, 28, 21, .08);
}
.nav.scrolled { background: var(--paper-3); }
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 28px;
  height: 54px; display: flex; align-items: center;
}
.brand { display: flex; align-items: center; color: var(--ink); margin-right: 26px; }
.brand-mark {
  width: 30px; height: 30px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff;
  font-size: 16px; font-weight: 700; border-radius: 3px;
}
.brand-mark.small { width: 26px; height: 26px; font-size: 14px; }
.brand-text { font-size: 16px; font-weight: 700; letter-spacing: 1px; margin-left: 10px; }
.brand-text em { font-style: normal; color: var(--red); }

.links { display: flex; margin-left: auto; }
.links a {
  font-size: 14px; color: var(--ink-soft); padding: 6px 12px;
  border-radius: 3px; letter-spacing: 1px;
}
.links a + a { margin-left: 4px; }
.links a:hover { color: var(--red); background: rgba(139, 0, 0, .06); }
.links a.nav-entry {
  color: var(--red); font-weight: 700;
  border: 1px solid rgba(139, 0, 0, .35);
}
.links a.nav-entry:hover { background: var(--red); color: #fff; }

.nav-cta { margin-left: 12px; }

.btn {
  display: inline-block; font-family: var(--serif);
  font-size: 14px; letter-spacing: 2px; padding: 9px 22px;
  border: 1px solid var(--ink); border-radius: 2px; cursor: pointer;
  transition: all .2s;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

.menu-toggle {
  display: none; margin-left: auto;
  width: 38px; height: 38px; background: none;
  border: 1px solid var(--line); border-radius: 3px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); transition: all .25s; }
.menu-toggle span + span { margin-top: 6px; }
.menu-toggle.open span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle.open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ═══════════ 报头 ═══════════ */
.masthead {
  border-bottom: 4px double var(--line-dark);
  padding: 26px 0 22px;
}
.mast-meta {
  display: flex; justify-content: space-between;
  font-family: var(--sans); font-size: 12px; color: var(--muted);
  letter-spacing: 1px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line); margin-bottom: 18px;
}
.mast-meta span { margin: 0 4px; }
.mast-mid { letter-spacing: 3px; }
.mast-title {
  text-align: center;
  font-size: 64px; /* clamp 回退：老浏览器用此行 */
  font-size: clamp(44px, 8vw, 84px);
  font-weight: 900; letter-spacing: 14px; text-indent: 14px;
  color: var(--ink); line-height: 1.15;
}
.mast-sub {
  text-align: center; margin-top: 12px;
  font-size: 14px; color: var(--muted); letter-spacing: 3px;
}
.mast-dot { margin: 0 8px; color: var(--red); }

/* 报头口号带：老茶路，新茶人 */
.motto {
  text-align: center; margin: 20px auto 0; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 19px; font-weight: 700; letter-spacing: 10px; text-indent: 10px;
  color: var(--red);
}

/* ═══════════ 头版头条 ═══════════ */
.hero { padding: 44px 0 40px; border-bottom: 1px solid var(--line-dark); }
.hero-grid {
  display: grid; grid-template-columns: 1fr 300px; gap: 40px;
  align-items: start;
}
.kicker {
  display: inline-block; font-size: 13px; letter-spacing: 4px;
  color: #fff; background: var(--red); padding: 3px 14px; margin-bottom: 18px;
}
.headline {
  font-size: 46px; /* clamp 回退 */
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 900;
  line-height: 1.2; letter-spacing: 4px; margin-bottom: 14px;
}
.headline .red { color: var(--red); }
.byline {
  font-family: var(--sans); font-size: 12.5px; color: var(--muted);
  letter-spacing: 1px; margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.lede {
  font-size: 17px; color: var(--ink-soft); line-height: 2;
  text-align: justify; margin-bottom: 26px;
}
/* 首字强调：不用 float 下沉，规避 WebKit 对中文 ::first-letter 的错位 bug */
.lede::first-letter {
  font-size: 1.9em; font-weight: 900; color: var(--red); line-height: 1;
}
.cta-row { display: flex; flex-wrap: wrap; }
.cta-row .btn { margin: 0 14px 10px 0; }

/* 本号看点侧栏 */
.hero-side {
  border: 1px solid var(--line-dark);
  background: var(--paper-3);
  padding: 18px 20px;
  box-shadow: 4px 4px 0 rgba(33, 28, 21, .12);
}
.side-title {
  font-size: 15px; letter-spacing: 6px; text-align: center;
  border-bottom: 3px double var(--line-dark); padding-bottom: 10px; margin-bottom: 6px;
}
.facts { list-style: none; }
.facts li {
  display: flex; align-items: baseline;
  padding: 9px 0; border-bottom: 1px dotted var(--line);
}
.facts li:last-child { border-bottom: none; }
.facts strong { font-size: 26px; font-weight: 900; color: var(--red); min-width: 34px; text-align: center; margin-right: 10px; }
.facts span { font-size: 14px; color: var(--ink-soft); letter-spacing: 1px; }
.side-more {
  display: block; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px; letter-spacing: 1px;
}
.side-more:hover { text-decoration: underline; }

/* ═══════════ 版面通用 ═══════════ */
.section { padding: 46px 0; border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: 30px; }
.sec-index {
  display: inline-block; font-size: 13px; letter-spacing: 3px;
  color: var(--red); border: 1px solid var(--red);
  padding: 3px 12px; margin-bottom: 14px;
}
.sec-head h2 {
  font-size: 30px; /* clamp 回退 */
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900; letter-spacing: 4px;
  border-bottom: 3px double var(--line-dark); padding-bottom: 12px; margin-bottom: 12px;
}
.sec-head p { font-size: 15px; color: var(--muted); letter-spacing: 1px; }

/* ---------- 第一版 · 茶业务（三栏） ---------- */
.cards-3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.card {
  padding: 6px 26px 4px;
  border-left: 1px solid var(--line);
}
.card:first-child { border-left: none; padding-left: 0; }
.card-tag {
  display: inline-block; font-size: 12px; letter-spacing: 3px;
  color: #fff; background: var(--ink); padding: 2px 12px; margin-bottom: 12px;
}
.card h3 { font-size: 22px; font-weight: 900; letter-spacing: 3px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.95; text-align: justify; margin-bottom: 12px; }
.card-list { list-style: none; margin-bottom: 14px; }
.card-list li {
  font-size: 13.5px; color: var(--muted); padding: 4px 0 4px 16px; position: relative;
}
.card-list li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 7px; height: 7px; background: var(--red);
}
.card-link { font-size: 14px; letter-spacing: 2px; font-weight: 700; }
.card-link:hover { text-decoration: underline; }

/* ---------- 项目/作品（扩展槽位复用样式，当前未启用） ---------- */
.group-head {
  display: flex; align-items: baseline;
  border-bottom: 2px solid var(--line-dark);
  padding-bottom: 8px; margin-bottom: 20px;
}
.group-label { font-size: 18px; font-weight: 900; letter-spacing: 4px; color: var(--red); margin-right: 14px; }
.group-note { font-size: 13px; color: var(--muted); letter-spacing: 1px; }

.works {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-bottom: 34px;
}
.group-head + .works { margin-bottom: 44px; }
.wrap > .works:last-child { margin-bottom: 0; }

.work {
  display: flex; flex-direction: column;
  border: 1px solid var(--line-dark);
  background: var(--paper-3);
  padding: 20px 22px;
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(33, 28, 21, .1);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.work:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(139, 0, 0, .18);
  border-color: var(--red);
}
.work-top {
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 12px;
}
.work-dot { width: 8px; height: 8px; background: var(--red); flex: none; margin-right: 8px; }
.work-meta { font-family: var(--sans); font-size: 11.5px; color: var(--muted); letter-spacing: 1px; }
.work h3 { font-size: 19px; font-weight: 900; letter-spacing: 2px; margin-bottom: 8px; }
.work p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.9; flex: 1; margin-bottom: 14px; }
.work-link { font-size: 13.5px; font-weight: 700; letter-spacing: 2px; color: var(--red); }

/* ═══════════ 第二版 · 行业监控（六堡茶专刊） ═══════════ */
.liubao { background: var(--paper-2); border-top: 3px double var(--line-dark); }
.lb-strip {
  display: flex; align-items: baseline; flex-wrap: wrap;
  border-top: 2px solid var(--red); border-bottom: 2px solid var(--red);
  padding: 8px 2px; margin-bottom: 34px;
}
.lb-strip-cn { font-size: 24px; font-weight: 900; letter-spacing: 8px; color: var(--red); margin-right: 16px; }
.lb-strip-en { font-family: Georgia, serif; font-size: 12px; letter-spacing: 3px; color: var(--muted); margin-right: 16px; }
.lb-strip-note { margin-left: auto; font-size: 12.5px; color: var(--muted); letter-spacing: 2px; }

.lb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.lb-card {
  display: flex; flex-direction: column;
  background: var(--paper-3);
  border: 1px solid var(--line-dark);
  box-shadow: 4px 4px 0 rgba(33, 28, 21, .12);
  color: var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.lb-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 rgba(139, 0, 0, .2); }
.lb-card-head {
  padding: 20px 24px 16px;
  border-bottom: 3px double var(--line-dark);
}
.lb-badge {
  display: inline-block; font-size: 12px; letter-spacing: 3px;
  background: var(--red); color: #fff; padding: 2px 12px; margin-bottom: 12px;
}
.lb-badge.alt { background: var(--ink); }
.lb-card-head h3 { font-size: 24px; font-weight: 900; letter-spacing: 4px; margin-bottom: 4px; }
.lb-card-sub { font-family: var(--sans); font-size: 12.5px; color: var(--muted); letter-spacing: 1px; }
.lb-teaser { padding: 18px 24px 6px; flex: 1; }
.lb-teaser-lead {
  font-size: 15px; font-weight: 700; line-height: 1.9; text-align: justify;
  border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 12px;
}
.lb-teaser-list { list-style: none; }
.lb-teaser-list li {
  font-size: 13.5px; color: var(--ink-soft); padding: 5px 0 5px 18px; position: relative;
}
.lb-teaser-list li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 8px; height: 8px; border: 2px solid var(--red);
}
.lb-cta {
  display: block; margin: 14px 24px 20px; padding: 11px 0;
  text-align: center; font-size: 15px; font-weight: 700; letter-spacing: 4px;
  background: var(--red); color: #fff;
  transition: background .2s;
}
.lb-card:hover .lb-cta { background: var(--red-soft); }
.lb-foot {
  margin-top: 24px; text-align: center;
  font-size: 12.5px; color: var(--muted); letter-spacing: 1px;
  border-top: 1px dotted var(--line); padding-top: 14px;
}

/* ---------- 第三版 · 关于茶仓 ---------- */
.about {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
}
.about-text {
  font-size: 16px; color: var(--ink-soft); line-height: 2.05;
  text-align: justify; margin-bottom: 22px;
}
.kv { list-style: none; border-top: 3px double var(--line-dark); }
.kv li {
  display: flex; padding: 10px 0;
  border-bottom: 1px dotted var(--line); font-size: 14.5px;
}
.kv span { flex: none; width: 44px; color: var(--red); font-weight: 700; letter-spacing: 2px; margin-right: 18px; }
.kv b { font-weight: 700; color: var(--ink); }
.quote {
  text-align: center; padding: 28px 24px;
  border: 1px solid var(--line-dark); background: var(--paper-3);
  box-shadow: 4px 4px 0 rgba(33, 28, 21, .12);
}
.quote-art { margin: 0 auto 16px; max-width: 240px; }
.quote p { font-size: 19px; font-weight: 700; line-height: 1.9; letter-spacing: 2px; margin-bottom: 10px; }
.quote span { font-size: 13px; color: var(--muted); letter-spacing: 2px; }

/* ---------- 末版 · 读者来信 ---------- */
.contact { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; }
.contact-card {
  border: 1px solid var(--line-dark); background: var(--paper-3);
  padding: 22px; text-align: center;
  box-shadow: 4px 4px 0 rgba(33, 28, 21, .12);
}
.qr {
  width: 180px; height: 180px; margin: 0 auto 12px;
  border: 1px dashed var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; letter-spacing: 2px;
}
.qr > * + * { margin-top: 10px; }
.qr img { width: 100%; height: 100%; object-fit: cover; }
.qr-loaded { border: none; }
.qr-hint { font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.contact-list { border-top: 3px double var(--line-dark); }
.row {
  display: flex; align-items: center;
  padding: 14px 4px; border-bottom: 1px dotted var(--line);
  color: var(--ink); font-size: 15px;
}
a.row:hover { background: rgba(139, 0, 0, .05); }
.row-label { flex: none; width: 44px; color: var(--red); font-weight: 700; letter-spacing: 2px; margin-right: 16px; }
.row-value { flex: 1; letter-spacing: 1px; }
.row-copy { cursor: pointer; }
.row-tip {
  flex: none; font-family: var(--sans); font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); padding: 2px 10px; border-radius: 2px;
}
.row-copy:hover .row-tip { color: var(--red); border-color: var(--red); }

/* ---------- 页脚 ---------- */
.foot { border-top: 4px double var(--line-dark); padding: 26px 0 30px; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; }
.foot-left { display: flex; align-items: center; }
.foot-left .brand-mark { margin-right: 12px; }
.foot-left p { font-size: 14.5px; font-weight: 700; letter-spacing: 2px; }
.foot-left span { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.foot-note { font-size: 12.5px; color: var(--muted); letter-spacing: 2px; }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 42px; height: 42px; border-radius: 3px;
  background: var(--paper-3); color: var(--ink);
  border: 1px solid var(--line-dark); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: all .25s; box-shadow: 3px 3px 0 rgba(33, 28, 21, .15);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- 入场动效（渐进增强：无 JS / JS 出错时内容直接可见） ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.d1 { transition-delay: .08s; }
html.js .reveal.d2 { transition-delay: .16s; }
html.js .reveal.d3 { transition-delay: .24s; }
html.js .reveal.d4 { transition-delay: .32s; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ═══════════ 响应式 ═══════════ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .cards-3 { grid-template-columns: 1fr; }
  .card { border-left: none; border-top: 1px solid var(--line); padding: 22px 0 18px; }
  .card:first-child { border-top: none; padding-top: 0; }
  .works { grid-template-columns: 1fr 1fr; }
  .works > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .lb-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 30px; }
  .contact { grid-template-columns: 1fr; }
  .contact-card { max-width: 320px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .nav-inner { padding: 0 18px; }
  .brand { margin-right: 12px; }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .links {
    position: absolute; top: 54px; left: 0; right: 0;
    flex-direction: column;
    background: var(--paper-3); border-bottom: 2px solid var(--line-dark);
    padding: 8px 18px 14px;
    display: none;
  }
  .links a { padding: 12px 6px; border-bottom: 1px dotted var(--line); border-radius: 0; }
  .links a + a { margin-left: 0; }
  .links a:last-child { border-bottom: none; }
  .links a.nav-entry { border: none; }
  .nav.menu-open .links { display: flex; }

  .mast-meta { flex-direction: column; text-align: center; }
  .mast-meta span { margin: 2px 0; }
  .mast-title { letter-spacing: 6px; text-indent: 6px; }
  .mast-sub { letter-spacing: 1px; }
  /* 移动端收紧大标题，避免「一船茶，走了三百年」折行断字 */
  .headline { font-size: 31px; letter-spacing: 2px; }
  .motto { font-size: 17px; letter-spacing: 6px; text-indent: 6px; }
  .works { grid-template-columns: 1fr; }
  .works > :last-child:nth-child(odd) { grid-column: auto; }
  .lb-strip-note { margin-left: 0; width: 100%; }
  .foot-inner { flex-direction: column; text-align: center; }
  .foot-left { margin-bottom: 8px; }
  .lede::first-letter { font-size: 1.6em; }
}
