/* ===== 王者荣耀英雄克制查询 · 水墨卷轴风 =====
   宣纸米白底 + 朱砂点缀 + 墨色文字，细边框与留白营造卷轴感。
   全部类名以 hokc- 为前缀，深色模式仅通过 :root[data-theme="dark"] 变量覆盖。 */

.hokc-page [hidden] { display: none !important; }

.hokc-page {
    --hokc-paper: #f5efe0;
    --hokc-paper-deep: #ece2cb;
    --hokc-card: #fbf7ec;
    --hokc-ink: #2f2a22;
    --hokc-ink-soft: #7a7162;
    --hokc-ink-faint: #a89e8b;
    --hokc-cinnabar: #b23a26;
    --hokc-cinnabar-deep: #8f2d1d;
    --hokc-cinnabar-soft: rgba(178, 58, 38, .10);
    --hokc-warn: #453f34;
    --hokc-warn-soft: rgba(69, 63, 52, .12);
    --hokc-line: rgba(47, 42, 34, .20);
    --hokc-line-strong: rgba(47, 42, 34, .48);
    --hokc-thin: #c9c0ad;

    max-width: 1060px;
    margin: 0 auto;
    padding: 22px 16px 64px;
    color: var(--hokc-ink);
    font-size: 15px;
    line-height: 1.75;
}

/* ---------- 深色：宣纸转深墨，朱砂保留 ---------- */
:root[data-theme="dark"] .hokc-page {
    --hokc-paper: #1b1813;
    --hokc-paper-deep: #242019;
    --hokc-card: #211d16;
    --hokc-ink: #ddd5c3;
    --hokc-ink-soft: #a1977f;
    --hokc-ink-faint: #7b7260;
    --hokc-cinnabar: #c9553d;
    --hokc-cinnabar-deep: #d76a51;
    --hokc-cinnabar-soft: rgba(201, 85, 61, .16);
    --hokc-warn: #c3b9a2;
    --hokc-warn-soft: rgba(195, 185, 162, .12);
    --hokc-line: rgba(221, 213, 195, .18);
    --hokc-line-strong: rgba(221, 213, 195, .42);
    --hokc-thin: #4a4437;
}

/* 页面自身铺一层宣纸底（深色下即深墨底） */
.hokc-page {
    background:
        repeating-linear-gradient(0deg, transparent 0 34px, var(--hokc-line) 34px 34.6px, transparent 34.6px 68px),
        var(--hokc-paper);
    border: 1px solid var(--hokc-line);
    border-radius: 4px;
    box-shadow: inset 0 0 0 4px var(--hokc-paper), inset 0 0 0 5px var(--hokc-line);
}

/* ---------- 面包屑之后的卷首 ---------- */
.hokc-scroll-head { padding: 26px 8px 8px; }
.hokc-head-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.hokc-seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    margin-bottom: 10px;
    background: var(--hokc-cinnabar);
    color: #fdf8ee;
    font-size: 22px;
    font-weight: 800;
    border-radius: 4px;
    box-shadow: 0 0 0 3px var(--hokc-cinnabar-soft);
}
.hokc-kicker {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: .4em;
    text-indent: .4em;
    color: var(--hokc-ink-soft);
}
.hokc-scroll-head h1 {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--hokc-ink);
}
.hokc-sub {
    margin: 0 auto;
    max-width: 640px;
    color: var(--hokc-ink-soft);
    font-size: 14px;
}
.hokc-sub b { color: var(--hokc-cinnabar); font-weight: 700; }

.hokc-season {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 5px 14px;
    border: 1px solid var(--hokc-line);
    border-radius: 999px;
    background: var(--hokc-card);
    font-size: 12.5px;
    color: var(--hokc-ink-soft);
}
.hokc-season b { color: var(--hokc-ink); font-weight: 700; letter-spacing: .05em; }
.hokc-season em { font-style: normal; color: var(--hokc-ink-faint); }
.hokc-season-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--hokc-cinnabar);
}

/* ---------- 点将台 ---------- */
.hokc-picker {
    margin: 26px auto 0;
    max-width: 860px;
    padding: 20px 22px;
    background: var(--hokc-card);
    border: 1px solid var(--hokc-line);
    border-radius: 4px;
}
.hokc-pick-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}
.hokc-field { display: flex; flex-direction: column; gap: 6px; }
.hokc-field > span {
    font-size: 12.5px;
    letter-spacing: .18em;
    color: var(--hokc-ink-soft);
}
.hokc-field select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14.5px;
    color: var(--hokc-ink);
    background: var(--hokc-paper);
    border: 1px solid var(--hokc-line-strong);
    border-radius: 3px;
    outline: none;
}
.hokc-field select:focus { border-color: var(--hokc-cinnabar); box-shadow: 0 0 0 3px var(--hokc-cinnabar-soft); }
.hokc-field select optgroup { font-style: normal; color: var(--hokc-ink-soft); }

