/* ========== 1. 全局重置与基础样式（合并自第一、四、五份） ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    /*overflow: hidden;   */
    /* 热力图全屏需要，其他页面若需滚动可单独覆盖 */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #0f172a;
    line-height: 1.5;
    background: var(--background-color, #ffffff);  /* 第四份变量，白色背景 */
}

/* ========== 2. 导航栏（源自第一份） ========== */
.navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e2e8f0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo-area {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff0000, #703f3f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #3b82f6;
}

.search-form {
    display: flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 40px;
    align-items: center;
}

.search-form input {
    border: none;
    background: transparent;
    padding: 6px 8px;
    font-size: 0.9rem;
    outline: none;
    width: 140px;
}

.search-form button {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    font-size: 1rem;
}

/* ========== 3. 容器与通用组件（源自第一份） ========== */
.theme-name{
    color:red;
    font-weight: bold;
}
.theme-desc{
    text-indent: 2em;
}
.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 24px;
}

.card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.02);
    padding: 28px 32px;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}
.card .related-stocks{
    display: flex; flex-wrap: wrap; gap:12px;
}
.card .related-stocks .related-stock-item{
    background:#f1f5f9; border-radius:20px; padding:6px 14px;
}
h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    /*border-left: 5px solid #3b82f6;*/
    /*padding-left: 18px;*/
    color: #0f172a;
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1e293b;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 14px;
    align-items: baseline;
    border-bottom: 1px dashed #eef2ff;
    padding-bottom: 8px;
}

.info-label {
    width: 110px;
    flex-shrink: 0;
    color: #5b6e8c;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.info-value {
    flex: 1;
    font-weight: 500;
    color: #0f172a;
    word-break: break-word;
}

.stat-highlight {
    background: linear-gradient(135deg, #fef9e6 0%, #fff6e0 100%);
    border-radius: 20px;
    padding: 18px 12px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.1s ease;
}

.stat-highlight:hover {
    transform: translateY(-2px);
}

.stat-highlight .label {
    font-size: 0.75rem;
    color: #b45309;
    letter-spacing: 0.5px;
}

.stat-highlight .value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 6px;
    color: #1e293b;
}

