/* ============================================================
   Weekly 官网样式 — 编辑部/杂志风
   纸感底色 + 宋体刊头 + iOS 品牌蓝;中文排印优先
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --paper: oklch(97.6% 0.009 85);        /* 暖白纸底 */
  --paper-2: oklch(95.5% 0.012 85);      /* 次级纸面 */
  --ink: oklch(25% 0.012 70);            /* 墨色正文 */
  --ink-soft: oklch(42% 0.015 70);       /* 次级文字 */
  --ink-faint: oklch(58% 0.012 70);      /* 弱化文字 */
  --line: oklch(25% 0.012 70 / 0.14);    /* 报纸细线 */
  --blue: oklch(60% 0.19 260);           /* App 品牌蓝 #007AFF */
  --red: oklch(52% 0.16 32);             /* 刊红,仅作编辑强调 */
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", -apple-system, "PingFang SC", "Segoe UI", sans-serif;
  --wrap: 1120px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(15px, 1.1vw + 10px, 17px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
body { overflow-x: clip; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--blue); color: var(--paper); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 4vw, 32px); }

/* 章节通用:顶部分隔线 + 编号刊眉,模拟杂志栏目 */
section { padding-block: clamp(56px, 9vw, 108px); border-top: 1px solid var(--line); }
.kicker {
  font-family: var(--serif); font-size: 13px; letter-spacing: 0.35em;
  color: var(--red); text-transform: uppercase; margin-bottom: 14px;
}
.kicker::before { content: "§ "; }
h2 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.25;
  letter-spacing: 0.01em; max-width: 22em;
}
.lead { color: var(--ink-soft); max-width: 34em; margin-top: 14px; }

/* ---------- 页头导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand {
  font-family: var(--serif); font-weight: 900; font-size: 22px;
  color: var(--ink); letter-spacing: 0.02em; display: flex; align-items: baseline; gap: 8px;
}
.brand:hover { text-decoration: none; }
.brand .vol { font-size: 11px; font-family: var(--sans); color: var(--red); letter-spacing: 0.2em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; list-style: none; }
.nav-links a { color: var(--ink-soft); font-size: 14.5px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.btn {
  display: inline-block; background: var(--ink); color: var(--paper);
  padding: 9px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.btn:hover { background: var(--blue); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn.blue { background: var(--blue); }
.btn.blue:hover { background: oklch(54% 0.2 260); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

/* 移动端菜单 */
.menu-toggle {
  display: none; margin-left: auto; width: 40px; height: 40px;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 17px; height: 1.8px; background: var(--ink);
  position: relative; transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 头版 Hero ---------- */
.hero { border-top: none; padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.dateline {
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--serif); font-size: 13px; letter-spacing: 0.18em;
  color: var(--ink-faint); border-bottom: 2px solid var(--ink);
  padding-bottom: 10px; margin-bottom: clamp(28px, 4vw, 48px);
}
.dateline .issue { color: var(--red); }
.hero h1 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(40px, 6vw, 74px); line-height: 1.18; letter-spacing: 0.01em;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .sub { margin-top: 22px; font-size: clamp(16px, 1.3vw + 10px, 19px); color: var(--ink-soft); max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--ink-faint); }

