/* ============================================
   SUPERBEN - Site Styles v4 (Monocle-inspired)
   Premium Dark + Muted Gold + Serif Editorial
   ============================================ */

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

:root {
  /* 颜色（保留暗色+金色骨架） */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #141414;
  --bg-card-hover: #181818;
  --text-primary: #e8e6e1;
  --text-secondary: #8a867e;
  --text-muted: #5a5650;
  --accent: #b8955a;
  --accent-hover: #d4b072;
  --accent-muted: rgba(184, 149, 90, 0.08);
  --border: #1c1c1c;
  --border-light: #2e2e2e;

  /* 字体：衬线标题 + 无衬线正文（Monocle editorial 核心） */
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-serif-en: "Playfair Display", "Noto Serif SC", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;

  --max-width: 680px;
  --max-width-wide: 1040px;
}

html { font-size: 15px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  min-height: 100vh;
  animation: fadeIn 0.6s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; display: block; }
::selection { background: rgba(184,149,90,0.25); color: #fff; }

/* --- Reading Progress Bar --- */
#reading-progress {
  position: fixed; top: 0; left: 0; width: 0%; height: 2px;
  background: var(--accent); z-index: 999; pointer-events: none;
  transition: width 0.1s linear;
}

/* ============================================
   Navigation — Monocle: 细线分隔、克制、小字距
   ============================================ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width-wide); margin: 0 auto;
  padding: 0 24px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-serif-en);
  font-size: 16px; font-weight: 600; letter-spacing: 5px; text-transform: uppercase;
  color: var(--text-primary);
}
.nav-brand:hover { color: var(--accent); transition: color 0.3s; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 12px; letter-spacing: 1px; color: var(--text-secondary);
  position: relative; transition: color 0.3s; padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

/* ============================================
   Hero — 衬线大标题，杂志开篇感
   ============================================ */
.site-hero { padding: 150px 24px 72px; max-width: var(--max-width-wide); margin: 0 auto; }
.hero-label {
  font-size: 11px; font-weight: 600; letter-spacing: 6px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 24px;
}
.hero-accent { width: 64px; height: 2px; background: var(--accent); margin-bottom: 28px; border-radius: 1px; }
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 54px); font-weight: 500; line-height: 1.12;
  letter-spacing: -0.5px; margin-bottom: 20px; max-width: 640px;
  color: var(--text-primary);
}
.hero-subtitle {
  font-size: 15px; color: var(--text-secondary); line-height: 1.8;
  max-width: 500px; margin-bottom: 36px; font-weight: 300;
}
.hero-divider { width: 60px; height: 2px; background: var(--accent); border: none; }
.hero-footer {
  display: flex; gap: 18px; align-items: center; font-size: 12px;
  color: var(--text-muted); flex-wrap: wrap; padding-top: 22px;
  border-top: 1px solid var(--border); letter-spacing: 1px;
}
.hero-num { font-weight: 600; color: var(--accent); font-size: 17px; font-family: var(--font-serif-en); }
.hero-sep { color: var(--border-light); }

/* ============================================
   Article Feed — 杂志目录感
   ============================================ */
.feed-section { max-width: var(--max-width-wide); margin: 0 auto; padding: 0 24px 80px; }
.feed-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.feed-header h2 {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 500; letter-spacing: 2px; color: var(--text-primary);
}
.feed-count { font-size: 11px; letter-spacing: 1px; color: var(--text-muted); }
.article-grid { display: grid; gap: 16px; }

/* --- Article Cards: 更克制的杂志卡片 --- */
.article-card {
  display: grid; grid-template-columns: 1fr; gap: 28px;
  padding: 18px; background: transparent;
  border: 1px solid var(--border); border-radius: 4px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.article-card:has(.card-thumb) { grid-template-columns: 220px 1fr; }
.article-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card);
}
.card-thumb {
  width: 220px; height: 124px; border-radius: 3px; overflow: hidden;
  background: var(--bg-secondary);
}
.card-thumb img, .card-thumb svg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.article-card:hover .card-thumb img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; justify-content: center; padding-right: 8px; }
.card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.card-date { font-size: 11px; letter-spacing: 1px; color: var(--text-muted); font-family: var(--font-serif-en); }
.card-pillar {
  font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); background: var(--accent-muted); padding: 3px 10px; border-radius: 2px;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 19px; font-weight: 500; line-height: 1.35; margin-bottom: 8px;
  color: var(--text-primary); transition: color 0.3s;
}
.article-card:hover .card-title { color: var(--accent-hover); }
.card-excerpt { font-size: 13px; color: var(--text-secondary); line-height: 1.7; font-weight: 300; }

