/* ==========================================================================
   Archive 2018 · 共享样式表
   来源：原 index.html / major-events.html 的内联 CSS 合并抽取
   原则：视觉与原版逐值对齐，仅消除重复。页面差异通过修饰类表达：
         .hero--short        头图 320px + 深滤镜 + 小标题（原大事记页）
         .container--narrow  正文宽 1000px（原大事记页）
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
    /* 配色 */
    --bg:             #f5f5f0;
    --ink:            #2c2c2c;
    --ink-desc:       #4a4a4a;
    --ink-mute:       #5a5a5a;
    --ink-date:       #5a4a3a;
    --ink-footer:     #7a7a7a;
    --paper:          #f5f0e6;

    --card-bg:        rgba(255, 255, 245, 0.9);
    --card-bg-hover:  #fffef7;
    --card-bg-soft:   rgba(255, 255, 245, 0.8);
    --inset-bg:       #f0ede5;

    --line:           #ddd8ce;
    --line-soft:      #e0ddd5;
    --line-menu:      #5a5a5a;
    --line-dashed:    #ccc;

    --accent:         #ffd966;

    /* 页面级可调参数（由 .hero--short / .container--narrow 覆盖） */
    --hero-height:    520px;
    --hero-filter:    brightness(0.85) sepia(0.2);
    --hero-title:     4.8rem;
    --container-max:  1280px;
}

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

/* ---------- 基础 ---------- */
body {
    background: var(--bg);
    font-family: 'Courier New', 'SF Mono', 'Segoe UI', monospace;
    color: var(--ink);
    line-height: 1.5;
}

/* ---------- 头部视差 ---------- */
.hero {
    position: relative;
    height: var(--hero-height);
    overflow: hidden;
    background-color: #2a2a2a;
}
.hero--short {
    --hero-height: 320px;
    --hero-filter: brightness(0.75) sepia(0.2);
    --hero-title:  3.5rem;
}
.hero-bg {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    transition: transform 0.1s ease-out;
    will-change: transform;
    filter: var(--hero-filter);
}
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--paper);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    padding: 0 20px;
}
.hero-content h1 {
    font-size: var(--hero-title);
    font-weight: normal;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;      /* 原首页值；大事记页无副标题故无影响 */
    font-family: 'Times New Roman', 'Courier New', serif;
}
.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    opacity: 0.9;
}

/* ---------- 汉堡菜单按钮 ---------- */
.menu-btn {
    position: fixed;
    top: 20px;
    right: 25px;
    z-index: 1000;
    width: 44px;
    height: 38px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 10px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}
.menu-btn:hover { background: rgba(0, 0, 0, 0.5); }
.menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--paper);
    border-radius: 3px;
}

/* ---------- 侧边栏菜单 ---------- */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #2c2c2cee;
    backdrop-filter: blur(12px);
    z-index: 999;
    transition: right 0.3s ease;
    padding: 80px 24px 24px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}
.side-menu.open { right: 0; }
.close-btn {
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 2rem;
    color: var(--paper);
    cursor: pointer;
}

/* ---------- 搜索区 ---------- */
.search-area {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--line-menu);
    padding-bottom: 20px;
}
.search-area > p {
    color: #ddd;
    font-size: 0.8rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.search-box { display: flex; gap: 8px; }
.search-box input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 245, 0.15);
    border: 1px solid #7a7a7a;
    border-radius: 30px;
    color: var(--paper);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: 0.2s;
}
.search-box input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 245, 0.25);
}
.search-box button {
    background: #ffd966cc;
    border: none;
    border-radius: 30px;
    padding: 0 16px;
    color: var(--ink);
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}
.search-box button:hover { background: var(--accent); }

