/* 导航栏样式 */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(8, 16, 35, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(66, 133, 244, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    padding: 14px 24px;
}

.nav-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.nav-brand i {
    font-size: 24px;
    color: #00a8ff;
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.nav-item.active {
    background: rgba(3, 169, 244, 0.15);
    color: #03a9f4;
    border-color: rgba(3, 169, 244, 0.5);
}

.nav-item i {
    font-size: 16px;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.nav-refresh-btn {
    padding: 10px 28px;
    background: #03a9f4;
    border: none;
    border-radius: 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-refresh-btn:hover {
    background: #0293d8;
    transform: translateY(-1px);
}

.nav-refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.nav-filter-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 220px;
}

.nav-filter-item label {
    font-size: 13px;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-filter-item label i {
    color: #00d1ff;
}

.dashboard-stage {
    min-height: calc(100vh - 60px);
    padding: 130px 24px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-canvas {
    width: min(1700px, 95vw);
    aspect-ratio: 16 / 9;
    background: rgba(4, 11, 31, 0.9);
    border-radius: 30px;
    border: 1px solid rgba(0, 168, 255, 0.25);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    padding: 22px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.dashboard-canvas::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(0, 168, 255, 0.12), transparent 40%),
                radial-gradient(circle at 85% 80%, rgba(123, 237, 159, 0.12), transparent 35%);
    pointer-events: none;
}

.dashboard-canvas > * {
    position: relative;
    z-index: 1;
}

.date-inputs input[type="date"],
.industry-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 18, 40, 0.95);
    border: 1px solid rgba(0, 168, 255, 0.25);
    border-radius: 10px;
    color: #f1f5ff;
    font-size: 15px;
    letter-spacing: 0.4px;
    transition: border-color 0.2s ease, background 0.2s ease;
    appearance: none;
    box-shadow: none;
}

.date-inputs input[type="date"]:focus,
.industry-select:focus {
    outline: none;
    border-color: #03a9f4;
    background: rgba(6, 14, 33, 0.95);
}

.industry-select option {
    background: #0a1930;
    color: #fff;
}

/* 数据可视化容器 */
.data-visualization-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(7, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    grid-auto-flow: row dense;
    gap: 20px;
    min-height: 0;
    height: 100%;
}

/* 图表卡片样式优化 */
.chart-card {
    position: relative;
    background: linear-gradient(145deg, rgba(11, 23, 52, 0.95), rgba(4, 12, 30, 0.95));
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(66, 133, 244, 0.25);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(0, 168, 255, 0.2), transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.chart-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 55px rgba(0, 168, 255, 0.25);
}

.chart-card > * {
    position: relative;
    z-index: 1;
}

.chart-pie {
    grid-column: span 3;
    grid-row: span 4;
}

.chart-stock {
    grid-column: span 6;
    grid-row: span 4;
}

.chart-radar {
    grid-column: span 3;
    grid-row: span 4;
}

.chart-wordcloud {
    grid-column: span 5;
    grid-row: span 3;
}

.chart-line {
    grid-column: span 7;
    grid-row: span 3;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #eaf6ff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(66, 133, 244, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    z-index: 1;
}

.card-title .pulse {
    width: 8px;
    height: 8px;
    background: #00a8ff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.chart-container {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    z-index: 1;
}

.Kchart-container {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
}

.img-container {
    width: 100%;
    height: 100%;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

