/* ========== 设计令牌 ========== */
:root {
    --paper: #FAF7F0;
    --paper-dark: #F2EDDF;
    --ink: #2C2A26;
    --ink-soft: #5A564E;
    --ink-faint: #9A9488;
    --seal: #C53D2E;
    --seal-dark: #A33024;
    --highlight: #F2D98D;
    --highlight-soft: #F7E8B8;
    --jade: #4A8B7C;
    --jade-dark: #3A6F63;
    
    --cat-life: #B8A9D9;
    --cat-work: #8FB8DE;
    --cat-emotion: #E8A5A5;
    --cat-internet: #A5D6A7;
    --cat-food: #FFCC80;
    --cat-game: #CE93D8;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 1px 2px rgba(44, 42, 38, 0.06);
    --shadow-md: 0 4px 12px rgba(44, 42, 38, 0.08);
    --shadow-lg: 0 12px 32px rgba(44, 42, 38, 0.12);
    
    --font-display: 'Noto Serif SC', serif;
    --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(44, 42, 38, 0.04) 1px, transparent 0);
    background-size: 24px 24px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ========== 导航栏 ========== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 247, 240, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(44, 42, 38, 0.08);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;   /* logo / 导航 / 搜索框之间的最小间距，宽屏再按 space-between 摊开 */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--ink);
    text-decoration: none;
    flex: 0 0 auto;      /* 不参与收缩 */
    white-space: nowrap; /* 空间紧张时也不把「梗百科」拆成两行 */
}

.logo-seal {
    width: 36px;
    height: 36px;
    background: var(--seal);
    color: var(--paper);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 18px;
    border-radius: 4px;
    letter-spacing: -1px;
    transform: rotate(-3deg);
    box-shadow: 0 2px 4px rgba(197, 61, 46, 0.3);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    flex: 0 0 auto;   /* 导航文字不参与收缩，避免被搜索框挤成两行 */
}

.nav-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-links a.active {
    color: var(--seal);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--seal);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 auto;
    min-width: 0;   /* 允许随导航一起压缩，收缩量才轮到里面的搜索框 */
}

/* 首页右上角「贡献词条」按钮（沿用原始模板，等价于 .btn-seal） */
.nav-contribute {
    white-space: nowrap;
    /* 原始模板此按钮是 <button>，Chrome UA 的 line-height:normal 使其高 40px；
       站点用 <a> 会继承 body 的 1.6 → 42.4px，故显式对齐 */
    line-height: normal;
}

.search-box-mini {
    position: relative;
    display: flex;
    align-items: center;
    /* 最长 260px；flex-shrink 默认为 1，导航放不下时自动变短，不挤坏导航 */
    flex: 0 1 auto;
    width: 260px;
    max-width: 260px;
    min-width: 0;
}

.search-box-mini input {
    width: 100%;
    min-width: 0;
    padding: 9px 36px 9px 16px;
    font-size: 14px;
    font-family: var(--font-body);
    border: 1px solid rgba(44, 42, 38, 0.12);
    border-radius: var(--radius-md);
    background: #FFF;
    color: var(--ink);
    outline: none;
    transition: all 0.2s;
}

.search-box-mini input:focus {
    border-color: var(--seal);
    box-shadow: 0 0 0 3px rgba(197, 61, 46, 0.1);
}

.search-box-mini input::placeholder {
    color: var(--ink-faint);
}

.search-box-mini svg {
    position: absolute;
    right: 12px;
    color: var(--ink-faint);
    pointer-events: none;
}

/* 宽度紧张时按档位收紧导航间距与搜索框上限，保证导航始终单行；
   到 640 以下整条 nav-links 隐藏，搜索框交给移动端规则铺满 */
@media (max-width: 1200px) {
    .nav-links { gap: 24px; }
}

@media (max-width: 1024px) {
    .nav-inner { gap: 24px; }
    .nav-links { gap: 18px; }
    .nav-links a { font-size: 14px; }
    .search-box-mini { width: 200px; max-width: 200px; }
}

@media (max-width: 860px) {
    .nav-inner { gap: 20px; }
    .nav-links { gap: 14px; }
    .search-box-mini { width: 170px; max-width: 170px; }
}

.btn-seal {
    background: var(--seal);
    color: var(--paper);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-seal:hover {
    background: var(--seal-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(197, 61, 46, 0.3);
}

.btn-large {
    padding: 14px 28px;
    font-size: 15px;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--ink-soft);
    border: 1px solid rgba(44, 42, 38, 0.15);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-outline:hover {
    border-color: var(--seal);
    color: var(--seal);
    background: rgba(197, 61, 46, 0.04);
}

.btn-icon {
    gap: 6px;
}

/* ========== 面包屑 ========== */
.breadcrumb {
    padding: 20px 0;
    border-bottom: 1px solid rgba(44, 42, 38, 0.06);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--seal);
}

.breadcrumb .sep {
    margin: 0 8px;
    color: var(--ink-faint);
}

.breadcrumb .current {
    color: var(--ink);
    font-weight: 500;
}

/* ========== 侧边栏通用 ========== */
.sidebar-card {
    background: #FFF;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(44, 42, 38, 0.06);
    margin-bottom: 20px;
}

.sidebar-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
    padding-left: 12px;
    position: relative;
}

.sidebar-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--seal);
    border-radius: 2px;
}

.sidebar-more {
    display: block;
    text-align: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(44, 42, 38, 0.08);
    color: var(--jade);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}

.sidebar-more:hover {
    color: var(--jade-dark);
}

.sidebar-desc {
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 14px;
    line-height: 1.6;
}

/* ========== 词条详情页 ========== */
.detail-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: 40px 32px 60px;
    max-width: 1280px;
    margin: 0 auto;
}

.detail-header {
    background: #FFF;
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid rgba(44, 42, 38, 0.06);
    margin-bottom: 24px;
}

.detail-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.detail-word {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 900;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -1px;
}

.detail-pinyin {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--ink-faint);
    margin-top: 6px;
}

.detail-actions {
    display: flex;
    gap: 10px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.detail-tag {
    padding: 4px 12px;
    background: rgba(197, 61, 46, 0.08);
    color: var(--seal);
    font-size: 13px;
    border-radius: 100px;
    font-weight: 500;
}

/* 词条数太少的标签不输出链接（避免薄页被爬虫抓），只保留视觉样式 */
.detail-tag.is-plain {
    background: rgba(44, 42, 38, 0.05);
    color: var(--ink-soft);
    cursor: default;
}

.detail-meta {
    display: flex;
    gap: 24px;
    padding-top: 18px;
    border-top: 1px dashed rgba(44, 42, 38, 0.1);
    font-size: 13px;
    color: var(--ink-soft);
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-section {
    background: #FFF;
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    border: 1px solid rgba(44, 42, 38, 0.06);
    margin-bottom: 20px;
}

.detail-section-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-num {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--seal);
    background: rgba(197, 61, 46, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.detail-definition {
    font-size: 15px;
    line-height: 1.9;
    color: var(--ink-soft);
    /* 纯文本词条（后台直接粘贴、未带 <p> 的）靠换行符分段，避免正文挤成一团 */
    white-space: pre-line;
}

.detail-definition p {
    margin-bottom: 14px;
}

.detail-definition p:last-child {
    margin-bottom: 0;
}

.detail-definition mark {
    background: var(--highlight);
    color: var(--ink);
    padding: 0 3px;
    border-radius: 2px;
}

/* 释义内自动互链：低调虚线，避免正文变成一片蓝色链接墙 */
.detail-definition a.word-link {
    color: var(--jade-dark);
    text-decoration: none;
    border-bottom: 1px dashed rgba(74, 139, 124, .5);
    transition: color .18s ease, border-color .18s ease;
}

.detail-definition a.word-link:hover {
    color: var(--seal);
    border-bottom: 1px solid var(--seal);
}

.detail-origin {
    font-size: 14px;
    line-height: 1.85;
    color: var(--ink-soft);
    background: var(--paper);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--jade);
    white-space: pre-line;
}

.detail-origin p {
    margin: 0 0 12px;
}

.detail-origin p:last-child {
    margin-bottom: 0;
}

.detail-examples {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.example-item {
    background: var(--paper);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink-soft);
    border: 1px solid rgba(44, 42, 38, 0.05);
    display: flex;
    gap: 12px;
}

.example-num {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--seal);
    flex-shrink: 0;
    opacity: 0.8;
}

.example-text {
    font-style: italic;
}

.example-text strong {
    color: var(--seal);
    font-weight: 600;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: var(--paper);
    border-radius: var(--radius-md);
}

.info-label {
    font-size: 12px;
    color: var(--ink-faint);
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

/* 侧边栏 */
.related-words {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.related-word {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.2s;
}

.related-word:hover {
    background: var(--paper);
}

.related-word-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

.related-word-cat {
    font-size: 12px;
    color: var(--ink-faint);
}

.hot-rank-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hot-rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.2s;
}

.hot-rank-item:hover {
    background: var(--paper);
}

.hot-rank-num {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-faint);
    width: 24px;
    text-align: center;
}

.hot-rank-num.top {
    color: var(--seal);
}

.hot-rank-name {
    font-size: 14px;
    color: var(--ink);
    flex: 1;
}

.hot-rank-hot {
    font-size: 12px;
    color: var(--ink-faint);
    font-family: var(--font-mono);
}

.sidebar-year {
    background: linear-gradient(135deg, var(--seal), var(--seal-dark));
    color: #FFF;
    border: none;
}

.sidebar-year .sidebar-title {
    color: #FFF;
}

.sidebar-year .sidebar-title::before {
    background: #FFF;
}

.sidebar-year .sidebar-desc {
    color: rgba(255, 255, 255, 0.85);
}

.sidebar-year .btn-seal {
    background: #FFF;
    color: var(--seal);
}

.sidebar-year .btn-seal:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========== 分类页 ========== */
.cat-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: 40px 0 60px;
}

