body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background: radial-gradient(circle at top right, #e0e7ff 0%, #f8fafc 40%);
    color: #1e293b;
}
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    border: none;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
}
.glass-title-wrapper {
    position: relative;
    display: inline-block;
    padding: 16px 32px 20px 32px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(255, 255, 255, 0.3);
    overflow: hidden;
}
.glass-title-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: glass-shine 6s ease-in-out infinite;
}
@keyframes glass-shine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}
.glass-title {
    background: linear-gradient(135deg, #1e293b 0%, #475569 50%, #1e293b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    line-height: 1.4;
    padding-bottom: 0.3em;
    margin-bottom: -0.2em;
}
.glass-title-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(99, 102, 241, 0.15) 0%,
        rgba(168, 85, 247, 0.1) 25%,
        transparent 50%
    );
    pointer-events: none;
    animation: glass-glow 8s ease-in-out infinite;
}
@keyframes glass-glow {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.5;
    }
    25% {
        transform: translate(5%, 5%) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translate(0, 10%) rotate(180deg);
        opacity: 0.6;
    }
    75% {
        transform: translate(-5%, 5%) rotate(270deg);
        opacity: 0.8;
    }
}
.nav-tile {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05);
}
.nav-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-tile:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}
.nav-tile:hover::before {
    opacity: 1;
}
.nav-tile.active {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
    box-shadow: 
        0 15px 30px -8px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.nav-tile.active .tile-icon {
    background: #0f172a;
    color: white;
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.2);
}
.nav-tile.active .tile-text {
    color: #0f172a;
    font-weight: 800;
}
.nav-tile .tile-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.6);
    color: #1e293b;
    transition: all 0.3s ease;
    z-index: 1;
    margin-bottom: 4px;
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.05);
}
.nav-tile:hover .tile-icon {
    transform: scale(1.1) rotate(5deg);
    background: #0f172a;
    color: white;
}
.nav-tile.active .tile-icon {
    background: #0f172a;
    color: white;
}
.nav-tile .tile-text {
    font-weight: 700;
    color: #475569;
    transition: all 0.3s ease;
    z-index: 1;
    font-size: 0.95rem;
}
.district-card {
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}
.district-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.15);
}
.district-card.is-active {
    border-color: rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    box-shadow: 0 20px 35px -22px rgba(0, 0, 0, 0.15);
}
.district-card.is-muted {
    opacity: 0.45;
}
.district-focus-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
    border: none;
}
#analysis-details-container {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.close-btn {
    background: rgba(244, 63, 94, 0.05);
    color: #f43f5e;
    padding: 8px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: none;
}
.close-btn:hover {
    background: #f43f5e;
    color: white;
    box-shadow: 0 8px 20px -6px rgba(244, 63, 94, 0.4);
    transform: scale(1.05);
}
.custom-tooltip {
    position: absolute;
    opacity: 0;
    background: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    pointer-events: none;
    z-index: 100;
    backdrop-filter: blur(4px);
    transition: opacity 0.2s;
}
/* 详情分析新样式 */
.chart-loading {
    position: relative;
    overflow: hidden;
}
.chart-loading::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading-shimmer 1.5s infinite;
}
@keyframes loading-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 统一玻璃卡片内阴影 */
.glass-card {
    box-shadow: 
        0 10px 30px -5px rgba(0, 0, 0, 0.04),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
}
