/* ============================================================
   IWantLearn Dict · 词典页面
   ============================================================ */

/* ---------- 首页 Hero ---------- */
.hero {
    position: relative;
    z-index: 5;
    padding: 58px 0 46px;
    text-align: center;
    background:
        radial-gradient(circle at 50% -10%, rgba(245, 215, 110, .18), transparent 55%),
        linear-gradient(180deg, var(--gold-bg), transparent 78%);
    border-bottom: 1px solid var(--border);
}
html.dark-mode .hero {
    background:
        radial-gradient(circle at 50% -10%, rgba(245, 215, 110, .13), transparent 55%),
        linear-gradient(180deg, #1e1e3a, var(--bg) 80%);
}
/* 跟随鼠标的金色光晕 */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(560px 380px at var(--mx, 50%) var(--my, 10%),
        rgba(245, 215, 110, .52), rgba(245, 215, 110, 0) 70%);
    opacity: var(--glow, 0);
    transition: opacity .35s ease;
}
html.dark-mode .hero::before {
    background: radial-gradient(520px 340px at var(--mx, 50%) var(--my, 10%),
        rgba(245, 215, 110, .18), rgba(245, 215, 110, 0) 70%);
}
.hero > .container { position: relative; z-index: 1; }
.hero-kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 14px;
    border: 1px solid var(--gold);
    border-radius: 50px;
    color: var(--gold-dark);
    background: var(--card);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    line-height: 1.15;
    letter-spacing: 2px;
    font-weight: 800;
}
.hero-sub {
    margin: 12px auto 26px;
    max-width: 620px;
    color: var(--text-muted);
    font-size: .93rem;
}
.hero-search-wrap {
    position: relative;
    z-index: 40;
    max-width: 650px;
    margin: 0 auto;
}
.hero-search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 58px;
    padding: 0 8px 0 20px;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.hero-search:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 5px var(--gold-bg), var(--shadow-md);
}
.hero-search .icon-search { width: 19px; height: 19px; }
.hero-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 1.02rem;
}
.hero-search input::placeholder { color: var(--text-faint); }
.hero-search input::-webkit-search-cancel-button { display: none; }
.hero-search .btn { flex-shrink: 0; height: 44px; padding: 0 26px; font-size: .92rem; }
.hero-search-wrap .suggest { top: calc(100% + 10px); text-align: left; }
.hero-hints {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    margin-top: 14px;
    color: var(--text-faint);
    font-size: .76rem;
}
.hero-hints span::before { content: '·'; margin-right: 6px; color: var(--gold); }

/* ---------- 首页主体 ---------- */
.home-main { padding: 34px 0 0; }

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 30px;
}
.stat-tile {
    padding: 18px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.stat-tile:hover { border-color: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-num {
    display: block;
    color: var(--gold-dark);
    font-size: 1.5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
}
.stat-label { color: var(--text-muted); font-size: .76rem; }

.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.wotd-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    background:
        linear-gradient(135deg, var(--gold-bg), transparent 62%),
        var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.wotd-card:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); transform: translateY(-2px); }
