/* =========================================
   GLOBAL — 极简后台风
========================================= */

:root {
    --bg: #f6f6f7;
    --card-bg: #ffffff;
    --text-main: #222;
    --text-sub: #666;
    --border: #e5e7eb;

    --blue: #2979ff;
    --red: #d93333;
    --green: #1ca379;

    --radius: 14px;
}

html.dark {
    --bg: #1a1b1d;
    --card-bg: #26272b;
    --text-main: #f1f1f2;
    --text-sub: #a0a0a0;
    --border: #3a3b3d;
}

/* 全局 */
body {
    margin: 0;
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
}

.container {
    display: flex;
}

/* =========================================
   左侧菜单
========================================= */

.sidebar {
    width: 200px;
    height: 100vh;
    padding: 30px 20px;
    border-right: 1px solid var(--border);
    background: var(--card-bg);
}

.logo {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 28px;
}

.nav-list {
    list-style: none;
    padding: 0;
}

.nav-list li {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    color: var(--text-sub);
}

.nav-list li.active {
    background: #e9eef9;
    color: var(--blue);
    font-weight: 600;
}

/* =========================================
   主内容
========================================= */

.content {
    flex: 1;
    padding: 34px 44px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 26px;
}

/* =========================================
   顶部统计栏
========================================= */

.top-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 26px;
}

.stat-item {
    flex: 1;
    background: var(--card-bg);
    padding: 16px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.stat-item .label {
    font-size: 13px;
    color: var(--text-sub);
}

.stat-item .value {
    margin-top: 6px;
    font-size: 22px;
    font-weight: 600;
}

/* =========================================
   卡片两列布局（核心）
========================================= */

.card-two-col {
    display: flex;
    gap: 60px;
    padding: 26px 30px;
    margin-bottom: 22px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* 左右区域自动等宽 */
.card-left{
    flex: 1;
    min-width: 0;
}
.card-right {
    flex: 1;
    min-width: 0;
    margin-top: 8px;
}

/* 卡片标题 */
.symbol {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
}

.symbol-sub {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* =========================================
   关键：全局行对齐系统（真正解决你的问题）
========================================= */

/*
  原理：让所有 row（无论 QQQ、SPY、左列、右列）
  都使用同一套 180px + auto 的对齐网格。
*/

.row {
    display: grid;
    grid-template-columns: 180px 1fr; /* ← 全局统一字段列宽 */
    align-items: center;

    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.row:last-child {
    border-bottom: none;
}

/* 颜色 */
.dd-red { color: var(--red); font-weight: 600; }
.dd-green { color: var(--green); font-weight: 600; }
.status { color: var(--blue); font-weight: 600; }
.suggest { color: #6b5bff; font-weight: 600; }

/* 深色动画 */
html.dark * {
    transition: background 0.25s ease, color 0.25s ease, border 0.25s ease;
}
.version-tag {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 14px;
    color: #888;
    opacity: 0.65;
    letter-spacing: 1px;
}
