/* ================================================================
   组件：按钮 / 卡片 / 表单 / 表格 / 弹窗 / 徽标 ...
   ================================================================ */

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 38px; padding: 0 16px; border-radius: 10px; cursor: pointer;
    border: 1px solid var(--line-2); background: rgba(126, 170, 214, .05); color: var(--text-2);
    font-size: 13px; white-space: nowrap; transition: all .2s var(--ease);
}
.btn:hover { color: var(--text); border-color: rgba(126, 170, 214, .42); background: rgba(126, 170, 214, .1); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn i { font-size: 12px; }
.btn-primary {
    background: linear-gradient(135deg, #43e9f4, #1fb3c8); color: #03141a; border-color: transparent;
    font-weight: 600; box-shadow: 0 10px 24px rgba(57, 230, 242, .16);
}
.btn-primary:hover { color: #03141a; box-shadow: 0 12px 30px rgba(57, 230, 242, .3); background: linear-gradient(135deg, #5cf0fa, #23c3d9); }
.btn-amber { background: linear-gradient(135deg, #ffc76a, #f5a62c); color: #211303; border-color: transparent; font-weight: 600; }
.btn-amber:hover { color: #211303; box-shadow: 0 10px 24px rgba(255, 182, 72, .2); }
.btn-danger { color: #ff9aa6; border-color: rgba(255, 95, 114, .32); background: rgba(255, 95, 114, .08); }
.btn-danger:hover { color: #fff; background: rgba(255, 95, 114, .22); border-color: rgba(255, 95, 114, .6); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(126, 170, 214, .08); }
.btn-sm { height: 31px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.btn-xs { height: 27px; padding: 0 9px; font-size: 11px; border-radius: 7px; gap: 5px; }
.btn-icon { width: 32px; height: 32px; padding: 0; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------------- 卡片 ---------------- */
.card {
    position: relative; border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(17, 30, 51, .86) 0%, rgba(8, 14, 25, .94) 100%);
    border: 1px solid var(--line); box-shadow: var(--shadow-soft);
    backdrop-filter: blur(6px);
}
.card::before {
    content: ""; position: absolute; top: -1px; left: 20px; width: 58px; height: 2px;
    background: linear-gradient(90deg, var(--cyan), rgba(57, 230, 242, 0));
    box-shadow: 0 0 12px rgba(57, 230, 242, .5);
}
.card-head { display: flex; align-items: center; gap: 12px; padding: 17px 20px 0; }
.card-title { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.card-title i { color: var(--cyan); font-size: 13px; }
.card-title em { font-size: 10px; color: var(--text-4); font-family: var(--mono); letter-spacing: .12em; font-weight: 400; }
.card-extra { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.card-body { padding: 18px 20px 20px; }
.card-body.tight { padding: 12px 0 0; }
.card-hover { transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.card-hover:hover { transform: translateY(-3px); border-color: rgba(57, 230, 242, .28); box-shadow: 0 20px 44px rgba(0, 0, 0, .38); }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
    position: relative; display: flex; gap: 14px; padding: 18px 18px 16px; overflow: hidden;
    border-radius: var(--radius); border: 1px solid var(--line);
    background: linear-gradient(150deg, rgba(19, 33, 55, .9), rgba(8, 14, 25, .92));
    box-shadow: var(--shadow-soft);
}
.stat-card::after {
    content: ""; position: absolute; right: -30px; top: -46px; width: 120px; height: 120px;
    border-radius: 50%; background: radial-gradient(circle, rgba(57, 230, 242, .12), transparent 66%);
}
.stat-icon {
    width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
    font-size: 17px; color: var(--cyan);
    background: rgba(57, 230, 242, .09); border: 1px solid rgba(57, 230, 242, .22);
}
.stat-body { min-width: 0; }
.stat-label { font-size: 11.5px; color: var(--text-3); letter-spacing: .04em; }
.stat-value { margin-top: 3px; font-size: 27px; line-height: 1.15; font-weight: 600; }
.stat-value em { font-size: 11px; color: var(--text-3); margin-left: 4px; font-weight: 400; letter-spacing: .02em; }
.stat-trend, .stat-hint { margin-top: 4px; font-size: 10.5px; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
.stat-trend.is-up { color: var(--green); }
.stat-trend.is-down { color: var(--red); }
.stat-amber .stat-icon { color: var(--amber); background: rgba(255, 182, 72, .09); border-color: rgba(255, 182, 72, .24); }
.stat-amber::after { background: radial-gradient(circle, rgba(255, 182, 72, .12), transparent 66%); }
.stat-red .stat-icon { color: var(--red); background: rgba(255, 95, 114, .09); border-color: rgba(255, 95, 114, .24); }
.stat-red::after { background: radial-gradient(circle, rgba(255, 95, 114, .12), transparent 66%); }
.stat-green .stat-icon { color: var(--green); background: rgba(56, 224, 164, .09); border-color: rgba(56, 224, 164, .24); }
.stat-green::after { background: radial-gradient(circle, rgba(56, 224, 164, .12), transparent 66%); }
.stat-blue .stat-icon { color: var(--blue); background: rgba(79, 140, 255, .09); border-color: rgba(79, 140, 255, .24); }

/* ---------------- 表单 ---------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: span 3; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 11.5px; color: var(--text-3); letter-spacing: .04em; display: flex; align-items: center; gap: 5px; }
.field label .req { color: var(--red); }
.field .hint { font-size: 10.5px; color: var(--text-4); }
.input, .select, .textarea {
    width: 100%; height: 39px; padding: 0 12px; border-radius: 9px;
    background: rgba(6, 12, 21, .75); border: 1px solid var(--line-2);
    color: var(--text); font-size: 13px; outline: 0; transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; line-height: 1.65; }
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(57, 230, 242, .55); box-shadow: 0 0 0 3px rgba(57, 230, 242, .09); background: rgba(8, 16, 28, .95); }
.select {
    appearance: none; -webkit-appearance: none; cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
    background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px;
    background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 30px;
}
.select option { background: #0b1422; color: var(--text); }
.input[readonly] { color: var(--text-3); background: rgba(126, 170, 214, .04); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--text-3); }
.input-icon .input { padding-left: 34px; }
.field-error { font-size: 10.5px; color: var(--red); }
.input.is-error { border-color: rgba(255, 95, 114, .6); }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 12.5px; color: var(--text-2); }
.switch input { display: none; }
.switch .track { width: 38px; height: 21px; border-radius: 99px; background: rgba(126, 170, 214, .2); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #b8c7d8; transition: transform .22s var(--ease), background .2s; }
.switch input:checked + .track { background: rgba(57, 230, 242, .35); }
.switch input:checked + .track::after { transform: translateX(17px); background: var(--cyan); box-shadow: 0 0 10px rgba(57, 230, 242, .6); }

.check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.check-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 12px; color: var(--text-2); background: rgba(6, 12, 21, .5); }
.check-item:hover { border-color: var(--line-2); }
.check-item input { accent-color: var(--cyan); }
.check-item.is-checked { border-color: rgba(57, 230, 242, .4); background: rgba(57, 230, 242, .06); color: var(--text); }

.form-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-section { margin-bottom: 22px; }
.form-section-title { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); letter-spacing: .08em; margin-bottom: 12px; }
.form-section-title::before { content: ""; width: 3px; height: 12px; border-radius: 3px; background: var(--cyan); box-shadow: 0 0 8px rgba(57, 230, 242, .6); }

/* 筛选栏 */
.filter-bar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px;
    border-radius: var(--radius); border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(17, 30, 51, .72), rgba(8, 14, 25, .8));
    margin-bottom: 16px;
}
.filter-bar .input, .filter-bar .select { height: 35px; font-size: 12px; }
.filter-bar .field { flex-direction: row; align-items: center; gap: 8px; }
.filter-bar .field > label { white-space: nowrap; font-size: 11.5px; }
.filter-bar .w-220 { width: 220px; }
.filter-bar .w-170 { width: 170px; }
.filter-bar .w-140 { width: 140px; }
.filter-bar .w-120 { width: 120px; }
.filter-bar .spacer { flex: 1; }
.filter-count { font-size: 11px; color: var(--text-3); font-family: var(--mono); }
.filter-count b { color: var(--cyan); font-weight: 500; }

/* ---------------- 表格 ---------------- */
.table-card { overflow: hidden; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; min-width: 860px; }
.data-table th {
    padding: 11px 16px; text-align: left; white-space: nowrap;
    font-size: 10.5px; letter-spacing: .1em; color: var(--text-3); font-weight: 500;
    background: rgba(5, 10, 18, .55); border-bottom: 1px solid var(--line);
}
.data-table td { padding: 13px 16px; border-bottom: 1px solid rgba(126, 170, 214, .07); vertical-align: middle; font-size: 12.5px; }
.data-table tbody tr { transition: background .18s; }
.data-table tbody tr:hover { background: rgba(57, 230, 242, .035); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .col-actions { text-align: right; white-space: nowrap; }
.data-table .col-num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.data-table td.nowrap, .data-table th.nowrap { white-space: nowrap; }
.data-table .cell-main { display: flex; flex-direction: column; gap: 2px; }
.data-table .cell-main strong { font-size: 12.5px; font-weight: 500; color: var(--text); }
.data-table .cell-main em { font-size: 10.5px; color: var(--text-4); font-family: var(--mono); }
.link-name { color: var(--text); font-weight: 500; border-bottom: 1px dashed rgba(57, 230, 242, .35); padding-bottom: 1px; transition: color .2s, border-color .2s; }
.link-name:hover { color: var(--cyan); border-color: var(--cyan); }
.row-actions { display: inline-flex; align-items: center; gap: 4px; }
.row-btn {
    width: 27px; height: 27px; display: inline-grid; place-items: center; border-radius: 7px;
    border: 1px solid transparent; background: transparent; color: var(--text-3); cursor: pointer; font-size: 11px;
    transition: all .18s;
}
.row-btn:hover { color: var(--cyan); background: rgba(57, 230, 242, .09); border-color: rgba(57, 230, 242, .22); }
.row-btn.is-danger:hover { color: var(--red); background: rgba(255, 95, 114, .1); border-color: rgba(255, 95, 114, .28); }
.row-text-btn { background: none; border: 0; color: var(--cyan); font-size: 11.5px; cursor: pointer; padding: 2px 3px; }
.row-text-btn:hover { text-decoration: underline; }

/* ---------------- 徽标 ---------------- */
.badge {
    display: inline-flex; align-items: center; gap: 6px; height: 23px; padding: 0 9px;
    border-radius: 6px; font-size: 10.5px; white-space: nowrap; letter-spacing: .02em;
    border: 1px solid transparent;
}
.badge-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.badge-success { color: #63efb8; background: rgba(56, 224, 164, .09); border-color: rgba(56, 224, 164, .22); }
.badge-primary { color: #7bf3fb; background: rgba(57, 230, 242, .09); border-color: rgba(57, 230, 242, .22); }
.badge-info { color: #8db4ff; background: rgba(79, 140, 255, .1); border-color: rgba(79, 140, 255, .24); }
.badge-warn { color: #ffcc7a; background: rgba(255, 182, 72, .1); border-color: rgba(255, 182, 72, .25); }
.badge-danger { color: #ff98a3; background: rgba(255, 95, 114, .1); border-color: rgba(255, 95, 114, .26); }
.badge-muted { color: #93a5b8; background: rgba(126, 170, 214, .07); border-color: rgba(126, 170, 214, .16); }
.badge-purple { color: #c4b5fd; background: rgba(167, 139, 250, .1); border-color: rgba(167, 139, 250, .24); }
.badge-lg { height: 27px; padding: 0 12px; font-size: 11.5px; border-radius: 7px; }
.tag { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 5px; font-size: 10.5px; background: rgba(126, 170, 214, .07); color: var(--text-2); border: 1px solid var(--line); }

/* ---------------- 分段 / 页签 ---------------- */
.segmented { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(6, 12, 21, .7); border: 1px solid var(--line); }
.segmented a, .segmented button {
    display: inline-flex; align-items: center; gap: 6px; height: 29px; padding: 0 13px; border-radius: 7px;
    border: 0; background: none; color: var(--text-3); font-size: 11.5px; cursor: pointer; transition: all .2s;
}
.segmented a.is-active, .segmented button.is-active { background: rgba(57, 230, 242, .12); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(57, 230, 242, .2); }
.segmented a:hover, .segmented button:hover { color: var(--text); }

.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab {
    position: relative; padding: 10px 2px 12px; background: none; border: 0; cursor: pointer;
    color: var(--text-3); font-size: 13px; transition: color .2s; display: inline-flex; align-items: center; gap: 7px;
}
.tab:hover { color: var(--text-2); }
.tab.is-active { color: var(--cyan); }
.tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 10px rgba(57, 230, 242, .7); }
.tab em { font-family: var(--mono); font-size: 10px; background: rgba(126, 170, 214, .12); padding: 1px 6px; border-radius: 99px; color: var(--text-3); }
.tab.is-active em { background: rgba(57, 230, 242, .15); color: var(--cyan); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp .25s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* ---------------- 弹窗 ---------------- */
.modal-root { position: relative; z-index: 200; }
.modal-layer { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 28px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 5, 10, .72); backdrop-filter: blur(7px); animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-panel { 
    position: relative; width: 720px; max-width: 100%; max-height: calc(100vh - 56px);
    display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
    background: linear-gradient(165deg, rgba(19, 33, 55, .98), rgba(7, 12, 22, .99));
    border: 1px solid rgba(57, 230, 242, .16);
    box-shadow: 0 44px 100px rgba(0, 0, 0, .62), 0 0 0 1px rgba(255, 255, 255, .02) inset, 0 0 60px rgba(57, 230, 242, .05);
    animation: modalIn .3s var(--ease);
}
.modal-panel > form { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-panel::before {
    content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(57, 230, 242, .65), transparent);
}
.modal-panel.modal-sm { width: 500px; }
.modal-panel.modal-lg { width: 960px; }
.modal-panel.modal-xl { width: 1180px; }
.modal-head { position: relative; padding: 19px 24px 15px; border-bottom: 1px solid var(--line); flex: none; }
.modal-eyebrow { font-family: var(--mono); font-size: 9.5px; letter-spacing: .24em; color: var(--cyan); opacity: .75; margin-bottom: 5px; }
.modal-head h3 { font-size: 17px; font-weight: 600; padding-right: 40px; }
.modal-head p { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.modal-close {
    position: absolute; top: 17px; right: 18px; width: 30px; height: 30px; border-radius: 8px;
    border: 1px solid var(--line); background: rgba(126, 170, 214, .05); color: var(--text-3);
    cursor: pointer; display: grid; place-items: center; transition: all .2s;
}
.modal-close:hover { color: #fff; border-color: rgba(255, 95, 114, .4); background: rgba(255, 95, 114, .14); }
.modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; min-height: 0; }
.modal-body::-webkit-scrollbar { width: 5px; }
.modal-foot { padding: 15px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex: none; background: rgba(5, 10, 18, .35); }
.modal-foot .left { margin-right: auto; font-size: 11px; color: var(--text-3); }
.modal-layer.has-stack .modal-panel { transform: scale(.975); filter: brightness(.72); pointer-events: none; }
.modal-layer.is-closing .modal-panel { animation: modalOut .18s ease forwards; }
.modal-layer.is-closing .modal-backdrop { animation: fadeOut .18s ease forwards; }
@keyframes modalOut { to { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes fadeOut { to { opacity: 0; } }

/* ---------------- 下拉面板 ---------------- */
.dropdown { position: relative; }
.dropdown-panel {
    position: absolute; top: calc(100% + 10px); right: 0; min-width: 230px; z-index: 70;
    border-radius: 13px; border: 1px solid var(--line-2); background: linear-gradient(165deg, #122138, #080e19);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55); opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: all .2s var(--ease); overflow: hidden;
}
.dropdown.is-open .dropdown-panel { opacity: 1; visibility: visible; transform: none; }
.dropdown-notify { width: 340px; }
.dropdown-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 12px; }
.dropdown-head a { color: var(--cyan); font-size: 10.5px; }
.dropdown-head strong { font-size: 12.5px; }
.notify-list { max-height: 300px; overflow-y: auto; }
.notify-item { display: flex; gap: 10px; padding: 11px 16px; border-bottom: 1px solid rgba(126, 170, 214, .06); transition: background .2s; }
.notify-item:hover { background: rgba(57, 230, 242, .05); }
.notify-level { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; font-size: 11px; }
.level-danger { color: var(--red); background: rgba(255, 95, 114, .12); }
.level-warn { color: var(--amber); background: rgba(255, 182, 72, .12); }
.level-info { color: var(--blue); background: rgba(79, 140, 255, .12); }
.level-muted { color: var(--text-3); background: rgba(126, 170, 214, .08); }
.notify-body { min-width: 0; }
.notify-body strong { display: block; font-size: 11.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notify-body em { font-size: 10px; color: var(--text-3); }
.notify-empty { padding: 30px 16px; text-align: center; font-size: 12px; color: var(--text-3); }
.notify-empty i { color: var(--green); margin-right: 6px; }
.dropdown-foot { padding: 9px 16px; font-size: 10px; color: var(--text-3); display: flex; align-items: center; gap: 7px; border-top: 1px solid var(--line); }
.dropdown-user { width: 250px; }
.user-card { display: flex; gap: 11px; align-items: center; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.user-card strong { display: block; font-size: 13px; }
.user-card em { font-size: 10.5px; color: var(--text-3); }
.dropdown-links { padding: 6px; }
.dropdown-links a, .dropdown-links button {
    width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 8px;
    background: none; border: 0; color: var(--text-2); font-size: 12px; cursor: pointer; text-align: left; transition: all .18s;
}
.dropdown-links a:hover, .dropdown-links button:hover { background: rgba(57, 230, 242, .08); color: var(--cyan); }
.dropdown-links i { width: 15px; font-size: 11px; color: var(--text-3); }
.dropdown-links a:hover i, .dropdown-links button:hover i { color: var(--cyan); }

/* ---------------- 分页 ---------------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; flex-wrap: wrap; }
.pager-info { font-size: 11px; color: var(--text-3); font-family: var(--mono); }
.pager-btns { display: flex; gap: 5px; }
.pager-btn {
    min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px; display: grid; place-items: center;
    border: 1px solid var(--line); background: rgba(126, 170, 214, .04); color: var(--text-3); font-size: 11.5px;
    transition: all .18s; font-family: var(--mono);
}
.pager-btn:hover { color: var(--cyan); border-color: rgba(57, 230, 242, .3); }
.pager-btn.is-active { background: rgba(57, 230, 242, .14); border-color: rgba(57, 230, 242, .4); color: var(--cyan); }

/* ---------------- 空状态 / 加载 ---------------- */
.empty { padding: 54px 20px; text-align: center; color: var(--text-3); }
.empty i { font-size: 34px; color: var(--text-4); margin-bottom: 12px; display: block; }
.empty p { font-size: 12px; }
.loading-inline { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--text-3); font-size: 12px; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(57, 230, 242, .2); border-top-color: var(--cyan); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 头像 ---------------- */
.avatar {
    --avatar-hue: 190;
    width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center;
    font-size: 13px; font-weight: 600; color: #eafcff;
    background: linear-gradient(145deg, hsl(var(--avatar-hue) 60% 30%), hsl(var(--avatar-hue) 55% 16%));
    border: 1px solid hsl(var(--avatar-hue) 70% 45% / .35);
}
.avatar-lg { width: 44px; height: 44px; border-radius: 12px; font-size: 17px; }

/* ---------------- 健康度环 ---------------- */
.health-ring {
    --score: 90; --ring: var(--green);
    position: relative; width: 64px; height: 64px; flex: none; border-radius: 50%;
    background: conic-gradient(var(--ring) calc(var(--score) * 1%), rgba(126, 170, 214, .1) 0);
    display: grid; place-items: center;
}
.health-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #0a1322; border: 1px solid rgba(126, 170, 214, .08); }
.health-ring span { position: relative; font-size: 16px; font-weight: 600; line-height: 1; }
.health-ring em { position: absolute; bottom: 11px; font-size: 7px; color: var(--text-4); letter-spacing: .04em; }
.health-ring.is-watch { --ring: var(--cyan); }
.health-ring.is-warn { --ring: var(--amber); }
.health-ring.is-bad { --ring: var(--red); }
.health-ring.is-good span { color: var(--green); }
.health-ring.is-watch span { color: var(--cyan); }
.health-ring.is-warn span { color: var(--amber); }
.health-ring.is-bad span { color: var(--red); }
.health-ring.ring-sm { width: 46px; height: 46px; }
.health-ring.ring-sm::before { inset: 4px; }
.health-ring.ring-sm span { font-size: 12px; }
.health-ring.ring-sm em { display: none; }

/* ---------------- 进度条 ---------------- */
.progress { height: 6px; border-radius: 99px; background: rgba(126, 170, 214, .12); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--cyan-2), var(--cyan)); box-shadow: 0 0 10px rgba(57, 230, 242, .4); }
.progress.is-amber span { background: linear-gradient(90deg, #d9922a, var(--amber)); }
.progress.is-red span { background: linear-gradient(90deg, #d33f52, var(--red)); }
.progress.is-green span { background: linear-gradient(90deg, #1fae7c, var(--green)); }

/* ---------------- 信息列表 ---------------- */
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
.kv { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(126, 170, 214, .09); font-size: 12.5px; }
.kv dt { width: 92px; flex: none; color: var(--text-3); font-size: 11.5px; }
.kv dd { margin: 0; color: var(--text); min-width: 0; word-break: break-all; }
.kv-grid .span-2 { grid-column: span 2; }

/* ---------------- 时间线 ---------------- */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, rgba(57, 230, 242, .4), rgba(126, 170, 214, .08)); }
.timeline-item { position: relative; padding: 0 0 18px 8px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: ""; position: absolute; left: -19px; top: 5px; width: 9px; height: 9px; border-radius: 50%;
    background: var(--bg-2); border: 2px solid var(--cyan); box-shadow: 0 0 8px rgba(57, 230, 242, .5);
}
.timeline-item.is-muted::before { border-color: var(--text-4); box-shadow: none; }
.timeline-head { display: flex; align-items: center; gap: 9px; font-size: 12px; flex-wrap: wrap; }
.timeline-head strong { font-weight: 500; }
.timeline-time { font-size: 10px; color: var(--text-4); font-family: var(--mono); margin-left: auto; }
.timeline-desc { margin-top: 4px; font-size: 11.5px; color: var(--text-3); line-height: 1.6; }

/* ---------------- 提示 / Toast ---------------- */
.toast-root { position: fixed; top: 84px; right: 26px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
    display: flex; align-items: flex-start; gap: 10px; min-width: 230px; max-width: 380px; padding: 12px 15px;
    border-radius: 11px; background: linear-gradient(160deg, #14233a, #0a1322); border: 1px solid var(--line-2);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .5); font-size: 12px; animation: toastIn .3s var(--ease); pointer-events: auto;
}
.toast.is-out { animation: toastOut .25s ease forwards; }
.toast i { margin-top: 2px; font-size: 13px; }
.toast-success i { color: var(--green); }
.toast-error i { color: var(--red); }
.toast-info i { color: var(--cyan); }
.toast-warn i { color: var(--amber); }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

/* ---------------- 确认框 ---------------- */
.confirm-layer { position: fixed; inset: 0; z-index: 800; display: flex; align-items: center; justify-content: center; padding: 20px; }
.confirm-layer .modal-backdrop { background: rgba(2, 5, 10, .66); backdrop-filter: blur(5px); }
.confirm-box {
    position: relative; width: 400px; max-width: 100%; padding: 24px; border-radius: 16px;
    background: linear-gradient(165deg, #15263f, #091120); border: 1px solid rgba(255, 182, 72, .18);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: modalIn .25s var(--ease);
}
.confirm-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 182, 72, .1); color: var(--amber); border: 1px solid rgba(255, 182, 72, .25); margin-bottom: 14px; }
.confirm-box h4 { font-size: 15px; margin-bottom: 7px; }
.confirm-box p { font-size: 12px; color: var(--text-3); line-height: 1.65; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }

/* ---------------- 其他 ---------------- */
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.soft-note { display: flex; gap: 9px; padding: 11px 13px; border-radius: 9px; background: rgba(57, 230, 242, .05); border: 1px solid rgba(57, 230, 242, .14); font-size: 11.5px; color: var(--text-2); line-height: 1.6; }
.soft-note i { color: var(--cyan); margin-top: 2px; }
.soft-note.is-warn { background: rgba(255, 182, 72, .06); border-color: rgba(255, 182, 72, .18); }
.soft-note.is-warn i { color: var(--amber); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line); background: rgba(126, 170, 214, .05); font-size: 11px; color: var(--text-2); }
.chip i { font-size: 9px; color: var(--text-3); }
.count-dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: rgba(57, 230, 242, .14); color: var(--cyan); font-size: 9.5px; font-family: var(--mono); }