.wotd-card::after {
    content: 'Aa';
    position: absolute;
    right: 22px;
    bottom: -18px;
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 7rem;
    font-weight: 700;
    opacity: .07;
    line-height: 1;
    pointer-events: none;
}
.wotd-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--gold-dark);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.wotd-label::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-bg);
}
.wotd-word {
    margin: 14px 0 2px;
    font-size: 2.35rem;
    font-weight: 750;
    letter-spacing: -.5px;
    line-height: 1.15;
    word-break: break-word;
}
.wotd-phon {
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .9rem;
}
.wotd-brief {
    max-width: 92%;
    margin-top: 14px;
    color: var(--text-sub);
    font-size: .92rem;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wotd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.wotd-more { margin-top: 16px; color: var(--gold-dark); font-size: .82rem; font-weight: 600; }

.discover-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.discover-title {
    margin-bottom: 14px;
    padding-left: 11px;
    border-left: 3px solid var(--gold);
    font-size: .95rem;
    font-weight: 700;
}
.discover-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.discover-links { display: flex; flex-direction: column; margin-top: 16px; }
.discover-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 2px;
    border-bottom: 1px solid var(--border);
    color: var(--text-sub);
    font-size: .84rem;
    transition: color .2s ease, padding-left .2s ease;
}
.discover-links a:last-child { border-bottom: 0; }
.discover-links a span:last-child { color: var(--gold); }
.discover-links a:hover { color: var(--gold-dark); padding-left: 5px; }
.discover-note {
    margin-top: auto;
    padding-top: 18px;
    color: var(--text-muted);
    font-size: .8rem;
    line-height: 1.8;
}
.discover-note b { color: var(--gold-dark); }

/* ---------- 区块 ---------- */
.section { margin-top: 38px; }
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.06rem;
    font-weight: 700;
}
.section-title::before {
    content: '';
    width: 4px;
    height: 18px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--gold), var(--gold-light));
}
.section-sub, .section-link { color: var(--text-muted); font-size: .78rem; }
.section-link:hover { color: var(--gold); }

