/* ===== 基础组件 ===== */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s, background .15s, border-color .15s;
    white-space: nowrap;
}
.button:hover { opacity: .88; color: var(--paper); }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button-ghost:hover { border-color: var(--ink); color: var(--ink); }
.button-small { padding: 6px 13px; font-size: 13px; }

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px 0;
}
.panel-head h2 { font-size: 1.15rem; }
.more-link { color: var(--accent); font-size: 13.5px; white-space: nowrap; }

/* ===== 首页 ===== */
.daily-card { margin-bottom: 30px; overflow: hidden; }

.daily-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 22px 22px;
}
.daily-inner:hover .daily-glyph { color: var(--accent); }

.daily-glyph {
    font-family: var(--font-serif);
    font-size: 82px;
    line-height: 1;
    color: var(--ink);
    transition: color .15s;
    flex: 0 0 auto;
}

.daily-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.daily-pinyin { color: var(--accent); font-size: 15px; letter-spacing: .08em; }
.daily-def { color: var(--ink-soft); font-size: 15px; }
.daily-meta { color: var(--muted); font-size: 12.5px; }

.section-block { margin-bottom: 34px; }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.section-head h2 {
    font-size: 1.28rem;
    position: relative;
    padding-left: 13px;
}
.section-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .22em;
    bottom: .22em;
    width: 4px;
    border-radius: 3px;
    background: var(--accent);
}

.entry-grid {
    display: grid;
    /* 固定 4 列：桌面 4 / 平板 3 / 手机 2，条目数按 12 的倍数给，保证每行铺满不留空 */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.entry-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 13px 14px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    min-width: 0;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.entry-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    color: inherit;
}

.entry-card-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.entry-card-pinyin {
    color: var(--accent);
    font-size: 12.5px;
    letter-spacing: .02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.entry-card-snippet {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.empty-state {
    padding: 46px 20px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface-2);
}
.empty-hint { font-size: 14px; }
.empty-hint a { color: var(--accent); }

/* ===== 侧栏 ===== */
.side-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    box-shadow: var(--shadow-sm);
}
.side-card h2 {
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: 12px;
    font-weight: 600;
}
.side-text { color: var(--muted); font-size: 13.5px; }

.letter-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.letter-grid a {
    display: grid;
    place-items: center;
    min-height: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    font-size: 13px;
    color: var(--ink-soft);
    background: var(--surface-2);
    transition: border-color .12s, color .12s;
}
.letter-grid a:hover, .letter-grid a.is-current {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.quick-links a {
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--ink-soft);
    font-size: 13px;
}
.quick-links a:hover { border-color: var(--accent); color: var(--accent); }

.recent-list { display: flex; flex-wrap: wrap; gap: 7px; }
.recent-list a {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--ink-soft);
}
.recent-list a:hover { border-color: var(--accent); color: var(--accent); }
.side-empty { color: var(--muted); font-size: 13px; margin: 0; }

/* ===== 列表页 ===== */
.page-header { margin-bottom: 20px; }
.page-header h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.page-header p { color: var(--muted); font-size: 14px; margin: 6px 0 0; }

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 14px;
}
.filter-form input[type="search"],
.filter-form select {
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: var(--radius-xs);
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
    min-height: 38px;
}
.filter-form input[type="search"] { flex: 1 1 200px; min-width: 0; }
.filter-form input:focus, .filter-form select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.filter-form .button { min-height: 38px; }

.index-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.index-label { flex: 0 0 100%; color: var(--muted); font-size: 12px; margin: 0 0 2px; letter-spacing: .08em; }
.letter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 34px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.letter-chip small, .letter-chip .cell-muted { font-size: 10.5px; font-weight: 400; color: var(--muted); }
.letter-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.letter-chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.letter-chip.is-active small, .letter-chip.is-active .cell-muted { color: rgba(255,255,255,.85); }

/* ===== 面包屑 ===== */
.breadcrumb {
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 6px;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: .02em;
}
.breadcrumb::before {
    content: "";
    flex: none;
    width: 5px;
    height: 5px;
    margin: 0 4px 0 1px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .6;
}
.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    transition: color .15s ease;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] {
    color: var(--ink);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .04em;
}
.crumb-sep {
    color: var(--line-strong);
    font-size: 10px;
    line-height: 1;
    transform: translateY(-1px);
}
.page-layout > .breadcrumb { grid-column: 1 / -1; margin-bottom: -8px; }

@media (max-width: 900px) {
    .page-layout > .breadcrumb { margin-top: 12px; margin-bottom: -6px; }
}
@media (max-width: 640px) {
    .breadcrumb { font-size: 11.5px; gap: 0 5px; margin: 12px 0 8px; }
    .breadcrumb [aria-current="page"] { font-size: 12.5px; }
    .breadcrumb::before { width: 4px; height: 4px; margin: 0 3px 0 1px; }
}

/* ===== 详情页 ===== */
.entry-head {
    display: flex;
    align-items: flex-start;
    gap: 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 26px;
}

.char-head { align-items: center; }

.glyph-box {
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    font-family: var(--font-serif);
    font-size: 82px;
    line-height: 1;
    flex: 0 0 auto;
}
.glyph-small { width: 86px; height: 86px; font-size: 48px; }

.entry-title { min-width: 0; }
.entry-title h1 {
    font-size: clamp(2rem, 5vw, 2.9rem);
    overflow-wrap: anywhere;
}
.pinyin {
    color: var(--accent);
    font-size: 17px;
    letter-spacing: .1em;
    margin: 6px 0 0;
}
.zhuyin { color: var(--muted); font-size: 13px; margin: 2px 0 0; }

.phonetic-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 4px; }
.phonetic { color: var(--ink-soft); font-size: 14px; }
.phonetic em {
    font-style: normal;
    color: var(--muted);
    font-size: 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1px 4px;
    margin-right: 5px;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.chip-row-large { margin: 4px 0 24px; }

.chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 12.5px;
    line-height: 1.6;
}
.chip-link:hover { border-color: var(--accent); color: var(--accent); }

.entry-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

.prose-block { margin-bottom: 26px; }
.prose-block h2 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    padding-left: 12px;
    position: relative;
}
.prose-block h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .24em;
    bottom: .24em;
    width: 4px;
    border-radius: 3px;
    background: var(--jade);
}
.prose {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.definition-list { margin: 0; padding-left: 1.35em; color: var(--ink-soft); }
.definition-list li { margin-bottom: 8px; }
.pos-badge {
    display: inline-block;
    min-width: 34px;
    margin-right: 8px;
    color: var(--accent);
    font-size: 13px;
    font-style: italic;
}

.example-list { list-style: none; padding: 0; margin: 0; }
.example-list li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
}
.example-list li:last-child { border-bottom: 0; }
.example-en { color: var(--ink); margin: 0; }
.example-zh { color: var(--muted); font-size: 14px; margin: 4px 0 0; }