.cat-sidebar {
    position: sticky;
    top: 88px;
    align-self: start;
}

.cat-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--ink-soft);
    transition: all 0.2s;
    font-size: 14px;
}

.cat-item:hover {
    background: #FFF;
    color: var(--ink);
}

.cat-item.active {
    background: #FFF;
    color: var(--seal);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.cat-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.cat-name {
    flex: 1;
}

.cat-count {
    font-size: 12px;
    color: var(--ink-faint);
    font-family: var(--font-mono);
}

.cat-item.active .cat-count {
    color: var(--seal);
    opacity: 0.7;
}

.cat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 24px;
}

/* 左侧标题 + 描述自适应剩余宽度，右侧统计数字固定不被压缩；
   原先 flex 无 gap，描述右界与数字左界重合，文字会贴到数字上 */
.cat-header > div:first-child {
    flex: 1;
    min-width: 0;
}

.cat-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.5px;
}

.cat-desc {
    color: var(--ink-soft);
    font-size: 15px;
    margin-top: 6px;
}

.cat-count-big {
    flex-shrink: 0;
    text-align: right;
}

.count-num {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    color: var(--seal);
    line-height: 1;
}

.count-label {
    font-size: 13px;
    color: var(--ink-soft);
}

.cat-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: #FFF;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(44, 42, 38, 0.06);
}

.sort-tabs {
    display: flex;
    gap: 4px;
}

.sort-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--ink-soft);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all 0.2s;
}

.sort-tab:hover {
    background: var(--paper);
    color: var(--ink);
}

.sort-tab.active {
    background: rgba(197, 61, 46, 0.1);
    color: var(--seal);
}

.sort-label-short { display: none; }

.filter-select {
    padding: 8px 30px 8px 14px;
    font-size: 14px;
    font-family: var(--font-body);
    border: 1px solid rgba(44, 42, 38, 0.12);
    border-radius: var(--radius-md);
    background: #FFF;
    color: var(--ink);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A564E' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.word-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.word-list-item {
    display: flex;
    gap: 20px;
    padding: 24px 28px;
    background: #FFF;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(44, 42, 38, 0.06);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.word-list-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(197, 61, 46, 0.2);
}

.wli-left {
    flex-shrink: 0;
}

.wli-rank {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--ink-faint);
    background: var(--paper);
    border-radius: var(--radius-md);
}

.wli-rank.top {
    background: rgba(197, 61, 46, 0.1);
    color: var(--seal);
}

.wli-main {
    flex: 1;
    min-width: 0;
}

.wli-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.wli-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}

.wli-pinyin {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ink-faint);
}

.wli-cat {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.wli-desc {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 10px;
}

.wli-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.wli-tag {
    font-size: 12px;
    color: var(--ink-faint);
    background: var(--paper);
    padding: 2px 8px;
    border-radius: 4px;
}

.wli-right {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.wli-hot {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--seal);
}

.wli-year {
    font-size: 12px;
    color: var(--ink-faint);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
}

.page-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #FFF;
    border: 1px solid rgba(44, 42, 38, 0.1);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--ink-soft);
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--seal);
    color: var(--seal);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 4px;
    margin: 0 8px;
}

.page-num {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: #FFF;
    border: 1px solid rgba(44, 42, 38, 0.1);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--ink-soft);
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.page-num:hover {
    border-color: var(--seal);
    color: var(--seal);
}

.page-num.active {
    background: var(--seal);
    color: #FFF;
    border-color: var(--seal);
}

.page-dots {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--ink-faint);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #FFF;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(44, 42, 38, 0.06);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--ink-soft);
    margin-bottom: 20px;
    font-size: 15px;
}

/* ========== 年度盘点页 ========== */
.year-hero {
    background: linear-gradient(135deg, #2C2A26 0%, #4A3F35 100%);
    color: var(--paper);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.year-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.year-hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(197, 61, 46, 0.2);
    color: #F5B7B0;
    font-size: 13px;
    font-weight: 500;
    border-radius: 100px;
    margin-bottom: 20px;
}

.year-hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.year-hero-title .accent {
    background: linear-gradient(135deg, var(--highlight), #F7E8B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.year-hero-desc {
    font-size: 17px;
    color: rgba(250, 247, 240, 0.7);
    line-height: 1.8;
    margin-bottom: 40px;
}

.year-hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 900;
    color: var(--highlight);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 14px;
    color: rgba(250, 247, 240, 0.6);
}

.year-hero-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
}

.deco-word {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 48px;
    color: #FFF;
    animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.year-timeline {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 32px 0;
    position: relative;
    --yt-cols: 19;
}

/* 横线正好从首个圆点圆心连到末个圆点圆心（列宽 = 100% / 年份数） */
.year-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(100% / var(--yt-cols) / 2);
    right: calc(100% / var(--yt-cols) / 2);
    height: 2px;
    background: rgba(44, 42, 38, 0.1);
    transform: translateY(-50%);
}

.year-time-btn {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    position: relative;
    z-index: 1;
    text-decoration: none;
}

.yt-year {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-faint);
    transition: all 0.2s;
    white-space: nowrap;
}

.yt-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #FFF;
    border: 2px solid rgba(44, 42, 38, 0.2);
    transition: all 0.2s;
}

.year-time-btn:hover .yt-year {
    color: var(--ink);
}

.year-time-btn:hover .yt-dot {
    border-color: var(--seal);
}

.year-time-btn.active .yt-year {
    color: var(--seal);
    font-size: 20px;
    font-weight: 900;
}

.year-time-btn.active .yt-dot {
    background: var(--seal);
    border-color: var(--seal);
    width: 18px;
    height: 18px;
    box-shadow: 0 0 0 4px rgba(197, 61, 46, 0.2);
}

/* 时间轴固定展示 10 条，窗口外还有年份的一端做渐隐，暗示可继续翻 */
.year-timeline.has-prev,
.year-timeline.has-next {
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.year-timeline.has-prev {
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0, #000 58px);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0, #000 58px);
}

.year-timeline.has-next {
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0) 0, #000 58px);
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 0) 0, #000 58px);
}

.year-timeline.has-prev.has-next {
    -webkit-mask-image: linear-gradient(to right,
        rgba(0, 0, 0, 0) 0, #000 58px, #000 calc(100% - 58px), rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to right,
        rgba(0, 0, 0, 0) 0, #000 58px, #000 calc(100% - 58px), rgba(0, 0, 0, 0) 100%);
}

.year-content {
    padding: 20px 0 60px;
}

.year-full-header {
    text-align: center;
    margin-bottom: 36px;
}

.year-big {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 900;
    color: var(--seal);
    line-height: 1;
    opacity: 0.15;
    letter-spacing: -4px;
    display: block;
    margin-bottom: -16px;
}

.year-full-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.5px;
}

.year-full-subtitle {
    font-size: 16px;
    color: var(--ink-soft);
    margin-top: 8px;
}

.year-review {
    display: flex;
    gap: 20px;
    padding: 28px 32px;
    background: #FFF;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(44, 42, 38, 0.06);
    margin-bottom: 32px;
    border-left: 4px solid var(--jade);
}

.year-review-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.year-review-text h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.year-review-text p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--ink-soft);
}

.year-top-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.year-top-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    background: #FFF;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(44, 42, 38, 0.06);
    text-decoration: none;
    transition: all 0.25s;
}

.year-top-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(197, 61, 46, 0.2);
}

.yti-rank {
    flex-shrink: 0;
}

