/* Shared selection page styles, extracted from fund-building/index.jsp. */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2234;
    --bg-card-hover: #222d42;
    --border-color: #2a3548;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-orange: #f59e0b;
    --accent-purple: #8b5cf6;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
}
.header {
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-left { display: flex; align-items: center; gap: 16px; }
.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}
.back-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.page-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--text-primary), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}
.status-ready { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.status-loading { background: rgba(245, 158, 11, 0.15); color: var(--accent-orange); }
.main-container { max-width: 1600px; margin: 0 auto; padding: 24px 32px; }
.config-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}
.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.config-header:hover { opacity: 0.8; }
.config-title { font-size: 18px; font-weight: 600; }
.config-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s;
}
.config-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.config-toggle .arrow {
    transition: transform 0.3s;
}
.config-toggle.collapsed .arrow {
    transform: rotate(-90deg);
}
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}
.config-grid.collapsed {
    max-height: 0 !important;
    opacity: 0;
    margin-top: 0;
}
.config-item { background: var(--bg-secondary); border-radius: 8px; padding: 12px 16px; }
.config-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.config-value { font-size: 16px; font-weight: 600; color: var(--accent-cyan); }
.action-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; align-items: center; }
.action-btn-group { display: flex; gap: 10px; flex-shrink: 0; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.btn-primary { background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan)); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3); }
.btn-secondary { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-primary); }
.btn-secondary:hover { background: var(--bg-card-hover); }
.btn-success { background: linear-gradient(135deg, var(--accent-green), #059669); color: white; }
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.trading-days-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.trading-days-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.trading-days-title { font-size: 16px; font-weight: 600; }
.trading-days-list { display: flex; gap: 10px; flex-wrap: wrap; }
.trading-day-tag {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    line-height: inherit;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 70px;
}
.trading-day-tag:hover { background: var(--bg-card-hover); color: var(--text-primary); border-color: var(--accent-blue); }
.trading-day-tag.active { background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan)); color: white; border-color: transparent; }
.trading-day-tag.today { border-color: var(--accent-red); }
.trading-day-tag.today::after {
    content: '今';
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent-red);
    color: white;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 4px;
}
.trading-day-tag .day-info { font-size: 10px; color: var(--text-muted); }
.trading-day-tag.active .day-info { color: rgba(255,255,255,0.7); }
.trading-day-tag .stock-count {
    display: inline-block;
    margin-top: 2px;
    padding: 1px 6px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
    border-radius: 4px;
    font-size: 10px;
}
.trading-day-tag.active .stock-count { background: rgba(255,255,255,0.2); color: white; }
.trading-day-tag .calc-btn {
    margin-top: 4px;
    padding: 2px 8px;
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.trading-day-tag .calc-btn:hover {
    background: var(--accent-orange);
    color: white;
}
.trading-day-tag.active .calc-btn { background: rgba(255,255,255,0.2); color: white; border-color: white; }
.trading-day-tag.expand-btn { background: var(--bg-card); border: 1px dashed var(--border-color); color: var(--text-muted); }
.trading-day-tag.expand-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); border-color: var(--accent-cyan); }
/* 受限/锁定的交易日 tag */
.trading-day-tag.locked { opacity: 0.55; border-style: dashed; cursor: not-allowed; }
.trading-day-tag.locked:hover { background: var(--bg-card); color: var(--text-secondary); border-color: var(--border-color); }
.trading-day-tag.locked .lock-icon { margin-left: 4px; font-size: 11px; }
/* 股票数量颜色级别样式 - 柔和配色 */
.trading-day-tag.count-deep-red { background: rgba(185, 28, 28, 0.35); border-color: rgba(185, 28, 28, 0.5); }
.trading-day-tag.count-red { background: rgba(220, 38, 38, 0.25); border-color: rgba(220, 38, 38, 0.4); }
.trading-day-tag.count-light-red { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.3); }
.trading-day-tag.count-light-green { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.25); }
.trading-day-tag.count-green { background: rgba(16, 185, 129, 0.2); border-color: rgba(16, 185, 129, 0.35); }
.trading-day-tag.count-deep-green { background: rgba(4, 120, 87, 0.3); border-color: rgba(4, 120, 87, 0.45); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; text-align: center; }
.stat-value { font-size: 32px; font-weight: 700; color: var(--accent-cyan); margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-muted); }
.stock-table-container { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; }
.table-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border-color); }
.table-title { font-size: 16px; font-weight: 600; }
.table-actions { display: flex; gap: 8px; align-items: center; }
.filter-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--accent-cyan);
    text-decoration: none;
    background: rgba(6, 182, 212, 0.1);
    transition: all 0.2s;
}
.filter-link:hover { background: rgba(6, 182, 212, 0.2); }
.stock-table { width: 100%; border-collapse: collapse; }
.stock-table th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600; color: var(--text-muted); background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); white-space: nowrap; }
.stock-table td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--border-color); }
.stock-table .index-cell { width: 40px; text-align: center; color: var(--text-muted); font-size: 12px; }
.stock-table tr:hover { background: var(--bg-card-hover); }
.stock-table .checkbox-cell { width: 40px; text-align: center; }
.stock-name { font-weight: 600; color: var(--text-primary); }
.stock-symbol { font-size: 12px; color: var(--text-muted); }
.stock-link { text-decoration: none; display: block; cursor: pointer; transition: all 0.2s; }
.stock-link:hover .stock-name { color: var(--accent-blue); }
.stock-link:hover .stock-symbol { color: var(--accent-cyan); }
.price-up { color: var(--accent-red); }
.price-down { color: var(--accent-green); }
.industry-tag { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 12px; background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }
.monitor-btn { padding: 6px 12px; border-radius: 6px; font-size: 12px; cursor: pointer; border: none; transition: all 0.2s; }
.monitor-btn.not-monitored { background: rgba(245, 158, 11, 0.15); color: var(--accent-orange); }
.monitor-btn.not-monitored:hover { background: rgba(245, 158, 11, 0.25); }
/* 星级评级样式 */
.star-rating { color: #f59e0b; font-size: 11px; margin-left: 4px; letter-spacing: -1px; }
.dividend-pool-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 5px;
    border: 1px solid rgba(245, 158, 11, .35);
    border-radius: 4px;
    background: rgba(245, 158, 11, .12);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    vertical-align: middle;
}
/* 出现次数样式 */
.appear-count { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; background: rgba(100, 116, 139, 0.15); color: var(--text-secondary); }
.appear-count.appear-mid { background: rgba(245, 158, 11, 0.15); color: var(--accent-orange); }
.appear-count.appear-high { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }
.monitor-btn.monitored { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.industry-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 24px; }
.industry-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; }
.industry-name { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.industry-info { display: flex; justify-content: space-between; font-size: 13px; }
.industry-count { color: var(--accent-cyan); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-icon { font-size: 48px; margin-bottom: 16px; }
/* 板块切换标签 */
.sector-tabs { display: flex; gap: 8px; }
.sector-tab { padding: 6px 16px; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; border: 1px solid var(--border-color); background: var(--bg-secondary); color: var(--text-secondary); transition: all 0.2s; }
.sector-tab:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.sector-tab.active { background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan)); color: white; border-color: transparent; }
.sector-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.sector-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: all 0.2s; }
.sector-card:hover { background: var(--bg-card-hover); transform: translateY(-2px); border-color: var(--accent-blue); }
.sector-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sector-name { font-size: 13px; font-weight: 600; }
.sector-rank { display: flex; align-items: center; gap: 4px; font-size: 11px; }
.rank-up { color: var(--accent-red); font-weight: 500; }
.rank-down { color: var(--accent-green); font-weight: 500; }
.rank-new { color: var(--accent-orange); font-weight: 500; font-size: 10px; }
.rank-same { color: var(--text-muted); }
.sector-info { display: flex; justify-content: space-between; font-size: 12px; }
.stock-count-info { color: var(--accent-cyan); display: flex; align-items: center; gap: 4px; }
.count-up { color: var(--accent-red); font-size: 10px; font-weight: 500; }
.count-down { color: var(--accent-green); font-size: 10px; font-weight: 500; }