.hokc-btn {
    padding: 10px 26px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .12em;
    color: #fdf8ee;
    background: var(--hokc-cinnabar);
    border: 1px solid var(--hokc-cinnabar-deep);
    border-radius: 3px;
    cursor: pointer;
    transition: background .18s ease, transform .12s ease;
    white-space: nowrap;
}
.hokc-btn:hover:not(:disabled) { background: var(--hokc-cinnabar-deep); }
.hokc-btn:active:not(:disabled) { transform: translateY(1px); }
.hokc-btn:disabled { opacity: .55; cursor: wait; }

.hokc-tip {
    margin: 12px 0 0;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--hokc-cinnabar-deep);
    background: var(--hokc-cinnabar-soft);
    border-left: 3px solid var(--hokc-cinnabar);
    border-radius: 2px;
}

.hokc-alert {
    margin: 18px auto 0;
    max-width: 860px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--hokc-cinnabar-deep);
    background: var(--hokc-cinnabar-soft);
    border: 1px dashed var(--hokc-cinnabar);
    border-radius: 3px;
}

/* ---------- 结果区 ---------- */
.hokc-result { margin-top: 30px; }

.hokc-hero-card {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 860px;
    margin: 0 auto;
    padding: 18px 22px;
    background: var(--hokc-card);
    border: 1px solid var(--hokc-line-strong);
    border-radius: 4px;
    position: relative;
}
.hokc-hero-card::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid var(--hokc-line);
    border-radius: 2px;
    pointer-events: none;
}
.hokc-hero-info { flex: 1; min-width: 0; }
.hokc-hero-name { font-size: 20px; font-weight: 800; letter-spacing: .06em; }
.hokc-hero-name small { font-size: 12px; font-weight: 400; color: var(--hokc-ink-faint); margin-left: 8px; letter-spacing: .02em; }
.hokc-hero-meta { font-size: 13px; color: var(--hokc-ink-soft); margin-top: 2px; }
.hokc-hero-meta b { color: var(--hokc-cinnabar); font-weight: 700; }
.hokc-hero-tier {
    display: inline-block;
    margin-left: 8px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--hokc-ink);
    border: 1px solid var(--hokc-line-strong);
    border-radius: 2px;
}
.hokc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hokc-tag {
    padding: 2px 10px;
    font-size: 12px;
    color: var(--hokc-ink-soft);
    background: var(--hokc-paper-deep);
    border: 1px solid var(--hokc-line);
    border-radius: 999px;
}

/* 头像与首字占位圆 */
.hokc-avatar {
    width: 56px; height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--hokc-line-strong);
    background: var(--hokc-paper-deep);
}
.hokc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hokc-avatar-fb {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--hokc-paper);
    background: var(--hokc-ink);
}
.hokc-hero-card .hokc-avatar { width: 72px; height: 72px; }
.hokc-hero-card .hokc-avatar-fb { font-size: 26px; }

/* ---------- 汇总徽章 ---------- */
.hokc-verdict {
    max-width: 860px;
    margin: 16px auto 0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--hokc-paper-deep);
    border: 1px solid var(--hokc-line);
    border-radius: 4px;
    font-size: 14px;
}
.hokc-verdict-seal {
    width: 46px; height: 46px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 800;
    line-height: 1.1;
    color: #fdf8ee;
    background: var(--hokc-ink);
}
.hokc-verdict-seal small { font-size: 9px; font-weight: 400; opacity: .8; }
.hokc-verdict--good .hokc-verdict-seal { background: var(--hokc-cinnabar); }
.hokc-verdict--bad .hokc-verdict-seal { background: var(--hokc-warn); }
.hokc-verdict b { font-size: 16px; letter-spacing: .08em; }
.hokc-verdict p { margin: 2px 0 0; color: var(--hokc-ink-soft); font-size: 13px; }

/* ---------- 双向对望列表 ---------- */
.hokc-mirror {
    display: grid;
    grid-template-columns: 1fr 44px 1fr;
    gap: 0;
    margin-top: 22px;
    align-items: stretch;
}
.hokc-mirror-col {
    padding: 18px 20px;
    background: var(--hokc-card);
    border: 1px solid var(--hokc-line);
    border-radius: 4px;
    min-width: 0;
}
.hokc-mirror--we { border-top: 3px solid var(--hokc-cinnabar); }
.hokc-mirror--they { border-top: 3px solid var(--hokc-warn); }
.hokc-mirror-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .14em;
}
.hokc-mirror--we .hokc-mirror-title { color: var(--hokc-cinnabar); }
.hokc-mirror--they .hokc-mirror-title { color: var(--hokc-warn); }
.hokc-mirror-sub { margin: 2px 0 12px; font-size: 12px; color: var(--hokc-ink-faint); }