.yti-rank-num {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    color: var(--ink-faint);
    background: var(--paper);
    border-radius: var(--radius-md);
}

.yti-rank-num.top {
    background: linear-gradient(135deg, var(--seal), var(--seal-dark));
    color: #FFF;
    box-shadow: 0 4px 12px rgba(197, 61, 46, 0.3);
}

.yti-main {
    flex: 1;
    min-width: 0;
}

.yti-word {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.yti-desc {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.6;
}

.yti-cat {
    font-size: 13px;
    padding: 4px 12px;
    background: var(--paper);
    color: var(--ink-soft);
    border-radius: 100px;
    flex-shrink: 0;
}

.yti-arrow {
    color: var(--ink-faint);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.year-top-item:hover .yti-arrow {
    transform: translateX(4px);
    color: var(--seal);
}

.year-cards-section {
    padding: 40px 0 80px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    position: relative;
    padding-left: 16px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background: var(--seal);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--ink-soft);
    font-size: 14px;
    margin-top: 6px;
}

.year-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.year-card {
    background: #FFF;
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid rgba(44, 42, 38, 0.06);
    cursor: pointer;
    transition: all 0.25s;
}

.year-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(197, 61, 46, 0.2);
}

.yc-year {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    color: var(--seal);
    line-height: 1;
    margin-bottom: 8px;
}

.yc-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
}

.yc-words {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.yc-words span {
    font-size: 12px;
    padding: 4px 10px;
    background: var(--paper);
    color: var(--ink-soft);
    border-radius: 4px;
}

.yc-more {
    font-size: 13px;
    color: var(--seal);
    font-weight: 500;
    padding-top: 16px;
    border-top: 1px dashed rgba(44, 42, 38, 0.08);
}

/* ========== 关于页 ========== */
.about-page {
    padding: 40px 32px 80px;
    max-width: 900px;
}

.about-hero {
    text-align: center;
    padding: 40px 0 60px;
}

.about-logo-big {
    margin-bottom: 20px;
}

.logo-seal-large {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    background: var(--seal);
    color: var(--paper);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 36px;
    border-radius: 8px;
    transform: rotate(-3deg);
    box-shadow: 0 6px 20px rgba(197, 61, 46, 0.3);
}

.about-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.about-title-en {
    font-family: var(--font-mono);
    font-size: 20px;
    color: var(--ink-faint);
    font-weight: 400;
    margin-left: 8px;
}

.about-slogan {
    font-size: 18px;
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-weight: 500;
}

.about-section {
    margin-bottom: 48px;
}

.about-section-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(44, 42, 38, 0.08);
}

.ast-num {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--seal);
    background: rgba(197, 61, 46, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.about-content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--ink-soft);
}

.about-content p {
    margin-bottom: 16px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content a {
    color: var(--seal);
    text-decoration: none;
    font-weight: 500;
}

.about-content a:hover {
    text-decoration: underline;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.about-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-soft);
}

.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: rgba(74, 139, 124, 0.15);
    color: var(--jade);
    border-radius: 50%;
    font-size: 12px;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.about-list strong {
    color: var(--ink);
    font-weight: 600;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.about-feature {
    background: #FFF;
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(44, 42, 38, 0.06);
    transition: all 0.25s;
}

.about-feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.af-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.about-feature h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.about-feature p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink-soft);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.about-stat-card {
    background: #FFF;
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(44, 42, 38, 0.06);
    text-align: center;
}

.as-num {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    color: var(--seal);
    line-height: 1;
    margin-bottom: 6px;
}

.as-label {
    font-size: 13px;
    color: var(--ink-soft);
}

.changelog {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.changelog-item {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(44, 42, 38, 0.06);
}

.changelog-item:last-child {
    border-bottom: none;
}

.cl-date {
    flex-shrink: 0;
    width: 90px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--seal);
    font-weight: 600;
    padding-top: 2px;
}

.cl-content {
    flex: 1;
}

.cl-version {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.cl-content ul {
    list-style: none;
    padding: 0;
}

.cl-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.6;
}

.cl-content li::before {
    content: '·';
    position: absolute;
    left: 8px;
    color: var(--ink-faint);
    font-weight: 700;
}

.about-contact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.contact-item {
    background: #FFF;
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(44, 42, 38, 0.06);
    text-align: center;
    transition: all 0.25s;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.ci-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.ci-label {
    font-size: 13px;
    color: var(--ink-faint);
    margin-bottom: 6px;
}

.ci-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    font-family: var(--font-mono);
    overflow-wrap: anywhere;
}

.ci-value a {
    text-decoration: none;
    color: var(--seal);
}

.ci-value a:hover {
    color: var(--seal-dark);
}

/* ========== 投稿页 ========== */
.submit-page {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: 40px 32px 80px;
    max-width: 1280px;
    margin: 0 auto;
}

.submit-header {
    margin-bottom: 32px;
}

.submit-header h1 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.submit-header p {
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.7;
}

.submit-form {
    background: #FFF;
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    border: 1px solid rgba(44, 42, 38, 0.06);
}

.form-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px dashed rgba(44, 42, 38, 0.08);
}

.form-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.form-section-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title::before {
    content: '';
    width: 3px;
    height: 20px;
    background: var(--seal);
    border-radius: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 8px;
}

.required {
    color: var(--seal);
    margin-left: 2px;
}

