/* 背景设置 */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    color: #fff;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* 为底部备案信息预留空间 */
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

/* 半透明遮罩，使文字更清晰 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* 容器样式 */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* 目录样式 */
.directory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.category {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.category:hover {
    transform: translateY(-5px);
}

.category-title {
    border-bottom: 2px solid #fff;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.subitems {
    list-style: none;
    padding: 0;
}

.subitems li {
    margin: 10px 0;
}

.subitems a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.subitems a:hover {
    color: #ccc;
    padding-left: 5px;
    border-left: 2px solid #fff;
}

/* 底部备案信息样式 - 加深颜色的bar */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7); /* 加深的背景色 */
    z-index: 100; /* 确保在其他内容上方显示 */
}

.icp-link {
    color: #87CEEB; /* 天蓝色 */
    text-decoration: none;
    font-size: 12px;
}

.icp-link:hover {
    color: #B0E2FF; /* 天蓝色的亮色调，悬停效果 */
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .directory {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2.2em;
    }
}