.exchange-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 20px; }
.exchange-list div { display: flex; gap: 10px; }
.exchange-list dt { color: var(--muted); font-size: 13px; flex: 0 0 88px; }
.exchange-list dd { margin: 0; color: var(--ink-soft); font-size: 14px; }

.fact-list { margin: 0; }
.fact-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 13.5px;
}
.fact-list div:last-child { border-bottom: 0; }
.fact-list dt { color: var(--muted); }
.fact-list dd { margin: 0; color: var(--ink-soft); text-align: right; overflow-wrap: anywhere; }

.char-links { display: flex; flex-wrap: wrap; gap: 10px; }
.char-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 64px;
    padding: 10px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}
.char-link:hover { border-color: var(--accent); color: inherit; }
.char-link-glyph { font-family: var(--font-serif); font-size: 30px; line-height: 1.1; }
.char-link-pinyin { color: var(--accent); font-size: 11.5px; }

.inline-char {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 24px;
}
.inline-char p { margin: 2px 0; }
.inline-char a { color: var(--accent); font-size: 14px; }

.jl-chain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 24px;
}
.jl-node {
    padding: 5px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    font-size: 14px;
}
.jl-node:hover { border-color: var(--accent); color: var(--accent); }
.jl-arrow { color: var(--line-strong); font-size: 13px; }

/* ===== 搜索 ===== */
.search-page-head { padding: 34px 0 6px; }
.search-page-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 16px; }
.page-search {
    position: relative;
    display: flex;
    gap: 6px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 6px 6px 6px 14px;
    max-width: 720px;
}
.page-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.page-search .search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    padding: 8px 0;
    font-size: 16px;
}
.page-search .search-select {
    border: 0;
    background: transparent;
    color: var(--muted);
    outline: none;
    font-size: 13px;
    max-width: 80px;
}

.search-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 4px; }
.search-tab {
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 13.5px;
    color: var(--ink-soft);
    border: 1px solid transparent;
}
.search-tab:hover { background: var(--surface-2); }
.search-tab.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.result-count { color: var(--muted); font-size: 13.5px; margin: 18px 0 10px; }

.result-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.result-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
}
.result-item:hover { color: inherit; background: var(--surface-2); }
.result-module {
    flex: 0 0 auto;
    font-size: 11.5px;
    color: var(--jade);
    border: 1px solid var(--jade);
    border-radius: 4px;
    padding: 1px 5px;
    margin-top: 4px;
}
.result-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.result-title { font-family: var(--font-serif); font-size: 19px; font-weight: 600; }
.result-pinyin { color: var(--accent); font-size: 12.5px; }
.result-snippet { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* ===== 分页 ===== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 30px 0 10px;
}
.page-link {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 13.5px;
}
.page-link:hover { border-color: var(--accent); color: var(--accent); }
.page-link.is-current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.page-gap { display: inline-grid; place-items: center; min-width: 24px; color: var(--muted); }

/* ===== 错误页 ===== */
.error-page {
    text-align: center;
    padding: 76px 0 90px;
}
.error-code {
    font-family: var(--font-serif);
    font-size: 86px;
    line-height: 1;
    color: var(--accent);
    margin: 0 0 6px;
    opacity: .9;
}
.error-page h1 { font-size: 1.8rem; margin-bottom: 10px; }
.error-page p { color: var(--muted); }
.error-page .page-search { margin: 24px auto; }
.error-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* ===== 内容页 ===== */
.prose-page {
    margin-bottom: 42px;
    padding: 30px 34px 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.prose-page h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 14px; }
.prose-page h2 {
    position: relative;
    padding-left: 14px;
    font-size: 1.3rem;
    margin: 30px 0 10px;
}
.prose-page h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .22em;
    bottom: .22em;
    width: 3px;
    border-radius: 2px;
    background: var(--accent);
}
.prose-page p, .prose-page li { color: var(--ink-soft); line-height: 1.95; }
.prose-page li { margin-bottom: 6px; }
.prose-page a { color: var(--accent); }

/* ===== 搜索建议 ===== */
.suggest-panel {
    position: absolute;
    z-index: 80;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    padding: 6px;
}
.suggest-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
}
.suggest-item:hover, .suggest-item.is-active { background: var(--surface-2); }
.suggest-title { font-family: var(--font-serif); font-size: 16px; font-weight: 600; }
.suggest-pinyin { color: var(--accent); font-size: 12px; }
.suggest-label { margin-left: auto; color: var(--muted); font-size: 11.5px; }
.suggest-empty { padding: 12px; color: var(--muted); font-size: 13px; }

/* ===== 字号调节 ===== */
body.font-large .prose { font-size: 19px; }
body.font-large .entry-card-snippet { font-size: 13.5px; }