/* App Store 徽章(内联 SVG 由 HTML 提供,此处统一外观) */
.store-badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 12px; }
.store-badge svg { width: 22px; height: 26px; flex: none; }
.store-badge .b-txt { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.store-badge .b-txt small { font-size: 10.5px; opacity: 0.85; }
.store-badge .b-txt strong { font-size: 15.5px; letter-spacing: 0.02em; }

/* ---------- iPhone 样机(纯 CSS 绘制) ---------- */
.stage { position: relative; display: grid; justify-items: center; }
.phone {
  width: min(300px, 78vw); aspect-ratio: 9 / 19;
  background: oklch(20% 0.01 70); border-radius: 46px; padding: 9px;
  box-shadow: 0 24px 60px -18px oklch(25% 0.012 70 / 0.4), 0 4px 14px oklch(25% 0.012 70 / 0.18);
  transform: rotate(2deg);
}
.phone .screen {
  height: 100%; border-radius: 38px; overflow: hidden;
  background: var(--paper); display: flex; flex-direction: column; position: relative;
}
.island {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 24px; border-radius: 999px; background: oklch(15% 0.01 70);
}
.statusbar {
  display: flex; justify-content: space-between; padding: 12px 22px 6px;
  font-size: 12px; font-weight: 700;
}
.statusbar .batt { display: inline-flex; gap: 3px; align-items: center; }
.statusbar .batt i { width: 16px; height: 8px; border: 1px solid var(--ink-faint); border-radius: 3px; position: relative; }
.statusbar .batt i::before { content: ""; position: absolute; inset: 1px; width: 70%; background: var(--ink); border-radius: 1.5px; }
.screen-app { flex: 1; padding: 14px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.screen-app .app-title { font-family: var(--serif); font-weight: 900; font-size: 30px; }
.screen-app .app-date { font-size: 11.5px; color: var(--ink-faint); margin-top: -8px; }
.app-search { background: var(--paper-2); border-radius: 10px; padding: 8px 12px; font-size: 12.5px; color: var(--ink-faint); }
.app-item { border-top: 1px solid var(--line); padding-top: 10px; }
.app-item b { display: block; font-weight: 600; font-size: 13px; line-height: 1.5; color: var(--ink); }
.app-item span { font-size: 11px; color: var(--ink-faint); }
.app-item .tag { display: inline-block; font-size: 10px; color: var(--red); border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; margin-right: 6px; }
.app-tabs {
  margin-top: auto; display: flex; justify-content: space-around;
  border-top: 1px solid var(--line); padding: 10px 0 24px; font-size: 10.5px; color: var(--ink-faint);
}
.app-tabs b { color: var(--blue); font-weight: 600; }

/* 错位摆放的桌面小组件示意 */
.widget {
  position: absolute; right: 2%; bottom: 6%;
  width: clamp(150px, 17vw, 186px); aspect-ratio: 1;
  background: var(--ink); color: var(--paper); border-radius: 26px;
  padding: 18px; display: flex; flex-direction: column;
  box-shadow: 0 18px 40px -12px oklch(25% 0.012 70 / 0.5);
  transform: rotate(-4deg);
}
.widget small { font-size: 10.5px; letter-spacing: 0.22em; color: oklch(80% 0.02 85); }
.widget .w-num { font-family: var(--serif); font-weight: 900; font-size: clamp(40px, 4.5vw, 54px); line-height: 1.1; margin-top: auto; }
.widget .w-cap { font-size: 12px; color: oklch(80% 0.02 85); }

/* ---------- 刊物数据栏 ---------- */
.stats {
  border-top: none; padding-block: 0 clamp(40px, 6vw, 64px);
}
.stats .wrap {
  display: flex; flex-wrap: wrap; border-block: 2px solid var(--ink);
}
.stats div {
  flex: 1 1 160px; padding: 18px 22px; border-right: 1px solid var(--line);
}
.stats div:last-child { border-right: none; }
.stats b { display: block; font-family: var(--serif); font-weight: 900; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; }
.stats span { font-size: 13px; color: var(--ink-faint); letter-spacing: 0.08em; }

/* ---------- 功能栏目:编号条目,交替对排 ---------- */
.features-list { margin-top: clamp(36px, 5vw, 60px); display: grid; gap: clamp(40px, 6vw, 72px); }
.feature {
  display: grid; grid-template-columns: 88px 1fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: center;
}
.feature:nth-child(even) { grid-template-columns: 88px 1fr 1fr; }
.feature:nth-child(even) .f-visual { order: 2; }
.feature:nth-child(even) .f-body { order: 3; }
.f-num {
  font-family: var(--serif); font-weight: 900; font-size: clamp(34px, 3.4vw, 48px);
  color: var(--red); line-height: 1; position: relative; padding-top: 14px;
}
.f-num::before { content: ""; position: absolute; top: 0; left: 0; width: 34px; height: 2px; background: var(--ink); }
.feature h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(21px, 2.2vw, 27px); }
.feature p { color: var(--ink-soft); margin-top: 10px; max-width: 28em; }

/* 功能配图:最小编辑式图形 */
.f-visual { display: grid; gap: 8px; }
.f-chip { background: var(--paper-2); border-radius: 12px; padding: 12px 16px; font-size: 13.5px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.f-chip i { font-style: normal; color: var(--ink-faint); font-size: 11.5px; white-space: nowrap; }
.f-chip.hi { background: var(--ink); color: var(--paper); }
.f-chip.hi i { color: oklch(78% 0.02 85); }

/* ---------- 小组件横幅 ---------- */
.widgets-band .cols { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: clamp(28px, 4vw, 44px); }
.widgets-band ul { list-style: none; display: grid; gap: 12px; margin-top: 4px; }
.widgets-band li { border-left: 2px solid var(--blue); padding-left: 14px; color: var(--ink-soft); }
.widgets-band li b { color: var(--ink); font-weight: 600; }

/* ---------- Pro 专栏(墨底反白,像杂志封底) ---------- */
.pro-band { background: var(--ink); color: var(--paper); border-top: none; }
.pro-band .kicker { color: oklch(75% 0.09 55); }
.pro-band h2 { color: var(--paper); }
.pro-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(28px, 5vw, 64px); margin-top: clamp(28px, 4vw, 44px); }
.pro-band .lead { color: oklch(82% 0.012 85); }
.pro-perks { list-style: none; display: grid; gap: 0; }
.pro-perks li {
  display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid oklch(97.6% 0.009 85 / 0.16);
  color: oklch(90% 0.01 85); font-size: 15.5px;
}
.pro-perks li::before { content: "✓"; color: oklch(75% 0.12 260); font-weight: 700; }
.pro-card {
  align-self: start; background: var(--paper); color: var(--ink);
  border-radius: 18px; padding: clamp(24px, 3vw, 34px); position: sticky; top: 90px;
}
.pro-card .price { font-family: var(--serif); font-weight: 900; font-size: clamp(44px, 4.6vw, 60px); line-height: 1; }
.pro-card .price sup { font-size: 0.45em; margin-right: 4px; }
.pro-card .price s { font-size: 0.34em; color: var(--ink-faint); font-weight: 400; margin-left: 10px; }
.pro-card .p-note { font-size: 13.5px; color: var(--ink-faint); margin-top: 8px; }
.pro-card .stamp {
  position: absolute; top: -14px; right: 18px; background: var(--red); color: var(--paper);
  font-size: 12px; letter-spacing: 0.14em; padding: 5px 12px; border-radius: 4px; transform: rotate(4deg);
}

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
  padding: 20px 4px; font-family: var(--serif); font-weight: 700; font-size: clamp(16px, 1.5vw, 19px);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--red); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 4px 22px; color: var(--ink-soft); max-width: 46em; }
