        /* 全局样式 - 蓝色系 */
        :root {
            --primary-blue: #1e3c72; /* 深蓝背景 */
            --secondary-blue: #2a5298; /* 渐变蓝 */
            --accent-blue: #64b5f6; /* 亮蓝高亮 */
            --text-light: #ffffff;
            --border-color: #e0e6ed;
            --bg-light: #f5f7fa;
        }

        body, html {
            margin: 0;
            padding: 0;
            height: 100%;
            font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background-color: var(--bg-light);
            overflow: hidden; /* 禁止出现滚动条 */
        }

        /* 1. 顶部工具栏 */
        #toolbar {
            height: 60px;
            background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
            color: var(--text-light);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 100;
            box-sizing: border-box;
        }

        /* 左侧搜索 - 增强版 */
        .search-box {
            position: relative; /* 关键：用于定位下拉菜单 */
            width: 200px;
        }
        .search-box input {
            width: 100%;
            padding: 8px 15px 8px 35px;
            border-radius: 20px;
            border: none;
            outline: none;
            background: rgba(255,255,255,0.2);
            color: white;
            transition: background 0.3s;
            box-sizing: border-box; /* 确保padding不撑大宽度 */
        }
        .search-box input::placeholder { color: rgba(255,255,255,0.6); }
        .search-box input:focus { background: rgba(255,255,255,0.3); }
        .search-box i.search-icon {
            position: absolute;
            left: 12px;
            top: 50%; /* 微调位置 */
            color: rgba(255,255,255,0.6);
	    transform: translateY(-50%);
            pointer-events: none;
        }

        /* 自动补全下拉列表样式 */
        .search-results {
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            margin-top: 5px;
            padding: 0;
            list-style: none;
            z-index: 1000;
            display: none; /* 默认隐藏 */
            max-height: 300px;
            overflow-y: auto;
        }
        .search-results li {
            padding: 10px 15px;
            color: #333;
            font-size: 13px;
            cursor: pointer;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            justify-content: space-between;
        }
        .search-results li span.sub-text { color: #999; font-size: 12px; }
        .search-results li:last-child { border-bottom: none; }
        
        /* 鼠标悬停样式 */
        .search-results li:hover {
            background-color: #f5f7fa;
            color: var(--secondary-blue);
        }

        /* 键盘选中激活样式 */
        .search-results li.active {
            background-color: var(--secondary-blue) !important; 
            color: #fff !important;
        }
        .search-results li.active span.sub-text {
            color: #eee !important; 
        }

        /* 滚动条美化 */
        .search-results::-webkit-scrollbar { width: 6px; }
        .search-results::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

        /* 中间标题 & 简介 Tooltip */
        .title-display {
            font-size: 18px;
            font-weight: bold;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
            position: relative; /* 为tooltip定位 */
            cursor: help; /* 提示可交互 */
        }
        
        .stock-desc-popup {
            display: none;
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            width: 320px; 
            background: rgba(0, 0, 0, 0.9); 
            color: #fff;
            padding: 12px 15px;
            border-radius: 6px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            margin-top: 15px; 
            z-index: 1000;
            font-size: 13px;
            font-weight: normal;
            line-height: 1.6;
            text-align: left; 
            white-space: normal; 
        }
        
        .stock-desc-popup::after {
            content: "";
            position: absolute;
            bottom: 100%;
            left: 50%;
            margin-left: -6px;
            border-width: 6px;
            border-style: solid;
            border-color: transparent transparent rgba(0,0,0,0.9) transparent;
        }

        .title-display:hover .stock-desc-popup {
            display: block;
            animation: fadeInTop 0.3s;
        }

        @keyframes fadeInTop {
            from { opacity: 0; transform: translateX(-50%) translateY(5px); }
            to { opacity: 1; transform: translateX(-50%) translateY(0); }
        }

        /* 右侧滑块 */
        .controls-right {
            display: flex;
            align-items: center;
            gap: 20px;
            width: 400px; 
        }

        #year-slider {
            flex-grow: 1;
            height: 10px;
        }
        /* 自定义滑块样式适配蓝色主题 */
        .noUi-connect { background: var(--accent-blue); }
        .noUi-handle {
            height: 18px;
            width: 18px;
            top: -5px;
            right: -9px;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 0 5px rgba(0,0,0,0.3);
            cursor: pointer;
        }
        .noUi-handle:before, .noUi-handle:after { display: none; }
        .noUi-tooltip {
            font-size: 12px;
            padding: 2px 5px;
            background: rgba(0,0,0,0.7);
            color: #fff;
            border: none;
            border-radius: 4px;
        }

        /* 2. 图表区域容器 */
        #dashboard {
            margin-top: 60px; 
            height: calc(100vh - 60px); 
            display: flex;
            flex-wrap: wrap;
            padding: 10px 10px 30px 10px; 
            box-sizing: border-box;
            background-color: var(--bg-light);
        }

        .chart-container {
            width: 50%;
            height: 50%;
            padding: 5px;
            box-sizing: border-box;
        }

        .chart-box {
            width: 100%;
            height: 100%;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            position: relative;
            overflow: hidden;
        }
	.footer-bar {
            position: fixed;
            bottom: 0; /* 改为0，贴底 */
            left: 0;
            width: 100%;
            height: 30px; /* 固定高度 */
            background-color: #f5f7fa; /* 增加浅色背景区分 */
            border-top: 1px solid #e0e6ed; /* 增加顶部分隔线 */
            display: flex;
            justify-content: space-between; /* 左右分开 */
            align-items: center;
            padding: 0 20px; /* 左右留白 */
            box-sizing: border-box;
            font-size: 12px;
            color: #606266;
            z-index: 200;
            pointer-events: auto; /* 恢复整体可交互，因为有背景了 */
        }
        
        /* 左侧容器：分享 + 免责 */
        .footer-left {
            display: flex;
            align-items: center;
            gap: 15px;
            flex-shrink: 0; /* 防止被右侧挤压 */
        }

        .footer-item {
            cursor: pointer;
            position: relative;
            transition: color 0.3s;
        }
        .footer-item:hover {
            color: var(--primary-blue);
        }
        
        .separator {
            color: #dcdfe6;
            cursor: default;
        }

        /* 右侧容器：跑马灯 */
        .footer-right {
            flex-grow: 1; /* 占据剩余空间 */
            margin-left: 40px; /* 距离左侧的间距 */
            overflow: hidden; /* 隐藏超出部分 */
            white-space: nowrap;
            position: relative;
            color: #909399;
        }

        /* CSS 动画实现的跑马灯 */
        .marquee-text {
            display: inline-block;
            padding-left: 100%; /* 从最右侧开始 */
            animation: marquee 120s linear infinite;
        }

	.marquee-text:hover {
            animation-play-state: paused;
            cursor: default;
        }

        @keyframes marquee {
            0%   { transform: translate(0, 0); }
            100% { transform: translate(-100%, 0); }
        }
        /* 免责声明弹出框 */
        .disclaimer-popup {
            display: none;
            position: absolute;
            bottom: 30px; 
            left: 50%;
            transform: translateX(-50%);
            width: 280px;
            background: rgba(0, 0, 0, 0.85);
            color: #fff;
            padding: 10px 15px;
            border-radius: 6px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            text-align: left;
            line-height: 1.6;
            font-size: 12px;
            cursor: default;
        }
        .disclaimer-popup::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -6px;
            border-width: 6px;
            border-style: solid;
            border-color: rgba(0,0,0,0.85) transparent transparent transparent;
        }

        .disclaimer-trigger:hover .disclaimer-popup {
            display: block;
            animation: fadeInBottom 0.3s;
        }

        @keyframes fadeInBottom {
            from { opacity: 0; transform: translateX(-50%) translateY(5px); }
            to { opacity: 1; transform: translateX(-50%) translateY(0); }
        }

        /* Toast 提示 */
        #toast {
            visibility: hidden;
            min-width: 250px;
            background-color: #333;
            color: #fff;
            text-align: center;
            border-radius: 4px;
            padding: 12px;
            position: fixed;
            z-index: 1000;
            left: 50%;
            bottom: 50px;
            transform: translateX(-50%);
            font-size: 14px;
            opacity: 0;
            transition: opacity 0.3s, bottom 0.3s;
        }
        #toast.show {
            visibility: visible;
            opacity: 1;
            bottom: 70px;
        }