.map-container {
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #e2e8f0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

th, td {
    padding: 12px 10px;
    border-bottom: 1px solid #eef2ff;
    text-align: left;
}

th {
    background: #f8fafc;
    font-weight: 600;
    color: #334155;
}

.detail-table-container {
    max-height: 500px;
    overflow-y: auto;
    border-radius: 20px;
    border: 1px solid #eef2ff;
}

.chart-container {
    width: 100%;
    height: 500px;
    margin-top: 12px;
    background: #ffffff;
    border-radius: 24px;
    padding: 8px;
    position: relative;
}

.pattern-filter-bar {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.trendline-toggle,
.sensitivity-slider,
.fullscreen-btn,
.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 16px;
    font-size: 0.8rem;
    color: #475569;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 22px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #3b82f6;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.sensitivity-value {
    font-size: 0.7rem;
    min-width: 30px;
}

.fullscreen-btn,
.export-btn {
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 20px;
    background: white;
    border: 1px solid #cbd5e1;
}

.fullscreen-btn:hover,
.export-btn:hover {
    background: #eef2ff;
}

.footer {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}

/* ========== 4. 概念页面特有样式（源自第二份） ========== */
.subtitle {
    color: #6b7280;
    margin-bottom: 16px;
    border-left: 4px solid #3b82f6;
    padding-left: 12px;
}

.stats {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.stat-badge {
    background: #eef2ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #1e40af;
}

.stock-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stock-row {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.stock-row:hover {
    background: #fafcff;
    border-color: #cbd5e1;
}

.stock-info {
    flex: 0.2;
    min-width: 95px;
}

.stock-code {
    font-weight: 700;
    font-size: 1.4rem;
    color: #111827;
}

.stock-name {
    font-size: 1.1rem;
    color: #6b7280;
    margin-top: 4px;
}

.price-data {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 6;
    flex-direction: row;
    align-content: stretch;
    justify-content: space-between;
}

.price-item {
    text-align: center;
    min-width: 65px;
}

.price-label {
    font-size: 1.0rem;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.5px;
}

.price-value {
    font-weight: 600;
    font-size: 1.4rem;
    margin-top: 2px;
}

.positive {
    color: #ef4444;
}

.negative {
    color: #10b981;
}

.indicators {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    flex: 2;
    justify-content: flex-end;
}

.indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    background: #f3f4f6;
}

.indicator.up {
    background: #fee2e2;
    color: #dc2626;
}

.indicator.down {
    background: #e6f7e6;
    color: #16a34a;
}

.stock-code a,
.stock-name a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

.stock-code a:hover,
.stock-name a:hover {
    color: #1d4ed8;
    text-decoration: underline;
    cursor: pointer;
}

.pagination {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.pagination a,
.pagination span.current {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 4px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #3b82f6;
}

.pagination span.current {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* ========== 5. 热力图页面样式（源自第四份，移除重复的全局重置、html/body、.logo） ========== */
:root {
    --primary-color: #1a56db;
    --primary-dark: #1e429f;
    --success-color: #16a34a;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --background-color: #ffffff;
    --card-background: #f9fafb;
    --text-primary: #111827;
    --text-secondary: #374151;
    --border-color: #d1d5db;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.header {
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    z-index: 10;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.header-left {
    padding-left: 14px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ff0000;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
}

.header h1 i {
    color: #ff0000;
}

.stats-bar {
    display: flex;
    gap: 2rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.125rem;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.classification-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border-color);
    margin-left: 1rem;
}

.classification-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.classification-options {
    display: flex;
    gap: 0.5rem;
}

.classification-option {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.classification-option input[type="radio"] {
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
}

.classification-option label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
}

.classification-option input[type="radio"]:checked + label {
    color: #ff0000;
    font-weight: 500;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 400px;
    margin: 0 1rem;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-box {
    width: 100%;
    padding: 0.625rem 2.75rem 0.625rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background-color: var(--card-background);
    transition: all 0.2s ease;
}

.search-box:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
    background-color: white;
}

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

.search-icon {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
    margin-top: 0.25rem;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: var(--card-background);
}

.search-result-item.active {
    background-color: rgba(26, 86, 219, 0.1);
    color: #ff0000;
}

.search-highlight {
    color: #ff0000;
    font-weight: 600;
}

.search-stats {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-background);
}

.no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.clear-search {
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    display: none;
}

.clear-search.visible {
    display: block;
}

.clear-search:hover {
    color: var(--danger-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.time-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ff0000;
}

.controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn {
    padding: 0.5rem 0.875rem;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:hover {
    background: #f3f4f6;
    border-color: #ff0000;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: #ff0000;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-icon {
    padding: 0.5rem;
    width: 2rem;
    height: 2rem;
    justify-content: center;
}

.main-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 0;
}

#container {
    width: 100%;
    height: 100%;
}

.status-container {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.status-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s ease;
    padding: 0.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

.loading-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loading-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(55, 65, 81, 0.2);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-bar {
    height: 3px;
    background: rgba(55, 65, 81, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #3b82f6);
    width: 0%;
    transition: width 0.5s ease;
}

.legend-container {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    z-index: 900;
}

.legend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.legend-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    text-align: center;
}

.legend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.legend-color {
    width: 100%;
    height: 20px;
    border-radius: var(--radius-sm);
}

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

/* 热力图页面响应式 */
@media (max-width: 1200px) {
    .stats-bar {
        gap: 1.5rem;
    }
    .legend-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .header {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    .header-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        width: 100%;
    }
    .header-left {
        width: 100%;
        justify-content: space-between;
    }
    .stats-bar {
        display: none;
    }
    .classification-selector {
        display: none;
    }
    .header-center {
        order: 3;
        max-width: 100%;
        margin: 0.5rem 0 0 0;
    }
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    .controls {
        width: 100%;
        justify-content: flex-end;
    }
    .status-container {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .status-card {
        max-width: 100%;
    }
    .legend-container {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 0.5rem 1rem;
        width: calc(100% - 2rem);
    }
}

@media (max-width: 768px) {
    .classification-selector {
        display: none;
    }
    .stats-bar {
        display: none;
    }
}

/* 工具提示优化 */
.echarts-tooltip {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 1rem !important;
}

/* 滚动条美化（全局） */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========== 6. 筛选面板样式（源自第五份，移除重复的 html/body 全局重置） ========== */
#main-container {
    display: flex;
    height: 100%;
    width: 100%;
}

#filter-panel {
    position: relative;
    width: 180px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 5px;
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.08);
    z-index: 100;
    border-right: 1px solid #e8ecef;
    overflow-y: auto;
    height: 100%;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
}

#filter-panel h2 {
    text-align: center;
    margin: 0 0 0px 0;
    font-size: 36px;
    font-weight: 600;
    color: #1a2a6c;
    padding-bottom: 4px;
    background: linear-gradient(135deg, #ff0000, #703f3f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#filter-panel h3 {
    margin-left: 12px;
    margin-top: 0px;
    margin-bottom: 3px;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #e8ecef;
    padding-bottom: 10px;
    text-align: left;
    position: relative;
}

#filter-panel h3:before {
    content: "";
    position: absolute;
    left: -5px;
    top: 5px;
    height: 16px;
    width: 4px;
    background: linear-gradient(to bottom, #ff0000, #ffd4d4);
    border-radius: 2px;
}

.panel-section {
    margin-bottom: 6px;
    background: white;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.board-options-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.board-option {
    margin-bottom: 0;
}

.board-option:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
    border-color: #d0d8ff;
    transform: translateX(3px);
}

.board-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #2c3e50;
    margin: 0;
}

.board-option input {
    width: 16px;
    height: 16px;
    accent-color: #ff0000;
    cursor: pointer;
}

#time-slider {
    width: 100%;
    height: 6px;
    margin: 15px 0;
    background: #e8ecef;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

#time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #1a2a6c, #3a5fc8);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#time-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #1a2a6c, #3a5fc8);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.time-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.time-buttons button {
    padding: 8px 12px;
    border: 1px solid #d0d8ff;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.time-buttons button:hover {
    background: #f0f4ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.time-buttons button.active {
    background: linear-gradient(135deg, #1a2a6c, #3a5fc8);
    color: white;
    border-color: #1a2a6c;
    box-shadow: 0 2px 8px rgba(26, 42, 108, 0.3);
}

.current-time {
    text-align: center;
    margin-top: 9px;
    font-size: 14px;
    font-weight: 600;
    color: #1a2a6c;
    background: #f0f4ff;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #d0d8ff;
}

.stats {
    font-size: 14px;
    color: #2c3e50;
    border-top: 1px solid #e8ecef;
    padding-top: 15px;
    text-align: center;
    font-weight: 600;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 0px;
}

#stock-count {
    color: #e4393c;
    font-size: 18px;
    font-weight: 700;
    display: inline-block;
    background: #fff0f0;
    border-radius: 4px;
}