.form-input {
    width: 100%;
    padding: 11px 16px;
    font-size: 15px;
    font-family: var(--font-body);
    border: 1px solid rgba(44, 42, 38, 0.12);
    border-radius: var(--radius-md);
    background: #FFF;
    color: var(--ink);
    outline: none;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: var(--seal);
    box-shadow: 0 0 0 3px rgba(197, 61, 46, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: var(--font-body);
    border: 1px solid rgba(44, 42, 38, 0.12);
    border-radius: var(--radius-md);
    background: #FFF;
    color: var(--ink);
    outline: none;
    resize: vertical;
    line-height: 1.6;
    transition: all 0.2s;
}

.form-textarea:focus {
    border-color: var(--seal);
    box-shadow: 0 0 0 3px rgba(197, 61, 46, 0.1);
}

.form-hint {
    font-size: 12px;
    color: var(--ink-faint);
    margin-top: 6px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(44, 42, 38, 0.06);
}

.submit-success {
    display: none;
    text-align: center;
    padding: 60px 40px;
    background: #FFF;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(44, 42, 38, 0.06);
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.submit-success h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
}

.submit-success p {
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.8;
    margin-bottom: 28px;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.submit-rules {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.submit-rules li {
    display: flex;
    gap: 12px;
}

.rule-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.submit-rules strong {
    display: block;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 2px;
}

.submit-rules p {
    font-size: 12px;
    color: var(--ink-soft);
    line-height: 1.6;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 14px;
    transition: all 0.2s;
}

.sidebar-action-item:hover {
    background: var(--paper);
    color: var(--ink);
}

.sai-icon {
    font-size: 18px;
}

.sidebar-stats {
    background: linear-gradient(135deg, var(--jade), var(--jade-dark));
    color: #FFF;
    border: none;
}

.sidebar-stats .sidebar-title {
    color: #FFF;
}

.sidebar-stats .sidebar-title::before {
    background: #FFF;
}

.contrib-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
}

.contrib-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cs-num {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    color: var(--highlight);
    line-height: 1;
}

.cs-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
}

/* ========== 底部 ========== */
.footer {
    background: var(--ink);
    color: rgba(250, 247, 240, 0.7);
    padding: 48px 32px 32px;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(250, 247, 240, 0.1);
}

.footer-brand .logo {
    color: var(--paper);
    margin-bottom: 16px;
}

.footer-brand .logo-seal {
    background: var(--seal);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    max-width: 360px;
}

.footer-col h4 {
    color: var(--paper);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: rgba(250, 247, 240, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--paper);
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(250, 247, 240, 0.4);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    /* 单列必须写 minmax(0,1fr)：`1fr` 的最小值是 auto（= 内容 min-content），
       词条拼音是 white-space:nowrap，会把整列顶到 400px+ 并撑出横向滚动条 */
    .detail-main {
        grid-template-columns: minmax(0, 1fr);
    }
    .detail-sidebar {
        order: -1;
    }
    .cat-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .cat-sidebar {
        position: static;
    }
    .cat-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .year-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .submit-page {
        grid-template-columns: 1fr;
    }
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-contact {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .nav-inner { padding: 12px 20px; }
    .nav-links { display: none; }
    .container { padding: 0 20px; }
    .detail-main { padding: 24px 20px 40px; }
    .detail-word { font-size: 36px; }
    .detail-section { padding: 24px; }
    .detail-info-grid { grid-template-columns: 1fr; }
    .cat-header { flex-direction: row; align-items: flex-start; }
    .cat-toolbar { flex-direction: column; gap: 12px; align-items: flex-start; }
    .year-cards-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .submit-form { padding: 24px; }
    .footer-top { grid-template-columns: 1fr; padding-bottom: 28px; }
    .footer-col { display: none; }
    .footer-brand { text-align: center; }
    .footer-brand .logo { justify-content: center; }
    .footer-brand p { margin-left: auto; margin-right: auto; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}


/* ============================================================
   首页专用样式（自模板 index.html 内联样式迁移）
   ============================================================ */

        /* 首页独有样式 */
        .hero {
            max-width: 1280px;
            margin: 0 auto;
            padding: 80px 32px 60px;
            text-align: center;
            position: relative;
        }

        .hero-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 16px;
            background: var(--highlight-soft);
            color: var(--ink);
            font-size: 13px;
            font-weight: 500;
            border-radius: 100px;
            margin-bottom: 24px;
        }

        .hero-eyebrow .dot {
            width: 6px;
            height: 6px;
            background: var(--seal);
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.4; }
        }

        .hero h1 {
            font-family: var(--font-display);
            font-size: clamp(40px, 6vw, 72px);
            font-weight: 900;
            line-height: 1.15;
            margin-bottom: 20px;
            letter-spacing: -1px;
        }

        .hero h1 .accent {
            position: relative;
            display: inline-block;
        }

        .hero h1 .accent::after {
            content: '';
            position: absolute;
            bottom: 8px;
            left: -4px;
            right: -4px;
            height: 16px;
            background: var(--highlight);
            z-index: -1;
            transform: skewX(-6deg);
            opacity: 0.7;
        }

        .hero p {
            font-size: 18px;
            color: var(--ink-soft);
            max-width: 600px;
            margin: 0 auto 40px;
            line-height: 1.7;
        }

        .search-box {
            max-width: 560px;
            margin: 0 auto;
            position: relative;
        }

        .search-box input {
            width: 100%;
            padding: 18px 60px 18px 24px;
            font-size: 16px;
            font-family: var(--font-body);
            border: 2px solid rgba(44, 42, 38, 0.12);
            border-radius: var(--radius-lg);
            background: #FFF;
            color: var(--ink);
            outline: none;
            transition: all 0.2s;
            box-shadow: var(--shadow-sm);
        }

        .search-box input:focus {
            border-color: var(--seal);
            box-shadow: 0 0 0 4px rgba(197, 61, 46, 0.1);
        }

        .search-box input::placeholder {
            color: var(--ink-faint);
        }

        .search-box button {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            width: 44px;
            height: 44px;
            background: var(--seal);
            color: #FFF;
            border: none;
            border-radius: var(--radius-md);
            cursor: pointer;
            display: grid;
            place-items: center;
            transition: all 0.2s;
        }

        .search-box button:hover {
            background: var(--seal-dark);
        }

        .hot-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            margin-top: 24px;
        }

        .hot-tags-label {
            font-size: 13px;
            color: var(--ink-faint);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .hot-tag {
            padding: 4px 12px;
            background: rgba(197, 61, 46, 0.08);
            color: var(--seal);
            font-size: 13px;
            border-radius: 100px;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 500;
        }

        .hot-tag:hover {
            background: var(--seal);
            color: #FFF;
        }

        /* 分类区 */
        .section {
            max-width: 1280px;
            margin: 0 auto;
            padding: 40px 32px;
        }

        .section-header {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            margin-bottom: 32px;
        }

        .section-title {
            font-family: var(--font-display);
            font-size: 28px;
            font-weight: 700;
            color: var(--ink);
            position: relative;
            padding-left: 16px;
        }

        .section-title::before {
            content: '';
            position: absolute;
            left: 0;
            top: 8px;
            bottom: 8px;
            width: 4px;
            background: var(--seal);
            border-radius: 2px;
        }

        .section-subtitle {
            color: var(--ink-soft);
            font-size: 14px;
            margin-top: 6px;
        }

        .section-link {
            color: var(--jade);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .section-link:hover {
            color: var(--jade-dark);
        }

        .categories {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 16px;
        }

        .category-card {
            background: #FFF;
            border-radius: var(--radius-lg);
            padding: 24px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid rgba(44, 42, 38, 0.06);
            position: relative;
            overflow: hidden;
            text-decoration: none;
            display: block;
        }

        .category-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
        }

        .category-icon {
            width: 48px;
            height: 48px;
            margin: 0 auto 12px;
            border-radius: var(--radius-md);
            display: grid;
            place-items: center;
            font-size: 24px;
        }

        .category-name {
            font-weight: 600;
            font-size: 15px;
            color: var(--ink);
            margin-bottom: 4px;
        }

        .category-count {
            font-size: 12px;
            color: var(--ink-faint);
            font-family: var(--font-mono);
        }

        .category-card[data-cat="life"] .category-icon { background: rgba(184, 169, 217, 0.25); }
        .category-card[data-cat="work"] .category-icon { background: rgba(143, 184, 222, 0.25); }
        .category-card[data-cat="emotion"] .category-icon { background: rgba(232, 165, 165, 0.25); }
        .category-card[data-cat="internet"] .category-icon { background: rgba(165, 214, 167, 0.25); }
        .category-card[data-cat="food"] .category-icon { background: rgba(255, 204, 128, 0.3); }
        .category-card[data-cat="game"] .category-icon { background: rgba(206, 147, 216, 0.25); }

        /* 热门词条区 */
        .words-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        .word-card {
            background: #FFF;
            border-radius: var(--radius-lg);
            padding: 28px;
            border: 1px solid rgba(44, 42, 38, 0.06);
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            position: relative;
            text-decoration: none;
            display: block;
        }

        .word-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-lg);
            border-color: rgba(197, 61, 46, 0.2);
        }

        .word-card-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            margin-bottom: 12px;
        }

        .word-rank {
            font-family: var(--font-display);
            font-size: 32px;
            font-weight: 900;
            color: var(--ink-faint);
            line-height: 1;
            opacity: 0.4;
        }

        .word-card[data-rank="1"] .word-rank { color: var(--seal); opacity: 1; }
        .word-card[data-rank="2"] .word-rank { color: #E67E22; opacity: 0.85; }
        .word-card[data-rank="3"] .word-rank { color: #D4A843; opacity: 0.85; }

        .word-seal-tag {
            padding: 4px 10px;
            font-size: 12px;
            font-weight: 500;
            border-radius: 4px;
            color: #FFF;
            font-family: var(--font-display);
            letter-spacing: 0.5px;
            transform: rotate(-2deg);
        }

        .word-seal-tag.life { background: var(--cat-life); }
        .word-seal-tag.work { background: var(--cat-work); }
        .word-seal-tag.emotion { background: var(--cat-emotion); }
        .word-seal-tag.internet { background: var(--cat-internet); color: var(--ink); }
        .word-seal-tag.food { background: var(--cat-food); color: var(--ink); }
        .word-seal-tag.game { background: var(--cat-game); }

        .word-title {
            font-family: var(--font-display);
            font-size: 26px;
            font-weight: 700;
            color: var(--ink);
            margin-bottom: 8px;
            letter-spacing: -0.5px;
        }

        .word-pinyin {
            font-family: var(--font-mono);
            font-size: 13px;
            color: var(--ink-faint);
            margin-bottom: 14px;
        }

        .word-short-def {
            font-size: 14px;
            color: var(--ink-soft);
            line-height: 1.7;
            margin-bottom: 18px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .word-short-def mark {
            background: var(--highlight);
            color: var(--ink);
            padding: 0 2px;
            border-radius: 2px;
        }

        .word-card-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-top: 16px;
            border-top: 1px dashed rgba(44, 42, 38, 0.1);
        }

        .word-stats {
            display: flex;
            gap: 16px;
            font-size: 12px;
            color: var(--ink-faint);
        }

        .word-stat {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .word-trend {
            font-size: 12px;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 100px;
        }

        .word-trend.up {
            background: rgba(74, 139, 124, 0.12);
            color: var(--jade);
        }

        .word-trend.hot {
            background: rgba(197, 61, 46, 0.12);
            color: var(--seal);
        }

        .word-trend.flat {
            background: rgba(140, 140, 140, 0.12);
            color: #8c8c8c;
        }

        /* 年度盘点区 */
        .year-section {
            background: var(--paper-dark);
            padding: 60px 0;
            margin: 40px 0;
            position: relative;
            overflow: hidden;
        }

        .year-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(44, 42, 38, 0.15), transparent);
        }

        .year-section::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(44, 42, 38, 0.15), transparent);
        }

        .year-inner {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 32px;
        }

        .year-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 32px;
            flex-wrap: wrap;
        }

        .year-tab {
            padding: 8px 20px;
            background: #FFF;
            border: 1px solid rgba(44, 42, 38, 0.1);
            border-radius: 100px;
            font-family: var(--font-display);
            font-size: 15px;
            font-weight: 600;
            color: var(--ink-soft);
            cursor: pointer;
            transition: all 0.2s;
        }

        .year-tab:hover {
            border-color: var(--seal);
            color: var(--seal);
        }

        .year-tab.active {
            background: var(--seal);
            color: #FFF;
            border-color: var(--seal);
        }

        .year-words {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 16px;
        }

        .year-word-card {
            background: #FFF;
            border-radius: var(--radius-md);
            padding: 20px;
            text-align: center;
            transition: all 0.25s;
            cursor: pointer;
            border: 1px solid rgba(44, 42, 38, 0.06);
            text-decoration: none;
            display: block;
        }

        .year-word-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .year-word-num {
            font-family: var(--font-display);
            font-size: 14px;
            color: var(--seal);
            font-weight: 700;
            margin-bottom: 8px;
        }

        .year-word-title {
            font-family: var(--font-display);
            font-size: 20px;
            font-weight: 700;
            color: var(--ink);
            margin-bottom: 6px;
        }

        .year-word-desc {
            font-size: 12px;
            color: var(--ink-soft);
            line-height: 1.5;
        }

        @media (max-width: 1024px) {
            .categories { grid-template-columns: repeat(3, 1fr); }
            .words-grid { grid-template-columns: repeat(2, 1fr); }
            .year-words { grid-template-columns: repeat(3, 1fr); }
        }

        @media (max-width: 640px) {
            .hero { padding: 48px 20px 40px; }
            .section { padding: 32px 20px; }
            .year-inner { padding: 0 20px; }  /* 与其他区左右留白对齐：32px → 20px */
            .categories { grid-template-columns: repeat(2, 1fr); }
            .words-grid { grid-template-columns: 1fr; }
            .year-words { grid-template-columns: repeat(2, 1fr); }
            /* 年度按钮：移动端单行横滑，选中项点击居中 */
            .year-section .year-tabs {
                flex-wrap: nowrap;
                overflow-x: auto;
                overflow-y: hidden;
                justify-content: flex-start;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                -ms-overflow-style: none;
            }
            .year-section .year-tabs::-webkit-scrollbar { display: none; }
            .year-section .year-tab { flex: 0 0 auto; }
        }
    
