/* ==========================================================
   行情终端 · 同花顺风格深色行情界面
   ========================================================== */
:root {
    --bg: #0a0d12;
    --bg-soft: #0d1219;
    --panel: #11161f;
    --panel-2: #151c27;
    --border: #1d2634;
    --border-soft: #18202c;
    --text: #d5dde8;
    --text-dim: #8b97a8;
    --text-faint: #5c6878;
    --up: #ff4b4b;
    --up-soft: rgba(255, 75, 75, 0.12);
    --down: #12b886;
    --down-soft: rgba(18, 184, 134, 0.12);
    --flat: #9aa6b6;
    --accent: #ff8a00;
    --accent-soft: rgba(255, 138, 0, 0.12);
    --blue: #3d86ff;
    --mono: "DIN Alternate", "Bahnschrift", "Consolas", "Roboto Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font: 13px/1.5 "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.up { color: var(--up) !important; }
.down { color: var(--down) !important; }
.flat { color: var(--flat) !important; }
.dim { color: var(--text-dim); }
.faint { color: var(--text-faint); }

/* ---------- 顶栏 ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 54px;
    padding: 0 20px;
    background: linear-gradient(180deg, #161d28 0%, #10151d 100%);
    border-bottom: 1px solid #222c3b;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 6px 18px rgba(0, 0, 0, .35);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

.brand .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    background: linear-gradient(135deg, #ff9d2e, #ff6a00);
    color: #201200;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 0 12px rgba(255, 138, 0, .35);
}

.brand small {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--text-faint);
    transform: translateY(3px);
}

.topnav { display: flex; gap: 4px; height: 54px; }

.topnav a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: var(--text-dim);
    font-size: 13.5px;
}

.topnav a:hover { color: var(--text); }

.topnav a.active { color: #fff; font-weight: 600; }

.topnav a.active::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.searchbox { position: relative; margin-left: auto; width: 280px; }

.searchbox input {
    width: 100%;
    height: 32px;
    padding: 0 34px 0 12px;
    border: 1px solid #283242;
    border-radius: 3px;
    background: #0b1017;
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.searchbox input::placeholder { color: var(--text-faint); }

.searchbox input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 138, 0, .12);
}

.searchbox .icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    font-size: 13px;
    pointer-events: none;
}

.search-result {
    position: absolute;
    top: 38px;
    left: 0;
    right: 0;
    display: none;
    max-height: 330px;
    overflow-y: auto;
    background: #141b25;
    border: 1px solid #283242;
    border-radius: 3px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
    z-index: 60;
}

.search-result.show { display: block; }

.search-result .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-soft);
}

.search-result .item:last-child { border-bottom: 0; }
.search-result .item:hover, .search-result .item.active { background: #1c2532; }
.search-result .item .name { font-size: 13px; }
.search-result .item .code { font-family: var(--mono); color: var(--text-dim); font-size: 12px; }
.search-result .empty { padding: 14px; text-align: center; color: var(--text-faint); }

.market-clock { font-family: var(--mono); font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.market-clock .dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--down); vertical-align: 1px; }
.market-clock.closed .dot { background: var(--text-faint); }

/* ---------- 指数条 ---------- */
.index-strip {
    display: flex;
    align-items: stretch;
    gap: 0;
    height: 42px;
    padding: 0 6px;
    background: #0b1017;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.index-strip .idx {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border-right: 1px solid var(--border-soft);
    white-space: nowrap;
    font-size: 12px;
}

.index-strip .idx:last-child { border-right: 0; }
.index-strip .idx .label { color: var(--text-dim); }
.index-strip .idx .value { font-family: var(--mono); font-size: 13px; }
.index-strip .idx .pct { font-family: var(--mono); font-size: 12px; }

/* ---------- 主体布局 ---------- */
.shell { display: flex; min-height: calc(100vh - 96px); }

.sidebar {
    flex: 0 0 196px;
    background: var(--bg-soft);
    border-right: 1px solid var(--border);
    padding: 12px 0 24px;
}

.sidebar .group { margin-bottom: 14px; }

.sidebar .group-title {
    padding: 8px 18px 6px;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-faint);
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-left: 2px solid transparent;
    color: var(--text-dim);
    font-size: 13px;
}

.sidebar a:hover { background: #111823; color: var(--text); }

.sidebar a.active {
    border-left-color: var(--accent);
    background: var(--accent-soft);
    color: #ffb057;
}

.sidebar a .ico { width: 14px; text-align: center; font-size: 12px; opacity: .85; }

.main { flex: 1; min-width: 0; padding: 14px 16px 30px; }

/* ---------- 通用面板 ---------- */
.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 40px;
    padding: 0 14px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #151c26, #11161f);
}

.panel-head .title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #e8eef7;
}

.panel-head .title::before {
    content: "";
    width: 3px;
    height: 13px;
    border-radius: 1px;
    background: var(--accent);
}

.panel-head .extra { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-faint); }

.tabs { display: flex; gap: 2px; margin-left: auto; }

.tabs button {
    padding: 5px 12px;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: var(--text-dim);
    font-size: 12.5px;
}

.tabs button:hover { color: var(--text); background: #1a2230; }
.tabs button.active { color: #1a1200; background: var(--accent); font-weight: 600; }

/* ---------- 首页 ---------- */
.home-dashboard { display: flex; flex-direction: column; gap: 12px; }

.overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.ov-card {
    position: relative;
    display: block;
    padding: 12px 14px 12px 18px;
    background: linear-gradient(145deg, #141b26, #0f141c);
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.ov-card:hover {
    border-color: #33415a;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
    transform: translateY(-1px);
}

.ov-card::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 138, 0, .10), transparent 70%);
}

.ov-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--flat);
}

.ov-bar.up { background: var(--up); }
.ov-bar.down { background: var(--down); }

.ov-card .ov-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ov-card .ov-name { font-size: 12.5px; color: var(--text-dim); }
.ov-card .ov-code { font-family: var(--mono); color: var(--text-faint); font-size: 11px; }
.ov-card .ov-price { margin-top: 5px; font-family: var(--mono); font-size: 23px; font-weight: 600; letter-spacing: .3px; }
.ov-card .ov-meta { margin-top: 3px; display: flex; gap: 10px; font-family: var(--mono); font-size: 12px; }

/* 首页主体：左侧行情 + 右侧自选/快讯 */
.home-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 12px;
    align-items: start;
}

