/* 强制覆盖背景样式 */
html, body {
    background: url('../images/anime_bg.jpg') center/cover fixed no-repeat !important;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
}

.page-background {
    display: none !important;
}

.page-wrapper {
    min-height: 100vh;
    position: relative;
    z-index: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content-container {
    background: rgba(14, 14, 35, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 30px;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* 内容区域发光边框 */
.content-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.1)
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* 优化文字可读性 */
.content-container * {
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* 标题样式优化 */
h1, h2, h3 {
    background: linear-gradient(45deg, #fff, #e0e0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    text-shadow: none;
    margin-bottom: 1.5em;
}

/* 添加卡片悬浮效果 */
.content-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* 图表容器特殊处理 */
.chart-container {
    background: rgba(14, 14, 35, 0.85) !important;
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 导航栏样式 */
.nav-bar {
    background: rgba(14, 14, 35, 0.8) !important;
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 15px;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-item {
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.1);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 10px;
        gap: 15px;
    }
    
    .content-container {
        padding: 20px;
        margin: 0 10px;
    }
    
    .nav-bar {
        flex-wrap: wrap;
        padding: 10px;
    }
}
