/* ==========================================================================
   越秀地产 - 小红书自主获客月度积分看板 CSS 样式表
   Premium Light Glassmorphism · Rose-Ivory Edition
   ========================================================================== */

:root {
    /* === 背景与面板 === */
    --bg-light: #fdf2f4;
    --bg-subtle: #f9e4e9;
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-bg-hover: rgba(255, 255, 255, 0.90);
    --border-color: rgba(200, 30, 60, 0.09);
    --border-color-focus: rgba(224, 50, 90, 0.45);

    /* === 文字层级 === */
    --text-primary: #1a0a0f;
    --text-secondary: #5c3344;
    --text-muted: #a07080;

    /* === 核心色彩体系（小红书粉红/红主色） === */
    --color-red: #e0325a;
    --color-red-glow: rgba(224, 50, 90, 0.12);
    --color-pink: #e91e8c;
    --color-pink-glow: rgba(233, 30, 140, 0.10);
    --color-orange: #f97316;
    --color-orange-glow: rgba(249, 115, 22, 0.10);
    --color-blue: #0284c7;
    --color-blue-glow: rgba(2, 132, 199, 0.10);
    --color-gold: #d97706;
    --color-gold-glow: rgba(217, 119, 6, 0.10);
    --color-purple: #7c3aed;
    --color-purple-glow: rgba(124, 58, 237, 0.10);
    --color-cyan: #0891b2;
    --color-cyan-glow: rgba(8, 145, 178, 0.10);
    --color-green: #16a34a;
    --color-green-glow: rgba(22, 163, 74, 0.10);

    --font-heading: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
    --font-body: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, -apple-system, sans-serif;

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-blur: blur(20px);
}

/* ==========================================================================
   页面基础设置与背景装饰
   ========================================================================== */

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

body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 40px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* 动态发光背景球 — 玫红柔和版 */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.07;
    animation: floatBlob 24s infinite alternate;
}

.bg-blob-1 {
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, var(--color-red) 0%, transparent 70%);
    top: -120px;
    left: -120px;
}

.bg-blob-2 {
    width: 680px;
    height: 680px;
    background: radial-gradient(circle, var(--color-pink) 0%, transparent 70%);
    bottom: 15%;
    right: -180px;
    animation-delay: -6s;
    opacity: 0.05;
}

.bg-blob-3 {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, #ff7eb3 0%, transparent 70%);
    bottom: -80px;
    left: 22%;
    animation-delay: -12s;
    opacity: 0.06;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 70px) scale(1.12); }
}

.container {
    max-width: 1780px;
    margin: 0 auto;
    padding: 24px 30px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   磨砂玻璃面板通用定义 (Light Glassmorphism)
   ========================================================================== */

.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    box-shadow:
        0 1px 3px rgba(200, 30, 60, 0.04),
        0 8px 24px rgba(200, 30, 60, 0.06),
        0 0 0 0.5px rgba(255, 255, 255, 0.9) inset;
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(200, 30, 60, 0.13);
    box-shadow:
        0 1px 3px rgba(200, 30, 60, 0.05),
        0 12px 32px rgba(200, 30, 60, 0.09),
        0 0 0 0.5px rgba(255, 255, 255, 0.95) inset;
}

/* ==========================================================================
   积分说明栏 (Inline Collapsible Rules)
   ========================================================================== */

.rules-section {
    margin-bottom: 24px;
    padding: 16px 20px;
}

.rules-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.rules-header-inline h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-red);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rules-header-inline .toggle-icon {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.rules-header-inline:hover h4 {
    color: #c01040;
}

.rules-body-inline {
    margin-top: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    transition: var(--transition-smooth);
}

.rules-body-inline.hidden {
    display: none;
}

.rules-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.rule-mini-card {
    background: rgba(253, 242, 244, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
}

.rule-mini-card h6 {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    border-left: 2.5px solid var(--color-red);
    padding-left: 6px;
}

.rule-mini-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.rule-mini-card ul {
    list-style-type: none;
    margin-top: 6px;
    padding-left: 0;
}

.rule-mini-card li {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ==========================================================================
   页头 (Header)
   ========================================================================== */

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.logo-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logo-badge {
    background: linear-gradient(135deg, var(--color-red), var(--color-pink));
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
    width: fit-content;
    text-transform: uppercase;
}

.app-header h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.2rem;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #1a0a0f, #5c3344);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-header .subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.time-progress {
    display: flex;
    gap: 12px;
}

.meta-tag {
    background: rgba(200, 30, 60, 0.04);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.meta-tag i {
    color: var(--color-red);
}

.rednote-badge {
    background: linear-gradient(135deg, rgba(224, 50, 90, 0.08), rgba(233, 30, 140, 0.08));
    border-color: rgba(224, 50, 90, 0.2);
    color: var(--color-red);
    font-weight: 600;
}

/* ==========================================================================
   月份切换 (Month Tabs)
   ========================================================================== */

.month-tabs-container {
    margin-bottom: 20px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(200, 30, 60, 0.06);
}

.month-tabs {
    display: flex;
    gap: 4px;
}

.month-tab {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.month-tab:hover {
    color: var(--text-primary);
    background: rgba(200, 30, 60, 0.04);
}

.month-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--color-red), var(--color-pink));
    box-shadow: 0 4px 15px rgba(224, 50, 90, 0.30);
    font-weight: 700;
}

/* ==========================================================================
   筛选与搜索栏 (Control Panel)
   ========================================================================== */

.control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    margin-bottom: 24px;
    gap: 20px;
}

