/* --- 全局样式 --- */
:root {
    --bg-color: #0b1120;
    --card-bg: rgba(16, 33, 64, 0.75);
    --border-color: #1e3a8a;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --dhu-red: #c41e3a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 50%, #172a46 0%, #0b1120 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- 头部与导航 --- */
header {
    height: 80px;
    background: rgba(11, 17, 32, 0.95);
    border-bottom: 1px solid var(--accent-blue);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-shrink: 0;
}

.logo-area {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
    background: linear-gradient(to right, #fff, var(--dhu-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    padding: 5px 8px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--accent-cyan);
    text-shadow: 0 0 8px var(--accent-cyan);
}

/* 下拉菜单样式 */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(11, 17, 32, 0.98);
    border: 1px solid var(--accent-blue);
    border-radius: 8px;
    min-width: 200px;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    margin-top: 5px;
}

nav ul li:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    padding-left: 25px;
}

.dropdown-menu a i {
    margin-right: 8px;
    font-size: 12px;
}

/* --- 主体布局 --- */
.main-container {
    display: grid;
    grid-template-columns: 25% 1fr 25%;
    gap: 15px;
    padding: 15px;
    min-height: calc(100vh - 80px);
}

/* --- 通用卡片样式 --- */
.panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    position: relative;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    min-height: 280px;
    margin-bottom: 0;
}

/* 左右两侧列布局 */
.left-column, .right-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.panel-title {
    font-size: 16px;
    color: var(--accent-cyan);
    margin-bottom: 10px;
    border-left: 4px solid var(--accent-blue);
    padding-left: 10px;
    height: 24px;
    flex-shrink: 0;
}

/* --- 中间区域 --- */
.center-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 搜索框区域 */
.search-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.search-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 30px;
    background: linear-gradient(to right, #fff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-box {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.search-box input {
    flex: 1;
    padding: 15px 25px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.search-box button {
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    transform: scale(1.05);
}

/* 数据概览条 */
.data-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    flex-shrink: 0;
}

.data-card {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.data-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
    border-color: var(--accent-cyan);
}

.data-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    white-space: nowrap;
}

.data-value {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    font-family: 'Consolas', monospace;
}

/* --- 图表容器 --- */
.chart-container {
    flex: 1;
    width: 100%;
    min-height: 200px;
}

/* 右侧功能卡片 */
.feature-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.1));
    border: 1px solid var(--accent-blue);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    border-color: var(--accent-cyan);
}

.feature-card i {
    font-size: 36px;
    color: var(--accent-cyan);
    margin-bottom: 10px;
}

.feature-card h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- 响应式适配 --- */
@media screen and (max-width: 1200px) {
    .main-container {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .center-column {
        grid-column: 1 / -1;
        order: -1;
    }
}

@media screen and (max-width: 768px) {
    .main-container {
        display: flex;
        flex-direction: column;
    }

    .data-overview {
        grid-template-columns: repeat(2, 1fr);
    }

    nav ul {
        display: none;
    }

    .search-title {
        font-size: 28px;
    }
}