/* ---------- 导航列表 ---------- */
.side-menu ul { list-style: none; margin-top: 10px; }
.side-menu li { margin: 20px 0; }
.side-menu a {
    color: var(--paper);
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-menu);
    transition: 0.2s;
}
.side-menu a:hover { color: var(--accent); padding-left: 6px; }
/* 当前页高亮（由 site.js 打标） */
.side-menu a[aria-current="page"] {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ---------- 站内搜索结果（置于导航规则之后以便覆盖） ---------- */
.search-results {
    margin-top: 12px;
    max-height: 46vh;
    overflow-y: auto;
}
.search-results[hidden] { display: none; }
.search-results a {
    font-size: 0.8rem;
    line-height: 1.4;
    padding: 8px 0;
    border-bottom: 1px dashed #4a4a4a;
    color: var(--paper);
}
.search-results a:hover { color: var(--accent); padding-left: 0; }
.search-results .sr-title { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.search-results .sr-snippet { color: #b9b9b9; font-size: 0.72rem; }
.search-results .sr-channels {
    display: block;
    margin-top: 3px;
    font-size: 0.68rem;
    color: #8a7a5a;
    letter-spacing: 0.5px;
}
.search-results .sr-status { color: #999; font-size: 0.78rem; padding: 6px 0; }

/* ---------- 主内容容器 ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 40px 20px 60px;
}
.container--narrow {
    --container-max: 1000px;
    padding: 40px 20px;
}

/* ---------- 栏目标题 ---------- */
.section-title {
    font-size: 1.8rem;
    font-weight: normal;
    letter-spacing: 2px;
    margin-bottom: 32px;
    border-left: 4px solid var(--ink);
    padding-left: 20px;
    color: var(--ink);
}
.page-title {
    font-size: 2rem;
    border-left: 5px solid var(--ink);
    padding-left: 20px;
    margin-bottom: 30px;
}

/* ---------- 卡片网格 ----------
   首页有 9 个频道。原先用 auto-fill minmax(280px,1fr)，在 1280px 下会算出
   4 列 → 排成 4+4+1，第 9 张卡片单独落在一行；单张卡片不参与行内拉伸，
   于是它比前两行的卡片矮，看起来「尺寸不一致」。
   改为固定 3 列（9 张正好 3×3 排满），并用弹性布局 + min-height 保证
   跨行高度一致、条数徽标贴底对齐。 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid var(--line-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 158px;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    background: var(--card-bg-hover);
}
.card h3 {
    font-size: 1.6rem;
    font-weight: normal;
    margin-bottom: 12px;
    font-family: 'Times New Roman', serif;
}
.card p { color: var(--ink-mute); font-size: 0.9rem; }

/* ---------- 特色区块 ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}
.feature-card {
    background: var(--card-bg-soft);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid var(--line-soft);
}
.feature-card h3 {
    font-size: 1.4rem;
    font-weight: normal;
    margin-bottom: 16px;
    font-family: 'Times New Roman', serif;
    border-left: 3px solid var(--ink);
    padding-left: 12px;
}
.random-event {
    font-size: 0.95rem;
    background: var(--inset-bg);
    padding: 16px;
    border-radius: 12px;
    margin-top: 12px;
}

/* 首页「今日回响」的多条列表 */
.echo-list { list-style: none; }
.echo-list li {
    display: flex;
    gap: 10px;
    align-items: baseline;
    padding: 7px 0;
    border-bottom: 1px dashed var(--line-dashed);
}
.echo-list li:first-child { padding-top: 0; }
.echo-list li:last-child { border-bottom: none; padding-bottom: 0; }
.echo-date {
    flex: 0 0 64px;
    font-size: 0.72rem;
    color: var(--ink-footer);
    letter-spacing: 0.5px;
}
.echo-list a { color: var(--ink); text-decoration: none; }
.echo-list a:hover { text-decoration: underline; }
.echo-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    color: var(--ink-date);
    cursor: pointer;
    border-bottom: 1px dotted var(--line);
}
.echo-btn:hover { color: var(--ink); border-bottom-color: var(--ink); }
.timeline-preview { list-style: none; margin-top: 12px; }
.timeline-preview li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--line-dashed);
    display: flex;
    gap: 12px;
}
.timeline-date {
    font-weight: bold;
    min-width: 90px;
    color: var(--ink-date);
}
/* 原内联 style 抽取 */
.feature-note { margin-top: 12px; font-size: 0.75rem; }
.feature-more { margin-top: 8px; }
.feature-more a { color: var(--ink); }

/* ---------- 事件条目列表 ---------- */
.event-list { list-style: none; }
.event-item {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}
.event-item:last-child { border-bottom: none; }
.event-date {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--ink-date);
    margin-bottom: 8px;
}
.event-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 8px;
}
.event-desc { color: var(--ink-desc); line-height: 1.6; }