.home-primary { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.home-subgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.home-rail { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* 排行表：滚动 + 吸顶表头 */
.table-scroll { overflow: auto; }
.rank-scroll { max-height: 620px; }
.rank-scroll thead th { position: sticky; top: 0; z-index: 2; }

.table-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.table-scroll::-webkit-scrollbar-thumb { background: #26303f; border-radius: 4px; }
.table-scroll::-webkit-scrollbar-thumb:hover { background: #33415a; }
.table-scroll::-webkit-scrollbar-track { background: transparent; }

.rank-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .012); }
.rank-table tbody tr:nth-child(-n+3) .rank-no { color: #ffb057; font-weight: 700; }
.rank-table td { padding-top: 6.5px; padding-bottom: 6.5px; }

.panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    border-top: 1px solid var(--border-soft);
    background: #0f141c;
    color: var(--text-faint);
    font-size: 11.5px;
}

.panel-foot .live-dot { margin-right: 6px; }

.panel-link { color: #ffb057; }
.panel-link:hover { text-decoration: underline; }

.live { display: inline-flex; align-items: center; gap: 5px; color: var(--down); font-size: 11.5px; }
.live i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--down);
    animation: live-pulse 1.6s infinite;
}

@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(18, 184, 134, .45); }
    70% { box-shadow: 0 0 0 5px rgba(18, 184, 134, 0); }
    100% { box-shadow: 0 0 0 0 rgba(18, 184, 134, 0); }
}

/* 侧栏自选：紧凑表格 */
.watch-table th,
.watch-table td { padding: 7px 8px; }
.watch-table th:first-child,
.watch-table td:first-child { padding-left: 12px; }
.watch-table .stock-name b { font-size: 12px; }
.watch-table .btn-del { opacity: .35; }

/* 板块表：半栏宽度下压缩间距 */
.sector-table th,
.sector-table td { padding: 7px 8px; }
.sector-table th:first-child,
.sector-table td:first-child { padding-left: 12px; }
.sector-table .stock-name { gap: 0; }
.sector-table .stock-name b { font-size: 12px; }
.sector-table .stock-name span { font-size: 10.5px; }