/* ============================================================
   CMS 补充样式（分页链接、提示条、移动端导航等）
   ============================================================ */

a { color: inherit; }

.pagination a.page-num,
.pagination a.page-btn {
    text-decoration: none;
    color: var(--ink);
    line-height: 1;
}

.pagination a.page-num.active {
    color: #FFF;
}

.pagination a.page-btn:hover {
    border-color: var(--seal);
    color: var(--seal);
}

.pagination a.page-btn.is-disabled,
.pagination a.page-num.is-disabled {
    opacity: .45;
    pointer-events: none;
}

/* 排序 / 年份标签支持链接形态 */
a.sort-tab,
a.year-tab,
a.hot-tag,
a.cat-item {
    text-decoration: none;
}

.year-tab { display: inline-block; }

/* 顶部提示条 */
.flash-bar {
    max-width: 1280px;
    margin: 18px auto -6px;
    padding: 0 32px;
}
.flash-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 8px;
    border: 1px solid transparent;
}
.flash-success { background: #EAF5EF; color: #2F7A5F; border-color: #C7E6D5; }
.flash-error   { background: #FDECEA; color: #A33024; border-color: #F3C9C3; }
.flash-info    { background: #F1F4F8; color: #3A5A78; border-color: #D8E2EC; }

/* 结果统计 */
.list-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--ink-faint);
    margin-bottom: 16px;
}
.list-summary .current-filter {
    color: var(--seal);
    font-weight: 500;
}

/* 搜索页标题 */
.search-hero {
    padding: 40px 0 8px;
}
.search-hero h1 {
    font-family: var(--font-display);
    font-size: 28px;
    margin-bottom: 8px;
}
.search-hero h1 em {
    color: var(--seal);
    font-style: normal;
}
.search-hero p { color: var(--ink-soft); font-size: 14px; }

/* 表单报错 */
.form-error-text {
    color: #A33024;
    font-size: 13px;
    margin-top: 6px;
}
.input-error {
    border-color: #E2A49C !important;
    background: #FFF9F8;
}

/* 标签链接 */
.tag-link {
    text-decoration: none;
    padding: 5px 7px;
}
.tag-link:hover { background: var(--seal); color: #FFF; }

@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-inner { padding: 12px 20px; }
    .flash-bar { padding: 0 20px; }
    .footer-inner { padding: 32px 20px; }
}

/* 详情页收藏态 */
.btn-outline.collected {
    border-color: var(--seal);
    color: var(--seal);
}

/* 文章正文表格（后台富文本可能插入） */
.detail-definition table,
.detail-origin table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 14px;
}
.detail-definition th,
.detail-definition td,
.detail-origin th,
.detail-origin td {
    border: 1px solid rgba(44, 42, 38, .12);
    padding: 8px 10px;
}

/* 单页正文 */
.page-body .about-section:first-child { margin-top: 0; }

/* 分页信息 */
.page-info {
    text-align: center;
    font-size: 13px;
    color: var(--ink-faint);
    padding-bottom: 20px;
}

/* 导航搜索按钮 */
.search-submit {
    position: absolute;
    right: 6px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--ink-faint);
    cursor: pointer;
    display: grid;
    place-items: center;
    border-radius: 6px;
}
.search-submit:hover { color: var(--seal); }

/* ========== 404 页面 ========== */
.nf {
    min-height: 60vh;
    display: grid;
    place-items: center;
    padding: 72px 24px 88px;
}

.nf-inner {
    max-width: 620px;
    text-align: center;
}

.nf-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

/* 印章风格的大号 404 */
.nf-seal {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 108px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 4px;
    color: var(--seal);
    padding: 10px 26px 16px;
    border: 4px solid var(--seal);
    border-radius: 10px;
    opacity: .85;
    transform: rotate(-3deg);
}

.nf-code-sub {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--ink-faint);
}

.nf-title {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--ink);
}

.nf-desc {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.nf-search {
    position: relative;
    max-width: 440px;
    margin: 0 auto 26px;
}

.nf-search input {
    width: 100%;
    padding: 14px 52px 14px 20px;
    border: 2px solid rgba(44, 42, 38, .12);
    border-radius: 999px;
    background: #FFF;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    outline: none;
    transition: border-color .2s ease;
}

.nf-search input:focus { border-color: var(--seal); }

.nf-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: var(--seal);
    color: var(--paper);
    cursor: pointer;
    transition: background .2s ease;
}

.nf-search button:hover { background: var(--seal-dark); }

.nf-hot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 34px;
}

.nf-hot-label {
    font-size: 13px;
    color: var(--ink-faint);
    margin-right: 2px;
}

.nf-hot-tag {
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--paper-dark);
    color: var(--ink-soft);
    font-size: 13px;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.nf-hot-tag:hover {
    background: var(--seal);
    color: var(--paper);
}

.nf-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .nf-seal { font-size: 72px; padding: 8px 18px 12px; }
    .nf-title { font-size: 23px; }
    .nf { padding: 48px 20px 64px; }
}

/* 首页 hero 搜索表单 */
form.search-box { max-width: 560px; margin: 0 auto; position: relative; }

/* ========== 友情链接（单行文字链，hover 显示站点简介） ==========
   紧凑排布：上下留白收窄（不沿用 .section 的 40px 大留白），
   字号回到上一版的视觉量级（标签 16px / 链接 15px）。
   ============================================================ */
#friendLinks {
    /* 上一区块 .year-section 自带 margin-bottom:40px，会顶出一大块空白；
       这里用负外边距全额抵掉 40px，只作用于友链自身，不改动 year-section，其它页面零影响 */
    margin-top: -40px;
    padding: 18px 32px 0px;
}

/* 页脚全站统一 margin-top:60px，只有首页「友链之后」收窄，其它页面保持原样 */
.page-home .footer {
    margin-top: 15px;
}

.flink-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 22px;
}

.flink-label {
    flex: none;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 1px;
    line-height: 1.5;
}

.flink-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
    min-width: 0;
}

.flink-item {
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color .15s ease;
}

.flink-item:hover {
    color: var(--seal);
}

@media (max-width: 640px) {
    #friendLinks { padding: 14px 20px 16px; }
    .flink-row { gap: 8px 16px; }
    .flink-list { gap: 8px 20px; }
    .flink-item { font-size: 15px; }
}