.refresh-info {
    margin-top: 9px;
    font-size: 11px;
    color: #6c757d;
    text-align: center;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    border: 1px dashed #dee2e6;
}

.search-section h3 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

#stock-search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d8ff;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s ease;
    background: white;
}

#stock-search-input:focus {
    outline: none;
    border-color: #1a2a6c;
    box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.1);
}

.search-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

#search-btn, #clear-search-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#search-btn {
    background: linear-gradient(135deg, #1a2a6c, #3a5fc8);
    color: white;
}

#search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 42, 108, 0.3);
}

#clear-search-btn {
    background: #6c757d;
    color: white;
}

#clear-search-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

#search-results {
    border: 1px solid #e8ecef;
    border-radius: 6px;
    padding: 8px;
    background: white;
    margin-top: 10px;
    max-height: 120px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-result-item {
    padding: 8px;
    margin: 4px 0;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.search-result-item:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
    border-color: #d0d8ff;
    transform: translateX(2px);
}

.search-result-item.highlighted {
    background: linear-gradient(135deg, #1a2a6c, #3a5fc8);
    color: white;
    border-color: #1a2a6c;
}

#filter-panel p:last-of-type {
    font-size: 10px;
    text-align: center;
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e8ecef;
    margin: 0;
}

#filter-panel p:last-of-type a {
    color: #1a2a6c;
    text-decoration: none;
}