/* ===== 打印 ===== */
@media print {
    .site-header, .site-footer, .entry-side, .entry-actions, .pagination, .search-form { display: none !important; }
    body { background: #fff; color: #000; }
    .page-layout, .home-layout { display: block; }
    .container { max-width: none; padding: 0; }
}

@media (max-width: 900px) {
    .entry-head { flex-direction: column; gap: 16px; }
    .glyph-box { width: 104px; height: 104px; font-size: 62px; }
    .entry-side { position: static; }
    .entry-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
}

@media (max-width: 640px) {
    .entry-grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
    .entry-card { padding: 11px 12px; }
    .entry-card-title { font-size: 18px; }
    .daily-glyph { font-size: 64px; }
    .daily-inner { gap: 16px; padding: 14px 16px 18px; }
    .panel-head { padding: 14px 16px 0; }
    .side-card { padding: 15px 15px 13px; }
    .letter-grid { grid-template-columns: repeat(6, 1fr); }
    .result-item { gap: 10px; }
    .error-code { font-size: 64px; }
}

/* ============================================================
   2026-11-24 词条页改版：宣纸编辑风
   ============================================================ */

.front-flash {
    margin: 18px 0 0;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 14px;
}
.front-flash-success { border-color: #bcd9c8; background: #eaf4ee; color: #1f6a45; }
.front-flash-error { border-color: #e7c0b7; background: #fbece8; color: #a93622; }
[data-theme="dark"] .front-flash-success { background: #1d2c24; color: #92d3ac; border-color: #2f4a3a; }
[data-theme="dark"] .front-flash-error { background: #33211d; color: #f0a190; border-color: #53302a; }

.eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.page-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-top: 16px;
    padding: 28px 30px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(620px 260px at 0% 0%, var(--accent-soft), transparent 66%),
        radial-gradient(460px 240px at 100% 100%, var(--jade-soft), transparent 60%),
        var(--surface);
    box-shadow: var(--shadow-sm);
}
.page-hero-main { max-width: 780px; }
.page-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.25;
    margin: 4px 0 8px;
}
.page-hero p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.page-hero p strong { color: var(--ink); font-weight: 600; }
.page-hero-stats { display: flex; gap: 26px; flex: 0 0 auto; }
.page-hero-stats div { display: flex; flex-direction: column; align-items: flex-end; }
.page-hero-stats strong { font-family: var(--font-serif); font-size: 28px; line-height: 1.1; }
.page-hero-stats span { color: var(--muted); font-size: 11.5px; letter-spacing: .06em; }

.entry-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 30px 30px 28px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(680px 320px at 0% 0%, var(--accent-soft), transparent 70%),
        var(--surface);
    box-shadow: var(--shadow-sm);
}
.entry-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -60px;
    width: 220px;
    height: 220px;
    border: 1px solid var(--line);
    border-radius: 50%;
    opacity: .55;
    pointer-events: none;
}
.char-hero { align-items: stretch; }
.idiom-hero { background: radial-gradient(700px 300px at 10% 0%, var(--jade-soft), transparent 70%), var(--surface); }
.english-hero { background: radial-gradient(680px 300px at 0% 0%, var(--accent-soft), transparent 68%), var(--surface); }

.glyph-panel {
    flex: 0 0 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px 14px;
    border-radius: 18px;
    background: var(--ink);
    color: var(--paper);
    box-shadow: var(--shadow-md);
}
.glyph-panel-char { font-family: var(--font-serif); font-size: 104px; line-height: 1; }
.glyph-panel-caption { color: rgba(247, 244, 238, .62); font-size: 11.5px; letter-spacing: .12em; }

.hero-content { min-width: 0; flex: 1 1 auto; position: relative; z-index: 1; }
.hero-kicker { color: var(--muted); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.12;
    letter-spacing: .01em;
    margin: 4px 0 2px;
    overflow-wrap: anywhere;
}
.hero-title-idiom { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.hero-title-en { font-family: var(--font-serif); letter-spacing: -.01em; }
.hero-reading { color: var(--accent); font-size: 18px; letter-spacing: .08em; margin: 4px 0 0; }
.hero-zhuyin { color: var(--muted); font-size: 13px; margin: 2px 0 0; }

.chip-accent { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.chip-muted { color: var(--muted); }
.badge-soft { color: var(--muted); border-color: var(--line); background: var(--surface-2); }
.badge-good { color: #1f6a45; border-color: #bcd9c8; background: #eaf4ee; }
.badge-bad { color: #a93622; border-color: #e7c0b7; background: #fbece8; }
[data-theme="dark"] .badge-good { color: #92d3ac; background: #1d2c24; border-color: #2f4a3a; }
[data-theme="dark"] .badge-bad { color: #f0a190; background: #33211d; border-color: #53302a; }

.toc-inline {
    position: sticky;
    top: calc(var(--header-height) + 8px);
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}
.toc-inline a {
    padding: 5px 12px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 12.5px;
    white-space: nowrap;
}
.toc-inline a:hover { background: var(--surface-2); color: var(--accent); }

.entry-section {
    scroll-margin-top: calc(var(--header-height) + 76px);
    padding: 22px 24px 24px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.entry-section:last-child { margin-bottom: 0; }
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 13px;
    margin-bottom: 18px;
    border-bottom: 1px dashed var(--line);
}
.section-heading > div { display: flex; align-items: center; gap: 10px; }
.section-heading h2 { font-size: 1.32rem; }
.section-index {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 21px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .08em;
}
.section-aside { color: var(--muted); font-size: 12.5px; letter-spacing: .04em; }
.subheading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 12px;
    color: var(--muted);
    font-size: 12.5px;
    letter-spacing: .08em;
}
.subheading::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }

.prose-lead { font-size: 17.5px; line-height: 2; color: var(--ink); }
.prose-secondary { margin-top: 16px; color: var(--muted); font-size: 14px; }
.historical-list { display: flex; flex-direction: column; gap: 14px; }
.historical-card {
    padding: 16px 18px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}
.historical-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.historical-head h3 { font-size: 15px; color: var(--ink); }
.historical-source { color: var(--muted); font-size: 11.5px; text-align: right; }
.historical-text {
    color: var(--ink-soft);
    font-family: var(--font-serif);
    font-size: 15.5px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}
.prose-en { font-family: var(--font-serif); color: var(--ink-soft); }
.english-note { color: var(--muted); font-size: 13.5px; margin: 12px 0 0; }
.english-note span {
    display: inline-block;
    margin-right: 8px;
    padding: 1px 6px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 11px;
}
.missing-note {
    padding: 14px 16px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 14px;
}

.reading-block { margin-bottom: 22px; }
.reading-block:last-child { margin-bottom: 0; }
.reading-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 14px;
    border-left: 3px solid var(--accent);
    background: var(--surface-2);
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}
.reading-pinyin { font-family: var(--font-serif); color: var(--accent); font-size: 19px; letter-spacing: .05em; }
.reading-count { color: var(--muted); font-size: 11.5px; }

.sense-list { list-style: none; margin: 0; padding: 0; counter-reset: sense; }
.sense-item {
    counter-increment: sense;
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--line);
}
.sense-item:last-child { border-bottom: 0; }
.sense-item::before {
    content: counter(sense, decimal-leading-zero);
    flex: 0 0 34px;
    color: var(--line-strong);
    font-family: var(--font-serif);
    font-size: 13px;
    padding-top: 2px;
}
.sense-body { min-width: 0; flex: 1 1 auto; }
.sense-text { color: var(--ink); font-size: 16px; line-height: 1.95; }
.sense-list-compact { padding-left: 1.2em; list-style: decimal; }
.sense-list-compact li { padding: 3px 0; color: var(--ink-soft); font-size: 15px; line-height: 1.8; }
.sense-list-en { padding-left: 1.2em; list-style: decimal; }
.sense-list-en li { padding: 4px 0; color: var(--ink-soft); font-size: 15px; line-height: 1.8; }

.citation-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.citation {
    margin: 0;
    padding: 8px 14px;
    border-left: 2px solid var(--line-strong);
    background: var(--surface-2);
    border-radius: 0 8px 8px 0;
}
.citation p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.citation cite { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-style: normal; }
.citation-large { padding: 14px 18px; border-left-width: 3px; border-left-color: var(--jade); }
.citation-large p { font-family: var(--font-serif); font-size: 16.5px; line-height: 1.95; }

.example-inline {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.8;
}
.example-inline span {
    display: inline-block;
    margin-right: 7px;
    padding: 0 5px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 10.5px;
    color: var(--accent);
}
.word-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.word-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 13.5px;
}
.word-chip small { color: var(--muted); font-size: 11.5px; }
.word-chip:hover { border-color: var(--accent); color: var(--accent); }
.more-words { margin-top: 8px; }
.more-words summary { cursor: pointer; color: var(--accent); font-size: 12.5px; }

.example-list-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 4px 18px;
}
.example-text { margin: 0; color: var(--ink); font-family: var(--font-serif); font-size: 15.5px; line-height: 1.9; }
.example-source { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }

.fact-list-wide div { align-items: flex-start; }
.fact-list-wide dt { flex: 0 0 74px; }
.fact-list-wide dd { text-align: left; line-height: 1.75; }

.relation-row { display: flex; gap: 14px; align-items: flex-start; padding: 8px 0; }
.relation-label { flex: 0 0 44px; color: var(--muted); font-size: 12.5px; padding-top: 4px; }

.char-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.char-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    min-width: 0;
}
.char-card:hover { border-color: var(--accent); color: inherit; }
.char-card-glyph { font-family: var(--font-serif); font-size: 34px; line-height: 1.2; }
.char-card-pinyin { color: var(--accent); font-size: 12.5px; }
.char-card-def { color: var(--muted); font-size: 12px; line-height: 1.55; }