/* ========== 年度盘点索引页 ========== */
.year-badge-latest {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 9px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.7;
    color: #FAF7F0;
    background: var(--seal);
    border-radius: 999px;
    vertical-align: 8px;
}

.year-card-latest {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #FFFFFF 0%, #FBF3E8 100%);
    border-color: rgba(197, 61, 46, 0.14);
}

.year-card-latest .yc-year {
    font-size: 44px;
}

.year-card-latest .yc-title {
    font-size: 22px;
}

.year-index-note {
    margin-top: 36px;
}

@media (max-width: 768px) {
    .year-card-latest {
        grid-column: auto;
    }

    .year-card-latest .yc-year {
        font-size: 36px;
    }

    .year-index-note {
        margin-top: 24px;
    }
}

/* ============================================================
   响应式强化：平板（≤1024px）/ 手机（≤640px）
   —— 全部集中在此段，桌面端（>1024px）零影响
   ============================================================ */

/* ---- A. 平板/手机通用：分类导航竖排列表 → 横向滑动胶囊条 ---- */
@media (max-width: 1024px) {
    .cat-layout { min-width: 0; }
    /* min-width:0 必须加：nowrap 胶囊的最小内容宽度会把 grid 列撑到上千像素 */
    .cat-sidebar { position: static; margin-bottom: 16px; min-width: 0; }
    .cat-sidebar .sidebar-title { display: none; }
    .cat-sidebar .cat-list {
        min-width: 0;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding: 2px 0 8px;
        margin: 0;
    }
    .cat-sidebar .cat-item {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 8px 10px;
        border-radius: 999px;
        background: #FFF;
        border: 1px solid rgba(44, 42, 38, 0.08);
        font-size: 13.5px;
        gap: 6px;
    }
    .cat-sidebar .cat-item:hover { border-color: rgba(197, 61, 46, 0.25); }
    .cat-sidebar .cat-item.active {
        background: rgba(197, 61, 46, 0.08);
        border-color: rgba(197, 61, 46, 0.28);
        box-shadow: none;
    }
    .cat-sidebar .cat-icon { width: auto; font-size: 15px; }
    .cat-sidebar .cat-name { flex: none; }
    .cat-sidebar .cat-count { display: none; }

    /* 单列布局下正文优先：相关词条 / 热榜一律排到正文之后 */
    .detail-sidebar { order: 2; }
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
    .nav-inner { padding: 16px 24px; }
    .cat-sidebar .cat-list { padding: 4px 0 8px; margin: 0; }
    .detail-main { gap: 20px; padding: 24px 24px 48px; }

    /* 年度时间线：窄屏沿用桌面同一套「年份 + 圆点 + 横线」，只按比例缩小尺寸
       （条数由模板按设备给 7 条，仍以当前年份居中、两端渐隐） */
    .year-timeline { padding: 24px 0; }
    .year-time-btn { gap: 6px; padding: 0 2px; }
    .yt-year { font-size: 13px; }
    .year-time-btn.active .yt-year { font-size: 14px; }
    .yt-dot { width: 10px; height: 10px; }
    .year-time-btn.active .yt-dot {
        width: 12px;
        height: 12px;
        box-shadow: 0 0 0 3px rgba(197, 61, 46, 0.2);
    }
    /* 屏幕窄，渐隐带也要收窄，否则两端年份会整条被吃掉 */
    .year-timeline.has-prev {
        -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0, #000 22px);
        mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0, #000 22px);
    }
    .year-timeline.has-next {
        -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0) 0, #000 22px);
        mask-image: linear-gradient(to left, rgba(0, 0, 0, 0) 0, #000 22px);
    }
    .year-timeline.has-prev.has-next {
        -webkit-mask-image: linear-gradient(to right,
            rgba(0, 0, 0, 0) 0, #000 22px, #000 calc(100% - 22px), rgba(0, 0, 0, 0) 100%);
        mask-image: linear-gradient(to right,
            rgba(0, 0, 0, 0) 0, #000 22px, #000 calc(100% - 22px), rgba(0, 0, 0, 0) 100%);
    }
}

/* 超窄屏（≤360）：7 个年份再收一档字号，320 宽也不贴字 */
@media (max-width: 360px) {
    .yt-year { font-size: 12px; }
    .year-time-btn.active .yt-year { font-size: 13px; }
}

@media (max-width: 640px) {
    /* ---------- 1. 顶部导航 ---------- */
    .container { padding: 0 20px; }
    /* 顶部高度与 logo 尺寸均沿用原始模板（22px / 36px），不做缩放 */
    .nav-inner { padding: 12px 20px; gap: 14px; }
    /* 顶栏只剩 logo + 右侧操作区：搜索框铺满，按钮靠右 */
    .nav-actions { flex: 1; min-width: 0; gap: 8px; justify-content: flex-end; }
    .search-box-mini { flex: 1; width: auto; max-width: none; min-width: 0; }
    .search-box-mini input { width: 100%; padding: 8px 32px 8px 12px; font-size: 13px; }
    /* minmax(0,1fr) 而非 1fr：1fr 的最小值是 auto（= 不换行内容宽度），
       窄屏时 3 列会按最宽分类名把整行撑出视口 → 全站横向滚动条 */
    .cat-sidebar .cat-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        padding: 4px 0 8px;
        margin: 0;
    }
    .cat-sidebar .cat-item {
        justify-content: center;
        min-width: 0;
        padding: 8px 6px;
    }
    /* 分类名过长时省略而不是撑破格子 */
    .cat-sidebar .cat-name {
        flex: 0 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ---------- 1b. 表单：form-row 改堆叠，避免行与行之间贴死 ---------- */
    .form-row { display: block; }
    .form-group,
    .form-row .form-group:last-child { margin-bottom: 16px; }
    .submit-form { padding: 20px 16px; }
    .form-actions { margin-top: 24px; padding-top: 20px; gap: 10px; flex-wrap: wrap; }
    .form-actions > * { flex: 1 1 auto; }

    /* ---------- 2. 分类 / 列表页头部 ---------- */
    .cat-header { gap: 8px; margin-bottom: 14px; }
    .cat-count-big { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin-top: 15px; }
    .cat-title { font-size: 27px; letter-spacing: -0.3px; }
    .cat-desc { font-size: 13.5px; line-height: 1.6; margin-top: 4px; }
    .count-num { font-size: 30px; }
    .count-label { font-size: 12px; }

    /* ---------- 3. 排序工具条：三个排序按钮（4字全称）三等分一行，年份筛选移动端隐藏 ---------- */
    .cat-toolbar { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px; padding: 10px; border-radius: 14px; margin-bottom: 14px; }
    .sort-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; flex: 1 1 auto; min-width: 0; }
    .sort-tab {
        justify-content: center;
        gap: 5px;
        padding: 10px 2px;
        font-size: 13.5px;
        white-space: nowrap;
        min-width: 0;
    }
    .sort-tab svg { width: 14px; height: 14px; flex: 0 0 auto; }
    .filter-area { display: none; }

    /* ---------- 4. 列表卡片：热度/年份移到卡片底部，简介不再被挤窄 ---------- */
    .word-list { gap: 10px; margin-bottom: 24px; }
    .word-list-item { flex-wrap: wrap; padding: 14px; gap: 8px 10px; align-items: flex-start; }
    .wli-left { order: 1; }
    .wli-rank { width: 28px; height: 28px; font-size: 14px; border-radius: 8px; }
    .wli-main { order: 2; flex: 1 1 calc(100% - 38px); }
    .wli-header { gap: 3px 6px; margin-bottom: 6px; }
    .wli-title { order: 1; font-size: 18px; line-height: 1.35; }
    .wli-cat { order: 2; font-size: 11px; padding: 1px 6px; border-radius: 3px; }
    .wli-pinyin {
        order: 3;
        flex: 0 0 100%;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .wli-desc {
        font-size: 13.5px;
        line-height: 1.65;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }
    .wli-tags { gap: 5px; }
    .wli-tag { font-size: 11px; padding: 1px 6px; }
    .wli-right {
        order: 3;
        flex: 0 0 100%;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        text-align: right;
        padding-top: 8px;
        border-top: 1px dashed rgba(44, 42, 38, 0.08);
    }
    .wli-hot { font-size: 12.5px; gap: 3px; order: 2; }
    .wli-year { font-size: 11.5px; order: 1; }

    /* ---------- 5. 分页：按钮不换行，可折行排布 ---------- */
    .pagination { flex-wrap: wrap; gap: 5px; padding: 16px 0; }
    .page-btn { padding: 8px 10px; font-size: 13px; gap: 3px; white-space: nowrap; }
    .page-btn svg { width: 14px; height: 14px; }
    .page-num { width: 32px; height: 32px; font-size: 13px; }
    .page-dots { width: 14px; height: 32px; }
    .page-numbers { gap: 3px; margin: 0 2px; }

    /* ---------- 6. 词条详情页 ---------- */
    .detail-main { padding: 16px 20px 40px; gap: 16px; }
    .detail-header { padding: 18px 16px; border-radius: 14px; margin-bottom: 14px; }
    .detail-header-top { flex-direction: column; gap: 12px; margin-bottom: 12px; }
    .detail-word { font-size: 27px; letter-spacing: -0.5px; line-height: 1.25; }
    .detail-pinyin { font-size: 12.5px; margin-top: 5px; line-height: 1.65; }
    .detail-actions { width: 100%; gap: 8px; }
    .detail-actions > * { flex: 1; justify-content: center; }
    .detail-tags { gap: 6px; margin-bottom: 14px; }
    .detail-meta { flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; font-size: 12px; }
    .detail-section { padding: 18px 16px; border-radius: 14px; margin-bottom: 12px; }
    .detail-section-title { font-size: 17px; }
    .detail-info-grid { gap: 8px; }
    .detail-definition { font-size: 15px; line-height: 1.85; }
    .sidebar-card { padding: 18px 16px; border-radius: 14px; margin-bottom: 14px; }

    /* ---------- 7. 首页 ---------- */
    .hero { padding: 32px 20px 36px; }
    .hero h1 { font-size: 36px; letter-spacing: -0.8px; }
    .hero p { font-size: 15px; line-height: 1.75; margin-bottom: 28px; }
    .hero-eyebrow { font-size: 12px; padding: 5px 12px; margin-bottom: 18px; }
    .search-box input { padding: 15px 56px 15px 16px; font-size: 15px; }
    .hot-tags { gap: 8px; margin-top: 18px; }
    .section { padding: 28px 20px; }

    /* ---------- 8. 年度盘点 ---------- */
    /* 手机端条目只留「名次 + 热词 + 分类」三段，释义隐藏，
       否则 20 字释义在 340px 内要占两行，把名次和分类挤成竖排。 */
    .yti-desc { display: none; }
    /* 去掉释义后条目变单行，同步收一轮内边距与字号，避免 6~7 字热词换行 */
    .year-top-item { padding: 16px; gap: 14px; }
    .yti-rank-num { width: 38px; height: 38px; font-size: 18px; }
    .yti-word { font-size: 18px; margin-bottom: 0; }

    /* ---------- 9. 页脚 ---------- */
    .footer { padding-left: 0; padding-right: 0; }  /* 桌面 32px 与内层叠加成 52px；移动端交由 .footer-inner 的 20px 独占 */
    .footer-inner { padding: 28px 20px; }
    .footer-brand p { font-size: 13px; line-height: 1.75; }
    .footer-bottom { font-size: 12px; padding-top: 18px; }
}

/* ============================================================
   超窄屏（≤360px）：仅修横向溢出，不改变 375 及以上任何表现
   ------------------------------------------------------------
   根因：grid 的 `1fr` 最小值是 auto（= 内容的 min-content），
   分类胶囊与排序按钮内部都是 white-space:nowrap，
   于是「3 列 × 单列内容宽」会超过视口，产生全站横向滚动条。
   ============================================================ */
@media (max-width: 360px) {
    /* 3 列时每列仅约 82px，容不下「图标 + 4 字分类名」，改 2 列 */
    .cat-sidebar .cat-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* 排序按钮：启用模板里预留但从未启用的短标签（热度 / 最新 / 字母） */
    .sort-tabs { gap: 4px; }
    .sort-tab { font-size: 13px; gap: 4px; }
    .sort-tab .sort-label-full { display: none; }
    .sort-tab .sort-label-short { display: inline; }
}

/* ============================================================
   专题页（2026-10-31）
   ------------------------------------------------------------
   覆盖 /topic/（专题首页）与 /topic/{slug}/（专题详情）。
   与「分类」互补：分类是内容领域（一词一类），专题是造词手法（一词可属多个）。
   卡片主题色由后台配置，通过行内 --tc / --tc-soft 注入；
   所有浅色底一律用 rgba，不使用 color-mix（宝塔环境下的旧内核不支持）。
   ============================================================ */

/* ---------- 1. 专题首页 Hero ---------- */
.topic-hero {
    background: linear-gradient(135deg, #2C2A26 0%, #4A3F35 100%);
    color: var(--paper);
    padding: 78px 0 96px;
    position: relative;
    overflow: hidden;
}
.topic-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 22% 18%, rgba(197, 61, 46, 0.22), transparent 55%),
                radial-gradient(circle at 82% 78%, rgba(242, 217, 141, 0.12), transparent 52%);
    pointer-events: none;
}
.topic-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}
.topic-hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(197, 61, 46, 0.2);
    color: #F5B7B0;
    font-size: 13px;
    font-weight: 500;
    border-radius: 100px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}