/* 历史 */
.history-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.history-chip {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: var(--card);
    color: var(--text-sub);
    font-size: .82rem;
    cursor: pointer;
    transition: all .2s ease;
}
.history-chip:hover { border-color: var(--gold); color: var(--gold-dark); background: var(--gold-bg); }
.clear-history {
    border: 0;
    background: none;
    color: var(--text-faint);
    font-size: .76rem;
    cursor: pointer;
}
.clear-history:hover { color: #d9534f; }

/* 考试词汇 */
.exam-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.exam-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}
.exam-card:hover {
    border-color: var(--gold);
    background: var(--card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.exam-name { font-size: .92rem; font-weight: 650; }
.exam-count { color: var(--text-muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.exam-arrow { color: var(--gold); font-size: 1rem; opacity: .7; transition: transform .2s ease; }
.exam-card:hover .exam-arrow { transform: translateX(3px); opacity: 1; }

/* 字母浏览 */
.letter-grid {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 8px;
}
.letter-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 10px 4px 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all .2s ease;
}
.letter-cell:hover { border-color: var(--gold); background: var(--gold-bg); transform: translateY(-2px); }
.letter-cell .l { color: var(--text); font-size: 1rem; font-weight: 700; line-height: 1.2; }
.letter-cell .n { color: var(--text-faint); font-size: .62rem; font-variant-numeric: tabular-nums; }

/* ---------- 内页通用 ---------- */
.page { padding-top: 32px; }
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 1.7rem; line-height: 1.3; letter-spacing: -.3px; }
.page-head .muted { margin-top: 4px; color: var(--text-muted); font-size: .86rem; }
.page-head .gold-text { font-weight: 800; }
.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: .8rem;
}
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { color: var(--text-faint); }
.crumbs .cur { color: var(--text-sub); }

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

/* ---------- 搜索结果列表 ---------- */
.result-list { padding: 4px 0; overflow: hidden; }
.result-item {
    display: block;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    transition: background-color .18s ease, border-color .18s ease;
}
.result-item:last-child { border-bottom: 0; }
.result-item:hover { background: var(--gold-bg); }
.result-top {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
}
.result-word { font-size: 1.1rem; font-weight: 700; }
.result-item:hover .result-word { color: var(--gold-dark); }
.result-phon {
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .78rem;
}
.result-brief {
    margin-top: 3px;
    color: var(--text-sub);
    font-size: .86rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.result-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.result-idx {
    margin-right: 8px;
    color: var(--text-faint);
    font-size: .74rem;
    font-variant-numeric: tabular-nums;
}

.load-more-wrap { padding: 22px 0; text-align: center; }
.load-more-wrap .btn { min-width: 160px; }
.list-end { padding: 18px 0; color: var(--text-faint); font-size: .78rem; text-align: center; }

/* 拼写纠错建议 */
.alt-strip {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin: -6px 0 18px; padding: 10px 14px;
    background: var(--gold-bg); border: 1px solid var(--border-strong);
    border-radius: var(--radius);
}
.alt-label { color: var(--text-muted); font-size: .78rem; white-space: nowrap; }
.alt-chip {
    display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%;
    padding: 4px 10px; border-radius: 999px;
    background: var(--card); border: 1px solid var(--border);
    font-size: .82rem; transition: border-color .18s, color .18s;
}
.alt-chip:hover { color: var(--gold-dark); border-color: var(--gold); }
.alt-chip b { font-weight: 700; }
.alt-chip span { color: var(--text-muted); font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
@media (max-width: 560px) { .alt-chip span { max-width: 130px; } }

/* 逐词释义 */
.breakdown { margin-top: 26px; }
.breakdown .section-title { margin-bottom: 12px; }
.breakdown-item { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.breakdown-item:last-child { border-bottom: 0; }
.breakdown-word { font-size: 1rem; font-weight: 700; }
.breakdown-phon { margin-left: 8px; color: var(--text-muted); font-size: .76rem; font-family: ui-monospace, Menlo, monospace; }
.breakdown-brief { margin-top: 2px; color: var(--text-sub); font-size: .85rem; }

/* ---------- 单词详情 ---------- */
.word-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 316px;
    gap: 22px;
    align-items: start;
}
.word-card { padding: 30px 32px; }
.word-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.word-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.8px;
    line-height: 1.15;
    word-break: break-word;
}
.word-phon {
    margin-top: 6px;
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .95rem;
    letter-spacing: .3px;
}
.speak-group { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.speak-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 38px;
    min-width: 44px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: var(--card);
    color: var(--text-sub);
    font-size: .76rem;
    cursor: pointer;
    transition: all .2s ease;
}
.speak-btn:hover { border-color: var(--gold); color: var(--gold-dark); background: var(--gold-bg); }
.speak-btn svg { width: 15px; height: 15px; }

.word-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; }
.word-badge {
    padding: 2px 10px;
    border-radius: 50px;
    background: var(--border-soft);
    color: var(--text-sub);
    font-size: .72rem;
    white-space: nowrap;
}
html.dark-mode .word-badge { background: #2d2d52; }
.word-badge.gold { background: var(--gold-bg); color: var(--gold-dark); font-weight: 600; }
.word-badge.stars { color: #d99e0b; letter-spacing: 2px; background: #fdf4dd; }
html.dark-mode .word-badge.stars { background: #3a2f10; color: #f0c04a; }

.word-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

/* 释义 */
.defs { margin-top: 22px; }
.def-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
}
.def-pos {
    flex-shrink: 0;
    min-width: 44px;
    padding-top: 3px;
    color: var(--gold-dark);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .76rem;
    font-weight: 700;
    text-transform: lowercase;
}
.def-text { color: var(--text); font-size: 1rem; line-height: 1.8; word-break: break-word; }
.def-text .comma { color: var(--text-faint); margin: 0 2px; }
.def-field {
    flex-shrink: 0;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--gold-bg);
    color: var(--gold-dark);
    font-size: .68rem;
}
.def-empty { color: var(--text-muted); }

.en-def {
    margin-top: 22px;
    border-top: 1px dashed var(--border);
    padding-top: 16px;
}
.en-def summary {
    color: var(--text-muted);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.en-def summary::-webkit-details-marker { display: none; }
.en-def summary::before { content: '＋'; margin-right: 7px; color: var(--gold); }
.en-def[open] summary::before { content: '－'; }
.en-def-body {
    margin-top: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--border-soft);
    color: var(--text-sub);
    font-size: .86rem;
    line-height: 1.8;
    white-space: pre-wrap;
}
html.dark-mode .en-def-body { background: #1e1e3a; }

/* 侧栏 */
.word-side { display: flex; flex-direction: column; gap: 16px; }
.side-card { padding: 18px 20px; }
.side-title {
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid var(--gold);
    font-size: .88rem;
    font-weight: 700;
}
.side-empty { color: var(--text-faint); font-size: .8rem; }

.meta-list { display: flex; flex-direction: column; gap: 8px; }
.meta-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: .8rem;
}
.meta-row .k { color: var(--text-muted); }
.meta-row .v { color: var(--text-sub); font-weight: 600; text-align: right; }
.meta-row .v.mono { font-family: ui-monospace, Menlo, monospace; font-weight: 500; }

.forms-list { display: flex; flex-direction: column; gap: 7px; }
.form-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: .82rem;
}
.form-label { flex-shrink: 0; min-width: 62px; color: var(--text-muted); font-size: .74rem; }
.form-val { color: var(--text-sub); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
a.form-val:hover { color: var(--gold); text-decoration: underline; }
.form-val.missing { color: var(--text-faint); }

.chip-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.word-chip {
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: var(--card);
    color: var(--text-sub);
    font-size: .78rem;
    transition: all .18s ease;
}
.word-chip:hover { border-color: var(--gold); color: var(--gold-dark); background: var(--gold-bg); }

.phrase-list { display: flex; flex-direction: column; gap: 2px; }
.phrase-row { padding: 6px 0; border-bottom: 1px solid var(--border); }
.phrase-row:last-child { border-bottom: 0; }
.phrase-word { display: block; color: var(--text-sub); font-size: .84rem; font-weight: 600; }
.phrase-word:hover { color: var(--gold-dark); }
.phrase-brief {
    color: var(--text-muted);
    font-size: .74rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ---------- 浏览 / 考试词汇 ---------- */
.letter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 18px;
}
.letter-nav a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    color: var(--text-sub);
    font-size: .84rem;
    font-weight: 600;
    transition: all .18s ease;
}
.letter-nav a:hover, .letter-nav a.active {
    border-color: var(--gold);
    background: var(--gold);
    color: #fff;
}

.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: .8rem;
}
.sort-switch { display: flex; gap: 4px; }
.sort-switch a {
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: var(--card);
    color: var(--text-muted);
    font-size: .76rem;
}
.sort-switch a.active { border-color: var(--gold); color: var(--gold-dark); background: var(--gold-bg); }

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 24px 0 4px;
}
.pager button, .pager span {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    color: var(--text-sub);
    font-size: .78rem;
    cursor: pointer;
}
.pager button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-dark); }
.pager button.active { border-color: var(--gold); background: var(--gold); color: #fff; }
.pager button:disabled { opacity: .42; cursor: default; }
.pager span.ellipsis { border: 0; background: none; color: var(--text-faint); cursor: default; }

/* ---------- 考试词汇总览 ---------- */
.exam-overview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.exam-panel {
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all .22s ease;
}
.exam-panel:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.exam-panel-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.exam-panel-name { font-size: 1.08rem; font-weight: 700; }
.exam-panel-count { color: var(--gold-dark); font-size: .82rem; font-weight: 650; }
.exam-panel-desc { margin-top: 6px; color: var(--text-muted); font-size: .8rem; line-height: 1.7; }
.exam-panel-bar {
    height: 4px;
    margin-top: 14px;
    border-radius: 3px;
    background: var(--border-soft);
    overflow: hidden;
}
.exam-panel-bar i {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* ---------- 收藏 ---------- */
.fav-list { display: flex; flex-direction: column; }
.fav-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.fav-item:last-child { border-bottom: 0; }
.fav-main { flex: 1; min-width: 0; }
.fav-word { font-size: 1rem; font-weight: 700; }
.fav-phon { margin-left: 8px; color: var(--text-muted); font-family: ui-monospace, Menlo, monospace; font-size: .74rem; }
.fav-brief {
    margin-top: 2px;
    color: var(--text-sub);
    font-size: .83rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.fav-remove {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--card);
    color: var(--text-faint);
    cursor: pointer;
    transition: all .18s ease;
}
.fav-remove:hover { border-color: #d9534f; color: #d9534f; background: rgba(217, 83, 79, .08); }

/* ---------- 空状态 ---------- */
.empty-state {
    padding: 64px 24px;
    text-align: center;
}
.empty-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    color: var(--gold);
    opacity: .8;
}
.empty-state h2 { margin-bottom: 6px; font-size: 1.15rem; font-weight: 700; }
.empty-state p { margin: 0 auto 20px; max-width: 420px; color: var(--text-muted); font-size: .85rem; }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.about-card { padding: 28px; }
.about-card h2 { margin-bottom: 12px; font-size: 1.15rem; }
.about-card h3 { margin: 20px 0 8px; padding-left: 10px; border-left: 3px solid var(--gold); font-size: .95rem; }
.about-card p { color: var(--text-sub); font-size: .87rem; line-height: 1.85; }
.about-card ul { margin: 8px 0 0 18px; color: var(--text-sub); font-size: .86rem; line-height: 1.9; }
.about-card li::marker { color: var(--gold); }
.about-card code {
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--gold-bg);
    color: var(--gold-dark);
    font-family: ui-monospace, Menlo, monospace;
    font-size: .82em;
}
.kv-list { display: flex; flex-direction: column; gap: 10px; }
.kv-list .meta-row { padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.kv-list .meta-row:last-child { border-bottom: 0; padding-bottom: 0; }
.about-links { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.about-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-sub);
    font-size: .84rem;
    transition: all .2s ease;
}
.about-links a:hover { border-color: var(--gold); color: var(--gold-dark); background: var(--gold-bg); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
    .home-grid { grid-template-columns: 1fr; }
    .word-layout { grid-template-columns: 1fr; }
    .word-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .letter-grid { grid-template-columns: repeat(13, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .hero { padding: 38px 0 34px; }
    .hero h1 { letter-spacing: 1px; }
    .hero-sub { margin: 10px auto 20px; font-size: .85rem; }
    .hero-search { height: 52px; padding-left: 16px; }
    .hero-search .btn { height: 40px; padding: 0 18px; }
    .hero-hints { font-size: .7rem; }

    .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-tile { padding: 14px; }
    .stat-num { font-size: 1.25rem; }

    .wotd-card { padding: 22px; }
    .wotd-word { font-size: 1.9rem; }
    .exam-grid { grid-template-columns: repeat(2, 1fr); }
    .letter-grid { grid-template-columns: repeat(7, 1fr); }
    .letter-cell { padding: 8px 2px 6px; }
    .letter-cell .n { font-size: .56rem; }

    .page { padding-top: 22px; }

    .word-card { padding: 22px 20px; }
    .word-head { flex-direction: column; gap: 12px; }
    .word-side { grid-template-columns: 1fr; }
    .def-row { gap: 8px; }
    .def-pos { min-width: 38px; }
    .result-item { padding: 13px 16px; }
    .exam-overview { grid-template-columns: 1fr; }
    .about-card { padding: 22px; }
    .fav-item { padding: 13px 16px; }
    .list-toolbar { font-size: .76rem; }
    .pager button, .pager span { min-width: 30px; height: 30px; padding: 0 7px; }
    .footer-links { gap: 6px 14px; }
}

@media (max-width: 420px) {
    .nav-brand { font-size: .92rem; }
    .hero-search .btn { padding: 0 14px; }
    .letter-grid { grid-template-columns: repeat(6, 1fr); }
    .exam-grid { grid-template-columns: 1fr; }
    .speak-btn { min-width: 38px; padding: 0 8px; }
}
