body {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", "Orbitron", monospace, sans-serif;
    background: linear-gradient(135deg, #0a0a23 0%, #1a1a3e 25%, #2d1b69 50%, #1a1a3e 75%, #0a0a23 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #fff;
    overflow: hidden;
    position: relative;
}

/* 动态背景渐变动画 */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 添加科技感网格背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* 添加粒子效果背景 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(0, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(0, 150, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 0, 150, 0.2), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(0, 255, 150, 0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 0, 0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 3s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.container {
    width: 100vw;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: auto 55fr 45fr;
    gap: 20px;
}
.header {
    grid-column: 1 / 4;
    text-align: center;
    font-size: 28px;
    color: #fff;
    font-weight: bold;
    padding: 15px;
    background: linear-gradient(135deg, rgba(0,20,40,0.9), rgba(0,80,160,0.7), rgba(0,40,80,0.8));
    border-radius: 12px;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.1);
    margin-bottom: 10px;
    position: relative;
    border: 1px solid rgba(0, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    animation: headerGlow 2s ease-in-out infinite alternate;
}

@keyframes headerGlow {
    0% { 
        box-shadow: 
            0 0 20px rgba(0, 255, 255, 0.3),
            inset 0 1px 0 rgba(255,255,255,0.1),
            inset 0 -1px 0 rgba(0,0,0,0.1);
    }
    100% { 
        box-shadow: 
            0 0 30px rgba(0, 255, 255, 0.5),
            inset 0 1px 0 rgba(255,255,255,0.2),
            inset 0 -1px 0 rgba(0,0,0,0.1);
    }
}
.header:before, .header:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-style: solid;
    border-color: #00ffff;
    animation: cornerPulse 2s ease-in-out infinite;
}
.header:before {
    top: 8px;
    left: 8px;
    border-width: 3px 0 0 3px;
}
.header:after {
    bottom: 8px;
    right: 8px;
    border-width: 0 3px 3px 0;
}

@keyframes cornerPulse {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.1);
    }
}
.chart-container {
    background: linear-gradient(145deg, rgba(5, 25, 45, 0.9), rgba(10, 40, 70, 0.8));
    border-radius: 15px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 15px;
    position: relative;
    border: 1px solid rgba(0, 255, 255, 0.3);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.chart-container:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.6);
}

/* 移除扫描线效果，使用纵向数据流动 */
.chart-container::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.8), transparent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    z-index: 2;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.5);
    }
}
.chart-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #00ffff;
    padding: 8px 15px;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.1), transparent);
    border-left: 4px solid #00ffff;
    border-radius: 0 8px 8px 0;
    text-shadow: 
        0 0 10px rgba(0, 255, 255, 0.8),
        0 0 20px rgba(0, 255, 255, 0.4);
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    z-index: 3;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { 
        text-shadow: 
            0 0 10px rgba(0, 255, 255, 0.8),
            0 0 20px rgba(0, 255, 255, 0.4);
        border-left-color: rgba(0, 255, 255, 0.8);
    }
    100% { 
        text-shadow: 
            0 0 15px rgba(0, 255, 255, 1),
            0 0 30px rgba(0, 255, 255, 0.6);
        border-left-color: rgba(0, 255, 255, 1);
    }
}
.map-container {
    grid-column: 2;
    grid-row: 2;
}
.growth-container {
    grid-column: 2;
    grid-row: 3;
}
.platform-switch {
    display: flex;
    margin: 5px 0 5px 10px;
    flex-wrap: wrap;
}
.platform-label {
    padding: 4px 8px;
    margin-right: 8px;
    margin-bottom: 4px;
    background-color: rgba(0, 50, 100, 0.5);
    border: 1px solid rgba(0, 150, 255, 0.3);
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.platform-label:hover {
    background-color: rgba(0, 100, 200, 0.6);
    box-shadow: 0 0 5px rgba(0, 150, 255, 0.5);
}
.platform-label.active {
    background-color: rgba(0, 150, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 8px rgba(0, 150, 255, 0.8);
}
.chart {
    width: 100%;
    height: calc(100% - 40px);
}
.growth-line {
    height: calc(100% - 10px);
}
.rank-info {
    position: absolute;
    top: 50px;
    left: 50px;
    font-size: 80px;
    font-weight: bold;
    color: #ffc107;
}
.product-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    height: calc(100% - 60px);
}
.product-icon {
    background-color: rgba(0, 30, 60, 0.4);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    border: 1px solid rgba(0, 150, 255, 0.3);
    transition: all 0.3s ease;
}
.product-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.5);
    background-color: rgba(0, 50, 100, 0.6);
}
.product-icon img {
    width: 60%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 50%;
    border: 2px solid rgba(0, 150, 255, 0.5);
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.1);
}
.product-name {
    font-size: 14px;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 150, 255, 0.5);
}
.title-left{
    float:left;
}
.title-right{
    float:right;
    display: flex;
    align-items: center;
}
.title-clear{
    clear:both;
}
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}
.search-input {
    background-color: rgba(0, 30, 60, 0.5);
    border: 1px solid rgba(0, 150, 255, 0.4);
    border-radius: 4px;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    width: 150px;
    outline: none;
    transition: all 0.3s ease;
}
.search-input:focus {
    background-color: rgba(0, 40, 80, 0.7);
    border-color: rgba(0, 180, 255, 0.8);
    box-shadow: 0 0 5px rgba(0, 150, 255, 0.5);
}
.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
.search-btn {
    background-color: rgba(0, 100, 200, 0.7);
    border: 1px solid rgba(0, 150, 255, 0.4);
    border-radius: 4px;
    color: #fff;
    margin-left: 5px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.search-btn:hover {
    background-color: rgba(0, 120, 255, 0.8);
    box-shadow: 0 0 5px rgba(0, 150, 255, 0.7);
}

 /* 热销产品列表样式 */
 .product-list-container {
    height: 100%;
    overflow: hidden;
    position: relative;
    background-color: rgba(0, 20, 40, 0.3);
    border-radius: 5px;
}

.product-list-scroll {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s;
}

.product-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.product-item .product-name {
    flex: 2;
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.product-item .product-sales {
    flex: 1;
    color: #4caf50;
    font-size: 14px;
    text-align: right;
}

.product-item .product-price {
    flex: 1;
    color: #ff9800;
    font-size: 14px;
    text-align: right;
}

/* 表头样式 */
.product-list-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: rgba(0, 30, 60, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: bold;
    color: #fff;
}

.product-list-header .header-name {
    flex: 2;
}

.product-list-header .header-sales {
    flex: 1;
    text-align: right;
}

.product-list-header .header-price {
    flex: 1;
    text-align: right;
}

/* 无数据状态 */
.product-item.no-data {
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    height: 60px;
}

/* 年份选择器样式 */
.year-selector {
    display: inline-flex;
    margin-left: 0;
    background: linear-gradient(145deg, rgba(0, 40, 80, 0.8), rgba(0, 60, 120, 0.6));
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.year-btn {
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    background: transparent;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.year-btn:hover {
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.2), rgba(0, 150, 255, 0.2));
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.3);
}

.year-btn.active {
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.3), rgba(0, 200, 255, 0.2));
    color: #00ffff;
    text-shadow: 
        0 0 10px rgba(0, 255, 255, 0.8),
        0 0 20px rgba(0, 255, 255, 0.4);
    box-shadow: 
        inset 0 2px 4px rgba(0, 255, 255, 0.3),
        0 0 10px rgba(0, 255, 255, 0.4);
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 20px;
    height: 60px;
}