/* ============================================
   Article Page — 衬线正文标题
   ============================================ */
.article-page { padding-top: 56px; }
.article-header { max-width: var(--max-width); margin: 0 auto; padding: 80px 24px 40px; }
.article-header .card-pillar { display: inline-block; margin-bottom: 18px; }
.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px); font-weight: 500; line-height: 1.25;
  letter-spacing: -0.5px; margin-bottom: 14px;
}
.article-header .card-date { font-size: 12px; letter-spacing: 1px; }
.article-cover { max-width: var(--max-width-wide); margin: 0 auto 48px; padding: 0 24px; }
.article-cover img, .article-cover svg { width: 100%; border-radius: 4px; }

/* --- Article Body Typography --- */
.article-body { max-width: var(--max-width); margin: 0 auto; padding: 0 24px 80px; }
.article-body p { margin-bottom: 1.6em; line-height: 1.95; font-size: 15px; color: #d6d2ca; font-weight: 300; }
.article-body strong { color: var(--text-primary); font-weight: 600; }
.article-body em { color: var(--accent-hover); }
.article-body blockquote {
  border-left: 2px solid var(--accent);
  padding: 18px 0 18px 28px; margin: 2.2em 0;
  color: var(--text-secondary); font-family: var(--font-serif); font-size: 17px;
  background: rgba(184,149,90,0.03); border-radius: 0 4px 4px 0;
}
.article-body blockquote p { margin-bottom: 0; color: inherit; }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 2.8em 0; }
.article-body h2 {
  font-family: var(--font-serif);
  font-size: 23px; font-weight: 500; margin-top: 2.4em; margin-bottom: 0.8em;
  letter-spacing: -0.3px; color: var(--text-primary);
}
.article-body h3 {
  font-family: var(--font-serif);
  font-size: 17px; font-weight: 500; margin-top: 1.8em; margin-bottom: 0.6em; color: var(--text-primary);
}
.article-body ul, .article-body ol { margin-bottom: 1.6em; padding-left: 1.6em; }
.article-body li { margin-bottom: 0.5em; line-height: 1.75; font-size: 15px; color: #d6d2ca; font-weight: 300; }
.article-body figure { margin: 2.8em 0; }
.article-body figcaption { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 10px; letter-spacing: 0.5px; }
.article-body .framework-img {
  background: var(--bg-secondary); padding: 18px;
  border-radius: 4px; border: 1px solid var(--border); margin: 2.8em 0;
}

/* ============================================
   Framework Figures — 内联渲染概念图组件
   全宽大图版（杂志整版插画，匹配原 17/18 篇 format）
   免疫图片文件丢失；图即框架，承载正文核心逻辑
   ============================================ */
.fw {
  background: radial-gradient(ellipse at 50% 0%, #141210 0%, #0a0a0a 75%);
  border: 1px solid #1c1c1c;
  border-radius: 6px;
  padding: 48px 44px;
  font-family: var(--font-sans);
}
.fw-label {
  font-size: 11px; font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 26px;
}

/* T1 两栏对比 */
.fw-cols { display: flex; border: 1px solid #2a2a2a; border-radius: 4px; overflow: hidden; }
.fw-col { flex: 1; padding: 32px 30px; }
.fw-col.l { background: rgba(184,149,90,0.06); border-right: 1px solid #2a2a2a; }
.fw-col.r { background: #111; }
.fw-col .h { font-family: var(--font-serif); font-size: 19px; color: var(--text-primary); margin-bottom: 18px; letter-spacing: -0.3px; }
.fw-col ul { list-style: none; padding: 0; }
.fw-col li {
  font-size: 13px; color: var(--text-secondary); line-height: 1.8;
  padding: 8px 0; border-bottom: 1px solid #1c1c1c; font-weight: 300;
}
.fw-col li:last-child { border-bottom: none; }
.fw-col li b { color: #b8955a; font-weight: 500; }
.fw-col .price { font-size: 14px; color: var(--text-primary); margin-top: 16px; }

/* T3 流程 / 时间线 */
.fw-flow { display: flex; align-items: stretch; }
.fw-step {
  flex: 1; padding: 20px 18px;
  border: 1px solid #2a2a2a; border-radius: 4px;
  background: #111;
}
.fw-step .n { font-family: var(--font-serif-en); font-size: 11px; color: var(--accent); letter-spacing: 1px; }
.fw-step .t { font-size: 15px; color: var(--text-primary); font-weight: 500; margin: 8px 0 6px; font-family: var(--font-serif); }
.fw-step .d { font-size: 12px; color: var(--text-muted); font-weight: 300; line-height: 1.7; }
.fw-arrow {
  display: flex; align-items: center; padding: 0 12px;
  color: var(--accent); font-size: 16px; flex-shrink: 0;
}

/* 循环 */
.fw-loop { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.fw-node {
  padding: 12px 20px; border: 1px solid #2a2a2a; border-radius: 999px;
  background: #111; font-size: 13px; color: var(--text-secondary); font-weight: 300;
  line-height: 1.5; text-align: center;
}
.fw-node.hl { border-color: var(--accent); color: var(--accent); background: rgba(184,149,90,0.08); }
.fw-back { font-size: 14px; color: var(--accent); flex-shrink: 0; }

/* 图底部结论行（关键） */
.fw-note {
  margin-top: 24px; font-size: 14px; color: var(--text-primary);
  line-height: 1.7; font-weight: 300;
  border-top: 1px solid #1c1c1c; padding-top: 18px;
}
.fw-note b { color: var(--accent); font-weight: 500; }

@media (max-width: 640px) {
  .fw { padding: 26px 18px; }
  .fw-flow { flex-direction: column; }
  .fw-arrow { transform: rotate(90deg); padding: 4px 0; justify-content: center; }
  .fw-cols { flex-direction: column; }
  .fw-col.l { border-right: none; border-bottom: 1px solid #2a2a2a; }
  .fw-loop { flex-direction: column; }
  .fw-back { transform: rotate(90deg); }
}

/* ============================================
   Newsletter — 订阅区
   ============================================ */
.newsletter-section {
  max-width: var(--max-width); margin: 0 auto; padding: 60px 24px 70px;
  text-align: center; border-top: 1px solid var(--border);
}
.newsletter-section h2 { font-family: var(--font-serif); font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.newsletter-section p { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; font-weight: 300; }
.newsletter-form { display: flex; gap: 8px; max-width: 380px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; font-family: var(--font-sans); font-size: 14px; padding: 12px 18px;
  background: var(--bg-secondary); color: var(--text-primary);
  border: 1px solid var(--border-light); border-radius: 3px; outline: none;
  transition: border-color 0.3s;
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
  font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: 1px;
  padding: 12px 26px; background: var(--accent); color: #0a0a0a;
  border: none; border-radius: 3px; cursor: pointer;
  transition: background 0.3s;
}
.newsletter-form button:hover { background: var(--accent-hover); }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  text-align: center; padding: 42px 24px; border-top: 1px solid var(--border);
  font-size: 11px; letter-spacing: 2px; color: var(--text-muted);
}

/* --- Filter Tabs: 杂志式索引 --- */
.filter-btn { cursor: pointer; }

/* ============================================
   Weekly / Cards / Prompts 通用增强
   ============================================ */
.weekly-header, .cards-header, .prompts-header { padding-top: 120px; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .article-card, .article-card:has(.card-thumb) { grid-template-columns: 1fr; gap: 14px; }
  .card-thumb { width: 100%; height: auto; aspect-ratio: 16/9; }
  .site-hero { padding: 140px 24px 60px; }
  .hero-title { font-size: clamp(28px, 6vw, 36px); }
  .nav-inner { padding: 0 20px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 11px; }
  .newsletter-form { flex-direction: column; }
}
@media (max-width: 480px) {
  .article-header { padding: 60px 20px 28px; }
  .article-body { padding: 0 20px 56px; font-size: 14px; }
  .nav-links { gap: 12px; }
}

.hero-title br { display: none; }
@media (max-width: 480px) { .hero-title br { display: inline; } }

/* ============================================
   Reading Path — 文章底部阅读引导
   ============================================ */
.reading-path {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px 60px;
}
.rp-inner {
  border: 1px solid var(--border); border-radius: 4px;
  padding: 28px 30px; background: var(--bg-secondary);
}
.rp-label {
  font-size: 10px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.rp-nav { display: flex; flex-direction: column; gap: 14px; }
.rp-item {
  display: flex; gap: 16px; align-items: baseline;
  padding: 10px 0; border-top: 1px solid var(--border);
  transition: color 0.3s;
}
.rp-item:first-child { border-top: none; padding-top: 0; }
.rp-dir { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; flex-shrink: 0; width: 48px; }
.rp-item a { font-family: var(--font-serif); font-size: 15px; color: var(--text-primary); transition: color 0.3s; }
.rp-item a:hover { color: var(--accent-hover); }
.rp-item .rp-hook { font-size: 12px; color: var(--text-muted); font-weight: 300; }
.rp-action {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
  display: flex; gap: 12px; flex-wrap: wrap;
}
.rp-action a {
  font-size: 12px; letter-spacing: 1px; padding: 8px 18px;
  border: 1px solid var(--border-light); border-radius: 2px;
  color: var(--text-secondary); transition: all 0.3s;
}
.rp-action a:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================
   Article TOC — 长文目录锚点
   ============================================ */
.article-toc {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px 8px;
  display: none;
}
.article-toc.show { display: block; }
.article-toc-inner {
  border: 1px solid var(--border); border-radius: 4px;
  padding: 18px 22px; background: var(--bg-secondary);
}
.article-toc-label {
  font-size: 10px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.article-toc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.article-toc-list li { font-size: 13px; }
.article-toc-list a {
  color: var(--text-secondary); transition: color 0.3s; line-height: 1.5;
  display: flex; gap: 10px; align-items: baseline;
}
.article-toc-list a:hover { color: var(--accent-hover); }
.article-toc-list .toc-num {
  font-size: 10px; color: var(--accent); font-family: var(--font-serif-en);
  min-width: 18px;
}
@media (max-width: 768px) {
  .article-toc { display: none !important; }
}

/* ============================================
   Hero Latest — 最新文章高亮卡
   ============================================ */
.hero-latest {
  margin-top: 40px; max-width: 620px;
  border: 1px solid var(--accent); border-radius: 6px;
  background: linear-gradient(135deg, rgba(184,149,90,0.06) 0%, rgba(184,149,90,0.02) 100%);
  overflow: hidden; transition: border-color 0.3s, background 0.3s;
}
.hero-latest:hover { border-color: var(--accent-hover); }
.hero-latest-inner { display: flex; align-items: center; padding: 18px 24px; }
.hero-latest .tag {
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  color: var(--accent); text-transform: uppercase; flex-shrink: 0;
  padding: 3px 10px; background: var(--accent-muted); border-radius: 2px;
  margin-right: 18px;
}
.hero-latest .info { flex: 1; }
.hero-latest .info .t { font-family: var(--font-serif); font-size: 17px; font-weight: 500; color: var(--text-primary); }
.hero-latest .info .d { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.hero-latest .arrow { color: var(--accent); font-size: 16px; flex-shrink: 0; }

/* ============================================
   Mobile Polish — 移动端打磨
   ============================================ */
@media (max-width: 640px) {
  /* 导航：小屏时收缩，允许滚动 */
  .site-nav { position: fixed; }
  .nav-links { gap: 14px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; min-width: 0; }
  .nav-links li { flex: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 11px; letter-spacing: 0; }
  .nav-brand { font-size: 14px; letter-spacing: 3px; }

  /* Hero 最新文章卡 */
  .hero-latest { margin-top: 32px; }
  .hero-latest-inner { padding: 16px 18px; }
  .hero-latest .info .t { font-size: 15px; }
  .hero-latest .tag { margin-right: 12px; padding: 2px 8px; }

  /* 正文行高更适合手机 */
  .article-body p { font-size: 15px; line-height: 1.9; }
  .article-header { padding: 64px 20px 28px; }
}
@media (max-width: 480px) {
  /* 小屏导航更紧凑 */
  .nav-inner { padding: 0 14px; height: 52px; }
  .nav-links a { font-size: 10px; }
  .hero-footer { gap: 12px; font-size: 11px; }
  .hero-latest .info .d { font-size: 11px; }
}

/* ============================================
   Share Box — 文章/周刊底部分享组件
   ============================================ */
.share-box {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 44px 24px 0;
}
.share-label {
  font-size: 10px; font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.share-hint {
  font-size: 15px; color: var(--text-primary); font-weight: 300;
  margin-bottom: 22px; font-family: var(--font-serif);
}
.share-actions {
  display: flex; align-items: center; gap: 28px;
  padding: 20px 24px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 6px;
}
.share-copy {
  flex: 1; font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  padding: 13px 20px; background: var(--accent); color: #0a0a0a;
  border: none; border-radius: 4px; cursor: pointer;
  letter-spacing: 1px; transition: background 0.3s;
}
.share-copy:hover { background: var(--accent-hover); }
.share-qr {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.share-qr img {
  width: 96px; height: 96px; border-radius: 3px;
  border: 1px solid var(--border-light); background: #0a0a0a;
}
.share-qr span { font-size: 10px; letter-spacing: 1px; color: var(--text-muted); }
.share-wx-hint {
  margin-top: 12px; font-size: 12px; color: var(--text-muted);
  font-weight: 300; line-height: 1.6;
}
@media (max-width: 480px) {
  .share-actions { flex-direction: column; gap: 18px; }
  .share-copy { width: 100%; }
}