.topic-hero-title {
    font-family: var(--font-display);
    font-size: clamp(34px, 4.6vw, 60px);
    font-weight: 900;
    line-height: 1.22;
    margin-bottom: 18px;
    letter-spacing: -1px;
}
.topic-hero-title .accent {
    background: linear-gradient(135deg, var(--highlight), #F7E8B8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.topic-hero-desc {
    font-size: 16.5px;
    color: rgba(250, 247, 240, 0.68);
    line-height: 1.85;
    margin-bottom: 38px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.topic-hero-stats {
    display: flex;
    justify-content: center;
    gap: 52px;
}
.topic-hero-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.topic-hero-stats .stat-num {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 900;
    color: var(--highlight);
    line-height: 1.2;
}
.topic-hero-stats .stat-label {
    font-size: 12.5px;
    color: rgba(250, 247, 240, 0.5);
    letter-spacing: 1px;
}
/* 背景飘动词条：必须限定在专题 hero 内。
   全局的 .deco-word 属于年度盘点页（48px 白字 + floatY），
   这里若写成裸 .deco-word 会把年度盘点的背景词条覆盖成 15px 半透明。 */
.topic-hero > .deco-word {
    position: absolute;
    font-family: var(--font-display);
    font-size: 40px;
    color: rgba(250, 247, 240, 0.11);
    font-weight: 900;
    letter-spacing: 0.02em;
    pointer-events: none;
    animation: topic-float 7s ease-in-out infinite;
    white-space: nowrap;
}
@keyframes topic-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-18px); }
}

/* ---------- 2. 专题卡片网格 ---------- */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.topic-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 26px 24px 20px;
    border: 1px solid rgba(44, 42, 38, 0.07);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    color: inherit;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s, border-color 0.25s;
}
.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(44, 42, 38, 0.12);
}
.topic-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--tc, var(--seal));
    opacity: 0;
    transition: opacity 0.25s;
}
.topic-card:hover::before { opacity: 1; }
.tc-idx {
    position: absolute;
    top: 14px;
    right: 18px;
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 900;
    color: rgba(44, 42, 38, 0.05);
    line-height: 1;
    letter-spacing: -2px;
}
.tc-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.tc-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 23px;
    flex: none;
    background: var(--tc-soft, var(--paper-dark));
}
.tc-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--ink);
}
.tc-sub {
    font-size: 12.5px;
    color: var(--ink-faint);
    margin-top: 2px;
}
.tc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}
.tc-chip {
    font-size: 12px;
    color: var(--ink-soft);
    background: var(--paper-dark);
    border-radius: 5px;
    padding: 3.5px 9px;
    transition: background 0.2s;
}
.topic-card:hover .tc-chip { background: var(--tc-soft, var(--paper-dark)); }
.tc-chip.more {
    background: transparent;
    color: var(--ink-faint);
    padding-left: 2px;
}
.tc-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px dashed rgba(44, 42, 38, 0.1);
}
.tc-count {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-faint);
}
.tc-count b {
    color: var(--ink);
    font-weight: 600;
    font-size: 13px;
}
.tc-arrow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--paper-dark);
    display: grid;
    place-items: center;
    color: var(--ink-soft);
    transition: background 0.25s, color 0.25s, transform 0.25s;
}
.topic-card:hover .tc-arrow {
    background: var(--seal);
    color: #fff;
    transform: translateX(2px);
}