.logo-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.logo {
    height: 28px;
    margin-left: 10px;
    max-width: 100%;
}

.title-container {
    flex: 2;
    text-align: center;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

.nav-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-button {
    background: linear-gradient(145deg, rgba(0, 100, 200, 0.8), rgba(0, 150, 255, 0.6));
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.nav-button:hover {
    background: linear-gradient(145deg, rgba(0, 150, 255, 0.9), rgba(0, 200, 255, 0.7));
    transform: translateY(-2px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(0, 255, 255, 0.4);
    border-color: rgba(0, 255, 255, 0.6);
    text-shadow: 
        0 0 8px rgba(0, 255, 255, 0.8),
        0 0 16px rgba(0, 255, 255, 0.4);
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-button:hover::before {
    left: 100%;
}

/* 移动端适配 */
@media screen and (max-width: 1024px) {
    body {
        overflow-y: auto;
        overflow-x: hidden; /* 防止水平滚动 */
    }
    
    .container {
        height: auto;
        display: flex;
        flex-direction: column;
        padding: 10px;
        gap: 15px;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden; /* 防止水平滚动 */
    }
    
    .chart-container {
        width: 100%;
        margin-bottom: 15px;
        height: 350px;
        box-sizing: border-box;
        overflow: hidden; /* 防止内容溢出 */
    }
    
    .chart {
        height: calc(100% - 30px);
        width: 100%;
    }
    
    .header {
        padding: 5px;
        margin-bottom: 10px;
        height: auto;
        width: 100%;
        box-sizing: border-box;
    }
    
    .title-container {
        font-size: 18px;
    }
    
    .logo {
        height: 20px;
    }
    
    .nav-button {
        font-size: 12px;
        padding: 3px;
    }
    
    .chart-title {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .year-selector {
        margin-left: 5px;
    }
    
    .year-btn {
        padding: 1px 4px;
        font-size: 10px;
    }
    
    /* 移动端网格布局重置 */
    .map-container, .growth-container {
        grid-column: auto;
        grid-row: auto;
    }
}

/* 小屏幕手机适配 */
@media screen and (max-width: 480px) {
    .container {
        padding: 5px;
        gap: 10px;
        min-width: 100%;
        max-width: 100vw;
    }
    
    .chart-container {
        height: 300px;
        margin-bottom: 10px;
        padding: 5px;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .header {
        flex-direction: column;
        height: auto;
        padding: 5px 0;
        width: 100%;
    }
    
    .logo-container, .title-container, .nav-container {
        width: 100%;
        justify-content: center;
        margin: 2px 0;
    }
    
    .title-container {
        font-size: 16px;
        order: 1;
    }
    
    .logo-container {
        order: 2;
    }
    
    .nav-container {
        order: 3;
    }
    
    .chart-title {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .year-selector {
        margin-left: 0;
        margin-top: 5px;
    }
    
    /* 调整图表大小以适应小屏幕 */
    .chart {
        width: 100%;
        min-width: 0;
    }
    
    /* 调整图例位置 */
    .echarts-legend {
        font-size: 10px !important;
    }

    .nav-container{
        display: none;
    }
}