:root{
  --bg: #f6f1ea; /* 象牙白 */
  --ink: #2f2940; /* 深紫灰 */
  --muted: #6e6a73;
  --accent: #3b3350;
  --gap: 24px;
  --rule: 1px solid rgba(47,41,64,0.08);
  --max-desktop: 1280px;
}

/* 全局基础 */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Microsoft Yahei", Arial, sans-serif;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit; text-decoration:underline}

/* 极简细导航（双层报头但第二层极窄） */
.site-header{padding:18px 16px 6px;border-bottom:var(--rule);background:transparent}
.header-top{display:flex;align-items:center;gap:12px;justify-content:flex-start}
.site-name{font-weight:700;color:var(--accent);font-size:14px;text-decoration:none}
.path{color:var(--muted);font-size:12px}
.header-slim{height:6px;background:transparent}
.header-ad{margin-top:12px;margin-bottom:8px}

/* 页面框架与栅格 */
.page-frame{padding:28px 16px 40px}
.grid{display:grid;grid-template-columns:1fr;gap:32px;max-width:100%;margin:0 auto}

/* 文章主体 */
.article{order:1}
.title{
  margin:0 0 10px 0;
  font-family: Georgia, "Times New Roman", serif;
  color:var(--ink);
  font-size:28px;
  line-height:1.18;
  text-align:left;
  position:relative;
  padding-left:0;
}
/* 标题压左并用粗细横线构图 */
.title:before{content:"";position:absolute;left:-28px;top:50%;height:2px;width:18px;background:var(--accent);transform:translateY(-50%)}
.title:after{content:"";position:absolute;left:-28px;top:calc(50% + 8px);height:1px;width:28px;background:rgba(47,41,64,0.06);transform:translateY(-50%)}

.meta{display:flex;flex-wrap:wrap;gap:12px;color:var(--muted);font-size:13px;margin-top:6px}
.summary{margin:18px 0 20px;color:var(--muted);max-width:70ch}

.content{color:var(--ink);font-size:16px;line-height:1.8}
.content p{margin:0 0 14px}
.content h2, .content h3{font-family:Georgia, "Times New Roman", serif;margin:22px 0 12px}

/* 广告容器（不可悬浮/覆盖） */
.ad{border-top:var(--rule);padding:12px 0;color:var(--muted);font-size:13px}
.ad-top{margin-top:6px}
.ad-middle{margin-top:22px;margin-bottom:22px}
.ad-bottom{max-width:var(--max-desktop);margin:30px auto 0;padding:18px}

/* 侧栏（FAQ 与相关阅读） */
.side{order:2}
.faq-heading{font-size:15px;margin:0 0 8px;color:var(--accent);font-weight:600}
.faq-sep{border:0;border-top:var(--rule);margin:6px 0 12px}
.faq-list{font-size:15px;color:var(--muted)}
.related-heading{font-size:14px;margin:20px 0 10px;color:var(--accent);font-weight:600}
.related-grid{display:grid;grid-template-columns:1fr;gap:10px}
.related-grid > *{padding:10px;border-top:var(--rule);color:var(--muted);font-size:14px}

/* 页脚 */
.site-footer{padding:28px 16px;color:var(--muted);font-size:13px;text-align:center;border-top:var(--rule);margin-top:26px}

/* 桌面端规则：至少一个只在 >=1024px 成立的结构差异，容器宽度在 1120-1440 范围内表现 */
@media (min-width:1024px){
  .page-frame{padding:48px 20px}
  .grid{
    max-width:var(--max-desktop);
    grid-template-columns:2fr 1fr; /* 非对称网格 */
    gap:36px;
    align-items:start;
  }
  /* 标题在桌面端更大，压左并保留横线构图 */
  .title{font-size:36px}
  .summary{max-width:60ch}
  .related-grid{grid-template-columns:repeat(3,1fr);gap:12px}
  .related-grid > *{border-top:0;border-left:var(--rule);padding:10px}

  /* 宽窄交替布局：正文跨两列起始，FAQ 置于右侧窄列 */
  .article{grid-column:1 / span 1}
  .article .content{max-width:none}
  .side{grid-column:2 / span 1}
}

/* 强调在更宽屏时容器落在 1120-1440 之间（不强制导致横向滚动） */
@media (min-width:1120px){
  .grid{max-width:1200px}
}

/* 手机端规则，独立重排，避免首屏空白 */
@media (max-width:767px){
  .page-frame{padding:18px 12px}
  .title{font-size:20px}
  .meta{font-size:12px;gap:8px}
  .summary{margin:10px 0 12px}
  .grid{grid-template-columns:1fr;gap:18px}
  .side{order:3}
  .article{order:1}
  .header-top{justify-content:space-between}
  .header-slim{height:4px}
  /* 相关阅读变为单列短卡，不能使用阴影 */
  .related-grid{grid-template-columns:1fr}
  .related-grid > *{border-left:0}
  /* FAQ 横线问答列表在移动端变为连贯区块 */
  .faq-sep{margin-top:8px;margin-bottom:10px}
}

/* 可访问性微调 */
.title, .faq-heading, .related-heading{line-height:1.12}

/* 遵循 surface 无圆角、细分隔线、无阴影 */
*{border-radius:0}