.search-box {
    position: relative;
    flex-grow: 1;
    max-width: 450px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.search-box input {
    width: 100%;
    background: rgba(253, 242, 244, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px 12px 48px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box input:focus {
    border-color: var(--border-color-focus);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px var(--color-red-glow);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-item label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    font-size: 0.85rem;
}

.filter-group select {
    background: rgba(253, 242, 244, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 11px 36px 11px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: var(--transition-smooth);
    min-width: 130px;
}

.filter-group select:focus {
    border-color: var(--border-color-focus);
    box-shadow: 0 0 0 3px var(--color-red-glow);
    background: rgba(255, 255, 255, 0.9);
}

.reset-btn {
    background: rgba(200, 30, 60, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 11px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.reset-btn:hover {
    color: var(--color-red);
    background: rgba(200, 30, 60, 0.08);
    border-color: rgba(200, 30, 60, 0.2);
}

/* ==========================================================================
   KPI 核心卡片网格 (Stats Cards) - 8列
   ========================================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
}

.stat-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

/* 各卡片图标的颜色与背景 */
.text-red    { color: var(--color-red);    background: var(--color-red-glow); }
.text-pink   { color: var(--color-pink);   background: var(--color-pink-glow); }
.text-orange { color: var(--color-orange); background: var(--color-orange-glow); }
.text-blue   { color: var(--color-blue);   background: var(--color-blue-glow); }
.text-gold   { color: var(--color-gold);   background: var(--color-gold-glow); }
.text-purple { color: var(--color-purple); background: var(--color-purple-glow); }
.text-cyan   { color: var(--color-cyan);   background: var(--color-cyan-glow); }
.text-green  { color: var(--color-green);  background: var(--color-green-glow); }

/* 卡片 hover 微发光 */
.gradient-hover-red:hover    { box-shadow: 0 6px 20px rgba(224, 50, 90, 0.15);  border-color: rgba(224, 50, 90, 0.25); }
.gradient-hover-pink:hover   { box-shadow: 0 6px 20px rgba(233, 30, 140, 0.12); border-color: rgba(233, 30, 140, 0.22); }
.gradient-hover-orange:hover { box-shadow: 0 6px 20px rgba(249, 115, 22, 0.12); border-color: rgba(249, 115, 22, 0.22); }
.gradient-hover-blue:hover   { box-shadow: 0 6px 20px rgba(2, 132, 199, 0.12);  border-color: rgba(2, 132, 199, 0.22); }
.gradient-hover-gold:hover   { box-shadow: 0 6px 20px rgba(217, 119, 6, 0.12);  border-color: rgba(217, 119, 6, 0.22); }
.gradient-hover-purple:hover { box-shadow: 0 6px 20px rgba(124, 58, 237, 0.12); border-color: rgba(124, 58, 237, 0.22); }
.gradient-hover-cyan:hover   { box-shadow: 0 6px 20px rgba(8, 145, 178, 0.12);  border-color: rgba(8, 145, 178, 0.22); }
.gradient-hover-green:hover  { box-shadow: 0 6px 20px rgba(22, 163, 74, 0.12);  border-color: rgba(22, 163, 74, 0.22); }

/* ==========================================================================
   数据分析图表板块 (Charts)
   ========================================================================== */

.charts-section {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chart-header {
    display: flex;
    flex-direction: column;
}

.chart-header h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chart-container {
    position: relative;
    height: 320px;
    width: 100%;
}

.chart-containers-double {
    display: flex;
    gap: 16px;
    height: 320px;
}

.sub-chart {
    flex: 1;
    position: relative;
    height: 100%;
}

/* ==========================================================================
   表格主区域与明细 (Leaderboard Table)
   ========================================================================== */

.table-section {
    padding: 24px;
    margin-bottom: 24px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-title-area h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.table-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.table-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: rgba(200, 30, 60, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.action-btn:hover {
    color: var(--color-red);
    background: rgba(200, 30, 60, 0.08);
    border-color: rgba(200, 30, 60, 0.18);
}

.table-responsive-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.55);
}

.leaderboard-table {
    width: 100%;
    min-width: 2200px;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.83rem;
}

.leaderboard-table th {
    background: rgba(253, 242, 244, 0.9);
    padding: 13px 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.78rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.leaderboard-table td {
    padding: 11px 10px;
    border-bottom: 1px solid rgba(200, 30, 60, 0.05);
    transition: var(--transition-smooth);
    color: var(--text-primary);
}

/* 核心排名与得分 */
.leaderboard-table th.col-rank,
.leaderboard-table td.col-rank-cell {
    text-align: center;
    width: 55px;
}

.leaderboard-table th.col-score,
.leaderboard-table td.col-score-cell {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-red);
    text-align: right;
    padding-right: 20px;
    width: 90px;
}

.leaderboard-table td.col-account-cell {
    font-weight: 500;
    color: var(--text-primary);
    min-width: 180px;
}

/* 斑马纹与悬浮高亮 */
.leaderboard-table tbody tr {
    background: transparent;
}

.leaderboard-table tbody tr:nth-child(even) {
    background: rgba(253, 242, 244, 0.5);
}

.leaderboard-table tbody tr:hover {
    background: rgba(224, 50, 90, 0.05);
}

/* 前三名高光 */
.leaderboard-table tbody tr.rank-1 { background: rgba(224, 50, 90, 0.08); }
.leaderboard-table tbody tr.rank-1:hover { background: rgba(224, 50, 90, 0.12); }
.leaderboard-table tbody tr.rank-2 { background: rgba(100, 116, 139, 0.04); }
.leaderboard-table tbody tr.rank-2:hover { background: rgba(100, 116, 139, 0.08); }
.leaderboard-table tbody tr.rank-3 { background: rgba(233, 30, 140, 0.04); }
.leaderboard-table tbody tr.rank-3:hover { background: rgba(233, 30, 140, 0.08); }

/* 合格/不合格徽章 */
.badge-qualified {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.73rem;
    font-weight: 600;
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.badge-unqualified {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.73rem;
    font-weight: 600;
    background: rgba(224, 50, 90, 0.1);
    color: var(--color-red);
    border: 1px solid rgba(224, 50, 90, 0.2);
}

/* 奖杯勋章标签 */
.medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 800;
}
.medal-1 { background: linear-gradient(135deg, #fef08a 0%, #ca8a04 100%); color: #422006; box-shadow: 0 0 10px rgba(234, 179, 8, 0.35); }
.medal-2 { background: linear-gradient(135deg, #e2e8f0 0%, #64748b 100%); color: #1e293b; box-shadow: 0 0 8px rgba(100, 116, 139, 0.22); }
.medal-3 { background: linear-gradient(135deg, #ffedd5 0%, #9a3412 100%); color: #ffedd5; box-shadow: 0 0 6px rgba(194, 65, 12, 0.22); }
.medal-other {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* 账号等级徽章 (S, A, B, C) */
.badge-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    min-width: 32px;
}

.lvl-s {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #78350f;
    border: 1px solid rgba(217, 119, 6, 0.25);
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.2);
}

.lvl-a {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #9d174d;
    border: 1px solid rgba(233, 30, 140, 0.2);
}

.lvl-b {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    color: #9a3412;
    border: 1px solid rgba(234, 88, 12, 0.2);
}

.lvl-c {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* 账号ID样式 */
.acct-id {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
    font-family: monospace;
}

/* ==========================================================================
   空状态与页面页脚 (Empty States & Footer)
   ========================================================================== */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    gap: 16px;
    text-align: center;
}

.empty-icon {
    font-size: 3rem;
    color: var(--text-muted);
}

.empty-state.hidden {
    display: none;
}

.app-footer {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* ==========================================================================
   弹窗说明层 (Modal Popup)
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 10, 15, 0.35);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: var(--transition-smooth);
}

.modal-overlay.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    max-width: 960px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    border-color: rgba(200, 30, 60, 0.12);
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomIn {
    0% { transform: scale(0.9) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-red);
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
    line-height: 1;
}

.close-btn:hover {
    color: var(--color-red);
}

.rules-card {
    background: rgba(253, 242, 244, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.rules-card h5 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    border-left: 3px solid var(--color-red);
    padding-left: 8px;
}

.rules-card ul {
    list-style-type: none;
    padding-left: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.rules-card li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.rules-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
    margin-top: 10px;
}

.rules-table th {
    background: rgba(253, 242, 244, 0.8);
    padding: 10px 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.rules-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(200, 30, 60, 0.05);
    color: var(--text-secondary);
    line-height: 1.4;
}

.rules-table tr:hover td {
    color: var(--text-primary);
    background: rgba(224, 50, 90, 0.03);
}

.text-center { text-align: center; }

/* ==========================================================================
   自定义滚动条 (Scrollbar)
   ========================================================================== */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(200, 30, 60, 0.04);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(200, 30, 60, 0.18);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 30, 60, 0.3);
}

/* ==========================================================================
   响应式流式布局定义 (Responsive Adjustments)
   ========================================================================== */

@media (max-width: 1600px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .charts-section {
        grid-template-columns: 1fr;
    }
    .rules-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    .rules-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .control-panel {
        flex-direction: column;
        align-items: stretch;
    }
    .search-box {
        max-width: 100%;
    }
    .filter-group {
        flex-wrap: wrap;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .chart-containers-double {
        flex-direction: column;
        height: auto;
    }
    .sub-chart {
        height: 250px;
    }
}

@media (max-width: 600px) {
    .rules-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-item {
        justify-content: space-between;
    }
}