/* ---------- 3. 专题 ≠ 分类 说明区块 ---------- */
.explain {
    background: var(--paper-dark);
    border-radius: var(--radius-lg);
    padding: 38px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.explain::after {
    content: '?';
    position: absolute;
    right: 26px;
    bottom: -38px;
    font-family: var(--font-display);
    font-size: 200px;
    font-weight: 900;
    color: rgba(44, 42, 38, 0.045);
    line-height: 1;
    pointer-events: none;
}
.explain h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.explain p {
    font-size: 14.5px;
    color: var(--ink-soft);
    line-height: 1.9;
    position: relative;
    z-index: 1;
}
.explain p + p { margin-top: 10px; }
.explain b { color: var(--ink); font-weight: 600; }
.ex-cmp {
    display: flex;
    gap: 14px;
    position: relative;
    z-index: 1;
}
.ex-box {
    flex: 1;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 18px 16px;
    border: 1px solid rgba(44, 42, 38, 0.06);
}
.ex-box .lb {
    font-size: 11px;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    color: var(--ink-faint);
    margin-bottom: 8px;
}
.ex-box .nm {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}
.ex-box .ds {
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.7;
}
.ex-box .pill {
    display: inline-block;
    font-size: 11px;
    padding: 2.5px 8px;
    border-radius: 4px;
    margin: 6px 4px 0 0;
    background: var(--paper-dark);
    color: var(--ink-soft);
}

/* ---------- 4. 专题详情：面包屑 ---------- */
.crumb {
    padding: 22px 0 0;
    font-size: 12.5px;
    color: var(--ink-faint);
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.crumb > .container {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}
.crumb a {
    text-decoration: none;
    color: var(--ink-faint);
}
.crumb a:hover { color: var(--seal); }
.crumb .sep { opacity: 0.45; }
.crumb .cur { color: var(--ink-soft); }

/* ---------- 5. 专题详情：头部 ---------- */
.topic-head {
    padding: 26px 0 34px;
    border-bottom: 1px solid rgba(44, 42, 38, 0.08);
}
.th-top {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.th-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 30px;
    background: var(--tc-soft, var(--paper-dark));
    flex: none;
}
.th-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--ink);
}
.th-sub {
    font-size: 14.5px;
    color: var(--ink-soft);
    margin-top: 6px;
}
.th-meta {
    display: flex;
    gap: 26px;
    margin-left: auto;
    flex-wrap: wrap;
}
.th-meta div { text-align: right; }
.th-meta .n {
    font-family: var(--font-mono);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
}
.th-meta .l {
    font-size: 11px;
    color: var(--ink-faint);
    letter-spacing: 0.5px;
}
.th-intro {
    margin-top: 26px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    border: 1px solid rgba(44, 42, 38, 0.06);
    border-left: 4px solid var(--tc, var(--seal));
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.th-intro .ic {
    font-size: 20px;
    flex: none;
    line-height: 1.4;
}
.th-intro-body {
    font-size: 14.5px;
    color: var(--ink-soft);
    line-height: 1.95;
}
.th-intro-body p + p { margin-top: 10px; }
.th-intro-body b,
.th-intro-body strong { color: var(--ink); }

/* ---------- 6. 排序切换（专题页专用类名 tsort-*，不复用列表页的 sort-*） ---------- */
.tsort-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.tsort-tab {
    font-size: 12.5px;
    color: var(--ink-soft);
    background: #fff;
    border: 1px solid rgba(44, 42, 38, 0.1);
    border-radius: 100px;
    padding: 5px 13px;
    text-decoration: none;
    transition: 0.2s;
    white-space: nowrap;
}
.tsort-tab:hover {
    border-color: var(--seal);
    color: var(--seal);
}
.tsort-tab.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

/* ---------- 7. 专题内词条列表（两列排行式） ---------- */
.tlist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
    margin-top: 8px;
}
.titem {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 4px;
    border-bottom: 1px dashed rgba(44, 42, 38, 0.1);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.titem:hover { background: rgba(255, 255, 255, 0.7); }
.titem:hover .ti-word { color: var(--seal); }
.ti-rank {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 900;
    color: var(--ink-faint);
    opacity: 0.5;
    width: 26px;
    flex: none;
    text-align: center;
    padding-top: 2px;
    font-variant-numeric: tabular-nums;
}
.ti-rank.top {
    color: var(--seal);
    opacity: 0.85;
}
.ti-main { flex: 1; min-width: 0; }
.ti-word {
    font-family: var(--font-display);
    font-size: 17.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: color 0.2s;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--ink);
}
.ti-py {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    color: var(--ink-faint);
    letter-spacing: 0;
}
.ti-desc {
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.75;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ti-tags {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.ti-cat {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--paper-dark);
    color: var(--ink-soft);
}
.ti-year {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--ink-faint);
}
.ti-hot {
    font-size: 11px;
    color: var(--seal);
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ---------- 8. 相关专题 ---------- */
.rel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.rel-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 18px 20px;
    border: 1px solid rgba(44, 42, 38, 0.06);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 13px;
    color: inherit;
    transition: transform 0.22s, box-shadow 0.22s;
}
.rel-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.rel-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 19px;
    flex: none;
    background: var(--tc-soft, var(--paper-dark));
}
.rel-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
}
.rel-cnt {
    font-size: 11.5px;
    color: var(--ink-faint);
    font-family: var(--font-mono);
    margin-top: 1px;
}

/* ---------- 9. 空状态 ---------- */
.topic-empty {
    background: #fff;
    border: 1px dashed rgba(44, 42, 38, 0.14);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    color: var(--ink-soft);
    font-size: 14.5px;
}
.topic-empty p + p { margin-top: 8px; }
.topic-empty .sub {
    font-size: 13px;
    color: var(--ink-faint);
}
.topic-empty a { color: var(--seal); }

/* 专题合集页（/topic/）窄屏短文案：默认隐藏，640 断点内与 .tidx-full 互换。
   目的：让「更多分类 →」留在标题右侧同一行，不挤压左侧描述。 */
.tidx-short { display: none; }

/* ---------- 10. 响应式 ---------- */
@media (max-width: 1024px) {
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tlist { grid-template-columns: 1fr; gap: 0; }
    .explain { grid-template-columns: 1fr; gap: 26px; padding: 30px 28px; }
    .rel-grid { grid-template-columns: repeat(2, 1fr); }
    .th-meta { margin-left: 0; width: 100%; gap: 32px; }
    .th-meta div { text-align: left; }
}

@media (max-width: 640px) {
    .topic-hero { padding: 52px 0 64px; }
    .topic-hero-stats { gap: 30px; flex-wrap: wrap; }
    .topic-hero-stats .stat-num { font-size: 26px; }
    .topic-hero-desc { font-size: 15px; }
    .topic-hero > .deco-word { display: none; }
    .topic-grid { grid-template-columns: minmax(0, 1fr); }
    .explain { padding: 24px 20px; }
    .ex-cmp { flex-direction: column; }
    .th-top { gap: 14px; }
    .th-icon { width: 50px; height: 50px; font-size: 25px; border-radius: 13px; }
    .th-meta { gap: 24px; }
    .th-intro {
        flex-direction: column;
        gap: 0;
        padding: 18px 18px;
        margin-top: 20px;
    }
    .th-intro .ic { display: none; }
    .th-intro-body { font-size: 13.5px; line-height: 1.85; }
    .rel-grid { grid-template-columns: 1fr; }
    .titem { padding: 16px 0; gap: 12px; }
    .ti-word { font-size: 16px; }
    /* 专题详情：标题较长（"专题内的 6 个词条"），移动端改为上下堆叠，
       否则会被右侧排序按钮挤压成两行。作用域限定 .th-sec，不影响其他页面。 */
    .th-sec .section-header { flex-direction: column; align-items: flex-start; gap: 14px; }
    .th-sec .section-title { font-size: 23px; }
    .tsort-tabs { width: 100%; }

    /* 专题合集（/topic/）：与 PC 一致，「更多分类 →」始终留在标题右侧同一行，
       不单独占一行；左侧描述可收缩（min-width:0）自动换行，文案同步换成短版
       （.tidx-full ↔ .tidx-short 互换），避免 320~360 出现单字掉行。
       作用域限定 .tidx，不影响其他页面。 */
    .tidx .section-header { gap: 14px; }
    .tidx .section-header > div { flex: 1 1 auto; min-width: 0; }
    .tidx .section-link { flex: 0 0 auto; white-space: nowrap; }
}

/* 小于 520 时整行放不下「副标题（20 字）+ 按内容分类浏览 →」，文案换短版 */
@media (max-width: 520px) {
    .tidx .tidx-full { display: none; }
    .tidx .tidx-short { display: inline; }
}

/* ---------- 11. 首页专题区（/ 热词榜与年度盘点之间） ----------
   卡片本身完全复用上面的 .topic-card 组件，这里只补「推荐」角标。
   新类名统一 hp- 前缀，避免与任何既有选择器撞名。 */
.hp-rec {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 2;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--seal);
    background: rgba(197, 61, 46, 0.09);
    border: 1px solid rgba(197, 61, 46, 0.18);
    border-radius: 100px;
    padding: 2px 8px;
    line-height: 1.5;
    pointer-events: none;
}