/* 板块趋势tooltip */
.sector-tooltip {
    display: none;
    position: fixed;
    z-index: 2000;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    min-width: 360px;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}
.sector-tooltip.show { display: block; }
.sector-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.sector-tooltip-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}
.sector-tooltip-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}
.sector-tooltip-close {
    width: 24px;
    height: 24px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}
.sector-tooltip-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.sector-tooltip-chart {
    width: 100%;
    height: 180px;
}
/* 手机端tooltip样式调整 */
@media (max-width: 1024px) {
    .sector-tooltip {
        min-width: 280px;
        max-width: calc(100vw - 24px);
        padding: 12px;
        left: 12px !important;
        right: 12px !important;
        max-height: 70vh;
        overflow-y: auto;
    }
    .sector-tooltip-chart {
        height: 150px;
    }
}

.toast { position: fixed; bottom: 24px; right: 24px; padding: 16px 24px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); z-index: 1000; display: none; }
.toast.show { display: block; animation: slideIn 0.3s ease; }
.toast.success { border-left: 4px solid var(--accent-green); }
.toast.error { border-left: 4px solid var(--accent-red); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
/* 确认弹窗样式 */
.confirm-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; align-items: center; justify-content: center; }
.confirm-modal.show { display: flex; }
.confirm-content { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 32px; max-width: 420px; text-align: center; animation: modalIn 0.2s ease; }
@keyframes modalIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirm-icon { font-size: 48px; margin-bottom: 16px; }
.confirm-title { font-size: 20px; font-weight: 600; margin-bottom: 12px; color: var(--text-primary); }
.confirm-message { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; }
.confirm-actions .btn { min-width: 100px; }
/* 表格容器横向滚动 */
.table-scroll-container { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* 手机端响应式（含折叠屏展开态，判断逻辑与 stocks/detail.jsp 完全一致：≤1024px / ≤768px / ≤480px） */
@media (max-width: 1024px) {
    body { font-size: 12px; }
    .header { padding: 8px 12px; }
    .header-left h1 { font-size: 16px; }
    .back-btn { padding: 6px 10px; font-size: 12px; }
    .main-container { padding: 8px; }
    /* 参数配置面板：整体压缩；折叠态把垂直空白彻底压平 */
    .config-panel { padding: 8px 10px; margin-bottom: 8px; border-radius: 10px; }
    .config-header { margin-bottom: 0; }
    .config-title { font-size: 13px; }
    .config-toggle { padding: 3px 8px; font-size: 11px; }
    /* 折叠状态下让面板只剩标题行的高度 */
    .config-panel.collapsed { padding: 6px 10px; }
    /* 展开时给一点小的上间距，折叠时由 .config-grid.collapsed 规则负责清零 */
    .config-grid { gap: 5px; margin-top: 8px; }
    .config-item { padding: 4px 6px; border-radius: 5px; }
    .config-label { font-size: 10px; margin-bottom: 0; line-height: 1.2; }
    .config-value { font-size: 11px; line-height: 1.3; }
    /* 折叠屏展开态（769~1024px）：把每个参数格子缩到约 2/3 大小，每行能放更多 */
    .config-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    /* 操作按钮：参考股票详情页「图形展示」按钮（padding:8px 14px; font-size:12px） */
    .action-bar { flex-direction: row; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
    .action-btn-group { display: flex; gap: 6px; width: auto; flex-shrink: 0; }
    .action-btn-group .btn {
        flex: 0 0 auto;
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 8px;
        gap: 5px;
        line-height: 1.2;
    }
    .action-btn-group .btn svg { width: 13px; height: 13px; flex-shrink: 0; }
    .action-bar > span { text-align: left; font-size: 11px; flex: 1; min-width: 0; }
    .trading-days-panel { padding: 10px; margin-bottom: 12px; }
    .trading-days-header { margin-bottom: 10px; }
    .trading-days-title { font-size: 14px; }
    .trading-days-list { gap: 6px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
    .trading-day-tag { padding: 6px 10px; font-size: 11px; min-width: fit-content; flex-shrink: 0; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
    .stat-card { padding: 8px 6px; }
    .stat-value { font-size: 16px; }
    .stat-label { font-size: 10px; }
    .stock-table-container { border-radius: 10px; }
    .table-header { flex-direction: row; justify-content: space-between; gap: 8px; align-items: center; padding: 10px 12px; }
    .table-title { font-size: 14px; }
    .table-actions { justify-content: flex-end; }
    .filter-link { padding: 5px 10px; font-size: 11px; }
    .stock-table { font-size: 11px; min-width: 850px; }
    .stock-table th, .stock-table td { padding: 6px 5px; white-space: nowrap; }
    .stock-table th:first-child, .stock-table td:first-child { position: sticky; left: 0; background: var(--bg-card); z-index: 1; }
    .stock-table th:nth-child(2), .stock-table td:nth-child(2) { position: sticky; left: 32px; background: var(--bg-card); z-index: 1; }
    .stock-name { font-size: 11px; }
    .stock-symbol { font-size: 9px; }
    .stock-table th { font-size: 10px; }
    .trading-day-tag .day-info { font-size: 9px; }
    .trading-day-tag .stock-count { font-size: 9px; padding: 1px 4px; }
    .trading-day-tag .calc-btn { font-size: 8px; padding: 1px 4px; }
    .industry-tag { padding: 2px 5px; font-size: 9px; }
    .monitor-btn { padding: 4px 6px; font-size: 10px; }
    /* 板块统计手机端优化 - 一行3个，更紧凑 */
    .sector-tabs { width: 100%; }
    .sector-tab { flex: 1; text-align: center; padding: 5px 8px; font-size: 11px; }
    .sector-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .sector-card { padding: 8px 10px; border-radius: 8px; }
    .sector-header { margin-bottom: 4px; }
    .sector-name { font-size: 11px; }
    .sector-rank { font-size: 9px; }
    .sector-info { font-size: 10px; }
    .stock-count-info { font-size: 10px; }
    .count-up, .count-down { font-size: 10px; }
    /* 确认弹窗手机端 */
    .confirm-content { margin: 12px; padding: 20px 14px; max-width: none; }
    .confirm-icon { font-size: 32px; margin-bottom: 12px; }
    .confirm-title { font-size: 16px; }
    .confirm-message { font-size: 12px; margin-bottom: 20px; }
    .confirm-actions { flex-direction: column; gap: 8px; }
    .confirm-actions .btn { width: 100%; padding: 10px 16px; }
}
/* 普通手机竖屏（≤768px）：3 列，参数格子进一步压缩 */
@media (max-width: 768px) {
    .config-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 4px; }
    .config-item { padding: 3px 5px; border-radius: 4px; }
    .config-label { font-size: 9px; margin-bottom: 0; line-height: 1.2; }
    .config-value { font-size: 11px; line-height: 1.3; }
    .action-btn-group .btn { padding: 7px 12px; font-size: 11px; }
    .action-btn-group .btn svg { width: 12px; height: 12px; }
    .action-bar > span { display: none; }
}
/* 更小屏幕 */
@media (max-width: 480px) {
    body { font-size: 11px; }
    .header-left h1 { font-size: 14px; }
    .stock-table { font-size: 10px; }
    .stock-table th, .stock-table td { padding: 5px 4px; }
    .stock-name { font-size: 10px; }
    .stock-symbol { font-size: 8px; }
    .back-btn { padding: 5px 8px; font-size: 11px; gap: 4px; }
    .page-title { font-size: 14px; }
    .config-panel { padding: 6px 8px; border-radius: 8px; }
    .config-panel.collapsed { padding: 5px 8px; }
    .config-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 3px; margin-top: 6px; }
    .config-item { padding: 3px 4px; border-radius: 4px; }
    .config-label { font-size: 9px; margin-bottom: 0; line-height: 1.15; }
    .config-value { font-size: 10px; line-height: 1.3; }
    .config-title { font-size: 12px; }
    .config-toggle { padding: 2px 6px; font-size: 10px; }
    .action-btn-group .btn { padding: 6px 10px; font-size: 11px; border-radius: 6px; }
    .action-btn-group .btn svg { width: 11px; height: 11px; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 4px; }
    .stat-card { padding: 6px 4px; }
    .stat-value { font-size: 14px; }
    .stat-label { font-size: 9px; }
    .trading-day-tag { padding: 5px 8px; font-size: 10px; }
    .trading-day-tag .day-info { display: none; }
    .trading-day-tag .stock-count { font-size: 9px; padding: 1px 4px; }
    .sector-stats { grid-template-columns: repeat(3, 1fr); gap: 4px; }
    .sector-card { padding: 6px 8px; border-radius: 6px; }
    .sector-header { margin-bottom: 3px; }
    .sector-name { font-size: 10px; }
    .sector-rank { font-size: 8px; }
    .sector-info { font-size: 9px; }
    .stock-count-info { font-size: 9px; }
}

/* 超小屏幕 - 360px */
@media (max-width: 360px) {
    .sector-stats { grid-template-columns: repeat(2, 1fr); gap: 4px; }
    .sector-name { font-size: 9px; }
    .sector-rank { font-size: 8px; }
    .sector-info { font-size: 8px; }
}