/* 快讯：固定高度滚动 */
.rail-news { max-height: 456px; overflow-y: auto; }
.rail-news .news-text { font-size: 12px; }
.rail-news::-webkit-scrollbar { width: 8px; }
.rail-news::-webkit-scrollbar-thumb { background: #26303f; border-radius: 4px; }
.rail-news::-webkit-scrollbar-track { background: transparent; }

.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* ---------- 表格 ---------- */
.data-table { width: 100%; border-collapse: collapse; }

.data-table th,
.data-table td {
    padding: 7px 10px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 12.5px;
    white-space: nowrap;
}

.data-table th {
    font-weight: 400;
    color: var(--text-faint);
    font-size: 11.5px;
    background: #0f141c;
    border-bottom-color: var(--border);
    text-align: right;
}

.data-table th:first-child,
.data-table td:first-child { text-align: left; padding-left: 14px; }
.data-table th:nth-child(2),
.data-table td:nth-child(2) { text-align: left; }
.data-table td { text-align: right; color: var(--text); }
.data-table td.num { font-family: var(--mono); }
.data-table tbody tr { cursor: pointer; }
.data-table tbody tr:hover { background: #161e2a; }
.data-table .stock-name { display: flex; flex-direction: column; gap: 1px; }
.data-table .stock-name b { font-weight: 500; font-size: 12.5px; color: #e4ebf5; }
.data-table .stock-name span { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
.data-table .rank-no { width: 26px; color: var(--text-faint); font-family: var(--mono); font-size: 11px; }
.data-table .tag { display: inline-block; margin-left: 4px; padding: 0 3px; border-radius: 2px; font-size: 10px; line-height: 14px; color: var(--text-faint); border: 1px solid var(--border); }
.data-table .btn-del { opacity: 0; transition: opacity .15s; border: 0; background: transparent; color: var(--text-faint); font-size: 12px; }
.data-table tbody tr:hover .btn-del { opacity: 1; }
.data-table .btn-del:hover { color: var(--up); }

.empty-state { padding: 26px 16px; text-align: center; color: var(--text-faint); font-size: 12.5px; line-height: 2; }
.empty-state .big { font-size: 22px; opacity: .35; display: block; }

/* ---------- 热门网格 ---------- */
.hot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border-soft); }

.hot-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    background: var(--panel);
    cursor: pointer;
}

.hot-item:hover { background: #161e2a; }
.hot-item .hi-name { font-size: 12.5px; }
.hot-item .hi-code { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
.hot-item .hi-quote { text-align: right; font-family: var(--mono); }
.hot-item .hi-quote .p { font-size: 13px; }
.hot-item .hi-quote .c { font-size: 11.5px; }

.statusbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 4px 0;
    color: var(--text-faint);
    font-size: 11.5px;
}

/* ---------- 个股页 ---------- */
.stock-head {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: linear-gradient(120deg, #151d29, #0f141c);
    border: 1px solid var(--border);
    border-radius: 3px;
}

.stock-title .name { font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.stock-title .code { margin-left: 8px; font-family: var(--mono); font-size: 13px; color: var(--text-dim); }

.stock-price { display: flex; align-items: baseline; gap: 12px; font-family: var(--mono); }
.stock-price .now { font-size: 32px; font-weight: 700; line-height: 1; }
.stock-price .chg { font-size: 15px; }

.stock-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 26px;
    margin-left: auto;
    font-size: 12px;
    color: var(--text-dim);
}

.stock-stats .kv { display: flex; gap: 6px; }
.stock-stats .kv b { color: var(--text); font-weight: 400; font-family: var(--mono); }

.stock-actions { display: flex; gap: 8px; }
.btn {
    height: 30px;
    padding: 0 14px;
    border: 1px solid #2a3546;
    border-radius: 2px;
    background: #182130;
    color: var(--text);
    font-size: 12.5px;
}
.btn:hover { border-color: #3b4a61; background: #1d2839; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #1d1200; font-weight: 600; }
.btn.primary:hover { background: #ffa029; }
.btn.active { border-color: var(--accent); color: #ffb057; }

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 268px;
    gap: 12px;
    align-items: start;
}

.chart-wrap { position: relative; padding: 6px 6px 2px; }
.chart-wrap canvas { display: block; height: 520px; width: 100%;}

.chart-legend {
    display: flex;
    gap: 16px;
    padding: 4px 10px 8px;
    font-size: 11.5px;
    color: var(--text-dim);
}

.chart-legend i { display: inline-block; width: 10px; height: 2px; margin-right: 5px; vertical-align: 2px; }

.chart-tip {
    position: absolute;
    z-index: 5;
    display: none;
    min-width: 128px;
    padding: 8px 10px;
    background: rgba(13, 18, 25, .96);
    border: 1px solid #2a3546;
    border-radius: 3px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
    font-family: var(--mono);
    font-size: 11.5px;
    line-height: 1.7;
    pointer-events: none;
}

.chart-tip.show { display: block; }
.chart-tip .t { color: var(--text-dim); }

.orderbook-table { width: 100%; border-collapse: collapse; }
.orderbook-table td { height: 28px; padding: 0 14px; font-size: 12px; font-family: var(--mono); }
.orderbook-table td:first-child { color: var(--text-faint); font-family: "Microsoft YaHei", sans-serif; width: 46px; }
.orderbook-table td:nth-child(2) { text-align: right; }
.orderbook-table td:nth-child(3) { text-align: right; color: var(--text-dim); width: 64px; }
.orderbook-table tr.ask td:nth-child(2) { color: var(--down); }
.orderbook-table tr.bid td:nth-child(2) { color: var(--up); }
.orderbook-table tr:hover td { background: #161e2a; }
.orderbook-table .sep td { height: 1px; padding: 0; background: var(--border); }

.orderbook-foot {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 14px;
    border-top: 1px solid var(--border);
    font-size: 11.5px;
    color: var(--text-dim);
}

.orderbook-foot b { font-family: var(--mono); font-weight: 400; color: var(--text); }

.info-list { padding: 4px 0 8px; }
.info-list .row { display: flex; justify-content: space-between; padding: 6px 14px; font-size: 12px; color: var(--text-dim); }
.info-list .row b { font-weight: 400; color: var(--text); font-family: var(--mono); }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
    .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-grid { grid-template-columns: minmax(0, 1fr); }
    .home-main { grid-template-columns: minmax(0, 1fr); }
    .home-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .rail-news { max-height: 360px; }
}

@media (max-width: 760px) {
    .overview { grid-template-columns: minmax(0, 1fr); }
    .home-subgrid { grid-template-columns: minmax(0, 1fr); }
    .home-rail { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
    .sidebar { display: none; }
    .detail-grid { grid-template-columns: minmax(0, 1fr); }
    .topnav { display: none; }
    .searchbox { width: 180px; }
    .market-clock { display: none; }
    .stock-stats { margin-left: 0; }
}

/* ---------- 用户登录态 / 公告 ---------- */
.userbox { display: flex; align-items: center; margin-left: 2px; }

.auth-links { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.auth-links a {
    padding: 5px 12px;
    border: 1px solid #2a3546;
    border-radius: 2px;
    background: #161f2c;
    color: #dfe7f2;
}
.auth-links a:hover { border-color: var(--accent); color: #ffb057; }
.auth-links .sep { color: #3d4a5c; }

.user-menu { position: relative; }
.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #283242;
    border-radius: 3px;
    background: #141c27;
    color: var(--text);
    font-size: 12.5px;
}
.user-btn:hover { border-color: #3a4658; }
.user-btn .avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9d2e, #ff6a00);
    color: #241300;
    font-size: 12px;
    font-weight: 700;
}
.user-btn .caret { font-size: 10px; color: var(--text-faint); }
.user-dropdown {
    position: absolute;
    right: 0;
    top: 38px;
    display: none;
    min-width: 136px;
    overflow: hidden;
    background: #141b25;
    border: 1px solid #283242;
    border-radius: 3px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .5);
    z-index: 60;
}
.user-menu.open .user-dropdown { display: block; }
.user-dropdown a {
    display: block;
    padding: 9px 14px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-dim);
    font-size: 12.5px;
}
.user-dropdown a:last-child { border-bottom: 0; }
.user-dropdown a:hover { background: #1c2532; color: #fff; }

.notice-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 32px;
    padding: 0 20px;
    overflow: hidden;
    white-space: nowrap;
    background: rgba(255, 138, 0, .07);
    border-bottom: 1px solid rgba(255, 138, 0, .16);
    color: #e0b47a;
    font-size: 12px;
}
.notice-tag {
    flex: 0 0 auto;
    padding: 1px 6px;
    border-radius: 2px;
    background: rgba(255, 138, 0, .18);
    color: #ffb057;
    font-size: 11px;
}
.notice-text { overflow: hidden; text-overflow: ellipsis; }

/* ---------- 登录 / 注册 ---------- */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background:
        radial-gradient(900px 420px at 20% 0%, rgba(255, 138, 0, .07), transparent 60%),
        radial-gradient(800px 380px at 90% 100%, rgba(61, 134, 255, .06), transparent 60%),
        #080b10;
}
.auth-card {
    width: 384px;
    padding: 30px 32px 26px;
    background: linear-gradient(180deg, #121924, #0e131b);
    border: 1px solid #1f2937;
    border-radius: 4px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.auth-brand .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    background: linear-gradient(135deg, #ff9d2e, #ff6a00);
    color: #201200;
    font-size: 16px;
    font-weight: 800;
}
.auth-brand .t { font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.auth-brand .s { font-size: 10px; letter-spacing: 2px; color: var(--text-faint); }
.auth-card h1 { font-size: 18px; font-weight: 600; }
.auth-sub { margin: 6px 0 20px; font-size: 12px; color: var(--text-faint); }
.auth-error {
    margin-bottom: 14px;
    padding: 8px 10px;
    background: rgba(255, 75, 75, .1);
    border: 1px solid rgba(255, 75, 75, .35);
    border-radius: 3px;
    color: #ff9090;
    font-size: 12px;
}
.form-item { margin-bottom: 14px; }
.form-item label { display: block; margin-bottom: 6px; color: var(--text-dim); font-size: 12px; }
.form-item input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #283242;
    border-radius: 3px;
    background: #0b1017;
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.form-item input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255, 138, 0, .1); }
.form-item .hint { margin-top: 4px; font-size: 11px; color: var(--text-faint); }
.auth-submit {
    width: 100%;
    height: 38px;
    margin-top: 4px;
    border: 0;
    border-radius: 3px;
    background: var(--accent);
    color: #1d1200;
    font-size: 13.5px;
    font-weight: 700;
}
.auth-submit:hover { background: #ffa029; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 12px; color: var(--text-faint); }
.auth-foot a { color: #ffb057; }
.auth-back { display: block; margin-top: 14px; text-align: center; font-size: 12px; color: var(--text-dim); }
.auth-back:hover { color: #fff; }

/* ---------- 个人中心 ---------- */
.uc-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}
.profile-head { display: flex; align-items: center; gap: 14px; padding: 18px 16px; }
.big-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9d2e, #ff6a00);
    color: #241300;
    font-size: 22px;
    font-weight: 800;
}
.profile-name { font-size: 16px; font-weight: 600; }
.profile-sub { margin-top: 3px; font-size: 11.5px; color: var(--text-faint); }
.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.profile-stats .cell { padding: 12px 8px; text-align: center; border-right: 1px solid var(--border-soft); }
.profile-stats .cell:last-child { border-right: 0; }
.profile-stats .v { font-family: var(--mono); font-size: 16px; color: #fff; }
.profile-stats .k { margin-top: 2px; font-size: 11px; color: var(--text-faint); }

.form-panel { padding: 14px 16px 18px; }
.form-row { display: flex; gap: 12px; }
.form-row .form-item { flex: 1; }
.form-panel .btn { height: 34px; }

.msg {
    margin-bottom: 12px;
    padding: 9px 12px;
    border-radius: 3px;
    font-size: 12.5px;
}
.msg.ok { background: rgba(18, 184, 134, .1); border: 1px solid rgba(18, 184, 134, .35); color: #5fe0b8; }
.msg.err { background: rgba(255, 75, 75, .1); border: 1px solid rgba(255, 75, 75, .35); color: #ff9090; }

.timeline { padding: 6px 0; }
.timeline .tl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 16px;
    font-size: 12px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border-soft);
}
.timeline .tl-row:last-child { border-bottom: 0; }
.timeline .tl-row .t { font-family: var(--mono); }
.badge-ok { color: #5fe0b8; }
.badge-fail { color: #ff9090; }

@media (max-width: 1180px) {
    .uc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
    .auth-card { width: calc(100% - 32px); padding: 24px; }
    .form-row { flex-direction: column; gap: 0; }
}

/* ---------- 页脚 ---------- */
.site-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid #161e29;
    background: #0b0f15;
    color: #4d5969;
    font-size: 11.5px;
}
.site-foot a { color: #6d7a8c; }
.site-foot a:hover { color: #ffb057; }

/* ---------- 资讯列表 ---------- */
.news-list { display: flex; flex-direction: column; }
.news-item {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-dim);
    font-size: 12.5px;
}
.news-item:last-child { border-bottom: 0; }
.news-item:hover { background: #151d29; }
.news-time {
    flex: 0 0 38px;
    padding-top: 2px;
    color: var(--text-faint);
    font-family: var(--mono);
    font-size: 11.5px;
}
.news-body { flex: 1; min-width: 0; }
.news-text {
    color: #c8d2e0;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-list.compact .news-text { -webkit-line-clamp: 2; }
.news-tag {
    display: inline-block;
    margin-top: 6px;
    padding: 1px 6px;
    border-radius: 2px;
    background: rgba(61, 134, 255, .12);
    color: #7fb0ff;
    font-size: 10.5px;
}
.news-item.article { align-items: flex-start; }
.news-title { color: #e2e9f3; font-size: 13px; line-height: 1.6; }
.news-item.article:hover .news-title { color: #ffb057; }
.news-intro {
    margin-top: 4px;
    color: #6d7a8c;
    font-size: 11.5px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-meta { margin-top: 5px; color: #4d5969; font-size: 11px; }

.live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--down);
    vertical-align: 1px;
    animation: livePulse 1.6s infinite;
}
@keyframes livePulse {
    0% { opacity: 1; }
    50% { opacity: .25; }
    100% { opacity: 1; }
}

.mini-input {
    width: 150px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid #283242;
    border-radius: 3px;
    background: #0b1017;
    color: var(--text);
    font-size: 12px;
    outline: none;
}
.mini-input:focus { border-color: var(--accent); }

.btn-add-watch {
    padding: 2px 8px;
    border: 1px solid #2a3546;
    border-radius: 2px;
    background: transparent;
    color: #8b97a8;
    font-size: 11.5px;
}
.btn-add-watch:hover { border-color: var(--accent); color: #ffb057; }

/* ---------- 资金流向 ---------- */
.mf-list { padding: 4px 0 10px; }
.mf-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 14px;
    font-size: 12px;
    color: var(--text-dim);
}
.mf-row b { font-family: var(--mono); font-weight: 400; }
.mf-row .mf-sub { color: var(--text-faint); font-size: 11px; }

/* ---------- 龙虎榜 ---------- */
.lhb-days { align-items: center; }
.lhb-day {
    padding: 4px 10px;
    border-radius: 2px;
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 12px;
}
.lhb-day:hover { color: var(--text); background: #1a2230; }
.lhb-day.active { color: #1a1200; background: var(--accent); font-weight: 600; }
.lhb-reason {
    max-width: 420px;
    white-space: normal;
    color: var(--text-dim);
    font-size: 11.5px;
    line-height: 1.5;
}

/* ---------- F10 ---------- */
.f10-head { padding: 0 0 16px; }
.f10-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #161e2a, #10151d);
}
.f10-title h1 { font-size: 20px; font-weight: 600; letter-spacing: .5px; }
.f10-sub { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; font-size: 12px; color: var(--text-dim); }
.f10-actions { display: flex; gap: 8px; }
.f10-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 14px 18px 0;
}
.f10-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f10-card {
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--panel-2);
    padding: 10px 14px 12px;
    min-width: 0;
}
.f10-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 13px;
    font-weight: 600;
    color: #e8eef7;
}
.f10-card-title::before {
    content: "";
    width: 3px;
    height: 12px;
    border-radius: 1px;
    background: var(--accent);
}
.f10-card-title small { margin-left: auto; font-size: 11px; font-weight: 400; color: var(--text-faint); }
.f10-kv {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 5px 0;
    font-size: 12px;
    color: var(--text-dim);
    border-bottom: 1px dashed rgba(29, 38, 52, .45);
}
.f10-kv:last-child { border-bottom: 0; }
.f10-kv b { font-weight: 400; color: var(--text); text-align: right; word-break: break-all; }
.f10-holder { width: 100%; border-collapse: collapse; margin-top: 2px; }
.f10-holder th, .f10-holder td {
    padding: 6px 6px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
}
.f10-holder th { color: var(--text-faint); font-weight: 400; }
.f10-holder th:nth-child(2), .f10-holder td:nth-child(2) { text-align: left; }
.f10-holder .holder-name { max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.f10-holder tbody tr:last-child td { border-bottom: 0; }
.f10-text { font-size: 12.5px; line-height: 1.9; color: var(--text-dim); text-indent: 2em; }

/* ---------- 选股器 ---------- */
.screener-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: #0e131b;
}
.sf-item { min-width: 0; }
.sf-item > label {
    display: block;
    margin-bottom: 5px;
    font-size: 11.5px;
    color: var(--text-dim);
}
.sf-item input[type="text"],
.sf-item input[type="number"],
.sf-item select {
    width: 100%;
    height: 28px;
    padding: 0 8px;
    border: 1px solid #283242;
    border-radius: 3px;
    background: #0b1017;
    color: var(--text);
    font-size: 12px;
    outline: none;
}
.sf-item input:focus, .sf-item select:focus { border-color: var(--accent); }
.sf-range { display: flex; align-items: center; gap: 4px; }
.sf-range span { color: var(--text-faint); font-size: 11px; }
.sf-offline { display: none; }
.sf-check { display: flex; align-items: center; gap: 6px; height: 28px; font-size: 12px; color: var(--text); }
.sf-check input { accent-color: var(--accent); }
.sf-actions { display: flex; align-items: flex-end; gap: 8px; }
.sf-actions .btn { height: 28px; padding: 0 16px; }
.sc-summary {
    padding: 8px 16px;
    font-size: 12px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border-soft);
    background: #10161f;
}

/* ---------- 模拟交易 ---------- */
.flash {
    margin-bottom: 10px;
    padding: 9px 14px;
    border-radius: 3px;
    font-size: 12.5px;
}
.flash-ok { background: var(--up-soft); border: 1px solid rgba(255, 75, 75, .35); color: #ff8a8a; }
.flash-error { background: rgba(255, 75, 75, .08); border: 1px solid rgba(255, 75, 75, .3); color: #ff8a8a; }
.sim-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.sim-card {
    position: relative;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: linear-gradient(145deg, #141b26, #0f141c);
    overflow: hidden;
}
.sim-card .k { font-size: 12px; color: var(--text-dim); }
.sim-card .v { margin-top: 4px; font-family: var(--mono); font-size: 22px; font-weight: 600; color: #fff; }
.sim-card .s { margin-top: 4px; font-size: 11.5px; color: var(--text-faint); font-family: var(--mono); }
.sim-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}
.sim-form { padding: 14px 16px 16px; }
.sim-form .btn { height: 34px; padding: 0 24px; }
.sim-code-row { display: flex; gap: 8px; }
.sim-code-row select {
    width: 86px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #283242;
    border-radius: 3px;
    background: #0b1017;
    color: var(--text);
    font-size: 12.5px;
    outline: none;
}
.sim-code-row input { flex: 1; }
.sim-sell { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sim-sell input {
    width: 88px;
    height: 26px;
    padding: 0 6px;
    border: 1px solid #283242;
    border-radius: 3px;
    background: #0b1017;
    color: var(--text);
    font-family: var(--mono);
    font-size: 12px;
    outline: none;
}
.sim-sell .btn { height: 26px; padding: 0 10px; font-size: 11.5px; }
.sell-row { display: flex; align-items: center; gap: 6px; }
.sell-quick { display: flex; gap: 4px; }
.sell-quick button {
    padding: 1px 6px;
    border: 1px solid #2a3546;
    border-radius: 2px;
    background: #0b1017;
    color: var(--text-dim);
    font-size: 10.5px;
    cursor: pointer;
}
.sell-quick button:hover { border-color: #ffb057; color: #ffb057; }
.sell-estimate { font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); white-space: nowrap; }

@media (max-width: 1280px) {
    .screener-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .f10-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sim-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 模拟资金管理 ---------- */
.cash-forms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px 16px;
}
.cash-form label { display: block; margin-bottom: 6px; font-size: 11.5px; color: var(--text-dim); }
.cash-row { display: flex; gap: 8px; }
.cash-row input {
    flex: 1;
    min-width: 0;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #283242;
    border-radius: 3px;
    background: #0b1017;
    color: var(--text);
    font-family: var(--mono);
    font-size: 12px;
    outline: none;
}
.cash-row input:focus { border-color: var(--accent); }
.cash-row .btn { height: 30px; padding: 0 14px; }
.cash-flow-list { border-top: 1px solid var(--border-soft); }
.cash-flow {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    border-bottom: 1px solid rgba(29, 38, 52, .45);
    font-size: 12px;
}
.cash-flow:last-child { border-bottom: 0; }
.cash-flow .type { width: 34px; flex: 0 0 34px; }
.cash-flow .num { width: 96px; flex: 0 0 96px; text-align: right; }
.cash-flow .faint { margin-left: auto; font-family: var(--mono); font-size: 11.5px; }
.cash-flow .time { flex: 0 0 132px; text-align: right; font-family: var(--mono); font-size: 11px; color: var(--text-faint); }

/* ---------- 龙虎榜扩展 ---------- */
.lhb-sorts { gap: 2px; }
.lhb-sorts a {
    padding: 4px 10px;
    border-radius: 2px;
    color: var(--text-dim);
    font-size: 12px;
}
.lhb-sorts a:hover { color: var(--text); background: #1a2230; }
.lhb-sorts a.active { color: #1a1200; background: var(--accent); font-weight: 600; }
.lhb-link {
    padding: 2px 8px;
    border: 1px solid #2a3546;
    border-radius: 2px;
    color: #8b97a8;
    font-size: 11.5px;
}
.lhb-link:hover { border-color: var(--accent); color: #ffb057; }
.lhb-summary {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    background: #0e131b;
}
.lhb-summary .cell { min-width: 0; }
.lhb-summary .cell span { display: block; font-size: 11px; color: var(--text-faint); }
.lhb-summary .cell b { display: block; margin-top: 3px; font-size: 14px; font-weight: 500; color: #e8eef7; }
.lhb-reasons {
    display: flex;
    gap: 12px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.7;
}
.lhb-reasons .tag-label {
    flex: 0 0 auto;
    align-self: flex-start;
    padding: 1px 6px;
    border: 1px solid rgba(255, 138, 0, .4);
    border-radius: 2px;
    color: var(--accent);
    font-size: 11px;
}
.lhb-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px 18px 16px;
}
.lhb-seats {
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--panel-2);
    overflow: hidden;
    min-width: 0;
}
.seat-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 12.5px;
    font-weight: 600;
    color: #e8eef7;
}
.seat-head .dot { width: 6px; height: 6px; border-radius: 50%; }
.seat-head .dot.up { background: var(--up); }
.seat-head .dot.down { background: var(--down); }
.lhb-seats .data-table th, .lhb-seats .data-table td { padding: 7px 10px; }
.lhb-seats .seat-name {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

/* ---------- F10 扩展 ---------- */
.f10-block {
    margin: 14px 18px 0;
    padding: 10px 14px 12px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--panel-2);
    overflow-x: auto;
}
.f10-table { width: 100%; border-collapse: collapse; margin-top: 2px; }
.f10-table th, .f10-table td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
}
.f10-table th { color: var(--text-faint); font-weight: 400; }
.f10-table th:nth-child(1), .f10-table td:nth-child(1),
.f10-table th:nth-child(2), .f10-table td:nth-child(2) { text-align: left; }
.f10-table tbody tr:last-child td { border-bottom: 0; }
.f10-table tbody tr:hover { background: #161e2a; }
.f10-table .plan, .f10-table .pos { max-width: 260px; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.concept-item { padding: 8px 0; border-bottom: 1px dashed rgba(29, 38, 52, .6); }
.concept-item:last-child { border-bottom: 0; }
.concept-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.concept-head b { font-size: 12.5px; font-weight: 600; color: #e8eef7; }
.concept-head .tag {
    padding: 0 5px;
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--text-faint);
    font-size: 10.5px;
}
.concept-item p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-dim);
}
.board-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 6px; }
.board-tag {
    padding: 2px 8px;
    border: 1px solid #2a3546;
    border-radius: 2px;
    color: var(--text-dim);
    font-size: 11.5px;
    background: #0e131b;
}
.board-tag:hover { border-color: var(--accent); color: #ffb057; }

@media (max-width: 1280px) {
    .lhb-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lhb-pair { grid-template-columns: 1fr; }
}

/* ---------- 选股器扩展 ---------- */
.sc-presets {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    background: #10161f;
    font-size: 12px;
    flex-wrap: wrap;
}
.sc-presets-label { color: var(--text-faint); font-size: 11.5px; flex: 0 0 auto; }
.sc-presets-list { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.sc-preset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border: 1px solid #2a3546;
    border-radius: 2px;
    background: #0e131b;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 11.5px;
}
.sc-preset:hover { border-color: var(--accent); color: #ffb057; }
.sc-preset-del { font-style: normal; color: var(--text-faint); }
.sc-preset-del:hover { color: var(--up); }
.sc-presets-save { display: flex; gap: 6px; align-items: center; flex: 0 0 auto; }
.sc-presets-save input {
    width: 150px;
    height: 26px;
    padding: 0 8px;
    border: 1px solid #283242;
    border-radius: 3px;
    background: #0b1017;
    color: var(--text);
    font-size: 12px;
    outline: none;
}
.sc-presets-save input:focus { border-color: var(--accent); }
.sc-presets-save .btn { height: 26px; padding: 0 10px; font-size: 11.5px; }
.sc-presets-guest { justify-content: space-between; color: var(--text-dim); }
.sc-presets-guest .btn { height: 26px; padding: 0 12px; font-size: 11.5px; }
.sc-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-soft);
    background: #0d1219;
    font-size: 12px;
    color: var(--text-dim);
}
.sc-stat b { font-family: var(--mono); font-weight: 500; color: #e8eef7; margin-left: 2px; }
.sc-stat.up b { color: var(--up); }
.sc-stat.down b { color: var(--down); }
.sc-stat.faint { margin-left: auto; color: var(--text-faint); font-family: var(--mono); font-size: 11px; }
.sc-table th.th-sort { cursor: pointer; user-select: none; }
.sc-table th.th-sort:hover { color: var(--text); }
.sc-table th.th-sort.active { color: var(--accent); }
.sc-table th.th-sort.active::after { content: " ↓"; font-size: 10px; }
.sc-table th.th-sort.active[data-dir="asc"]::after { content: " ↑"; }
.btn-mini {
    padding: 2px 8px;
    border: 1px solid #2a3546;
    border-radius: 2px;
    background: transparent;
    color: #8b97a8;
    font-size: 11.5px;
}
.btn-mini:hover { border-color: var(--accent); color: #ffb057; }
.btn-mini:disabled { opacity: .5; cursor: default; }
.sc-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-soft);
}
.sc-pager .btn { height: 28px; padding: 0 14px; font-size: 12px; }
.sc-pager .btn:disabled { opacity: .4; cursor: default; }
.sc-page-text { font-family: var(--mono); font-size: 12px; color: var(--text-dim); }

.sc-preset .sc-preset-name { font-weight: 500; }

/* 资金申请状态 */
.flow-status {
    flex: 0 0 50px;
    padding: 1px 4px;
    border-radius: 2px;
    text-align: center;
    font-size: 10.5px;
    line-height: 16px;
}
.flow-status.pending { color: #ffb057; background: rgba(255, 138, 0, .1); border: 1px solid rgba(255, 138, 0, .35); }
.flow-status.passed { color: #5fe0b8; background: rgba(18, 184, 134, .1); border: 1px solid rgba(18, 184, 134, .3); }
.flow-status.rejected { color: #ff9090; background: rgba(255, 75, 75, .08); border: 1px solid rgba(255, 75, 75, .3); }

/* ---------- 营业部排行 / 历史上榜 / 公告 ---------- */
.lhb-dept-link {
    margin-left: auto;
    padding: 3px 10px;
    border: 1px solid #2a3546;
    border-radius: 2px;
    color: #8b97a8;
    font-size: 11.5px;
    white-space: nowrap;
}
.lhb-dept-link:hover { border-color: var(--accent); color: #ffb057; }
.lhb-dept-name { text-align: left; max-width: 360px; }
.lhb-history {
    margin: 0 18px 16px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--panel-2);
    overflow: hidden;
}
.lhb-history .data-table th, .lhb-history .data-table td { padding: 7px 10px; }
.f10-ann { display: flex; flex-direction: column; }
.ann-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 7px 2px;
    border-bottom: 1px dashed rgba(29, 38, 52, .6);
    color: var(--text-dim);
    font-size: 12px;
}
.ann-item:last-child { border-bottom: 0; }
.ann-item:hover .ann-title { color: #ffb057; }
.ann-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ann-date { flex: 0 0 auto; font-family: var(--mono); font-size: 11px; color: var(--text-faint); }

/* 选股器涨跌幅分布 */
.sc-dist {
    display: flex;
    gap: 8px;
    padding: 10px 16px 6px;
    border-bottom: 1px solid var(--border-soft);
    background: #0d1219;
}
.sc-dist-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sc-dist-bar { height: 48px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.sc-dist-bar i { display: block; width: 62%; border-radius: 1px 1px 0 0; background: #12b886; opacity: .85; }
.sc-dist-item.down .sc-dist-bar i { background: #e5484d; }
.sc-dist-item:hover .sc-dist-bar i { opacity: 1; }
.sc-dist-count { font-family: var(--mono); font-size: 11px; color: #aab4c2; }
.sc-dist-label { font-size: 10px; color: var(--text-faint); white-space: nowrap; }
.sc-size {
    height: 26px;
    padding: 0 6px;
    border: 1px solid #283242;
    border-radius: 3px;
    background: #0b1017;
    color: var(--text-dim);
    font-size: 11.5px;
    outline: none;
}
.sc-size:focus { border-color: var(--accent); }

/* 营业部明细 / 累计净买入 */
.lhb-dept-sub { color: var(--text-faint); font-size: 11.5px; }
.lhb-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-soft);
}
.lhb-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--panel-2);
}
.lhb-card span { font-size: 11px; color: var(--text-faint); }
.lhb-card b { font-family: var(--mono); font-size: 15px; font-weight: 500; }
.lhb-trend-note {
    padding: 9px 16px;
    border-bottom: 1px solid var(--border-soft);
    background: #0d1219;
    color: var(--text-faint);
    font-size: 11.5px;
}
.stock-link { color: inherit; }
.stock-link:hover b { color: #ffb057; }
.lhb-dept-name a { color: var(--text); }
.lhb-dept-name a:hover { color: #ffb057; }

/* ---------- 我的自选 ---------- */
.watch-add { display: flex; gap: 6px; margin-left: 14px; }
.watch-add input {
    width: 190px;
    height: 28px;
    padding: 0 9px;
    border: 1px solid #283242;
    border-radius: 3px;
    background: #0b1017;
    color: var(--text);
    font-size: 12px;
    outline: none;
}
.watch-add input:focus { border-color: var(--accent); }
.watch-head-extra { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.watch-flash:empty { display: none; }
.watch-flash .flash { margin: 10px 18px 0; }
.watch-board {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 9px 18px;
    border-bottom: 1px solid var(--border-soft);
    background: #0d1219;
    flex-wrap: wrap;
}
.watch-board a {
    padding: 4px 12px;
    border: 1px solid transparent;
    border-radius: 3px;
    color: var(--text-dim);
    font-size: 12px;
}
.watch-board a em { font-style: normal; color: var(--text-faint); font-family: var(--mono); font-size: 11px; margin-left: 2px; }
.watch-board a:hover { color: #ffb057; }
.watch-board a.active { background: rgba(255, 146, 43, .1); border-color: rgba(255, 146, 43, .35); color: #ffb057; }
.watch-board a.active em { color: #ffb057; }
.watch-guest { margin-left: auto; color: var(--text-faint); font-size: 11px; }
.watch-cards { grid-template-columns: repeat(6, 1fr); }
.watch-cards .lhb-card b { font-size: 14px; }
.watch-cards .lhb-card i { font-style: normal; }
.watch-name { text-align: left; white-space: nowrap; }
.watch-name .faint { margin-left: 6px; font-family: var(--mono); font-size: 10.5px; }
.watch-remove button {
    width: 22px;
    height: 22px;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    color: var(--text-faint);
    cursor: pointer;
    font-size: 12px;
}
.watch-remove button:hover { border-color: rgba(229, 72, 77, .45); color: #ff6b6b; background: rgba(229, 72, 77, .08); }
.watch-table th[data-sort] { cursor: pointer; user-select: none; }
.watch-table th[data-sort]:hover { color: #ffb057; }
.watch-table th.active { color: #ffb057; }
.watch-table th.active::after { content: ' ▼'; font-size: 9px; }
.watch-table th.active.asc::after { content: ' ▲'; }

/* F10 财务报表摘要 */
.stmt-wrap { display: grid; grid-template-columns: 1fr; gap: 12px; }
.stmt-card { border: 1px solid var(--border); border-radius: 3px; background: var(--panel-2); overflow: hidden; }
.stmt-title { padding: 7px 12px; border-bottom: 1px solid var(--border-soft); background: #0d1219; color: var(--text-dim); font-size: 12px; }
.stmt-scroll { overflow-x: auto; }
.stmt-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.stmt-table th, .stmt-table td { padding: 6px 10px; border-bottom: 1px solid rgba(29, 38, 52, .6); white-space: nowrap; }
.stmt-table th { background: #0b1017; color: var(--text-faint); font-weight: 400; text-align: right; }
.stmt-table th:first-child, .stmt-table td:first-child {
    position: sticky;
    left: 0;
    text-align: left;
    background: var(--panel-2);
}
.stmt-table td { text-align: right; font-family: var(--mono); color: #c3ccd8; }
.stmt-table td:first-child { font-family: inherit; color: var(--text-dim); }
.stmt-table tr:last-child td { border-bottom: 0; }

/* 模拟交易买入面板增强 */
.buy-quote { min-height: 16px; margin-top: 6px; font-size: 11.5px; color: var(--text-faint); }
.buy-quote b { color: var(--text); font-weight: 500; }
.buy-quick { display: flex; gap: 6px; margin-top: 7px; }
.buy-quick button {
    padding: 3px 9px;
    border: 1px solid #2a3546;
    border-radius: 3px;
    background: #0b1017;
    color: var(--text-dim);
    font-size: 11px;
    cursor: pointer;
}
.buy-quick button:hover { border-color: var(--accent); color: #ffb057; }
.buy-estimate { min-height: 15px; margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
.sim-buy-btn {
    margin-left: 6px;
    padding: 1px 6px;
    border: 1px solid rgba(255, 146, 43, .35);
    border-radius: 2px;
    background: rgba(255, 146, 43, .08);
    color: #ffb057;
    font-size: 10.5px;
    cursor: pointer;
}
.sim-buy-btn:hover { background: rgba(255, 146, 43, .16); }

/* 模拟交易规则提示 */
.sim-market {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 12px;
    background: #0d1219;
    color: var(--text-dim);
}
.sim-market.trading { border-color: rgba(229, 72, 77, .35); background: rgba(229, 72, 77, .07); }
.sim-market b { color: #ffb057; font-weight: 500; }
.sim-market.trading b { color: #ff8a8e; }
.sim-market .rule { margin-left: auto; color: var(--text-faint); font-size: 11px; }

/* ---------- 模拟交易：代码联想 ---------- */
.sim-form .form-item { position: relative; }
.sim-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    margin-top: 4px;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #2a3546;
    border-radius: 3px;
    background: #0f141c;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .55);
    display: none;
}
.sim-suggest.show { display: block; }
.sim-suggest .ss-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    cursor: pointer;
    font-size: 12.5px;
}
.sim-suggest .ss-item:hover,
.sim-suggest .ss-item.active { background: #18202c; }
.sim-suggest .ss-item b { font-weight: 600; color: #e8eef7; }
.sim-suggest .ss-item .code { color: var(--text-faint); font-family: var(--mono); font-size: 11.5px; }
.sim-suggest .ss-empty { padding: 9px 10px; color: var(--text-faint); font-size: 12px; }

/* ---------- 模拟交易：报表 ---------- */
.report-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.report-title { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: .5px; }
.report-sub { margin-top: 4px; font-size: 11.5px; color: var(--text-faint); }
.report-cards { margin-bottom: 0; }
.report-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin-top: 12px;
}
.alloc-bar {
    display: flex;
    height: 14px;
    margin: 14px 16px 8px;
    border-radius: 2px;
    overflow: hidden;
    background: #0b1017;
    border: 1px solid #1d2634;
}
.alloc-stock { background: linear-gradient(90deg, #ff7a45, #ff4b4b); }
.alloc-cash { background: #3d86ff; }
.alloc-legend {
    display: flex;
    gap: 18px;
    padding: 0 16px 10px;
    font-size: 11.5px;
    color: var(--text-dim);
}
.alloc-legend .dot,
.daily-legend .lg {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;
    border-radius: 2px;
}
.alloc-legend .dot.stock { background: #ff4b4b; }
.alloc-legend .dot.cash { background: #3d86ff; }
.alloc-legend b { color: var(--text); font-family: var(--mono); }
.alloc-list { padding: 0 16px 12px; }
.alloc-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 12px;
}
.alloc-row .an { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alloc-row .an em { margin-left: 6px; font-style: normal; color: var(--text-faint); font-family: var(--mono); font-size: 10.5px; }
.alloc-row .ab { height: 6px; background: #0b1017; border-radius: 3px; overflow: hidden; }
.alloc-row .ab i { display: block; height: 100%; background: linear-gradient(90deg, #ff9d2e, #ff4b4b); }
.alloc-row .av { text-align: right; font-family: var(--mono); color: var(--text-dim); }
.pnl-list { padding: 8px 16px 4px; }
.pnl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px dashed #1b2431;
    font-size: 12.5px;
    color: var(--text-dim);
}
.pnl-row b { font-family: var(--mono); font-size: 14px; }
.pnl-row.total { border-bottom: 0; color: var(--text); font-weight: 600; }
.pnl-row.total b { font-size: 17px; }
.report-note { padding: 4px 16px 14px; font-size: 11px; color: var(--text-faint); }
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: #1b2431;
    margin: 0;
}
.stat {
    padding: 12px 14px;
    background: #11161f;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.stat span { font-size: 11.5px; color: var(--text-faint); }
.stat b { font-size: 15px; font-weight: 600; color: var(--text); font-family: var(--mono); }
.daily-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 150px;
    padding: 16px 16px 0;
}
.daily-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 6px;
}
.daily-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 100%;
    width: 100%;
    justify-content: center;
}
.daily-bars i { width: 10px; min-height: 1px; border-radius: 1px 1px 0 0; }
.daily-bars i.buy { background: #ff4b4b; }
.daily-bars i.sell { background: #12b886; }
.daily-date { font-size: 10.5px; color: var(--text-faint); font-family: var(--mono); }
.daily-legend { padding: 8px 16px 14px; display: flex; gap: 16px; font-size: 11.5px; color: var(--text-dim); }
.daily-legend .lg.buy { background: #ff4b4b; }
.daily-legend .lg.sell { background: #12b886; }

/* ---------- 个股页快捷交易 ---------- */
.quick-trade .qt-tabs { display: flex; gap: 4px; padding: 10px 14px 0; }
.quick-trade .qt-tabs button {
    flex: 1;
    height: 30px;
    border: 1px solid #2a3546;
    background: #0b1017;
    color: var(--text-dim);
    font-size: 12.5px;
    border-radius: 2px;
}
.quick-trade .qt-tabs button.active.buy { border-color: var(--up); color: var(--up); background: var(--up-soft); }
.quick-trade .qt-tabs button.active.sell { border-color: var(--down); color: var(--down); background: var(--down-soft); }
.quick-trade .qt-pane { display: none; padding: 12px 14px 14px; }
.quick-trade .qt-pane.active { display: block; }
.quick-trade .qt-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; font-size: 12px; color: var(--text-dim); }
.quick-trade .qt-field b { font-family: var(--mono); color: var(--text); }
.quick-trade input[type="number"] {
    width: 120px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #283242;
    border-radius: 3px;
    background: #0b1017;
    color: var(--text);
    font-family: var(--mono);
    font-size: 12.5px;
    outline: none;
    text-align: right;
}
.quick-trade .qt-quick { display: flex; gap: 4px; padding: 4px 0 8px; }
.quick-trade .qt-quick button {
    padding: 2px 8px;
    border: 1px solid #2a3546;
    background: #0b1017;
    color: var(--text-dim);
    font-size: 10.5px;
    border-radius: 2px;
}
.quick-trade .qt-quick button:hover { border-color: #ffb057; color: #ffb057; }
.quick-trade .qt-est { min-height: 16px; padding: 4px 0 8px; font-family: var(--mono); font-size: 11px; color: var(--text-faint); line-height: 1.6; }
.quick-trade .btn { width: 100%; height: 32px; }
.quick-trade .qt-login { padding: 18px 14px; font-size: 12px; color: var(--text-dim); }
.quick-trade .qt-login a { color: var(--accent); }

@media (max-width: 1180px) {
    .report-grid { grid-template-columns: minmax(0, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 模拟交易：走势与日历 ---------- */
.curve-wrap { padding: 10px 16px 4px; }
.curve-svg { width: 100%; height: 200px; display: block; }
.curve-axis {
    display: flex;
    justify-content: space-between;
    padding: 4px 4px 12px;
    font-size: 11px;
    color: var(--text-faint);
    font-family: var(--mono);
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    padding: 10px 16px 4px;
}
.cal-week { text-align: center; font-size: 11px; color: var(--text-faint); padding: 2px 0; }
.cal-empty { height: 44px; }
.cal-cell {
    height: 44px;
    border: 1px solid #1d2634;
    border-radius: 2px;
    background: #0b1017;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    font-size: 10.5px;
}
.cal-cell b { font-weight: 500; color: var(--text-dim); font-family: var(--mono); }
.cal-cell em { font-style: normal; font-family: var(--mono); font-size: 9.5px; }
.cal-cell.up { background: rgba(255, 75, 75, .10); border-color: rgba(255, 75, 75, .35); }
.cal-cell.up em { color: var(--up); }
.cal-cell.down { background: rgba(18, 184, 134, .10); border-color: rgba(18, 184, 134, .35); }
.cal-cell.down em { color: var(--down); }
.cal-cell.today { box-shadow: inset 0 0 0 1px var(--accent); }
.cal-cell.future { opacity: .45; }
.cal-legend { display: flex; gap: 14px; padding: 8px 16px 14px; font-size: 11px; color: var(--text-dim); }
.cal-legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.cal-legend .dot.up { background: var(--up); }
.cal-legend .dot.down { background: var(--down); }
.report-table th, .report-table td { padding: 8px 10px; white-space: nowrap; font-size: 11.5px; }

/* ---------- 模拟交易：金额输入 ---------- */
.sim-sell input.sell-amount { width: 74px; }
.quick-trade .qt-field input { width: 110px; }