#filter-panel p:last-of-type a:hover {
    text-decoration: underline;
}

#filter-panel::-webkit-scrollbar {
    width: 6px;
}

#filter-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#filter-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1a2a6c, #3a5fc8);
    border-radius: 3px;
}

#filter-panel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0f1a4d, #2a4bbf);
}

/* 第五份响应式 */
@media (max-width: 1200px) {
    #filter-panel {
        width: 180px;
        padding: 12px;
    }
}

@media (max-width: 900px) {
    #main-container {
        flex-direction: column;
    }
    #filter-panel {
        width: 100%;
        height: auto;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid #e8ecef;
        padding: 15px;
    }
    .panel-section {
        margin-bottom: 15px;
    }
    .time-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
    .search-buttons {
        flex-direction: column;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-section {
    animation: fadeIn 0.5s ease-out;
}

.panel-section h3:after {
    content: "◆";
    font-size: 10px;
    color: #ff2323;
    margin-left: 8px;
    opacity: 0.6;
}

#sponsor-modal {
    display: flex;
}

#sponsor-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

#sponsor-ok-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 42, 108, 0.3);
}

#sponsor-modal img {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
}

.indicator-filters {
    margin-top: 9px;
}

.indicator-filter {
    margin-bottom: 9px;
    padding: 12px 12px 0px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e8ecef;
}

.indicator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
}

.indicator-range {
    margin: 0 auto;
    color: #1a2a6c;
    font-weight: 700;
    font-size: 19px;
}

.double-slider-container {
    position: relative;
    height: 20px;
    margin: 0px 0 5px 0;
}

.double-slider-container input[type="range"] {
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
}

.double-slider-container input[type="range"]::-webkit-slider-thumb {
    pointer-events: all;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #1a2a6c, #3a5fc8);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    -webkit-appearance: none;
}

.double-slider-container input[type="range"]::-moz-range-thumb {
    pointer-events: all;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #1a2a6c, #3a5fc8);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.slider-track {
    position: absolute;
    height: 6px;
    background: #e8ecef;
    border-radius: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
}

.slider-track::after {
    content: '';
    position: absolute;
    height: 100%;
    background: linear-gradient(135deg, #1a2a6c, #3a5fc8);
    border-radius: 3px;
    left: var(--track-left, 0%);
    right: var(--track-right, 0%);
}

.double-slider-container.disabled input[type="range"] {
    pointer-events: none;
    opacity: 0.5;
}

.double-slider-container.disabled .slider-track::after {
    background: #b0b0b0;
}

.double-slider-container.disabled input[type="range"]::-webkit-slider-thumb {
    background: #b0b0b0;
    cursor: not-allowed;
}

.double-slider-container.disabled input[type="range"]::-moz-range-thumb {
    background: #b0b0b0;
    cursor: not-allowed;
}

.indicator-toggle {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.indicator-toggle label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    margin-right: 8px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #1a2a6c;
}

input:checked + .toggle-slider:before {
    transform: translateX(16px);
}

.filter-buttons {
    margin-top: -13px;
}

#apply-indicator-filter:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 42, 108, 0.3);
}

#reset-indicator-filter:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* ========== 7. 媒体查询（来自第一份和第二份） ========== */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    .card {
        padding: 20px;
    }
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .info-label {
        width: 90px;
    }
    .chart-container {
        height: 480px;
    }
}

@media (max-width: 1200px) {
    .stock-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .indicators {
        justify-content: flex-start;
        margin-top: 8px;
    }
    .price-data {
        gap: 12px;
    }
    .price-item {
        min-width: 55px;
    }
}