/* 设计语言参考 footballcareer.cn：深色墨绿、卡片面板、圆角 18px、绿色强调 */
:root {
    color-scheme: dark;
    --bg: #07100d;
    --page-tail: #000;
    --panel: #101b17;
    --panel-2: #17251f;
    --panel-3: #1d2e26;
    --line: rgba(222, 237, 228, 0.1);
    --line-strong: rgba(222, 237, 228, 0.18);
    --text: #f3f2e9;
    --muted: #a0aaa4;
    --accent: #68d391;
    --accent-dim: #43a96b;
    --accent-soft: rgba(104, 211, 145, 0.13);
    --warn: #e0a954;
    --danger: #df6e67;
    --gold: #e3c164;
    --blue: #69a9ff;
    --purple: #c18bff;
    --orange: #ff9f4a;
    --radius: 18px;
    --shadow-panel: 0 18px 46px rgba(0, 0, 0, 0.24);
    --shadow-float: 0 22px 55px rgba(0, 0, 0, 0.34);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.2, 1.35, 0.35, 1);
    --topbar-height: calc(58px + env(safe-area-inset-top));
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.hidden { display: none !important; }

body {
    font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 50% -12%, rgba(104, 211, 145, 0.1), transparent 34rem),
        linear-gradient(180deg, #091510 0%, var(--bg) 48%, #030806 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    opacity: 0.34;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.app-container { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; padding-bottom: 110px; }

/* ============ 顶栏 ============ */
.topbar {
    display: flex; justify-content: space-between; align-items: center;
    height: var(--topbar-height); padding: 0 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 16, 13, 0.8);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 850; font-size: 15px; letter-spacing: 0.8px; text-shadow: 0 0 24px rgba(104, 211, 145, 0.12); }
.phase-badge {
    font-size: 11px; font-weight: 700; color: var(--accent);
    background: var(--accent-soft); border: 1px solid rgba(104, 211, 145, 0.35);
    padding: 3px 10px; border-radius: 999px;
    box-shadow: inset 0 0 18px rgba(104, 211, 145, 0.06), 0 0 20px rgba(104, 211, 145, 0.06);
}

main { padding: 20px; }

/* ============ 视图 ============ */
.view { display: none; animation: viewEnter 0.52s var(--ease-out); }
.view.active { display: block; }
@keyframes viewEnter {
    from { opacity: 0; transform: translateY(14px) scale(0.992); filter: blur(3px); }
    to { opacity: 1; transform: none; filter: none; }
}