/* 标签（各栏目页用） */
.tag-row { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
    font-size: 0.7rem;
    padding: 2px 9px;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--ink-mute);
    background: rgba(255, 255, 245, 0.7);
}

/* ---------- 页脚 ---------- */
footer {
    text-align: center;
    padding: 32px;
    color: var(--ink-footer);
    border-top: 1px solid var(--line);
    font-size: 0.8rem;
    margin-top: 40px;
}

/* ==========================================================================
   以下为「数据驱动架构」新增组件（由 tools/build.py 生成的页面使用）
   全部沿用既有配色与字体变量，不引入新色调。
   ========================================================================== */

/* ---------- 锚点跳转留白（避免标题被顶部遮住） ---------- */
.event-item,
.month-block { scroll-margin-top: 24px; }

/* ---------- 抽屉菜单的分组标签 ---------- */
.side-menu li.menu-group {
    margin: 24px 0 6px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #8a8a8a;
    border-bottom: none;
}

/* ---------- 首页：区块说明 + 卡片计数 ---------- */
.section-note {
    color: var(--ink-mute);
    font-size: 0.85rem;
    line-height: 1.8;
    margin: -18px 0 28px 24px;
}
.card-count {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    font-size: 0.7rem;
    border-radius: 20px;
    background: var(--inset-bg);
    color: var(--ink-footer);
}

/* ---------- 频道页 / 时间轴：页首说明 ---------- */
.page-blurb {
    color: var(--ink-mute);
    font-size: 0.88rem;
    line-height: 1.8;
    margin: -14px 0 32px;
}

/* ---------- 空频道提示 ---------- */
.empty-note {
    color: var(--ink-footer);
    font-size: 0.9rem;
    line-height: 1.8;
    background: var(--inset-bg);
    padding: 20px 22px;
    border-radius: 12px;
}

/* ---------- 跨频道交叉链接（多归属的体现） ---------- */
.event-also {
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--ink-footer);
}
.event-also a {
    color: var(--ink-date);
    text-decoration: none;
    border-bottom: 1px dotted var(--line);
}
.event-also a:hover {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

/* ---------- 月份标题（时间轴 / 每日档案） ---------- */
.month-title {
    font-size: 1.15rem;
    font-weight: normal;
    letter-spacing: 1px;
    color: var(--ink-date);
    border-bottom: 1px dashed var(--line-dashed);
    padding-bottom: 8px;
    margin: 36px 0 22px;
}
.month-block { margin-bottom: 20px; }

/* ---------- 首页时间轴预览里的链接 ---------- */
.timeline-preview a { color: var(--ink); }

/* ---------- 每日档案：月份快捷导航 ---------- */
.month-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
}
.month-nav a {
    padding: 4px 13px;
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    background: var(--card-bg);
    color: var(--ink);
    text-decoration: none;
    font-size: 0.78rem;
    transition: 0.2s;
}
.month-nav a:hover { background: var(--accent); }

/* ---------- 每日档案：日历网格 ---------- */
.cal { max-width: 420px; margin: 0 0 26px; }
.cal-head,
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.cal-head span {
    text-align: center;
    font-size: 0.7rem;
    color: var(--ink-footer);
    padding-bottom: 6px;
}
.cal-cell {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 0.78rem;
    color: var(--ink-mute);
    border-radius: 8px;
    text-decoration: none;
}
.cal-cell.cal-empty { visibility: hidden; }
.cal-cell.cal-has {
    background: var(--card-bg);
    border: 1px solid var(--line-soft);
    color: var(--ink);
    font-weight: bold;
    transition: 0.2s;
}
.cal-cell.cal-has:hover { background: var(--accent); }
.cal-dot {
    position: absolute;
    top: 2px;
    right: 5px;
    font-size: 0.55rem;
    font-weight: normal;
    color: var(--ink-footer);
}