.entry-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 28px 0 24px;
}
.entry-nav-link {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}
.entry-nav-link:hover { border-color: var(--accent); color: inherit; }
.entry-nav-next { text-align: right; align-items: flex-end; }
.entry-nav-label { color: var(--muted); font-size: 11.5px; }
.entry-nav-link strong { font-family: var(--font-serif); font-size: 17px; }
.entry-nav-link small { color: var(--accent); font-size: 11.5px; }
.entry-nav-placeholder { min-height: 1px; }

.feedback-card {
    margin: 26px 0 30px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
}
.feedback-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.feedback-head > div { display: flex; align-items: baseline; gap: 10px; }
.feedback-head h2 { font-size: 1.2rem; }
.feedback-intro { color: var(--muted); font-size: 13px; margin: 8px 0 14px; }
.feedback-label { display: block; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 6px; font-weight: 600; }
.feedback-form textarea,
.feedback-form input[type="text"] {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    background: var(--surface);
    color: var(--ink);
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
}
.feedback-form textarea { resize: vertical; line-height: 1.75; }
.feedback-form textarea:focus, .feedback-form input[type="text"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.feedback-row { display: flex; gap: 10px; margin-top: 10px; }
.feedback-row input { flex: 1 1 auto; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.side-source p { margin: 0 0 8px; color: var(--muted); font-size: 12.5px; line-height: 1.75; }
.side-source p:last-child { margin-bottom: 0; }

.entry-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.entry-card-top .entry-card-title { min-width: 0; }
.entry-card-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.entry-card-meta span {
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 10.5px;
}
.entry-card-emotion { flex: 0 0 auto; font-size: 10.5px; color: var(--muted); padding-top: 3px; }
.entry-card-emotion-褒义 { color: #3f7f6f; }
.entry-card-emotion-贬义 { color: #b23b28; }

.hot-list { list-style: none; margin: 0; padding: 0; }
.hot-list li { border-bottom: 1px dashed var(--line); }
.hot-list li:last-child { border-bottom: 0; }
.hot-list a { display: flex; align-items: baseline; gap: 9px; padding: 7px 0; color: var(--ink-soft); }
.hot-list a:hover { color: var(--accent); }
.hot-rank { flex: 0 0 20px; color: var(--line-strong); font-family: var(--font-serif); font-size: 11px; }
.hot-title { font-family: var(--font-serif); font-size: 15px; }
.hot-meta { margin-left: auto; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }

.result-summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 12px;
    color: var(--muted);
    font-size: 12.5px;
}
.result-summary strong { color: var(--ink); font-size: 15px; }
.cell-muted { color: var(--muted); }

.pos-groups { display: flex; flex-direction: column; gap: 14px; }
.pos-group { display: flex; gap: 14px; align-items: flex-start; }
.pos-badge-large { flex: 0 0 54px; margin-top: 3px; font-size: 14px; }
.pos-group .sense-list { flex: 1 1 auto; }

.exchange-list-card {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

body.font-large .sense-text,
body.font-large .prose-lead { font-size: 19px; }

.button.is-favorite {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}
.button.is-favorite:hover { color: var(--accent-hover); }
.button.is-speaking { opacity: .68; }

@media (max-width: 900px) {
    .page-hero { flex-direction: column; align-items: flex-start; padding: 22px; }
    .page-hero-stats { gap: 22px; }
    .page-hero-stats div { align-items: flex-start; }
    .entry-hero { padding: 22px; }
    .glyph-panel { flex-basis: 150px; }
    .glyph-panel-char { font-size: 82px; }
    .toc-inline { position: static; border-radius: 14px; }
}

@media (max-width: 640px) {
    .filter-form input[type="search"] { flex: 1 1 100%; }
    .filter-form select { flex: 1 1 120px; min-width: 0; }
    .filter-form .button { flex: 0 0 auto; }
    .page-hero { margin-top: 10px; padding: 18px; border-radius: 16px; }
    .page-hero h1 { font-size: 1.65rem; }
    .page-hero p { font-size: 13px; }
    .page-hero-stats strong { font-size: 22px; }
    .entry-hero { flex-direction: column; gap: 16px; padding: 18px; border-radius: 16px; }
    .glyph-panel { flex: 0 0 auto; width: 118px; height: 118px; padding: 10px; }
    .glyph-panel-char { font-size: 66px; }
    .hero-title { font-size: 2.2rem; }
    .hero-title-idiom { font-size: 1.8rem; }
    .hero-reading { font-size: 15px; }
    .entry-actions .button { flex: 1 1 auto; }
    .section-heading h2 { font-size: 1.15rem; }
    .section-heading { padding-bottom: 11px; margin-bottom: 14px; }
    .entry-section { padding: 17px 16px 18px; margin-bottom: 12px; border-radius: 14px; }
    .prose-page { padding: 22px 18px 24px; margin-bottom: 30px; }
    .sense-item { gap: 8px; }
    .sense-item::before { flex-basis: 26px; }
    .sense-text { font-size: 15px; }
    .historical-card { padding: 14px 14px 15px; }
    .historical-head { flex-direction: column; gap: 4px; }
    .historical-source { text-align: left; }
    .historical-text { font-size: 15px; }
    .char-card-grid { grid-template-columns: 1fr 1fr; }
    .entry-nav { grid-template-columns: 1fr; }
    .entry-nav-next { text-align: left; align-items: flex-start; }
    .feedback-card { padding: 18px; }
    .feedback-row { flex-direction: column; }
    .feedback-row .button { width: 100%; }
    .pos-group { flex-direction: column; gap: 4px; }
    .pos-badge-large { flex: none; }
    .hot-meta { max-width: 90px; }
}

/* ===== 内容补充：字义关系 / 中英对照 ===== */
.relation-group {
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--jade);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}
.relation-group:last-child { margin-bottom: 0; }
.relation-group .subheading {
    margin: 0 0 10px;
    font-family: var(--font-serif);
    font-size: 15px;
    color: var(--ink);
}
.relation-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 7px 0;
    border-top: 1px dashed var(--line);
}
.relation-row:first-of-type { border-top: 0; padding-top: 0; }
.relation-label {
    flex: 0 0 80px;
    padding-top: 4px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .06em;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.bilingual-sense {
    padding: 13px 0;
    border-top: 1px solid var(--line);
}
.bilingual-sense:first-child { padding-top: 0; border-top: 0; }
.bilingual-sense-head {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 5px;
}
.bilingual-en {
    margin: 0;
    color: var(--ink);
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 15px;
    line-height: 1.7;
}
.bilingual-zh {
    margin: 0 0 0 0;
    padding-left: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}
@media (max-width: 640px) {
    .relation-row { flex-direction: column; gap: 4px; }
    .relation-label { flex: none; padding-top: 0; }
    .bilingual-sense-head { flex-direction: column; gap: 4px; }
}

/* ============================================================
   2026-11-24 字词档案页：hgcha 式纸面 / 标题 / 属性表 / 组词
   只作用于 .char-sheet 与 .word-sheet，不改变其他内容页
   ============================================================ */

.char-sheet,
.word-sheet {
    border: 1px solid var(--line-strong);
    border-radius: 3px;
    background: var(--surface);
    box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 6%, transparent);
}

.char-dossier,
.word-dossier {
    padding: 30px 34px 0;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 34%, transparent) 0%, transparent 44%),
        var(--surface);
}