/* ============ 按钮 ============ */
.btn {
    appearance: none; border: none; cursor: pointer;
    font-family: inherit; font-size: 14px; font-weight: 700;
    padding: 14px 18px; border-radius: 14px;
    position: relative; isolation: isolate; overflow: hidden;
    transition: transform 0.22s var(--ease-out), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn::after {
    content: ""; position: absolute; inset: -60% auto -60% -45%; z-index: -1;
    width: 30%; transform: rotate(18deg) translateX(-220%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: transform 0.75s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: linear-gradient(135deg, #81dfa0, var(--accent)); color: #06120c; box-shadow: 0 8px 22px rgba(104, 211, 145, 0.15); }
.btn-primary:active { background: var(--accent-dim); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:active { background: var(--panel-2); }
.btn-danger-ghost { background: transparent; color: var(--danger); border: 1px solid rgba(223, 110, 103, 0.4); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 12px; border-radius: 10px; }
.btn-import { display: block; margin: 16px auto 0; color: var(--muted); }

.flow-actions { display: flex; gap: 12px; width: 100%; max-width: 440px; }
.flow-actions .btn { flex: 1; }

/* ============ 首页 ============ */
.start-hero { position: relative; isolation: isolate; text-align: center; padding: 34px 6px; }
.start-hero::before {
    content: ""; position: absolute; z-index: -1; width: 190px; height: 190px;
    left: 50%; top: 43%; transform: translate(-50%, -50%); border-radius: 50%;
    background: radial-gradient(circle, rgba(104, 211, 145, 0.1), transparent 67%);
    filter: blur(4px); animation: heroBreathe 5s ease-in-out infinite;
}
@keyframes heroBreathe { 50% { opacity: 0.58; transform: translate(-50%, -50%) scale(1.14); } }
.start-kicker { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: 2px; margin-bottom: 12px; }
.start-title { font-size: 24px; font-weight: 850; line-height: 1.4; margin-bottom: 12px; text-wrap: pretty; letter-spacing: -0.02em; }
.start-sub { font-size: 12px; color: var(--muted); }
.start-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }

.landing-utilities { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.landing-utilities-label {
    color: #75827b; font-size: 10px; font-weight: 750; letter-spacing: 0.16em;
    text-align: center; margin-bottom: 10px;
}
.landing-utility-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.landing-utility-grid .btn-import {
    width: 100%; margin: 0; min-height: 40px; display: flex; align-items: center; justify-content: center;
    text-decoration: none; background: rgba(16, 27, 23, 0.58); border-color: rgba(222, 237, 228, 0.08);
}

.resume-card {
    appearance: none; display: block; width: 100%; margin-top: 18px; padding: 14px; cursor: pointer;
    color: var(--text); font: inherit; text-align: left;
    background: var(--panel); border: 1px solid var(--accent-soft);
    border-radius: var(--radius); box-shadow: var(--shadow-panel);
    transition: transform 0.32s var(--ease-out), border-color 0.25s, box-shadow 0.32s;
}
.resume-card:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 3px;
    border-color: rgba(104, 211, 145, 0.52); box-shadow: var(--shadow-float);
}
.resume-card:disabled { cursor: default; }
.resume-kicker { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 1px; }
.resume-kicker.warn { color: var(--warn); }
.resume-error { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.resume-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.resume-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.resume-info b { font-size: 15px; }
.resume-info span { font-size: 12px; color: var(--muted); }
.resume-arrow { color: var(--accent); font-size: 18px; }

/* ============ 建档流程 ============ */
.flow-head {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.flow-title-wrap { flex: 1; min-width: 0; }
.flow-title { font-size: 20px; font-weight: 800; }
.flow-step { font-size: 11px; color: var(--muted); margin-top: 2px; }
.flow-progress { display: flex; gap: 5px; align-items: center; }
.flow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--panel-3); transition: background 0.2s; }
.flow-dot.on { background: var(--accent); }

.form-group {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 16px; margin-bottom: 14px;
}
.form-group:focus-within {
    border-color: rgba(104, 211, 145, 0.58);
    box-shadow: 0 0 0 3px rgba(104, 211, 145, 0.12), inset 0 1px 0 rgba(255,255,255,0.025);
}
.form-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.form-control {
    width: 100%; background: transparent; border: none;
    color: var(--text); font-size: 16px; font-weight: 600; outline: none;
}
.field-hint { font-size: 11px; color: var(--muted); margin-top: 6px; }

.seg-row { display: flex; gap: 8px; }
.seg {
    flex: 1; padding: 12px; border-radius: 12px; cursor: pointer;
    background: transparent; border: 1px solid var(--line);
    color: var(--muted); font-size: 14px; font-weight: 700; font-family: inherit;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.seg.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }

.toolbar-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.toolbar-row .form-label { margin: 0; }

.nation-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.nation-btn {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 4px; border-radius: 12px; cursor: pointer;
    background: var(--panel); border: 1px solid var(--line);
    color: var(--text); font-family: inherit;
    transition: border-color 0.15s, background 0.15s;
}
.nation-btn.on { border-color: var(--accent); background: var(--accent-soft); }
.nation-flag { font-size: 20px; line-height: 1; }
.nation-name { font-size: 10px; color: var(--muted); }
.nation-btn.on .nation-name { color: var(--text); }

.role-grid { display: flex; flex-direction: column; gap: 10px; }
.role-card {
    display: flex; align-items: center; gap: 12px; text-align: left;
    padding: 14px 16px; border-radius: var(--radius); cursor: pointer;
    background: var(--panel); border: 1px solid var(--line);
    color: var(--text); font-family: inherit; width: 100%;
    transition: border-color 0.15s, background 0.15s;
}
.role-card.on { border-color: var(--accent); background: var(--accent-soft); }
.role-number {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--panel-2); border: 1px solid var(--line);
    color: var(--accent); font-size: 12px; font-weight: 800;
}
.role-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.role-name { font-size: 15px; font-weight: 700; }
.role-desc { font-size: 12px; color: var(--muted); }
.role-tags { font-size: 11px; color: var(--accent-dim); }

/* 快速建档专属预览 */
.quick-create-panel {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px;
}
.quick-create-kicker {
    color: var(--accent); font-size: 11px; font-weight: 800;
    letter-spacing: 1px; text-transform: uppercase;
}
.quick-create-panel h2 { margin-top: 6px; font-size: 28px; }
.quick-create-lead { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.quick-facts {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px; margin-top: 18px;
}
.quick-fact {
    display: flex; flex-direction: column; gap: 5px;
    padding: 12px; border-radius: 12px;
    background: var(--panel-2); border: 1px solid var(--line);
}
.quick-fact span, .quick-style-card span { color: var(--muted); font-size: 10px; }
.quick-fact b { font-size: 13px; }
.quick-style-card {
    margin-top: 12px; padding: 14px; border-radius: 12px;
    background: var(--accent-soft); border: 1px solid rgba(104, 211, 145, 0.25);
}
.quick-style-card b { display: block; margin-top: 4px; color: var(--accent); font-size: 16px; }
.quick-style-card p { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

@media (max-width: 420px) {
    .btn.btn-sm { min-height: 44px; }
    .quick-facts { grid-template-columns: 1fr; }
}

/* ============ 球探报告 ============ */
.report-panel {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px;
}
.report-head { display: flex; gap: 16px; align-items: flex-start; }
.report-ovr { flex-shrink: 0; text-align: center; }
.report-ovr b {
    display: block; font-size: 52px; font-weight: 900; line-height: 1;
    color: var(--accent);
}
.report-ovr span { font-size: 11px; color: var(--muted); }
.report-side { flex: 1; min-width: 0; }
.report-name { font-size: 20px; font-weight: 800; }
.report-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.report-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.panel-sub { font-size: 13px; font-weight: 700; margin: 18px 0 10px; color: var(--text); }
.radar-wrap { display: flex; justify-content: center; }
.radar-svg { display: block; }
.radar-ring { fill: none; stroke: rgba(222, 237, 228, 0.08); stroke-width: 1; }
.radar-axis { stroke: rgba(222, 237, 228, 0.06); stroke-width: 1; }
.radar-area { fill: rgba(104, 211, 145, 0.15); }
.radar-line { fill: none; stroke: var(--accent); stroke-width: 2; }
.radar-value { fill: var(--accent); font-size: 12px; font-weight: 800; }
.radar-label { fill: var(--muted); font-size: 9px; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.attr-chip {
    display: inline-flex; align-items: baseline; gap: 5px;
    background: var(--panel-2); border: 1px solid var(--line);
    border-radius: 10px; padding: 6px 10px; font-size: 11px; color: var(--muted);
}
.attr-chip b { color: var(--accent); font-size: 14px; }

.hidden-list { display: flex; flex-wrap: wrap; gap: 8px; }
.hidden-item {
    background: var(--panel-2); border: 1px solid var(--line);
    border-radius: 10px; padding: 6px 12px; font-size: 12px; color: var(--muted);
}
.hidden-item b { color: var(--text); margin-left: 6px; }

.report-note {
    margin-top: 18px; padding: 12px 14px;
    background: var(--panel-2); border-radius: 12px;
    font-size: 12px; color: var(--warn);
}

.grade-chip {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 800; border: 1px solid;
}
.grade-sss { color: var(--gold); border-color: rgba(227, 193, 100, 0.45); background: rgba(227, 193, 100, 0.1); }
.grade-ss { color: var(--accent); border-color: rgba(104, 211, 145, 0.45); background: var(--accent-soft); }
.grade-s { color: var(--blue); border-color: rgba(105, 169, 255, 0.45); background: rgba(105, 169, 255, 0.1); }
.grade-a { color: var(--purple); border-color: rgba(193, 139, 255, 0.45); background: rgba(193, 139, 255, 0.1); }
.grade-b { color: var(--orange); border-color: rgba(255, 159, 74, 0.45); background: rgba(255, 159, 74, 0.1); }

.tag {
    display: inline-block; padding: 4px 10px; border-radius: 999px;
    background: var(--panel-2); border: 1px solid var(--line);
    font-size: 11px; color: var(--muted);
}

/* ============ 球员档案 ============ */
.player-panel {
    display: flex; align-items: center; gap: 14px;
    padding: 18px; margin-bottom: 14px;
    background: linear-gradient(160deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    box-shadow: var(--shadow-panel);
}
.monogram {
    flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--panel-3); border: 1px solid var(--line-strong);
    color: var(--accent); font-size: 26px; font-weight: 800;
}
.monogram.small { width: 44px; height: 44px; font-size: 18px; }
.identity { flex: 1; min-width: 0; }
.name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.name-row h2 { font-size: 20px; font-weight: 800; }
.identity .meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.panel-side { display: flex; flex-direction: column; align-items: center; gap: 2px; flex-shrink: 0; }
.mini-radar svg { display: block; }
.ovr-pill { flex-shrink: 0; text-align: center; }
.ovr-pill b { display: block; font-size: 30px; font-weight: 900; line-height: 1; color: var(--accent); }
.ovr-pill span { font-size: 10px; color: var(--muted); letter-spacing: 1px; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.stat-strip.stat-strip-youth { grid-template-columns: repeat(2, 1fr); }
.stat-block {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 12px; padding: 12px 6px; text-align: center;
}
.stat-block span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.stat-block b { font-size: 15px; font-weight: 800; color: var(--text); }

/* 参考经理类体育游戏的整合式个人信息面板：球员卡 + 雷达 + 标签 + 合同。 */
.profile-dossier {
    position: relative; isolation: isolate; overflow: hidden;
    margin-bottom: 16px; padding: 18px;
    background:
        radial-gradient(circle at 78% 8%, rgba(104, 211, 145, 0.075), transparent 36%),
        linear-gradient(155deg, rgba(17, 35, 28, 0.98), rgba(8, 22, 17, 0.98));
    border: 1px solid rgba(156, 183, 168, 0.22); border-radius: 25px;
    box-shadow: 0 24px 62px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255,255,255,0.025);
}
.profile-dossier::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    opacity: 0.28;
    background: linear-gradient(115deg, transparent 52%, rgba(104, 211, 145, 0.055), transparent 82%);
}
.profile-hero-grid {
    display: grid; grid-template-columns: minmax(128px, 0.44fr) minmax(0, 0.56fr);
    gap: 14px; align-items: center;
}
.profile-card-slot { min-width: 0; }
.profile-card-slot .tt-player-card {
    width: 100%; margin: 0; border-radius: 10px;
    box-shadow: 0 18px 34px rgba(0,0,0,0.42), 0 0 0 1px rgba(227, 193, 100, 0.12);
}
.profile-dossier .player-panel {
    min-width: 0; height: 100%; padding: 0; margin: 0;
    display: flex; flex-direction: column; justify-content: center; gap: 0;
    background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
.profile-dossier .identity { position: relative; z-index: 1; padding: 0 4px; text-align: center; }
.profile-eyebrow {
    display: block; margin-bottom: 3px; color: var(--gold);
    font-size: 8px; font-weight: 800; letter-spacing: 0.18em;
}
.profile-dossier .identity h2 {
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: clamp(15px, 4.4vw, 20px); font-weight: 850; letter-spacing: -0.02em;
}
.profile-dossier .profile-meta { margin-top: 2px; font-size: 10px; line-height: 1.4; }
.profile-dossier .panel-side { position: relative; width: 100%; margin-top: -2px; }
.profile-dossier .mini-radar { width: 100%; display: grid; place-items: center; }
.profile-dossier .mini-radar svg { width: min(100%, 188px); height: auto; overflow: visible; }
.profile-dossier .mini-radar .radar-area { fill: rgba(209, 111, 91, 0.16); }
.profile-dossier .mini-radar .radar-line { stroke: #d67a68; stroke-width: 2.4; }
.profile-dossier .mini-radar .radar-value { fill: var(--gold); font-size: 12px; }
.profile-dossier .mini-radar .radar-label { fill: #8f9b95; font-size: 9px; }
.profile-dossier .ovr-pill { display: none; }

.profile-tags {
    display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
    margin-top: 15px; padding-top: 14px; border-top: 1px solid rgba(222, 237, 228, 0.09);
}
.profile-tag, .profile-dossier .grade-chip, .profile-dossier .q-badge {
    display: inline-flex; align-items: center; min-height: 28px; margin: 0;
    padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px;
    background: rgba(255,255,255,0.025); color: var(--muted);
    font-size: 10px; font-weight: 750; line-height: 1;
}
.profile-tag-gold {
    color: #e8c96d; border-color: rgba(227,193,100,0.35);
    background: rgba(227,193,100,0.055);
}
.profile-dossier .stat-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
    margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgba(222, 237, 228, 0.09);
}
.profile-dossier .stat-strip.stat-strip-youth { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-dossier .stat-block {
    min-width: 0; padding: 9px 5px;
    background: rgba(255,255,255,0.026); border-color: rgba(222,237,228,0.075);
}
.profile-dossier .stat-block span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-dossier .stat-block b { display: block; overflow: hidden; text-overflow: ellipsis; color: #e9eee9; font-size: 13px; }

/* 即时体能：颜色同时反映当前能量、疲劳和长期 stamina 组成的综合准备度。 */
.condition-meter {
    --condition-color: var(--accent);
    margin: 14px 0 0; padding: 11px 12px;
    background: rgba(255,255,255,0.026); border: 1px solid rgba(222,237,228,0.09);
    border-radius: 12px;
}
.condition-meter-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.condition-meter-head span { color: var(--muted); font-size: 10px; font-weight: 700; }
.condition-meter-head b { color: var(--condition-color); font-size: 12px; font-variant-numeric: tabular-nums; }
.condition-track {
    height: 9px; margin-top: 8px; overflow: hidden; border-radius: 999px;
    background: rgba(255,255,255,0.06); box-shadow: inset 0 1px 3px rgba(0,0,0,0.32);
}
.condition-fill {
    display: block; height: 100%; border-radius: inherit;
    background: linear-gradient(90deg, color-mix(in srgb, var(--condition-color) 68%, #fff), var(--condition-color));
    box-shadow: 0 0 14px color-mix(in srgb, var(--condition-color) 42%, transparent);
    transition: width 0.65s var(--ease-out);
}
.condition-meter-note { margin-top: 6px; color: var(--muted); font-size: 9px; }
.condition-meter.condition-good { --condition-color: #9bd067; }
.condition-meter.condition-tired { --condition-color: var(--gold); }
.condition-meter.condition-strained { --condition-color: var(--orange); }
.condition-meter.condition-depleted { --condition-color: var(--danger); }
.condition-meter.compact { margin: 0 0 12px; padding: 9px 11px; }
.condition-meter.compact .condition-track { height: 7px; margin-top: 6px; }
.event-card .condition-meter { margin-bottom: 13px; }
.condition-chip {
    --condition-color: var(--accent);
    display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 4px 8px;
    color: var(--muted); font-size: 9px; font-weight: 700; white-space: nowrap;
    background: rgba(255,255,255,0.026); border: 1px solid rgba(222,237,228,0.09); border-radius: 999px;
}
.condition-chip b { color: var(--condition-color); font-size: 10px; font-variant-numeric: tabular-nums; }
.condition-chip-dot {
    width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--condition-color);
    box-shadow: 0 0 8px color-mix(in srgb, var(--condition-color) 55%, transparent);
}
.condition-chip.condition-good { --condition-color: #9bd067; }
.condition-chip.condition-tired { --condition-color: var(--gold); }
.condition-chip.condition-strained { --condition-color: var(--orange); }
.condition-chip.condition-depleted { --condition-color: var(--danger); }

.tabs {
    display: flex; gap: 4px; padding: 4px; margin-bottom: 16px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
}
.tab {
    flex: 1; padding: 10px; border: none; border-radius: 10px; cursor: pointer;
    background: transparent; color: var(--muted);
    font-size: 13px; font-weight: 700; font-family: inherit;
    transition: background 0.15s, color 0.15s;
}
.tab.on { background: var(--panel-3); color: var(--text); }

.panel {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 16px; margin-bottom: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018);
    transition: transform 0.3s var(--ease-out), border-color 0.25s, box-shadow 0.3s;
}
.panel h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.panel-note { font-size: 12px; color: var(--muted); line-height: 1.7; }

.grid-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-item {
    background: var(--panel-2); border-radius: 10px; padding: 8px; text-align: center;
}
.stat-item span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 3px; }
.stat-item b { font-size: 15px; color: var(--accent); }

.log-window { max-height: 260px; overflow-y: auto; font-size: 13px; line-height: 1.7; color: var(--muted); }
.log-entry { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.log-entry.important { color: var(--gold); font-weight: 700; }
.log-entry.success { color: var(--accent); }

.energy-row { display: flex; gap: 14px; }
.bar-block { flex: 1; }
.bar-block > span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.bar { height: 6px; background: var(--panel-3); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.3s; }
.bar-fill { box-shadow: 0 0 16px rgba(104, 211, 145, 0.32); transition: width 0.75s var(--ease-out); }
.bar-fill.danger { background: var(--danger); }

.focus-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.focus-chip {
    padding: 7px 12px; border-radius: 10px; cursor: pointer;
    background: var(--panel-2); border: 1px solid var(--line);
    color: var(--muted); font-size: 12px; font-weight: 600; font-family: inherit;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.focus-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }

.training-actions { display: flex; gap: 10px; margin-top: 16px; }
.training-actions .btn { flex: 1; padding: 12px; }

.match-result { margin-top: 16px; }
.match-result.win .match-verdict { color: var(--accent); }
.match-result.loss .match-verdict { color: var(--danger); }
.match-verdict { font-size: 16px; font-weight: 800; }
.match-duration { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.match-highlights { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }

.event-list { display: flex; flex-direction: column; gap: 8px; }
.event-row {
    display: flex; align-items: center; gap: 10px; text-align: left; width: 100%;
    padding: 12px 14px; border-radius: 12px; cursor: pointer;
    background: var(--panel-2); border: 1px solid var(--line);
    color: var(--text); font-family: inherit;
    transition: border-color 0.15s, background 0.15s;
}
.event-row.on { border-color: var(--accent); background: var(--accent-soft); }
.event-row:disabled { opacity: 0.55; cursor: not-allowed; }
.event-tier {
    flex-shrink: 0; font-size: 10px; font-weight: 700; color: var(--accent);
    background: var(--accent-soft); border: 1px solid rgba(104, 211, 145, 0.3);
    padding: 3px 8px; border-radius: 999px;
}
.event-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.event-name { font-size: 13px; font-weight: 700; }
.event-meta { font-size: 11px; color: var(--muted); }
.tag-ok { color: var(--accent); border-color: rgba(104, 211, 145, 0.4); }
.tag-warn { color: var(--warn); border-color: rgba(224, 169, 84, 0.4); }
.tag-done { color: var(--muted); border-color: var(--line); }
.event-payout { font-size: 13px; font-weight: 700; color: var(--gold); margin: 10px 0 8px; }
.event-rank { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.event-matches { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }

.event-budget { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.event-card {
    margin-top: 14px; padding: 16px;
    background: var(--panel-2); border: 1px solid var(--line-strong);
    border-radius: var(--radius);
}
.event-card-head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.rarity {
    font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
    border: 1px solid;
}
.rarity-common { color: var(--muted); border-color: var(--line-strong); }
.rarity-important { color: var(--gold); border-color: rgba(227, 193, 100, 0.45); background: rgba(227, 193, 100, 0.08); }
.rarity-rare { color: var(--purple); border-color: rgba(193, 139, 255, 0.45); background: rgba(193, 139, 255, 0.08); }
.rarity-legendary { color: var(--danger); border-color: rgba(223, 110, 103, 0.5); background: rgba(223, 110, 103, 0.1); }
.event-type-tag { font-size: 11px; color: var(--muted); }
.event-title { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.event-desc { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.choice-list { display: flex; flex-direction: column; gap: 8px; }
.choice-btn {
    width: 100%; text-align: left; cursor: pointer;
    background: var(--panel-2); border: 1px solid var(--line-strong);
    border-radius: 14px; padding: 12px 14px;
    color: var(--text); font-family: inherit;
    display: flex; flex-direction: column; gap: 8px;
    transition: border-color 0.15s, background 0.15s;
}
.choice-btn:hover { border-color: var(--accent-dim); }
.choice-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.choice-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.choice-label { font-size: 14px; font-weight: 700; flex: 1; min-width: 0; }
.choice-cost { font-size: 12px; font-weight: 700; color: var(--orange); }
.choice-lack { font-size: 11px; font-weight: 700; color: var(--danger); }
.confidence {
    font-size: 11px; font-weight: 800; padding: 2px 9px;
    border-radius: 999px; border: 1px solid;
}
.choice-condition { margin-top: -2px; font-size: 10px; font-weight: 700; }
.choice-condition.bad { color: var(--danger); }
.choice-condition.good { color: var(--accent); }
.conf-high { color: var(--accent); border-color: rgba(104, 211, 145, 0.45); background: var(--accent-soft); }
.conf-good { color: var(--accent); border-color: rgba(104, 211, 145, 0.35); }
.conf-mid { color: var(--gold); border-color: rgba(227, 193, 100, 0.4); }
.conf-low { color: var(--orange); border-color: rgba(255, 159, 74, 0.4); }
.conf-risky { color: var(--danger); border-color: rgba(223, 110, 103, 0.45); }
.choice-prospects { display: flex; flex-direction: column; gap: 4px; font-size: 11px; }
.prospect { display: flex; gap: 6px; align-items: baseline; color: var(--muted); line-height: 1.5; }
.prospect.ok { color: var(--accent); }
.prospect.bad { color: var(--danger); }
.event-outcome { margin-top: 14px; padding: 14px; background: var(--panel-2); border-radius: 12px; }
.outcome-rate { margin-top: -7px; color: var(--gold); font-size: 11px; font-weight: 700; }
.event-effects { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.event-outcome-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.event-outcome-head .event-title { margin: 0; }
.event-competition-summary { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-strong); }
.event-competition-name { color: var(--muted); font-size: 11px; font-weight: 700; margin-bottom: 9px; }
.event-competition-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.event-competition-stat {
    padding: 9px 8px; background: rgba(7, 16, 13, 0.3);
    border: 1px solid var(--line); border-radius: 10px;
}
.event-competition-stat span { display: block; color: var(--muted); font-size: 10px; }
.event-competition-stat b { display: block; color: var(--accent); font-size: 13px; margin-top: 2px; }
.event-competition-summary.champion .event-competition-stat:first-child b { color: var(--gold); }
.outcome-banner {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 12px; margin-bottom: 12px;
    font-size: 15px; font-weight: 900;
}
.outcome-banner.ok { color: var(--accent); background: rgba(104, 211, 145, 0.12); border: 1px solid rgba(104, 211, 145, 0.45); }
.outcome-banner.bad { color: var(--danger); background: rgba(223, 110, 103, 0.12); border: 1px solid rgba(223, 110, 103, 0.45); }
.outcome-badge {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 900;
}
.outcome-badge.ok { background: rgba(104, 211, 145, 0.15); color: var(--accent); border: 1px solid rgba(104, 211, 145, 0.5); }
.outcome-badge.bad { background: rgba(223, 110, 103, 0.15); color: var(--danger); border: 1px solid rgba(223, 110, 103, 0.5); }

.cash-strip {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; margin-bottom: 12px;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 12px; font-size: 12px; color: var(--muted);
}
.cash-strip b { color: var(--accent); font-size: 15px; }

/* ============ 荣誉 ============ */
.honor-overlay {
    position: fixed; inset: 0; z-index: 300;
    background:
        radial-gradient(circle at 50% 42%, rgba(217, 179, 79, 0.15) 0, transparent 34%),
        rgba(1, 7, 4, 0.82);
    backdrop-filter: blur(12px) saturate(80%);
    -webkit-backdrop-filter: blur(12px) saturate(80%);
    display: flex; align-items: center; justify-content: center; padding: 22px;
    overflow: hidden; cursor: pointer;
    animation: honorFade 0.6s var(--ease-out) both;
}
.honor-overlay:focus { outline: none; }
.honor-overlay::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(227, 193, 100, 0.08), transparent 22%),
        repeating-linear-gradient(90deg, transparent 0 7.5%, rgba(227, 193, 100, 0.018) 7.6% 7.7%);
    mask-image: radial-gradient(circle at center, black, transparent 68%);
}
@keyframes honorFade { from { opacity: 0; } to { opacity: 1; } }
.honor-overlay.is-leaving { animation: honorLeave 0.42s var(--ease-out) both; pointer-events: none; }
@keyframes honorLeave { to { opacity: 0; transform: scale(1.018); filter: blur(4px); } }

.honor-atmosphere { position: absolute; inset: 0; pointer-events: none; }
.honor-rays {
    position: absolute; width: min(110vw, 820px); aspect-ratio: 1; left: 50%; top: 47%;
    opacity: 0; transform: translate(-50%, -50%) rotate(-14deg) scale(0.7);
    background: repeating-conic-gradient(from 0deg, rgba(230, 197, 112, 0.14) 0 4deg, transparent 4deg 17deg);
    mask-image: radial-gradient(circle, transparent 0 17%, black 28%, transparent 69%);
    animation: honorRaysIn 1.1s 0.12s var(--ease-out) forwards, honorRaysTurn 28s 1.2s linear infinite;
}
@keyframes honorRaysIn { to { opacity: 0.52; transform: translate(-50%, -50%) rotate(0) scale(1); } }
@keyframes honorRaysTurn { to { transform: translate(-50%, -50%) rotate(360deg) scale(1); } }

.honor-orbit {
    position: absolute; left: 50%; top: 47%; border: 1px solid rgba(227, 193, 100, 0.18);
    border-radius: 50%; transform: translate(-50%, -50%) scale(0.65); opacity: 0;
    animation: honorOrbitIn 1s 0.3s var(--ease-out) forwards;
}
.honor-orbit::after {
    content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%;
    background: #f4d982; top: 15%; left: 12%; box-shadow: 0 0 14px 4px rgba(227, 193, 100, 0.36);
}
.honor-orbit-a { width: min(78vw, 620px); aspect-ratio: 1; animation: honorOrbitIn 1s 0.3s var(--ease-out) forwards, honorOrbitTurn 16s 1.3s linear infinite; }
.honor-orbit-b { width: min(94vw, 760px); aspect-ratio: 1; border-style: dashed; animation: honorOrbitIn 1s 0.45s var(--ease-out) forwards, honorOrbitTurnReverse 24s 1.45s linear infinite; }
@keyframes honorOrbitIn { to { opacity: 0.58; transform: translate(-50%, -50%) scale(1); } }
@keyframes honorOrbitTurn { to { transform: translate(-50%, -50%) rotate(360deg) scale(1); } }
@keyframes honorOrbitTurnReverse { to { transform: translate(-50%, -50%) rotate(-360deg) scale(1); } }

.honor-particle {
    --particle-x: 50%; --particle-delay: 0s; --particle-size: 6px; --particle-drift: 0px;
    position: absolute; left: var(--particle-x); top: -8%; width: var(--particle-size); height: calc(var(--particle-size) * 1.65);
    border-radius: 1px; opacity: 0; background: #e3c164;
    box-shadow: 0 0 9px rgba(227, 193, 100, 0.28);
    animation: honorParticleFall 3.6s calc(0.85s + var(--particle-delay)) ease-in infinite;
}
.honor-particle-1 { background: #e9eee8; transform: rotate(38deg); }
.honor-particle-2 { border-radius: 50%; background: #79c895; }
@keyframes honorParticleFall {
    0% { opacity: 0; translate: 0 -12vh; rotate: 0deg; }
    12% { opacity: 0.78; }
    78% { opacity: 0.52; }
    100% { opacity: 0; translate: var(--particle-drift) 116vh; rotate: 410deg; }
}

.honor-modal {
    position: relative; isolation: isolate; overflow: hidden;
    width: 100%; max-width: 420px; max-height: min(86vh, 760px); overflow-y: auto; text-align: center;
    background:
        radial-gradient(circle at 50% -5%, rgba(227, 193, 100, 0.12), transparent 42%),
        linear-gradient(160deg, rgba(26, 45, 36, 0.98), rgba(8, 22, 17, 0.99));
    border: 1px solid rgba(227, 193, 100, 0.46);
    border-radius: 28px; padding: 30px 22px 20px;
    box-shadow:
        0 36px 90px rgba(0, 0, 0, 0.62),
        0 0 0 1px rgba(255, 255, 255, 0.025) inset,
        0 0 70px rgba(227, 193, 100, 0.08);
    cursor: default;
    animation: honorPop 0.72s 0.08s var(--ease-spring) both;
}
.honor-modal::before {
    content: ""; position: absolute; inset: 7px; z-index: -1; pointer-events: none;
    border: 1px solid rgba(227, 193, 100, 0.1); border-radius: 21px;
}
.honor-modal::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(120deg, transparent 32%, rgba(255,255,255,0.045) 49%, transparent 66%);
    transform: translateX(-100%); animation: honorSurfaceSweep 5.5s 1.15s ease-in-out infinite;
}
@keyframes honorPop {
    from { transform: perspective(700px) rotateX(8deg) scale(0.78) translateY(30px); opacity: 0; filter: blur(8px); }
    to { transform: none; opacity: 1; }
}
@keyframes honorSurfaceSweep { 0%, 55% { transform: translateX(-115%); } 85%, 100% { transform: translateX(115%); } }
.honor-shine {
    position: absolute; inset: -70% 28% auto; height: 100%; z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 225, 143, 0.18), transparent);
    filter: blur(18px); transform: rotate(7deg);
}
.honor-emblem {
    position: relative; width: 58px; height: 58px; margin: 0 auto 15px;
    display: grid; place-items: center; border-radius: 50%;
    border: 1px solid rgba(227, 193, 100, 0.55);
    background: radial-gradient(circle at 36% 28%, #f5df95, #b8882d 68%, #5f4213);
    box-shadow: 0 0 0 7px rgba(227, 193, 100, 0.06), 0 12px 32px rgba(0,0,0,0.3), 0 0 24px rgba(227, 193, 100, 0.22);
    opacity: 0; animation: honorEmblemIn 0.7s 0.46s var(--ease-spring) forwards;
}
.honor-emblem::before, .honor-emblem::after {
    content: ""; position: absolute; bottom: -14px; width: 16px; height: 23px; z-index: -1;
    background: linear-gradient(135deg, #a97828, #efcf75); clip-path: polygon(0 0, 100% 0, 75% 100%, 50% 72%, 20% 100%);
}
.honor-emblem::before { left: 7px; transform: rotate(8deg); }
.honor-emblem::after { right: 7px; transform: rotate(-8deg); }
.honor-emblem span {
    width: 23px; height: 23px; background: #173025;
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 79% 92%, 50% 70%, 21% 92%, 32% 56%, 2% 35%, 39% 35%);
    filter: drop-shadow(0 1px 0 rgba(255,255,255,0.25));
}
@keyframes honorEmblemIn { from { opacity: 0; transform: translateY(-16px) scale(0.62) rotate(-18deg); } to { opacity: 1; transform: none; } }
.honor-kicker {
    display: flex; align-items: center; gap: 10px; margin: 0 auto 5px;
    font-size: 11px; font-weight: 800; letter-spacing: 5px; color: var(--gold);
    text-transform: uppercase; justify-content: center;
    opacity: 0; animation: honorCopyIn 0.55s 0.58s var(--ease-out) forwards;
}
.honor-kicker::before, .honor-kicker::after { content: ""; width: 32px; height: 1px; background: linear-gradient(90deg, transparent, rgba(227,193,100,0.7)); }
.honor-kicker::after { transform: scaleX(-1); }
.honor-title {
    font-size: clamp(25px, 7vw, 32px); font-weight: 900; letter-spacing: 0.08em;
    color: #f0cf73; margin: 4px 0 3px; text-wrap: balance;
    text-shadow: 0 4px 24px rgba(227, 193, 100, 0.16);
    opacity: 0; animation: honorCopyIn 0.55s 0.68s var(--ease-out) forwards;
}
.honor-summary {
    margin-bottom: 20px; color: var(--muted); font-size: 12px; letter-spacing: 0.08em;
    opacity: 0; animation: honorCopyIn 0.55s 0.76s var(--ease-out) forwards;
}
.honor-summary strong { color: #f0cf73; font-size: 14px; font-variant-numeric: tabular-nums; }
@keyframes honorCopyIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.honor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.honor-item {
    position: relative; overflow: hidden; min-height: 66px;
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(145deg, rgba(36, 61, 49, 0.9), rgba(21, 41, 32, 0.92));
    border: 1px solid rgba(222, 237, 228, 0.11);
    border-radius: 15px; padding: 11px 12px;
    opacity: 0; transform: translateY(16px) scale(0.95);
    animation: honorItemIn 0.52s calc(0.84s + var(--honor-order) * 0.09s) var(--ease-spring) forwards;
    transition: transform 0.25s var(--ease-out), border-color 0.25s, background 0.25s;
}
.honor-item::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.08), transparent 65%);
    transform: translateX(-120%); animation: honorItemSweep 0.8s calc(1.15s + var(--honor-order) * 0.09s) var(--ease-out) both;
}
@keyframes honorItemIn { to { opacity: 1; transform: none; } }
@keyframes honorItemSweep { to { transform: translateX(120%); } }
.honor-icon {
    font-size: 24px; flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center;
    filter: drop-shadow(0 5px 8px rgba(0,0,0,0.28));
}
.honor-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; }
.honor-name { font-size: 12px; font-weight: 750; line-height: 1.45; text-wrap: pretty; }
.honor-note { color: #b6c1bb; font-size: 9px; line-height: 1.35; }
.honor-continue {
    appearance: none; border: 0; background: transparent; color: #9eaaa4; font: inherit;
    display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 7px 12px;
    font-size: 11px; letter-spacing: 0.08em; cursor: pointer;
    opacity: 0; animation: honorCopyIn 0.5s 1.48s var(--ease-out) forwards;
}
.honor-continue i { color: var(--gold); font-style: normal; animation: honorArrow 1.4s 1.8s ease-in-out infinite; }
@keyframes honorArrow { 50% { transform: translateX(4px); } }
.honor-list { display: flex; flex-wrap: wrap; gap: 8px; }
.honor-tag { color: var(--gold); border-color: rgba(227, 193, 100, 0.35); background: rgba(227, 193, 100, 0.06); }
.honor-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}
.season-honor-card {
    position: relative; min-width: 0; min-height: 60px;
    display: flex; align-items: center; gap: 10px;
    padding: 11px 12px; overflow: hidden;
    border: 1px solid rgba(227, 193, 100, 0.2); border-radius: 14px;
    background: linear-gradient(145deg, rgba(227, 193, 100, 0.075), rgba(27, 45, 36, 0.74));
    transition: transform 0.24s var(--ease-out), border-color 0.24s, background 0.24s;
}
.season-honor-card.is-title {
    grid-column: 1 / -1;
    min-height: 64px;
    background: linear-gradient(100deg, rgba(227, 193, 100, 0.11), rgba(27, 45, 36, 0.74) 62%);
}
.season-honor-card.is-title::after {
    content: "赛事冠军"; position: absolute; right: 11px; top: 9px;
    color: rgba(227, 193, 100, 0.5); font-size: 8px; font-weight: 850; letter-spacing: 0.12em;
}
.season-honor-icon {
    width: 38px; height: 38px; flex: 0 0 38px;
    display: grid; place-items: center; font-size: 23px;
    border: 1px solid rgba(227, 193, 100, 0.17); border-radius: 11px;
    background: rgba(5, 18, 13, 0.42);
}
.season-honor-icon .honor-icon { width: 100%; height: 100%; }
.season-honor-icon .trophy-photo.trophy-mini img,
.season-honor-icon .honor-icon-art svg.trophy-mini { width: 28px; height: 28px; }
.season-honor-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-right: 2px; }
.season-honor-card.is-title .season-honor-copy { padding-right: 55px; }
.season-honor-name { color: var(--gold); font-size: 12px; font-weight: 800; line-height: 1.45; text-wrap: pretty; }
.season-honor-note { color: var(--muted); font-size: 9px; line-height: 1.35; }
.season-honor-more {
    grid-column: 1 / -1; min-height: 38px; justify-content: center;
    color: var(--muted); font-size: 11px;
}
.trophy-tag { color: var(--gold); border-color: rgba(227, 193, 100, 0.4); background: rgba(227, 193, 100, 0.08); }

/* 冠军奖杯矢量图（按现实真实奖杯造型绘制的 SVG） */
.honor-icon.honor-icon-art { display: inline-flex; align-items: center; justify-content: center; }
.honor-icon.honor-icon-art svg { width: 32px; height: 32px; display: block; }
.honor-icon.honor-icon-art svg.trophy-mini { width: 15px; height: 15px; }
svg.trophy-mini { width: 15px; height: 15px; vertical-align: -2.5px; }
.tag svg.trophy-art-svg { vertical-align: -2.5px; }

/* 冠军奖杯真实照片（优先于 SVG；加载失败自动回退矢量图） */
.trophy-photo { display: inline-flex; flex-shrink: 0; vertical-align: -2.5px; }
.trophy-photo img {
    width: 28px; height: 28px; object-fit: contain; display: block;
}
.trophy-photo.trophy-mini img { width: 17px; height: 17px; border-radius: 4px; }
.trophy-photo .trophy-photo-fb { display: none; }
.trophy-photo.photo-error img { display: none; }
.trophy-photo.photo-error .trophy-photo-fb { display: inline-flex; }

.investment-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.investment-row {
    display: flex; justify-content: space-between; gap: 10px;
    padding: 8px 12px; border-radius: 10px; font-size: 12px;
    background: var(--panel-2); border: 1px solid var(--line);
}
.investment-row.ok { color: var(--accent); border-color: rgba(104, 211, 145, 0.35); }
.investment-row.bad { color: var(--danger); border-color: rgba(223, 110, 103, 0.35); }

.season-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.season-phase { font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 10px; }
.season-summary { margin-top: 4px; }
.season-verdict { font-size: 16px; font-weight: 800; margin-bottom: 12px; color: var(--text); }
.season-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.season-toolbar h3 { margin: 0; }
.season-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
.auto-toggle { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); cursor: pointer; }
.auto-toggle input { accent-color: var(--accent); }

.retire-head { font-size: 14px; font-weight: 800; margin-bottom: 12px; }
.retire-options { display: flex; flex-direction: column; gap: 8px; }
.retire-option { width: 100%; }

.career-summary { padding: 4px 0; }
.cs-head { text-align: center; padding: 10px 0 18px; }
.cs-kicker { font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--accent-dim); margin-bottom: 10px; }
.cs-monogram {
    width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--panel-3); border: 1px solid var(--line-strong);
    color: var(--accent); font-size: 30px; font-weight: 800;
}
.cs-name { font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.cs-grade-row { margin-bottom: 6px; }
.cs-meta { font-size: 12px; color: var(--muted); }
.cs-verdict { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.cs-panel {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 16px; margin-bottom: 14px;
}
.cs-panel h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.cs-section { margin-top: 14px; }
.cs-section h4 { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.cs-section p { font-size: 13px; line-height: 1.7; }
.cs-season-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
.cs-season-row {
    display: flex; gap: 10px; align-items: baseline;
    padding: 9px 11px; background: var(--panel-2);
    border-radius: 10px; font-size: 11px;
}
.cs-season-year { flex-shrink: 0; font-weight: 800; color: var(--accent); width: 48px; }
.cs-season-main { flex: 1; min-width: 0; color: var(--text); }
.cs-season-side { flex-shrink: 0; color: var(--muted); text-align: right; }
.season-honor-mini { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.season-honor-mini span {
    font-size: 10px; color: var(--gold);
    background: rgba(227, 193, 100, 0.08);
    border: 1px solid rgba(227, 193, 100, 0.25);
    border-radius: 999px; padding: 1px 8px;
}

/* ============ 世界排名榜 ============ */
.rank-board { display: flex; flex-direction: column; gap: 4px; }
.rank-row {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 10px; border-radius: 9px;
    background: var(--panel-2); font-size: 12px;
}
.rank-pos { flex-shrink: 0; width: 30px; font-weight: 800; color: var(--accent); }
.rank-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nation-flag-svg {
    display: inline-block; width: 1em; height: 1em;
    vertical-align: -0.14em; overflow: visible;
}
.nation-flag > .nation-flag-svg {
    display: block;
}
.rank-pts { flex-shrink: 0; color: var(--muted); font-weight: 700; }
.rank-ovr {
    flex-shrink: 0; font-size: 10px; font-weight: 700;
    color: var(--accent); background: var(--accent-soft);
    border: 1px solid rgba(104, 211, 145, 0.35);
    border-radius: 999px; padding: 1px 8px;
}
.rank-row.self { border: 1px solid rgba(227, 193, 100, 0.5); background: rgba(227, 193, 100, 0.08); }
.rank-row.self .rank-pos { color: var(--gold); }
.rank-breakdown { margin-top: 10px; padding: 10px 12px; background: var(--panel-2); border-radius: 10px; }
.rank-breakdown b { font-size: 13px; }
.rank-breakdown-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rank-breakdown-sources span {
    font-size: 10px; color: var(--muted);
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 999px; padding: 2px 8px;
}

/* ============ 俱乐部 ============ */
.club-card { display: flex; align-items: center; gap: 14px; }
.club-logo { flex-shrink: 0; }
.club-logo svg { display: block; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35)); }
.club-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.club-info b { font-size: 15px; font-weight: 800; }
.club-info span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.club-kicker { color: var(--gold) !important; font-size: 8px !important; font-weight: 800; letter-spacing: 0.12em; }
.club-contract { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.club-contract b { color: var(--text); font-size: 11px; }
.club-contract span { color: var(--muted); font-size: 10px; }
.club-logo-placeholder {
    width: 46px; height: 46px; display: grid; place-items: center;
    border: 1px dashed rgba(227,193,100,0.28); border-radius: 50%;
    color: var(--gold); background: rgba(227,193,100,0.045); font-size: 10px; font-weight: 850;
}
.profile-dossier .club-panel {
    margin: 14px 0 0; padding: 14px 0 0;
    background: transparent; border: 0; border-top: 1px solid rgba(222,237,228,0.09);
    border-radius: 0; box-shadow: none;
}
.profile-dossier .club-card { gap: 11px; }
.profile-dossier .club-info { flex: 1; }
.profile-dossier .club-info b { font-size: 13px; }
.profile-dossier .club-info > span:not(.club-kicker) { font-size: 10px; }

/* ============ 参赛资格标签 ============ */
.q-badge {
    display: inline-block; padding: 1px 8px; border-radius: 999px;
    font-size: 10px; font-weight: 800; margin-left: 6px;
}
.q-badge.ok { color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(104, 211, 145, 0.45); }
.q-badge.wait { color: var(--warn); background: rgba(224, 169, 84, 0.1); border: 1px solid rgba(224, 169, 84, 0.4); }
.ach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ach-card {
    background: var(--panel-2); border: 1px solid var(--line);
    border-radius: 12px; padding: 12px; opacity: 0.55;
}
.ach-card.on { opacity: 1; border-color: rgba(104, 211, 145, 0.45); background: var(--accent-soft); }
.ach-status {
    display: inline-block; margin-bottom: 8px; color: var(--muted);
    font-size: 9px; font-weight: 800; letter-spacing: 1px;
}
.ach-card.on .ach-status { color: var(--accent); }
.ach-name { display: block; font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.ach-desc { display: block; font-size: 11px; color: var(--muted); line-height: 1.5; }
.ach-card.on .ach-desc { color: var(--text-muted); }
.ach-progress {
    display: inline-block; margin-top: 8px; padding: 2px 7px;
    border-radius: 999px; background: var(--panel-3); border: 1px solid var(--line);
    color: var(--muted); font-size: 10px; font-weight: 800;
}
.ach-card.on .ach-progress { color: var(--accent); border-color: rgba(104, 211, 145, 0.35); }
.ach-panel .btn { margin-bottom: 0; }
.ach-panel .ach-grid { margin-top: 12px; }
.ranking-actions-bottom {
    display: grid; gap: 10px; margin-top: 18px; padding-top: 14px;
    border-top: 1px solid rgba(222, 237, 228, 0.09);
}
.ranking-actions-bottom .ach-panel { margin: 0; padding: 10px; }
.ranking-actions-bottom .btn {
    min-height: 52px; border-radius: 14px;
    color: var(--text); font-weight: 800;
    background: linear-gradient(135deg, rgba(24, 43, 34, 0.88), rgba(15, 31, 24, 0.92));
}

.timeline { display: flex; flex-direction: column; gap: 8px; }
.timeline-row {
    display: flex; gap: 12px; align-items: baseline;
    padding: 8px 10px; background: var(--panel-2);
    border-radius: 10px; font-size: 12px;
}
.timeline-year { flex-shrink: 0; font-weight: 800; color: var(--accent); }
.timeline-info { color: var(--muted); }

.hall-head { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.hall-stats {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px;
}
.hall-stats > div {
    display: flex; flex-direction: column; gap: 5px; padding: 12px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
}
.hall-stats span { color: var(--muted); font-size: 11px; }
.hall-stats b { color: var(--text); font-size: 20px; }
.hall-achievements { margin-bottom: 18px; }
.hall-achievements .ach-grid { margin-top: 12px; }
.hall-section-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.hall-section-head h3 { margin: 0; font-size: 15px; }
.hall-section-head > span {
    color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(104, 211, 145, 0.35);
    border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 800;
}
.hall-career-head { margin: 4px 0 12px; }
.hall-card {
    display: flex; gap: 12px; align-items: center;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 14px; margin-bottom: 12px;
}
.hall-rank {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--panel-3); border: 1px solid var(--line-strong);
    color: var(--gold); font-weight: 800; font-size: 13px;
}
.hall-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hall-name { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.hall-meta { font-size: 12px; color: var(--muted); }

.save-note { text-align: center; font-size: 11px; color: var(--muted); margin-top: 12px; }

/* ============ 底部操作区 ============ */
.bottom-action {
    position: fixed; bottom: 0; left: 0; right: 0;
    padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
    background: rgba(7, 16, 13, 0.86); border-top: 1px solid var(--line);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    display: flex; justify-content: center; z-index: 100;
}

/* ============ 弹窗 ============ */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    animation: modalBackdropIn 0.28s ease-out both;
}
.modal {
    width: 100%; max-width: 400px;
    background: var(--panel-2); border: 1px solid var(--line-strong);
    border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-panel);
    animation: modalIn 0.38s var(--ease-spring) both;
}
.modal h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.modal p { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }

@keyframes modalBackdropIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.94); } }

/* ============ 全局动效与细节 ============ */
.view.active .player-panel,
.view.active .stat-strip,
.view.active .profile-dossier,
.view.active .tabs,
.view.active .panel,
.view.active .cs-panel,
.view.active .hall-card,
.view.active .form-group,
.view.active .role-card,
.view.active .quick-create-panel,
.view.active .report-panel {
    animation: surfaceReveal 0.58s var(--ease-out) backwards;
}
.view.active .profile-dossier .player-panel,
.view.active .profile-dossier .stat-strip,
.view.active .profile-dossier .club-panel { animation: none; }
.view.active .panel:nth-of-type(2),
.view.active .form-group:nth-of-type(2),
.view.active .hall-card:nth-of-type(2) { animation-delay: 0.045s; }
.view.active .panel:nth-of-type(3),
.view.active .form-group:nth-of-type(3),
.view.active .hall-card:nth-of-type(3) { animation-delay: 0.09s; }
.view.active .panel:nth-of-type(n+4),
.view.active .form-group:nth-of-type(n+4),
.view.active .hall-card:nth-of-type(n+4) { animation-delay: 0.13s; }
@keyframes surfaceReveal {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.flow-dot.on { box-shadow: 0 0 0 4px rgba(104, 211, 145, 0.09), 0 0 14px rgba(104, 211, 145, 0.34); }
.seg, .nation-btn, .role-card, .focus-chip, .event-row, .choice-btn, .tab {
    transition: transform 0.25s var(--ease-out), border-color 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s;
}
.seg.on, .nation-btn.on, .role-card.on, .focus-chip.on, .event-row.on {
    box-shadow: inset 0 0 24px rgba(104, 211, 145, 0.05), 0 7px 22px rgba(0, 0, 0, 0.12);
}
.tab.on { box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255,255,255,0.025); }
.stat-block, .stat-item, .quick-fact, .event-competition-stat, .ach-card {
    transition: transform 0.28s var(--ease-out), border-color 0.25s, background 0.25s;
}
.stat-block b, .stat-item b, .report-ovr b, .ovr-pill b, .hall-stats b {
    font-variant-numeric: tabular-nums;
}

* { scrollbar-width: thin; scrollbar-color: rgba(160, 170, 164, 0.26) transparent; }
*::-webkit-scrollbar { width: 5px; height: 5px; }
*::-webkit-scrollbar-thumb { background: rgba(160, 170, 164, 0.26); border-radius: 999px; }

@media (hover: hover) and (pointer: fine) {
    .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
    .btn:hover::after { transform: rotate(18deg) translateX(520%); }
    .resume-card:hover, .player-panel:hover, .profile-dossier:hover, .hall-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-float); }
    .panel:hover { border-color: rgba(222, 237, 228, 0.145); }
    .seg:hover, .nation-btn:hover, .role-card:hover, .focus-chip:hover, .event-row:hover, .choice-btn:hover { transform: translateY(-2px); border-color: rgba(104, 211, 145, 0.34); }
    .stat-block:hover, .stat-item:hover, .quick-fact:hover, .event-competition-stat:hover, .ach-card:hover { transform: translateY(-2px); }
    .honor-item:hover { transform: translateY(-2px); border-color: rgba(227, 193, 100, 0.35); background: linear-gradient(145deg, rgba(42, 69, 56, 0.96), rgba(23, 46, 36, 0.96)); }
    .season-honor-card:hover { transform: translateY(-2px); border-color: rgba(227, 193, 100, 0.38); background-color: rgba(227, 193, 100, 0.09); }
    .honor-continue:hover { color: var(--text); }
}

@media (max-width: 390px) {
    main { padding-inline: 14px; }
    .profile-dossier { padding: 14px; border-radius: 22px; }
    .profile-hero-grid { grid-template-columns: minmax(116px, 0.43fr) minmax(0, 0.57fr); gap: 10px; }
    .profile-tags { gap: 6px; }
    .profile-tag, .profile-dossier .grade-chip, .profile-dossier .q-badge { min-height: 26px; padding: 4px 8px; font-size: 9px; }
    .profile-dossier .stat-strip, .profile-dossier .stat-strip.stat-strip-youth { gap: 6px; }
    .profile-dossier .club-card { align-items: flex-start; }
    .profile-dossier .club-logo svg, .profile-dossier .club-logo-placeholder { width: 40px; height: 40px; }
    .profile-dossier .club-contract b { font-size: 10px; }
    .profile-dossier .club-contract span { font-size: 9px; }
    .honor-overlay { padding: 14px; }
    .honor-modal { padding: 26px 16px 18px; border-radius: 24px; }
    .honor-grid { grid-template-columns: 1fr; }
    .honor-item { min-height: 58px; }
    .honor-emblem { width: 52px; height: 52px; }
}

@media (max-width: 340px) {
    .profile-dossier { padding: 12px; }
    .profile-hero-grid { grid-template-columns: 112px minmax(0, 1fr); gap: 7px; }
    .profile-dossier .identity h2 { font-size: 14px; }
    .profile-dossier .profile-meta { font-size: 9px; }
    .profile-dossier .mini-radar .radar-label-group { display: none; }
    .profile-dossier .stat-block span { font-size: 8px; }
    .profile-dossier .stat-block b { font-size: 11px; }
    .profile-dossier .club-contract { display: none; }
    .honor-summary-grid { grid-template-columns: 1fr; }
    .season-honor-card, .season-honor-card.is-title, .season-honor-more { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
    .honor-particle, .honor-rays, .honor-orbit { display: none; }
}