/* ---------- 「逝者」频道的区分 ----------
   第一版做得太克制（只调了字重和间距），实际看下来「和别的页没区别」。
   这一版给出明确的视觉签名，但仍不换设计语言、不改配色体系：
     · 页面底色略偏冷偏暗，与其余 8 个频道的暖白纸色分开
     · 头图显著压暗、几乎去色
     · 列表左侧加一道竖线，形成「悼念名录」的排布
     · 取消条目之间的分隔线，只靠留白分隔
     · 不显示标签行 —— 在纪念页上「标签：评书、曲艺」这类元数据显得聒噪
   刻意仍不覆盖全局 UI（抽屉菜单、搜索框）的强调色：那是全站共用的外壳，
   只在这一页变色会显得像坏了。 */
.page-memoriam { background: #efefeb; }
/* 头图是一张 CC0 的蜡烛照（见 docs/IMAGE-CREDITS.md），已由
   tools/make_memoriam_hero.py 按头图实际可见区域重新构图，亮度也调好了。
   background-image 不写在这里 —— 它由 build.py 按「频道 hero 字段」注入到
   页面里，好处是 URL 会带上图片内容哈希，换图后不会被 7 天缓存挡住。 */
.page-memoriam .hero-bg { filter: none; }
.page-memoriam .hero { --hero-height: 260px; }

.epigraph {
    font-family: 'Times New Roman', 'Courier New', serif;
    font-size: 1.3rem;
    line-height: 1.9;
    color: var(--ink-date);
    border-left: 2px solid var(--line);
    padding: 4px 0 4px 18px;
    margin: -12px 0 48px;
}

/* 悼念名录：左侧一道竖线，条目之间只用留白分隔 */
.page-memoriam .event-list {
    border-left: 1px solid var(--line);
    padding-left: 26px;
}
.page-memoriam .event-item {
    margin-bottom: 44px;
    padding-bottom: 0;
    border-bottom: none;
}
.page-memoriam .event-item:last-child { margin-bottom: 8px; }

/* 日期：小字、常规字重、不抢视线 */
.page-memoriam .event-date {
    font-weight: normal;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    color: var(--ink-footer);
}
/* 姓名：靠字号立住，不用粗体压迫 */
.page-memoriam .event-title {
    font-weight: normal;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}
.page-memoriam .event-desc { color: var(--ink-mute); }

/* 纪念页不显示标签行（元数据在此处显得聒噪；检索索引仍完整保留标签） */
.page-memoriam .tag-row { display: none; }

/* 「同属」链接改为静默样式 */
.page-memoriam .event-also { margin-top: 12px; }
.page-memoriam .event-also a {
    border-bottom: none;
    color: var(--ink-footer);
}
.page-memoriam .event-also a:hover { color: var(--ink); }

/* ---------- 频道页的子类分组标题 ----------
   两层分类的第二层：频道页内按子类分段，避免长页面变成无法扫读的一长串。 */
.topic-title {
    font-size: 1.05rem;
    font-weight: normal;
    letter-spacing: 2px;
    color: var(--ink);
    margin: 40px 0 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.topic-title:first-of-type { margin-top: 8px; }
.topic-count {
    font-size: 0.7rem;
    color: var(--ink-footer);
    letter-spacing: 0;
    background: var(--inset-bg);
    padding: 1px 8px;
    border-radius: 20px;
}

/* ==========================================================================
   帖子页（/p/<id>.html）
   正文由 tools/md.py 从 posts/<id>.md 渲染，样式需覆盖 Markdown 产出的标签。
   ========================================================================== */

/* 列表页：有独立帖子的条目标题变成链接 */
.event-link { color: var(--ink); text-decoration: none; }
.event-link:hover { border-bottom: 2px solid var(--accent); }
.event-more { margin-top: 8px; font-size: 0.78rem; }
.event-more a { color: var(--ink-date); text-decoration: none; }
.event-more a:hover { border-bottom: 1px solid var(--ink-date); }

/* 帖子是「文档」，不是博文：
   不放头图（头图只属于首页与频道页），改为顶部信息栏 + 窄栏正文。
   窄栏是为了阅读 —— 720px 是中文长文比较舒适的宽度。 */
.post { max-width: 720px; margin: 0 auto; }

.post-head {
    padding-top: 22px;          /* 给右上角固定的菜单按钮留出空间 */
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 36px;
}
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    align-items: baseline;
    font-size: 0.82rem;
    color: var(--ink-footer);
}
.post-channels a { color: var(--ink-date); text-decoration: none; }
.post-channels a:hover { border-bottom: 1px solid var(--ink-date); }

.post-title {
    font-family: 'Times New Roman', 'Courier New', serif;
    font-size: 1.95rem;
    font-weight: normal;
    line-height: 1.45;
    letter-spacing: 1px;
    margin: 14px 0 16px;
}
.post-lead { color: var(--ink-mute); line-height: 1.9; }

/* 可选封面（front matter 的 cover:） */
.post-cover { margin: 0 0 36px; }
.post-cover img { display: block; width: 100%; height: auto; border-radius: 12px; }

.post-foot {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

/* ---------- 正文排版 ---------- */
.post-body { margin-top: 30px; font-size: 1rem; }
.post-body p { line-height: 1.95; margin-bottom: 1.15em; }
.post-body h2 {
    font-size: 1.35rem;
    font-weight: normal;
    letter-spacing: 1px;
    margin: 40px 0 16px;
    padding-left: 14px;
    border-left: 3px solid var(--ink);
}
.post-body h3 {
    font-size: 1.1rem;
    font-weight: normal;
    letter-spacing: 1px;
    margin: 28px 0 12px;
    color: var(--ink-date);
}
.post-body ul, .post-body ol { margin: 0 0 1.15em 1.5em; }
.post-body li { line-height: 1.9; margin-bottom: 4px; }
.post-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px 0;
    border-radius: 10px;
}
.post-body blockquote {
    margin: 22px 0;
    padding: 4px 0 4px 18px;
    border-left: 3px solid var(--line);
    color: var(--ink-mute);
    line-height: 1.9;
}
.post-body pre {
    background: var(--inset-bg);
    padding: 16px 18px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 1.15em;
    font-size: 0.82rem;
    line-height: 1.7;
}
.post-body code {
    background: var(--inset-bg);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.86em;
}
.post-body pre code { background: none; padding: 0; }
.post-body hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }
.post-body a { color: var(--ink-date); }