.faq { margin-top: clamp(28px, 4vw, 44px); max-width: 780px; }

/* ---------- 页脚 ---------- */
.cta-band { text-align: left; }
.cta-band .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px; }
.site-footer { border-top: 2px solid var(--ink); padding-block: 36px 44px; background: var(--paper-2); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.foot-brand { font-family: var(--serif); font-weight: 900; font-size: 20px; }
.foot-brand .vol { font-size: 11px; font-family: var(--sans); color: var(--red); letter-spacing: 0.2em; margin-left: 6px; }
.foot-note { font-size: 13px; color: var(--ink-faint); max-width: 40em; margin-top: 8px; }
.foot-links { display: flex; gap: 22px; list-style: none; font-size: 14px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-soft); }
.copyright { margin-top: 28px; font-size: 12.5px; color: var(--ink-faint); }

/* ---------- 进场动画(尊重系统减弱动效) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- 隐私政策文章排版 ---------- */
.doc { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); border-top: none; }
.doc h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 10px; }
.doc .doc-meta { font-size: 13.5px; color: var(--ink-faint); border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 8px; }
.doc article { max-width: 720px; }
.doc h2 { font-size: clamp(20px, 2.2vw, 26px); margin-top: 2.4em; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 1.4em; margin-top: 8px; }
.doc strong { color: var(--ink); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .stage { order: -1; }               /* 手机优先露出 */
  .feature { grid-template-columns: 52px 1fr; }
  .f-visual { grid-column: 2; }
  .feature:nth-child(even) .f-visual { order: 0; }
  .feature:nth-child(even) .f-body { order: 0; }
  .pro-grid, .widgets-band .cols { grid-template-columns: 1fr; }
  .pro-card { position: static; }
}
@media (max-width: 700px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none; padding: 8px 0 14px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 13px clamp(20px, 4vw, 32px); font-size: 16px; }
  .nav .btn { display: none; }        /* 移动端 CTA 收进菜单底部首行 */
  .stats b { font-size: 24px; }
  /* 2×2 数据栏:去掉行尾右边线,补行间分隔线 */
  .stats div:nth-child(2n) { border-right: none; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  /* 小组件保持叠在手机右下角,但收进视口 */
  .widget { right: -4px; bottom: -18px; transform: rotate(-2deg); }
  .dateline { font-size: 11px; letter-spacing: 0.1em; }
}
