/* 汉语词典 —— 前台样式
   宣纸底 · 宋体字 · 朱红印 · 双线书框，与站内《说文解字》《方剂大全》同一套视觉语言 */

.hy-wrap {
    --hy-ink: #2f2a26;
    --hy-brown: #5a4430;
    --hy-red: #8c2323;
    --hy-red-deep: #6d1a1a;
    --hy-gold: #a67c29;
    --hy-gold-lt: #c8a878;
    --hy-line: #e3d6c1;
    --hy-line-soft: #efe6d6;
    --hy-paper: #fffdf8;
    --hy-paper-2: #f9f3e7;
    --hy-muted: #9a8b78;
    font-family: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
    color: var(--hy-brown);
    max-width: 1080px;
    margin: 0 auto;
    padding: 4px 0 34px;
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
}
.hy-wrap * { box-sizing: border-box; }
.hy-wrap a { color: inherit; text-decoration: none; }

/* ---------------- 首页头部 ---------------- */
.hy-hero {
    position: relative;
    text-align: center;
    padding: 22px 16px 26px;
    margin-bottom: 18px;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(200, 168, 120, .16), rgba(255, 253, 248, 0) 62%),
        linear-gradient(180deg, #fffdf8, #fbf5ea);
    border: 1px solid var(--hy-line);
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(90, 68, 48, .05);
    overflow: hidden;
}
.hy-hero::before,
.hy-hero::after {
    content: '';
    position: absolute;
    left: 16px; right: 16px;
    height: 0;
    border-top: 1px solid rgba(200, 168, 120, .45);
}
.hy-hero::before { top: 10px; }
.hy-hero::after { bottom: 10px; }
.hy-hero-seal {
    width: 42px; height: 42px;
    margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(145deg, #a62b2b, #7d1c1c);
    border-radius: 7px;
    letter-spacing: 0;
    box-shadow: 0 3px 10px rgba(140, 35, 35, .28), inset 0 0 0 2px rgba(255, 255, 255, .18);
    transform: rotate(-3deg);
}
.hy-wrap .page-title {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 8px;
    color: var(--hy-red);
    text-indent: 8px;
}
.hy-wrap .page-sub {
    margin: 0;
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--hy-muted);
}
.hy-wrap .page-sub b {
    color: var(--hy-red);
    font-weight: 400;
    font-size: 14px;
    padding: 0 2px;
}
.hy-hero-hint {
    margin: 8px 0 0;
    font-size: 12.5px;
    color: #b3a58f;
    letter-spacing: .5px;
}