/* ---------- B 站视频嵌入（16:9 自适应） ---------- */
.video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}
.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- 帖子底部的上一篇 / 下一篇 ---------- */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 26px;
    font-size: 0.88rem;
}
.post-nav a { color: var(--ink-date); text-decoration: none; }
.post-nav a:hover { color: var(--ink); }
.post-nav-next { margin-left: auto; text-align: right; }
.post-back { margin-top: 26px; font-size: 0.85rem; }
.post-back a { color: var(--ink-footer); text-decoration: none; }
.post-back a:hover { color: var(--ink); }

/* 只精确到月份的条目：日历不给它们标点，改用这句说明单独列出 */
.month-note {
    font-size: 0.82rem;
    color: var(--ink-footer);
    background: var(--inset-bg);
    padding: 12px 16px;
    border-radius: 10px;
    margin: 26px 0 18px;
    line-height: 1.7;
}

/* ---------- 响应式 ----------
   原版行为：
     index         ≤800px → 3rem   （无 700px 规则）
     major-events  ≤700px → 2rem   （701-800px 保持 3.5rem）
   用 :not(.hero--short) 精确复现，避免两页规则互相污染。            */
@media (max-width: 800px) {
    .feature-grid { grid-template-columns: 1fr; }
    .hero:not(.hero--short) { --hero-title: 3rem; }
    .section-note { margin-left: 0; }
}
@media (max-width: 900px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .cards-grid { grid-template-columns: 1fr; }
    .card { min-height: 0; }
}
@media (max-width: 700px) {
    .hero--short { --hero-title: 2rem; }
    .cal { max-width: 100%; }
}