.char-dossier-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.char-headline { min-width: 0; flex: 1 1 auto; }
.char-kicker {
    display: inline-block;
    color: var(--muted);
    font-size: 10.5px;
    letter-spacing: .16em;
    line-height: 1.4;
}

.char-name-row {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin-top: 8px;
}

.char-name {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: clamp(4rem, 8vw, 5.6rem);
    font-weight: 600;
    line-height: .98;
    letter-spacing: -.035em;
}

.char-name-meta { padding-bottom: 3px; }
.char-pinyin {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 19px;
    letter-spacing: .04em;
}
.char-pinyin strong { font-weight: 600; }
.char-pinyin span {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: .02em;
}

.char-tagline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.char-status-tag {
    display: inline-block;
    padding: 2px 7px;
    border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
    border-radius: 3px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    line-height: 1.6;
}
.char-tag {
    display: inline-block;
    padding: 1px 5px;
    border-bottom: 1px solid var(--line-strong);
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.7;
}
.char-tag-link { color: var(--ink-soft); }
.char-tag-link:hover { color: var(--accent); border-color: var(--accent); }

.char-actions,
.word-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
}
.char-actions .button,
.word-actions .button { font-size: 12px; padding: 6px 10px; border-radius: 3px; }

.char-stroke-panel {
    flex: 0 0 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding-top: 4px;
}
.mi-grid {
    position: relative;
    display: grid;
    place-items: center;
    width: 176px;
    height: 176px;
    border: 1px solid color-mix(in srgb, var(--accent) 52%, var(--line));
    background: color-mix(in srgb, var(--surface) 92%, var(--accent-soft));
}
.mi-grid::before {
    content: "";
    position: absolute;
    inset: 7px;
    background:
        linear-gradient(to right, transparent calc(50% - .5px), color-mix(in srgb, var(--accent) 26%, transparent) calc(50% - .5px), color-mix(in srgb, var(--accent) 26%, transparent) calc(50% + .5px), transparent calc(50% + .5px)),
        linear-gradient(to bottom, transparent calc(50% - .5px), color-mix(in srgb, var(--accent) 26%, transparent) calc(50% - .5px), color-mix(in srgb, var(--accent) 26%, transparent) calc(50% + .5px), transparent calc(50% + .5px));
    pointer-events: none;
}
.mi-grid::after {
    content: "";
    position: absolute;
    inset: 7px;
    background:
        linear-gradient(45deg, transparent calc(50% - .5px), color-mix(in srgb, var(--accent) 20%, transparent) calc(50% - .5px), color-mix(in srgb, var(--accent) 20%, transparent) calc(50% + .5px), transparent calc(50% + .5px)),
        linear-gradient(-45deg, transparent calc(50% - .5px), color-mix(in srgb, var(--accent) 20%, transparent) calc(50% - .5px), color-mix(in srgb, var(--accent) 20%, transparent) calc(50% + .5px), transparent calc(50% + .5px));
    pointer-events: none;
}
.mi-grid span {
    position: relative;
    z-index: 2;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 92px;
    line-height: 1;
}
.stroke-panel-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    color: var(--muted);
    font-size: 10.5px;
    letter-spacing: .04em;
}
.stroke-panel-caption span + span::before {
    content: "·";
    margin-right: 8px;
    color: var(--line-strong);
}

.stroke-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
    max-width: 100%;
    gap: 8px;
}
.mi-grid { overflow: hidden; }
.mi-grid svg {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100% !important;
    height: 100% !important;
}
.mi-grid.is-writing .mi-grid-fallback { opacity: 0 !important; visibility: hidden !important; display: none !important; }
.mi-grid-fallback { transition: opacity .18s ease; }
.stroke-play {
    font-size: 11px;
    line-height: 1.4;
    padding: 4px 9px;
}
.stroke-play[hidden] { display: none !important; }
.stroke-player-status {
    min-height: 14px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
}

.char-fact-table { margin-top: 25px; border-top: 1px solid var(--line); }
.char-fact-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 22px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.fact-pair {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
}
.fact-pair.is-wide { flex: 1 1 100%; }
.fact-label {
    flex: none;
    display: inline-block;
    padding: 1px 6px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.7;
    white-space: nowrap;
}
.fact-value {
    min-width: 0;
    padding-bottom: 1px;
    border-bottom: 1px solid var(--line-strong);
    color: var(--ink);
    font-size: 13.5px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.fact-pair.is-accent .fact-value {
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 1.4;
}
.char-query-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px 12px;
    padding: 12px 0 18px;
}
.inline-queries { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.inline-queries a {
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line-strong);
    font-size: 12.5px;
    line-height: 1.9;
}
.inline-queries a:hover { color: var(--accent); border-color: var(--accent); }

/* ===== 本页目录（胶囊锚点导航）===== */
.char-anchor-nav {
    position: sticky;
    top: var(--sticky-top, var(--header-height));
    z-index: 20;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 5px;
    padding: 9px 24px 10px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    transition: box-shadow .22s ease, background-color .22s ease;
}
.char-anchor-nav::-webkit-scrollbar { display: none; }
.char-anchor-nav.is-stuck {
    background: color-mix(in srgb, var(--surface) 98%, transparent);
    box-shadow: 0 10px 22px -14px rgba(31, 35, 40, .55);
}
.char-anchor-nav::before {
    content: "";
    flex: none;
    align-self: stretch;
    width: 3px;
    margin: 2px 3px 2px 0;
    border-radius: 2px;
    background: var(--accent);
    opacity: .55;
}
.char-anchor-nav a {
    flex: none;
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .01em;
    line-height: 1;
    white-space: nowrap;
    transition: color .16s ease, background-color .16s ease, border-color .16s ease,
                box-shadow .16s ease, transform .16s ease;
}
.char-anchor-nav a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}
.char-anchor-nav a:active { transform: scale(.96); }
.char-anchor-nav a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.char-anchor-nav a.is-active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 5px 14px -6px color-mix(in srgb, var(--accent) 65%, transparent);
}
[data-theme="dark"] .char-anchor-nav a { background: var(--surface-2); }
[data-theme="dark"] .char-anchor-nav a.is-active { background: var(--accent); color: #fff; }

.sheet-section {
    padding: 28px 34px 30px;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: calc(var(--sticky-top, var(--header-height)) + var(--anchor-nav-h, 52px) + 14px);
}
.sheet-section:last-child { border-bottom: 0; }
.sheet-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}
.sheet-section-head > div { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.sheet-index {
    flex: none;
    min-width: 23px;
    padding-top: 3px;
    border-top: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: 10.5px;
    line-height: 1;
    letter-spacing: .1em;
}
.sheet-section-head h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2.5vw, 1.5rem);
    font-weight: 600;
    letter-spacing: .04em;
}
.sheet-aside {
    flex: none;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .06em;
}
.more-link {
    flex: none;
    color: var(--accent);
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
    font-size: 12px;
    line-height: 1.8;
}
.more-link:hover { color: var(--accent-hover); border-color: var(--accent-hover); }