/* ---------------- 面包屑 ---------------- */
.hy-crumb {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 2px 0 14px;
    font-size: 12.5px;
    color: var(--hy-muted);
}
.hy-crumb a { color: var(--hy-brown); }
.hy-crumb a:hover { color: var(--hy-red); }
.hy-back {
    padding: 4px 12px;
    border: 1px solid var(--hy-line);
    border-radius: 6px;
    background: #fff;
    transition: all .2s;
}
.hy-back:hover { border-color: var(--hy-gold-lt); box-shadow: 0 2px 8px rgba(166, 124, 41, .1); }
.hy-crumb-cur { color: var(--hy-brown); }
.hy-crumb-py { color: #a89677; letter-spacing: .5px; }
.hy-crumb-rand { margin-left: auto; color: #a89677; }
.hy-crumb-rand:hover { color: var(--hy-red); }

/* ---------------- 搜索 ---------------- */
.hy-search {
    padding: 14px 16px 12px;
    margin: 0 0 16px;
    background: linear-gradient(180deg, #fffefb, #fdf9f0);
    border: 1px solid var(--hy-line);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(90, 68, 48, .05);
}
.hy-search-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hy-search-box { position: relative; flex: 1 1 300px; min-width: 0; display: flex; align-items: center; }
.hy-search-ico {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px; line-height: 22px; text-align: center;
    font-size: 12px; color: #b08a5e;
    background: #f6efe1; border-radius: 5px;
    border: 1px solid #eadfc9;
    pointer-events: none;
}
.hy-search input[type=text] {
    width: 100%;
    padding: 13px 36px 13px 44px;
    border: 1px solid var(--hy-line);
    border-radius: 9px;
    background: #fff;
    color: var(--hy-ink);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.hy-search input[type=text]::placeholder { color: #bcaf9c; font-size: 13px; font-family: "PingFang SC", "Microsoft Yahei", sans-serif; }
.hy-search input[type=text]:focus {
    border-color: var(--hy-gold-lt);
    box-shadow: 0 0 0 3px rgba(200, 168, 120, .16), inset 0 1px 2px rgba(90, 68, 48, .04);
}
.hy-search-clear {
    position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; line-height: 18px; text-align: center;
    border-radius: 50%; background: #efe7da; color: #8b7355; font-size: 14px;
}
.hy-search-clear:hover { background: var(--hy-red); color: #fff; }
.hy-search-btn {
    padding: 13px 30px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(180deg, #9c2828, #7c1d1d);
    color: #fff;
    font-size: 15px;
    letter-spacing: 4px;
    text-indent: 4px;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(140, 35, 35, .22);
    transition: transform .18s, box-shadow .18s, filter .18s;
}
.hy-search-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(140, 35, 35, .28); filter: brightness(1.05); }
.hy-random-btn {
    padding: 12px 16px;
    background: #fffdf8;
    border: 1px solid var(--hy-line);
    border-radius: 9px;
    font-size: 13.5px;
    color: var(--hy-brown);
    white-space: nowrap;
    transition: all .2s;
}
.hy-random-btn:hover { border-color: var(--hy-gold-lt); color: var(--hy-red); background: #fff; }

.hy-adv {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px dashed var(--hy-line);
    font-size: 12.5px;
    color: var(--hy-muted);
    font-family: "PingFang SC", "Microsoft Yahei", sans-serif;
}
.hy-adv-lab { letter-spacing: 1px; color: #a89677; }
.hy-adv-f { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; flex: 0 0 auto; }
.hy-adv-f input {
    width: 52px !important;
    flex: 0 0 52px !important;
    min-width: 0;
    padding: 5px 6px;
    text-align: center;
    border: 1px solid var(--hy-line);
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    color: var(--hy-ink);
    outline: none;
}
.hy-adv-f input:focus { border-color: var(--hy-gold-lt); }
.hy-adv select { flex: 0 1 auto; min-width: 0;
    padding: 5px 8px;
    border: 1px solid var(--hy-line);
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 12.5px;
    color: var(--hy-brown);
    outline: none;
    max-width: 108px;
}
.hy-adv-btn {
    padding: 5px 14px;
    border: 1px solid var(--hy-gold-lt);
    border-radius: 6px;
    background: #fffaf0;
    color: var(--hy-gold);
    font-family: inherit;
    font-size: 12.5px;
    cursor: pointer;
    transition: all .18s;
}
.hy-adv-btn:hover { background: var(--hy-gold); color: #fff; }
.hy-adv-reset { color: #b3a58f; margin-left: 2px; }
.hy-adv-reset:hover { color: var(--hy-red); }

/* ---------------- 热门词 ---------------- */
.hy-hotbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    margin: 0 0 18px;
    background: rgba(255, 253, 248, .8);
    border: 1px solid var(--hy-line-soft);
    border-radius: 10px;
}
.hy-hot-lab {
    flex: 0 0 auto;
    font-size: 11.5px;
    letter-spacing: 2px;
    color: #b08a5e;
    padding-top: 5px;
    white-space: nowrap;
}
.hy-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.hy-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    background: #fff;
    border: 1px solid var(--hy-line);
    border-radius: 20px;
    font-size: 13px;
    color: var(--hy-brown);
    transition: all .18s;
}
.hy-chip:hover {
    border-color: var(--hy-red);
    color: var(--hy-red);
    background: #fff9f6;
    transform: translateY(-1px);
}

/* ---------------- 分类面板 ---------------- */
.hy-panel {
    margin: 0 0 20px;
    padding: 18px 18px 16px;
    background: var(--hy-paper);
    border: 1px solid var(--hy-line);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(90, 68, 48, .04);
}
.hy-panel-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--hy-red);
}
.hy-panel-title::before {
    content: '';
    width: 4px; height: 17px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--hy-red), var(--hy-gold));
}
.hy-panel-title em {
    font-style: normal;
    font-size: 12px;
    letter-spacing: 1px;
    color: #b3a58f;
    font-family: "PingFang SC", "Microsoft Yahei", sans-serif;
}
.hy-cats { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 14px; }
.hy-cat {
    padding: 12px 14px 14px;
    background: linear-gradient(180deg, #fffefb, #fbf6ec);
    border: 1px solid var(--hy-line-soft);
    border-radius: 10px;
}
.hy-cat h3 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    color: #a89677;
}
.hy-cat-body { display: flex; flex-direction: column; gap: 6px; }
.hy-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    background: #fff;
    border: 1px solid var(--hy-line-soft);
    border-radius: 7px;
    font-size: 13.5px;
    transition: all .18s;
}
.hy-cat-link b { font-weight: 400; color: var(--hy-brown); }
.hy-cat-link span { font-size: 11.5px; color: #b9ab95; font-family: "PingFang SC", sans-serif; }
.hy-cat-link:hover { border-color: var(--hy-gold-lt); background: #fffdf6; }
.hy-cat-link:hover b { color: var(--hy-red); }
.hy-cat-py .hy-az-sm { margin-bottom: 8px; }
.hy-cat-more { font-size: 12px; color: var(--hy-gold); display: inline-block; margin-top: 2px; }
.hy-cat-more:hover { color: var(--hy-red); }

/* 拼音字母（小） */
.hy-az { display: flex; flex-wrap: wrap; gap: 5px; }
.hy-az-item {
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: #fff;
    border: 1px solid var(--hy-line);
    border-radius: 6px;
    font-family: "Times New Roman", Georgia, serif;
    font-size: 14px;
    color: var(--hy-brown);
    transition: all .18s;
}
.hy-az-item i {
    font-style: normal;
    font-size: 9px;
    color: #c0b199;
    font-family: "PingFang SC", sans-serif;
    transform: translateY(1px);
}
.hy-az-item:hover { border-color: var(--hy-gold-lt); color: var(--hy-red); background: #fffdf6; }
.hy-az-item.is-cur { background: var(--hy-red); border-color: var(--hy-red); color: #fff; box-shadow: 0 2px 8px rgba(140, 35, 35, .22); }
.hy-az-item.is-cur i { color: rgba(255, 255, 255, .7); }
.hy-az-item.is-off { color: #d6cbb8; border-style: dashed; background: #fbf8f1; }
.hy-az-sm .hy-az-item { min-width: 26px; height: 26px; font-size: 12.5px; border-radius: 5px; }

/* 字数档 */
.hy-lenbox { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.hy-lenitem {
    padding: 16px 14px;
    background: linear-gradient(180deg, #fffefb, #f9f3e7);
    border: 1px solid var(--hy-line);
    border-radius: 10px;
    text-align: center;
    transition: all .2s;
}
.hy-lenitem b { display: block; font-size: 17px; font-weight: 400; color: var(--hy-red); letter-spacing: 2px; }
.hy-lenitem span { font-size: 11.5px; color: #b3a58f; font-family: "PingFang SC", sans-serif; }
.hy-lenitem:hover { border-color: var(--hy-gold-lt); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(166, 124, 41, .1); }

/* ---------------- 说明 ---------------- */
.hy-about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.hy-about-item {
    padding: 12px 14px;
    background: #fffdf8;
    border: 1px solid var(--hy-line-soft);
    border-radius: 9px;
}
.hy-about-item h4 { margin: 0 0 6px; font-size: 13.5px; font-weight: 400; letter-spacing: 1px; color: var(--hy-gold); }
.hy-about-item p { margin: 0; font-size: 12.5px; line-height: 1.85; color: #7c6f5e; }
.hy-about-item code, .hy-tipbox code, .hy-miss code, .hy-about-note code {
    padding: 1px 5px;
    background: #f5edde;
    border-radius: 4px;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    color: var(--hy-red);
}
.hy-about-note {
    margin: 0;
    padding-top: 12px;
    border-top: 1px dashed var(--hy-line);
    font-size: 12.5px;
    line-height: 1.9;
    color: #8d7f6c;
}
.hy-about-note b { color: var(--hy-red); font-weight: 400; }

/* ---------------- 结果头 ---------------- */
.hy-subhead { text-align: center; padding: 14px 0 20px; }
.hy-res-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 2px 12px;
    border-bottom: 1px solid var(--hy-line-soft);
    margin-bottom: 16px;
}
.hy-res-txt { font-size: 13.5px; color: #7c6f5e; letter-spacing: .5px; }
.hy-res-txt b { color: var(--hy-red); font-weight: 400; font-size: 15px; padding: 0 2px; }
.hy-res-txt .hy-kw { font-size: 14px; }
.hy-res-page { margin-left: auto; font-size: 12px; color: #b3a58f; font-family: "PingFang SC", sans-serif; }

/* ---------------- 词条卡片 ---------------- */
.hy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hy-card {
    position: relative;
    background: var(--hy-paper);
    border: 1px solid var(--hy-line);
    border-radius: 10px;
    transition: transform .18s, box-shadow .18s, border-color .18s;
    overflow: hidden;
}
.hy-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(140, 35, 35, .55), rgba(166, 124, 41, .18));
    opacity: 0;
    transition: opacity .18s;
}
.hy-card:hover {
    transform: translateY(-2px);
    border-color: var(--hy-gold-lt);
    box-shadow: 0 8px 22px rgba(90, 68, 48, .09);
}
.hy-card:hover::before { opacity: 1; }
.hy-card-link { display: block; padding: 13px 15px 10px; }
.hy-card-top { display: flex; align-items: flex-start; gap: 8px; }
.hy-card-word {
    margin: 0;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 1.5px;
    color: var(--hy-ink);
}
.hy-card-word .hy-hit { background: none; color: var(--hy-red); border-bottom: 1px solid rgba(140, 35, 35, .35); }
.hy-badge {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 10.5px;
    letter-spacing: 1px;
    font-family: "PingFang SC", "Microsoft Yahei", sans-serif;
    border: 1px solid transparent;
    transform: translateY(3px);
}
.hy-badge.is-c { color: #6b7a5a; background: #f2f6ec; border-color: #dde8d2; }
.hy-badge.is-i { color: #8a5a2b; background: #fdf3e5; border-color: #f0dfc4; }
.hy-badge.is-z { color: #7a4a4a; background: #fbf0f0; border-color: #efd8d8; }
.hy-card-py {
    margin-top: 4px;
    font-size: 12.5px;
    letter-spacing: 1.5px;
    color: #a58a68;
    font-family: "Times New Roman", "Songti SC", serif;
    word-break: break-word;
}
.hy-card-sum {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.75;
    color: #7c6f5e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hy-card-sum .hy-hit { background: rgba(200, 168, 120, .22); color: var(--hy-red); }
.hy-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--hy-line-soft);
    font-size: 11px;
    color: #bcae99;
    font-family: "PingFang SC", sans-serif;
}
.hy-card-go { color: #c0a878; }
.hy-card-go i { font-style: normal; transition: transform .18s; display: inline-block; }
.hy-card:hover .hy-card-go { color: var(--hy-red); }
.hy-card:hover .hy-card-go i { transform: translateX(3px); }

/* ---------------- 空结果 ---------------- */
.hy-miss { text-align: center; padding: 42px 16px 48px; }
.hy-miss-word {
    font-size: 40px;
    color: #e0d3be;
    letter-spacing: 6px;
    margin-bottom: 12px;
    font-weight: 400;
}
.hy-miss p { margin: 0 0 6px; font-size: 13.5px; color: #8d7f6c; }
.hy-miss-tip { font-size: 12.5px; color: #b3a58f; }
.hy-miss-tip a { color: var(--hy-gold); }
.hy-miss-tip a:hover { color: var(--hy-red); }

/* ---------------- 提示条 ---------------- */
.hy-tipbox {
    padding: 12px 16px;
    margin: 12px 0;
    background: #fbf6ec;
    border: 1px solid var(--hy-line);
    border-left: 3px solid var(--hy-gold-lt);
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.85;
    color: #7c6f5e;
}

/* ---------------- 分页 ---------------- */
.hy-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 26px 0 6px; }
.hy-pg {
    min-width: 34px;
    height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--hy-line);
    border-radius: 7px;
    font-size: 13px;
    color: var(--hy-brown);
    transition: all .18s;
    font-family: "PingFang SC", "Microsoft Yahei", sans-serif;
}
.hy-pg:hover { border-color: var(--hy-gold-lt); color: var(--hy-red); }
.hy-pg.is-cur { background: var(--hy-red); border-color: var(--hy-red); color: #fff; box-shadow: 0 2px 8px rgba(140, 35, 35, .22); }
.hy-pg.is-off { color: #cdc0ac; background: #fbf8f1; border-style: dashed; }
.hy-pg-dot { padding: 0 4px; color: #c0b199; align-self: center; }

/* ============================================================
   详情页
   ============================================================ */
.hy-detail { max-width: 860px; }
.hy-entry {
    position: relative;
    padding: 30px 38px 26px;
    background:
        radial-gradient(140% 60% at 50% 0%, rgba(200, 168, 120, .10), rgba(255, 253, 248, 0) 60%),
        var(--hy-paper);
    border: 1px solid var(--hy-line);
    border-radius: 4px;
    box-shadow: 0 3px 20px rgba(90, 68, 48, .07);
}
.hy-entry::before {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(200, 168, 120, .32);
    border-radius: 2px;
    pointer-events: none;
}
.hy-entry-head { text-align: center; padding-bottom: 20px; }
.hy-entry-wordline { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hy-word {
    margin: 0;
    font-size: 52px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 6px;
    text-indent: 6px;
    color: var(--hy-ink);
    word-break: break-all;
}
.hy-seal-badge {
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 11px;
    letter-spacing: 2px;
    text-indent: 2px;
    font-family: "PingFang SC", "Microsoft Yahei", sans-serif;
    border: 1px solid;
    align-self: center;
    transform: translateY(-4px);
}
.hy-seal-badge.is-c { color: #6b7a5a; background: #f3f7ee; border-color: #dbe7d0; }
.hy-seal-badge.is-i { color: #8a5a2b; background: #fdf4e7; border-color: #f0e0c6; }
.hy-seal-badge.is-z { color: #7a4a4a; background: #fcf1f1; border-color: #efdada; }
.hy-entry-pron {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.hy-py-big {
    font-family: "Times New Roman", "Songti SC", serif;
    font-size: 18px;
    letter-spacing: 3px;
    color: #a5805a;
}
.hy-tts {
    padding: 3px 12px;
    border: 1px solid var(--hy-line);
    border-radius: 20px;
    background: #fff;
    color: #8b7a62;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: all .18s;
}
.hy-tts:hover { border-color: var(--hy-gold-lt); color: var(--hy-red); }
.hy-tts.is-on { background: var(--hy-red); border-color: var(--hy-red); color: #fff; }
.hy-entry-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin-top: 14px;
    font-size: 12.5px;
    color: #9a8b78;
    font-family: "PingFang SC", "Microsoft Yahei", sans-serif;
}
.hy-meta-item { padding: 0 12px; border-right: 1px solid var(--hy-line-soft); line-height: 1.4; }
.hy-meta-item:last-child { border-right: none; }
.hy-meta-item b { color: var(--hy-brown); font-weight: 500; }
.hy-meta-edit { color: #a67c29; }

/* 分区 */
.hy-sec { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hy-line-soft); }
.hy-sec:first-of-type { border-top: none; padding-top: 4px; }
.hy-sec-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--hy-red);
}
.hy-sec-title::before {
    content: '';
    width: 3px; height: 14px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--hy-red), var(--hy-gold));
    transform: translateY(1px);
}
.hy-sec-note {
    font-style: normal;
    font-size: 11.5px;
    letter-spacing: 0;
    color: #b9ab95;
    font-family: "PingFang SC", "Microsoft Yahei", sans-serif;
}
.hy-senses { margin: 0; padding: 0; list-style: none; counter-reset: hy-sense; }
.hy-senses li {
    position: relative;
    padding: 0 0 12px 30px;
    font-size: 15px;
    line-height: 1.95;
    color: #4a3f34;
    counter-increment: hy-sense;
}
.hy-senses li::before {
    content: counter(hy-sense);
    position: absolute;
    left: 0; top: 4px;
    width: 19px; height: 19px;
    line-height: 19px;
    text-align: center;
    font-size: 11px;
    color: #a67c29;
    border: 1px solid #e6d8bf;
    border-radius: 50%;
    background: #fdf8ee;
    font-family: "Times New Roman", serif;
}
.hy-senses li:last-child { padding-bottom: 0; }
.hy-para { margin: 0 0 12px; font-size: 15px; line-height: 2; color: #4a3f34; }
.hy-para:last-child { margin-bottom: 0; }
.hy-empty { margin: 0; font-size: 14px; color: #b3a58f; }

.hy-quote {
    margin: 0;
    padding: 12px 16px;
    background: #fbf7ee;
    border-left: 3px solid #e2cfa8;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    line-height: 1.95;
    color: #6b5c4b;
}
.hy-quote-eg { border-left-color: #d8c2c0; background: #fdf8f6; color: #74625c; }

.hy-more { font-size: 14px; line-height: 2; color: #4a3f34; }
.hy-more-txt { font-size: 14px; line-height: 2; color: #4a3f34; }
.hy-more-ol { margin: 0; padding: 0; list-style: none; counter-reset: hy-more; }
.hy-more-ol > li {
    position: relative;
    padding: 0 0 13px 34px;
    font-size: 14px;
    line-height: 2;
    color: #4a3f34;
    counter-increment: hy-more;
}
.hy-more-ol > li::before {
    content: "(" counter(hy-more) ")";
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    font-family: "Times New Roman", serif;
    font-size: 13px;
    color: #b0894a;
    letter-spacing: -.5px;
}
.hy-more-ol > li:last-child { padding-bottom: 0; }
.hy-more.is-fold { max-height: 220px; overflow: hidden; position: relative; }
.hy-more.is-fold::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 90px;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0), var(--hy-paper) 82%);
}
.hy-more.is-open { max-height: none; }
.hy-more.is-open::after { display: none; }
.hy-fold-btn {
    display: block;
    margin: 10px auto 0;
    padding: 5px 18px;
    border: 1px solid var(--hy-line);
    border-radius: 20px;
    background: #fff;
    color: var(--hy-gold);
    font-size: 12.5px;
    font-family: inherit;
    cursor: pointer;
    transition: all .18s;
}
.hy-fold-btn:hover { border-color: var(--hy-gold-lt); color: var(--hy-red); }

.hy-chips-zuci { gap: 8px; }
.hy-chips-zuci .hy-chip { font-size: 14px; padding: 5px 13px; }
.hy-more-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--hy-gold);
}
.hy-more-link:hover { color: var(--hy-red); }

.hy-rel { display: flex; flex-wrap: wrap; gap: 8px; }
.hy-rel-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 13px;
    min-width: 112px;
    background: #fff;
    border: 1px solid var(--hy-line-soft);
    border-radius: 8px;
    transition: all .18s;
}
.hy-rel-item b { font-size: 14px; font-weight: 400; color: var(--hy-brown); letter-spacing: .5px; }
.hy-rel-item span {
    font-size: 10.5px;
    color: #bcae99;
    letter-spacing: .5px;
    font-family: "Times New Roman", serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hy-rel-item:hover { border-color: var(--hy-gold-lt); background: #fffdf6; transform: translateY(-1px); }
.hy-rel-item:hover b { color: var(--hy-red); }

.hy-cross {
    margin-top: 22px;
    padding: 12px 16px;
    background: #f8f5ef;
    border: 1px dashed var(--hy-line);
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}
.hy-cross a { color: var(--hy-gold); }
.hy-cross a:hover { color: var(--hy-red); }

.hy-entry-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid var(--hy-line-soft);
}
.hy-copy {
    padding: 7px 16px;
    border: 1px solid var(--hy-line);
    border-radius: 7px;
    background: #fff;
    color: var(--hy-brown);
    font-size: 12.5px;
    font-family: inherit;
    cursor: pointer;
    transition: all .18s;
}
.hy-copy:hover { border-color: var(--hy-gold-lt); color: var(--hy-red); }
.hy-foot-note { font-size: 11.5px; color: #bcae99; font-family: "PingFang SC", sans-serif; }

/* ---------------- 浮动按钮 ---------------- */
#hyFloatBtn {
    position: fixed;
    right: 18px;
    bottom: 96px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 54px;
    padding: 9px 0 8px;
    background: linear-gradient(160deg, #9c2828, #761a1a);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(140, 35, 35, .3);
    color: #fff;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
#hyFloatBtn:hover { transform: translateY(-2px); box-shadow: 0 9px 24px rgba(140, 35, 35, .38); }
.hy-float-ico {
    font-family: "Songti SC", "SimSun", serif;
    font-size: 19px;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.hy-float-txt {
    font-size: 9.5px;
    letter-spacing: .5px;
    opacity: .92;
    font-family: "PingFang SC", "Microsoft Yahei", sans-serif;
    transform: scale(.94);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
    .hy-cats { grid-template-columns: 1fr 1fr; }
    .hy-cat-py { grid-column: 1 / -1; }
    .hy-about-grid { grid-template-columns: 1fr 1fr; }
    .hy-entry { padding: 26px 26px 22px; }
}

@media (max-width: 720px) {
    .hy-wrap { padding: 0 0 26px; }
    .hy-hero { padding: 18px 12px 20px; border-radius: 12px; }
    .hy-hero-seal { width: 36px; height: 36px; font-size: 19px; margin-bottom: 8px; }
    .hy-wrap .page-title { font-size: 24px; letter-spacing: 6px; text-indent: 6px; }
    .hy-wrap .page-sub { font-size: 11.5px; line-height: 1.9; padding: 0 6px; }
    .hy-hero-hint { display: none; }
    .hy-search { padding: 12px 12px 10px; }
    .hy-search-row { gap: 8px; }
    .hy-search-box { flex: 1 1 100%; }
    .hy-search input[type=text] { font-size: 15px; padding: 12px 34px 12px 42px; }
    .hy-search-btn { flex: 1 1 0; padding: 11px 0; letter-spacing: 3px; }
    .hy-random-btn { flex: 0 0 auto; padding: 11px 14px; }
    .hy-adv { gap: 6px 8px; font-size: 12px; }
    .hy-adv-lab { display: none; }
    .hy-adv select { flex: 0 1 auto; min-width: 0; max-width: 84px; padding: 5px 4px; }
    .hy-adv-f input { width: 46px !important; flex: 0 0 46px !important; }
    .hy-adv-btn { padding: 5px 12px; }
    .hy-hotbox { flex-direction: column; gap: 6px; padding: 10px 12px; }
    .hy-hot-lab { padding-top: 0; }
    .hy-chip { font-size: 12.5px; padding: 4px 10px; }
    .hy-panel { padding: 14px 13px 12px; }
    .hy-cats { grid-template-columns: 1fr; gap: 10px; }
    .hy-about-grid { grid-template-columns: 1fr; gap: 10px; }
    .hy-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .hy-card-word { font-size: 20px; }
    .hy-card-link { padding: 12px 13px 9px; }
    .hy-miss-word { font-size: 32px; }
    .hy-lenbox { grid-template-columns: 1fr 1fr; }
    .hy-subhead { padding: 8px 0 14px; }
    .hy-az-item { min-width: 28px; height: 28px; font-size: 13px; }

    /* 详情 */
    .hy-entry { padding: 22px 16px 18px; border-radius: 3px; }
    .hy-entry::before { inset: 5px; }
    .hy-word { font-size: 38px; letter-spacing: 4px; text-indent: 4px; }
    .hy-seal-badge { transform: translateY(-2px); }
    .hy-py-big { font-size: 16px; letter-spacing: 2px; }
    .hy-entry-meta { font-size: 11.5px; }
    .hy-meta-item { padding: 0 8px; }
    .hy-senses li { font-size: 14.5px; padding-left: 26px; line-height: 1.9; }
    .hy-para { font-size: 14.5px; line-height: 1.95; }
    .hy-quote { font-size: 13.5px; padding: 10px 12px; }
    .hy-more { font-size: 13.5px; }
    .hy-rel-item { min-width: calc(50% - 4px); flex: 1 1 calc(50% - 4px); }
    .hy-entry-foot { margin-top: 20px; }
    #hyFloatBtn { right: 10px; bottom: 82px; width: 46px; padding: 7px 0 6px; border-radius: 10px; }
    .hy-float-ico { font-size: 17px; }
    .hy-float-txt { font-size: 9px; }
}

@media (max-width: 380px) {
    .hy-word { font-size: 33px; }
    .hy-pager { gap: 4px; }
    .hy-pg { min-width: 30px; height: 30px; padding: 0 9px; font-size: 12px; }
}

/* ---------------- 结果页快捷筛选 ---------------- */
.hy-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: -4px 0 14px;
}
.hy-fchip {
    padding: 4px 13px;
    border: 1px solid var(--hy-line);
    border-radius: 16px;
    background: #fff;
    font-size: 12.5px;
    color: var(--hy-brown);
    transition: all .18s;
}
.hy-fchip:hover { border-color: var(--hy-gold-lt); color: var(--hy-red); }
.hy-fchip.is-cur {
    background: linear-gradient(180deg, #9c2828, #7c1d1d);
    border-color: #7c1d1d;
    color: #fff;
    box-shadow: 0 2px 8px rgba(140, 35, 35, .2);
}
.hy-fsep { width: 1px; height: 16px; background: var(--hy-line); margin: 0 4px; }
@media (max-width: 720px) {
    .hy-fchip { padding: 4px 11px; font-size: 12px; }
    .hy-fsep { display: none; }
}

/* ---------------- 近反义词 ---------------- */
.hy-sec-syn { padding-bottom: 2px; }
.hy-synrow { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.hy-synrow:last-child { margin-bottom: 0; }
.hy-synlab {
    flex: 0 0 auto;
    padding-top: 4px;
    font-size: 12px;
    letter-spacing: 1px;
    color: #a89677;
}
.hy-chip-syn { border-color: #dbe7d0; color: #5f7550; background: #fbfdf8; }
.hy-chip-syn:hover { border-color: #7c9a68; color: #4a5f3c; background: #f5faee; }
.hy-chip-ant { border-color: #efdada; color: #8c5a5a; background: #fdf9f9; }
.hy-chip-ant:hover { border-color: #c98e8e; color: #7d3d3d; background: #fdf1f1; }
@media (max-width: 720px) {
    .hy-synrow { gap: 8px; }
    .hy-synlab { font-size: 11.5px; padding-top: 5px; }
}

/* ---------------- 近反义词 ---------------- */
.hy-sec-syn { padding-bottom: 2px; }
.hy-synrow { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.hy-synrow:last-child { margin-bottom: 0; }
.hy-synlab {
    flex: 0 0 auto;
    padding-top: 4px;
    font-size: 12px;
    letter-spacing: 1px;
    color: #a89677;
}
.hy-chip-syn { border-color: #dbe7d0; color: #5f7550; background: #fbfdf8; }
.hy-chip-syn:hover { border-color: #7c9a68; color: #4a5f3c; background: #f5faee; }
.hy-chip-ant { border-color: #efdada; color: #8c5a5a; background: #fdf9f9; }
.hy-chip-ant:hover { border-color: #c98e8e; color: #7d3d3d; background: #fdf1f1; }
@media (max-width: 720px) {
    .hy-synrow { gap: 8px; }
    .hy-synlab { font-size: 11.5px; padding-top: 5px; }
}