.hokc-mirror-axis {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.hokc-mirror-axis span {
    writing-mode: vertical-rl;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3em;
    color: var(--hokc-ink-soft);
    border: 1px solid var(--hokc-line);
    padding: 8px 3px;
    background: var(--hokc-paper);
    border-radius: 2px;
}

.hokc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hokc-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    background: var(--hokc-paper);
    border: 1px solid var(--hokc-line);
    border-radius: 3px;
}
.hokc-item .hokc-avatar { width: 44px; height: 44px; }
.hokc-item .hokc-avatar-fb { font-size: 16px; }
.hokc-item-main { min-width: 0; }
.hokc-item-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hokc-item-top b { font-size: 15px; font-weight: 700; }
.hokc-item-meta { font-size: 12px; color: var(--hokc-ink-faint); }
.hokc-reason {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--hokc-ink-soft);
    border-left: 2px solid var(--hokc-cinnabar);
    padding-left: 8px;
}
.hokc-mirror--they .hokc-reason { border-left-color: var(--hokc-warn); }

/* 胜率差横条：中轴为 0，正值向右、负值向左 */
.hokc-bar {
    position: relative;
    height: 8px;
    margin-top: 7px;
    background: var(--hokc-paper-deep);
    border-radius: 2px;
    overflow: hidden;
}
.hokc-bar::before {
    content: "";
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 1px;
    background: var(--hokc-line-strong);
}
.hokc-bar i {
    position: absolute;
    top: 1px; bottom: 1px;
    border-radius: 1px;
}
.hokc-bar i.pos { left: 50%; background: var(--hokc-cinnabar); }
.hokc-bar i.neg { right: 50%; background: var(--hokc-warn); }
.hokc-delta-num {
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--hokc-cinnabar);
    min-width: 52px;
    text-align: right;
}
.hokc-mirror--they .hokc-delta-num { color: var(--hokc-warn); }

/* 样本不足：整行置灰，隐藏横条与理由 */
.hokc-item.is-thin { opacity: .55; }
.hokc-item.is-thin .hokc-delta-num { color: var(--hokc-ink-faint); font-weight: 400; }
.hokc-badge-thin {
    padding: 1px 8px;
    font-size: 11px;
    color: var(--hokc-ink-soft);
    background: var(--hokc-paper-deep);
    border: 1px solid var(--hokc-line);
    border-radius: 999px;
}

.hokc-empty {
    padding: 22px 10px;
    text-align: center;
    font-size: 13px;
    color: var(--hokc-ink-faint);
    border: 1px dashed var(--hokc-line);
    border-radius: 3px;
}

/* ---------- 推荐备选 ---------- */
.hokc-picks { max-width: 860px; margin: 26px auto 0; }
.hokc-picks-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .14em;
    color: var(--hokc-ink);
}
.hokc-picks-sub { margin: 2px 0 12px; font-size: 12px; color: var(--hokc-ink-faint); }
.hokc-picks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hokc-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--hokc-card);
    border: 1px solid var(--hokc-line);
    border-radius: 3px;
    min-width: 0;
}
.hokc-pick .hokc-avatar { width: 40px; height: 40px; }
.hokc-pick .hokc-avatar-fb { font-size: 15px; }
.hokc-pick-main { min-width: 0; }
.hokc-pick-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hokc-pick-meta { font-size: 11.5px; color: var(--hokc-ink-faint); }
.hokc-pick-meta b { color: var(--hokc-cinnabar); }
.hokc-pick-tier {
    margin-left: auto;
    flex-shrink: 0;
    width: 26px; height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #fdf8ee;
    background: var(--hokc-cinnabar);
    border-radius: 3px;
}
.hokc-pick-tier.tier-a { background: var(--hokc-warn); }

/* ---------- 底部声明 ---------- */
.hokc-result-foot {
    max-width: 860px;
    margin: 24px auto 0;
    padding-top: 14px;
    border-top: 1px solid var(--hokc-line);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.hokc-note { margin: 0; font-size: 12.5px; color: var(--hokc-ink-faint); max-width: 640px; }
.hokc-foot-season { font-size: 12px; color: var(--hokc-ink-soft); white-space: nowrap; }

/* ---------- 留言区容器 ---------- */
.hokc-comments {
    max-width: 860px;
    margin: 40px auto 0;
    padding: 22px;
    background: var(--hokc-card);
    border: 1px solid var(--hokc-line);
    border-radius: 4px;
}

/* ---------- 响应式：≤760px 单列 ---------- */
@media (max-width: 760px) {
    .hokc-scroll-head h1 { font-size: 24px; }
    .hokc-pick-row { grid-template-columns: 1fr; }
    .hokc-btn { width: 100%; }
    .hokc-mirror { grid-template-columns: 1fr; }
    .hokc-mirror-axis { flex-direction: row; padding: 6px 0; }
    .hokc-mirror-axis span { writing-mode: horizontal-tb; letter-spacing: .3em; padding: 2px 12px; }
    .hokc-picks-grid { grid-template-columns: 1fr 1fr; }
    .hokc-hero-card { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .hokc-picks-grid { grid-template-columns: 1fr; }
}