.basic-readings { display: flex; flex-direction: column; gap: 22px; }
.basic-reading-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-bottom: 7px;
    border-bottom: 1px dashed var(--line);
}
.basic-pinyin {
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 19px;
    letter-spacing: .04em;
}
.basic-zhuyin { color: var(--muted); font-size: 11.5px; }
.basic-sense-list { margin: 8px 0 0; padding: 0; list-style: none; }
.basic-sense-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 7px 0;
    border-bottom: 1px dotted var(--line);
}
.basic-sense-list li:last-child { border-bottom: 0; }
.basic-sense-num {
    flex: 0 0 24px;
    padding-top: 2px;
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .04em;
}
.basic-sense-text {
    color: var(--ink);
    font-size: 15.5px;
    line-height: 1.9;
}
.sense-pos {
    display: inline-block;
    margin-right: 5px;
    padding: 0 4px;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
    vertical-align: 1px;
}

.detail-reading { margin-bottom: 28px; }
.detail-reading:last-child { margin-bottom: 0; }
.detail-reading-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.detail-pinyin {
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 17px;
    letter-spacing: .04em;
}
.detail-count { color: var(--muted); font-size: 10.5px; }
.detail-sense { padding: 16px 0 2px; }
.detail-sense + .detail-sense { border-top: 1px dashed var(--line); }
.detail-sense-line { display: flex; align-items: flex-start; gap: 12px; }
.detail-sense-num {
    flex: 0 0 28px;
    padding-top: 3px;
    border-right: 1px solid var(--line);
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .05em;
}
.detail-sense-copy {
    color: var(--ink);
    font-size: 15.5px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}
.detail-example {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}
.lexeme-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 8px 0 0 40px;
}
.lexeme-item {
    display: flex;
    align-items: baseline;
    gap: 9px;
    min-width: 0;
    padding: 3px 0;
    border-bottom: 1px dotted color-mix(in srgb, var(--line) 80%, transparent);
    color: var(--ink-soft);
}
.lexeme-item:hover { color: var(--accent); border-color: var(--accent); }
.lexeme-word {
    flex: none;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 600;
}
.lexeme-item:hover .lexeme-word { color: var(--accent); }
.lexeme-gloss {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.7;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.detail-quotes {
    margin: 8px 0 0 40px;
    padding-left: 12px;
    border-left: 2px solid var(--line);
}
.detail-quotes blockquote { margin: 7px 0 0; }
.detail-quotes blockquote p {
    margin: 0;
    color: var(--ink-soft);
    font-family: var(--font-serif);
    font-size: 14px;
    line-height: 1.9;
}
.detail-quotes cite {
    display: inline-block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10.5px;
    font-style: normal;
}
.more-inline { margin: 5px 0 0 40px; }
.more-inline summary {
    width: fit-content;
    color: var(--accent);
    font-size: 11.5px;
    line-height: 1.8;
    cursor: pointer;
    list-style: none;
}
.more-inline summary::before { content: "＋ "; font-size: 10px; }
.more-inline summary:hover { color: var(--accent-hover); }
.more-inline .lexeme-list,
.more-inline .detail-quotes { margin-left: 0; }

@media (min-width: 960px) {
    .char-sheet .basic-sense-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 34px;
    }
    .char-sheet .basic-sense-list li { min-width: 0; }
    .char-sheet .lexeme-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 32px;
    }
    .char-sheet .lexeme-item { min-width: 0; }
    .char-sheet .lexeme-gloss {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }
    .char-sheet .detail-quotes blockquote p {
        display: inline;
    }
    .char-sheet .detail-quotes blockquote cite {
        display: inline;
        margin: 0 0 0 6px;
    }
    .char-sheet .historical-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 38px;
        align-items: start;
    }
    .char-sheet .historical-card {
        padding-top: 2px;
    }
    .char-sheet .historical-card:nth-last-child(-n+2) {
        border-bottom: 0;
        padding-bottom: 0;
    }
}

.historical-list { display: flex; flex-direction: column; gap: 0; }
.historical-card {
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}
.historical-card:first-child { padding-top: 2px; }
.historical-card:last-child { padding-bottom: 0; border-bottom: 0; }
.historical-head { margin-bottom: 7px; }
.historical-head h3 { font-family: var(--font-serif); font-size: 15px; }
.historical-source { font-size: 10.5px; }
.historical-text { font-size: 15px; line-height: 2; }

.relation-group { margin-bottom: 16px; }
.relation-group:last-child { margin-bottom: 0; }
.relation-group-title {
    margin: 0 0 8px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
}
.relation-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dotted var(--line);
}
.relation-row:last-child { border-bottom: 0; }
.relation-label {
    flex: 0 0 58px;
    color: var(--muted);
    font-size: 11px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--surface-2);
    color: var(--ink-soft);
    font-family: var(--font-serif);
    font-size: 13px;
    line-height: 1.7;
}

.word-group { margin-top: 14px; }
.word-group:first-of-type { margin-top: 0; }
.word-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--line);
}
.word-group-head h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 600;
}
.word-group-head span { color: var(--muted); font-size: 10.5px; }
.word-group-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 20px;
}
.word-group-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    padding: 8px 0;
    border-bottom: 1px dotted var(--line);
}
.word-group-item:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.word-group-pinyin {
    flex: 0 0 58px;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.word-group-word {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 14.5px;
    line-height: 1.7;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.word-group-item:hover .word-group-word { color: var(--accent); }

.subsection-title {
    margin: 18px 0 10px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
}
.subsection-title:first-of-type { margin-top: 0; }

.word-dossier { padding-top: 32px; }
.word-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-top: 9px;
}
.word-title-main { min-width: 0; }
.word-reading {
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 18px;
    letter-spacing: .04em;
}
.word-reading span {
    margin-left: 8px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 11.5px;
}
.word-name {
    margin: 4px 0 10px;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5.5vw, 3.6rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.02em;
}
.word-tagline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.word-fact-table { margin-top: 22px; }

.word-sense-list { display: flex; flex-direction: column; gap: 0; }
.word-sense {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dotted var(--line);
}
.word-sense:first-child { padding-top: 0; }
.word-sense:last-child { padding-bottom: 0; border-bottom: 0; }
.word-sense-num {
    flex: 0 0 26px;
    padding-top: 2px;
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 600;
}
.word-sense-body p {
    margin: 0;
    color: var(--ink);
    font-size: 15.5px;
    line-height: 1.95;
}
.word-sense-example {
    margin-top: 4px !important;
    color: var(--muted) !important;
    font-size: 13px !important;
}
.usage-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-left: 2px solid var(--accent);
    background: var(--surface-2);
}
.usage-note-mark {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
}
.usage-note p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.95; }

.citation-block { margin-bottom: 12px; }
.citation-label {
    display: inline-block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
}
.citation-block p {
    margin: 0;
    color: var(--ink-soft);
    font-family: var(--font-serif);
    font-size: 14.5px;
    line-height: 1.95;
}
.citation-quote {
    margin: 8px 0;
    padding-left: 14px;
    border-left: 2px solid var(--line);
}
.citation-quote p {
    margin: 0;
    color: var(--ink-soft);
    font-family: var(--font-serif);
    font-size: 14.5px;
    line-height: 1.95;
}
.citation-quote cite { color: var(--muted); font-size: 11px; font-style: normal; }

.example-list { display: flex; flex-direction: column; gap: 0; }
.example-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dotted var(--line);
}
.example-item:first-child { padding-top: 0; }
.example-item:last-child { padding-bottom: 0; border-bottom: 0; }
.example-num {
    flex: 0 0 24px;
    color: var(--muted);
    font-size: 10.5px;
    letter-spacing: .04em;
}
.example-item p { margin: 0; color: var(--ink); font-size: 14.5px; line-height: 1.9; }
.example-badge {
    flex: none;
    align-self: center;
    padding: 1px 5px;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--muted);
    font-size: 9.5px;
    line-height: 1.7;
    white-space: nowrap;
}

.collocation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
}
.collocation-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    padding: 9px 0;
    border-bottom: 1px dotted var(--line);
}
.collocation-item strong {
    flex: none;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 14.5px;
    font-weight: 600;
}
.collocation-item span { color: var(--muted); font-size: 12.5px; line-height: 1.7; }

.composition-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.composition-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px dotted var(--line);
}
.composition-item:hover .composition-glyph { color: var(--accent); }
.composition-glyph {
    flex: 0 0 48px;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 42px;
    line-height: 1.1;
}
.composition-meta { min-width: 0; padding-top: 3px; }
.composition-meta strong {
    display: block;
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 500;
}
.composition-meta span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.8;
}

.related-word-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.related-word-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dotted var(--line);
    min-width: 0;
}
.related-word-item strong {
    flex: none;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 14.5px;
    font-weight: 600;
}
.related-word-item span {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.related-word-item:hover strong { color: var(--accent); }

@media (max-width: 720px) {
    .char-dossier,
    .word-dossier { padding: 22px 20px 0; }
    .char-dossier-top { flex-direction: column; gap: 16px; }
    .char-name { font-size: clamp(3.4rem, 16vw, 4.6rem); }
    .char-stroke-panel {
        flex: none;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        padding-top: 0;
    }
    .mi-grid { width: 126px; height: 126px; }
    .mi-grid span { font-size: 66px; }
    .stroke-panel-caption { justify-content: flex-start; max-width: 120px; }
    .char-fact-row { gap: 4px 14px; }
    .char-query-row { padding-bottom: 14px; }
    .char-anchor-nav {
        gap: 7px;
        padding: 8px 14px 9px;
        border-top: 0;
    }
    .char-anchor-nav::before { display: none; }
    .char-anchor-nav { padding-left: 12px; }
    .char-anchor-nav a {
        height: 29px;
        padding: 0 12px;
        font-size: 12.5px;
    }
    .sheet-section { padding: 22px 20px 24px; }
    .sheet-section-head { gap: 12px; margin-bottom: 16px; }
    .sheet-section-head h2 { font-size: 1.3rem; }
    .basic-sense-text,
    .detail-sense-copy,
    .word-sense-body p { font-size: 15px; }
    .lexeme-list,
    .detail-quotes,
    .more-inline { margin-left: 0; }
    .word-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
    .word-group-pinyin { flex-basis: 48px; }
    .word-title-row { flex-direction: column; align-items: flex-start; gap: 14px; }
    .word-actions { margin-top: 0; }
    .word-name { font-size: clamp(2.2rem, 10vw, 3rem); }
    .collocation-grid,
    .composition-list,
    .related-word-list { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
    .char-name-row { gap: 8px 14px; }
    .char-pinyin { font-size: 17px; }
    .fact-value { font-size: 12.5px; }
    .fact-pair.is-accent .fact-value { font-size: 16px; }
    .word-group-grid { grid-template-columns: 1fr; }
    .word-group-pinyin { flex-basis: 54px; }
    .example-item { flex-wrap: wrap; }
    .example-item p { flex: 1 1 calc(100% - 34px); }
}

/* 2026-11-25 内容补充展示 */
.content-note-list { display: flex; flex-direction: column; gap: 8px; }
.content-note-list .usage-note { margin: 0; }
.content-bullet-list { margin: 8px 0 0 18px; padding: 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.9; }
.content-bullet-list li { margin: 3px 0; }

.word-group-item { flex-wrap: wrap; }
.word-group-gloss {
    flex: 0 0 100%;
    padding-left: 66px;
    overflow: hidden;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.7;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.historical-details { border: 1px solid var(--line); border-radius: 10px; padding: 0 14px 12px; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.historical-details summary {
    cursor: pointer;
    padding: 11px 0;
    color: var(--muted);
    font-size: 12.5px;
    list-style: none;
}
.historical-details summary::-webkit-details-marker { display: none; }
.historical-details summary::before { content: '＋ '; color: var(--accent); }
.historical-details[open] summary::before { content: '－ '; }
.historical-details[open] summary { border-bottom: 1px dashed var(--line); margin-bottom: 12px; }

.chip-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding: 6px 10px;
}
.chip-stack strong { color: var(--ink); font-size: 12.5px; font-weight: 600; }
.chip-stack em { color: var(--muted); font-size: 11px; font-style: normal; }

@media (max-width: 720px) {
    .word-group-gloss { padding-left: 0; }
}

/* 2026-11-25 组词两列 */
.char-sheet .word-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.char-sheet .word-group-gloss { padding-left: 58px; }
@media (max-width: 460px) {
    .char-sheet .word-group-grid { grid-template-columns: 1fr; }
    .char-sheet .word-group-gloss { padding-left: 0; }
}

/* 2026-11-26 组词页 / 首页最新收录 */
.word-block { margin: 0 0 26px; }
.word-block-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 13px;
}
.word-block-head h2 { font-size: 15px; font-weight: 700; margin: 0; }
.word-block-count { color: var(--muted); font-size: 12.5px; }
.word-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}
.word-link-grid a {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    background: var(--surface-2);
    font-size: 14px;
    color: var(--ink);
    overflow: hidden;
}
.word-link-grid a:hover { border-color: var(--accent); color: var(--accent); }
.word-link-grid strong { font-weight: 600; white-space: nowrap; }
.word-link-pinyin { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.latest-list { display: flex; flex-direction: column; gap: 2px; }
.latest-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 2px;
    border-bottom: 1px dashed var(--line);
    font-size: 13.5px;
    color: var(--ink-soft);
}
.latest-list a:last-child { border-bottom: 0; }
.latest-list a:hover { color: var(--accent); }
.latest-tag {
    flex: none;
    font-size: 11px;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 1px 7px;
}
@media (max-width: 460px) {
    .word-link-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* ============================================================
   2026-11-27 视觉整改：11 hero 压缩 / 14 卡片等高 / 15 筛选一行 / 17 深色页脚
   ============================================================ */

/* 14 卡片等高：释义固定两行，元信息吸底 */
.entry-card { min-height: 128px; }
.entry-card-snippet { min-height: 39px; }
.entry-card-snippet-empty { color: transparent; }
.entry-card-meta { margin-top: auto; }
.entry-card-mingju { min-height: 108px; }
.entry-card-mingju .entry-card-snippet-empty { display: none; }

/* 11 首页已有大搜索框，移动端不再叠一条头部搜索 */
@media (max-width: 640px) {
    body:has(.hero) .site-header .header-search { display: none; }
}

/* 11 首页 hero 移动端压到 300px 内 */
@media (max-width: 640px) {
    .hero { padding: 14px 0 16px; }
    .hero h1 { font-size: 1.42rem; line-height: 1.26; letter-spacing: .04em; margin: 0 0 8px; }
    .hero-sub { display: none; }
    .hero-search { padding: 6px; border-radius: 14px; }
    .hero-tabs { padding: 0 2px 7px; gap: 2px; }
    .hero-tab { padding: 3px 9px; font-size: 12.5px; }
    .hero-search-row { gap: 6px; padding: 3px 3px 3px 12px; border-radius: 12px; }
    .hero-input { font-size: 15px; padding: 6px 0; }
    .hero-button { padding: 7px 15px; font-size: 13.5px; border-radius: 9px; }
    .hero-stats { margin: 9px 0 0; font-size: 11px; line-height: 1.7; white-space: nowrap; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
    .hero-stats::-webkit-scrollbar { display: none; }
    .hero-stats .hs-pre, .hero-stats .hs-m, .hero-stats .hs-long { display: none; }
    .hero-stats .hs-short { display: inline; }
    .hero-stats .hs-dot { margin: 0 3px; }
    .hero-stats-lit { margin-top: 4px; }
}

/* 13 详情页目录条：移动端单行横向滚动，不再折成两行 */
@media (max-width: 640px) {
    .toc-inline {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        padding: 6px;
        border-radius: 999px;
    }
    .toc-inline::-webkit-scrollbar { display: none; }
    .toc-inline a { white-space: nowrap; }
}

/* 15 列表筛选区合成一行（移动端不再堆两三层） */
@media (max-width: 640px) {
    .filter-form {
        flex-wrap: nowrap;
        gap: 6px;
        padding: 8px;
        border-radius: 12px;
        margin-bottom: 10px;
    }
    .filter-form input[type="search"] {
        flex: 1 1 auto;
        min-width: 0;
        padding: 6px 10px;
        min-height: 36px;
        font-size: 13.5px;
    }
    .filter-form select {
        flex: 0 0 auto;
        min-width: 0;
        max-width: 104px;
        padding: 6px 8px;
        min-height: 36px;
        font-size: 13px;
    }
    .filter-form .button {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }
    /* 移动端隐藏“重置”：搜索框自带清除，下拉可选回“全部” */
    .filter-form .button-ghost { display: none; }
}

/* 17 深色模式页脚：线更清楚、链接更亮 */
[data-theme="dark"] .site-footer .footer-bottom {
    border-top-color: rgba(243, 239, 230, .26);
    color: #a49c90;
}
[data-theme="dark"] .site-footer .footer-legal a,
[data-theme="dark"] .site-footer .footer-meta a { color: #ded7cb; }
[data-theme="dark"] .site-footer .footer-meta span { color: #9a9285; }
[data-theme="dark"] .site-footer .footer-links { border-top-color: rgba(243, 239, 230, .18); }
[data-theme="dark"] .site-footer .footer-links-head span { color: #9a9285; }

/* ============================================================
   2026-11-27 英语词条类型分类导航
   ============================================================ */
.type-nav {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    padding: 0 2px 2px;
    overflow-x: auto;
    scrollbar-width: none;
}
.type-nav::-webkit-scrollbar { display: none; }

.type-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    transition: border-color .15s, background .15s, color .15s;
}
.type-chip span { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.type-chip:hover { border-color: var(--accent); color: var(--ink); }
.type-chip.is-active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}
.type-chip.is-active span { color: var(--accent); }

.chip-soft { background: var(--surface-2); color: var(--muted); }

@media (max-width: 640px) {
    .type-nav { gap: 5px; }
    .type-chip { padding: 5px 10px; font-size: 12.5px; }
    .type-chip span { font-size: 10.5px; }
}

/* 汉字字形与源站笔顺图 */
.char-glyph-img {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 5%;
    box-sizing: border-box;
    object-fit: contain;
    background: color-mix(in srgb, var(--surface) 92%, var(--accent-soft));
}
.stroke-gif-img {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    object-fit: contain;
    background: #fff;
}
.stroke-gif-img[hidden] { display: none !important; }
.mi-grid.is-gif .char-glyph-img { visibility: hidden; }
.stroke-fenbu {
    width: 100%;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.5;
    text-align: center;
}
.stroke-fenbu summary { cursor: pointer; color: var(--ink-soft); }
.stroke-fenbu img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 7px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}
@media (max-width: 720px) {
    .stroke-fenbu { max-width: 130px; }
}


/* ===== 卡片网格响应式列数（2026-12 统一） ===== */
/* 成语“逐字解释”这类一行最多 4 张的卡片，用 flex 让不足 4 张时自动撑满整行 */
.char-card-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.char-card-grid > .char-card { flex: 1 1 calc(25% - 8px); min-width: 0; }
@media (max-width: 1024px) {
    .entry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .char-card-grid > .char-card { flex-basis: calc(33.333% - 7px); }
}
@media (max-width: 640px) {
    .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .char-card-grid > .char-card { flex-basis: calc(50% - 5px); }
}

/* ===== 详情页右栏补充与手机收起（2026-12） ===== */
.mobile-related { display: none; }
@media (max-width: 900px) {
    /* 手机上详情页右栏整体收起，只在正文末尾留一条相关推荐 */
    .entry-side { display: none !important; }
    .mobile-related {
        display: block;
        margin-top: 26px;
        padding: 16px 16px 14px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--surface);
    }
    .mobile-related h2 {
        font-family: var(--font-sans);
        font-size: 13px;
        letter-spacing: .1em;
        color: var(--muted);
        font-weight: 600;
        margin-bottom: 10px;
    }
}
