/* 公共样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

body {
    background-color: #000;
    color: #ccc;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 仅首页显示的顶部图片 */
.header-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(227, 193, 111, 0.3);
}

/* 卡片式三层公共导航样式 */
.nav-container {
    background-color: rgba(10, 10, 10, 0.9);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #333;
    margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nav-row {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.nav-category {
    color: #e3c16f;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 12px;
    margin-right: 15px;
    border-radius: 6px;
    background-color: rgba(70, 45, 10, 0.7);
    min-width: 100px;
    text-align: center;
    text-shadow: 0 0 5px #6e4a1f;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid #6e4a1f;
    transition: all 0.2s ease;
}

.nav-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.nav-link {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 15px;
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 5px;
    border: 1px solid #333;
    transition: all 0.2s ease;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-link:hover {
    color: #fff;
    background-color: rgba(50, 50, 50, 0.9);
    border-color: #e3c16f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.nav-link:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-link.active {
    color: #000;
    background: linear-gradient(to bottom, #e3c16f, #8e6b2c);
    border-color: #e3c16f;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(227, 193, 111, 0.4);
}

/* 分类层次视觉区分 */
.nav-row:nth-child(1) .nav-category {
    background-color: rgba(80, 50, 10, 0.8);
    font-size: 17px;
}

.nav-row:nth-child(2) .nav-category {
    background-color: rgba(60, 40, 10, 0.8);
    font-size: 16px;
}

.nav-row:nth-child(3) .nav-category {
    background-color: rgba(50, 30, 10, 0.8);
    font-size: 16px;
}

/* 各层级卡片区分 */
.nav-row:nth-child(1) .nav-link {
    background-color: rgba(35, 35, 35, 0.8);
    font-size: 15px;
}

.nav-row:nth-child(2) .nav-link {
    background-color: rgba(30, 30, 30, 0.8);
    font-size: 14px;
}

.nav-row:nth-child(3) .nav-link {
    background-color: rgba(25, 25, 25, 0.8);
    font-size: 14px;
}

/* 页面标题样式 */
.page-title {
    color: #e3c16f;
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 10px #6e4a1f;
}

/* 内容区域样式 */
.content-box {
    background-color: rgba(20, 20, 20, 0.8);
    border: 1px solid #333;
    border-radius: 5px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* 页脚样式 */
#common-footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #333;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 40px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(to bottom, #e3c16f, #8e6b2c);
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #e3c16f;
    margin: 10px 0;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(227, 193, 111, 0.7);
}

/* 分页控件样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 10px;
}

.pagination-button {
    padding: 8px 15px;
    background: linear-gradient(to bottom, #e3c16f, #8e6b2c);
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.pagination-button:hover {
    background: linear-gradient(to bottom, #f3d17f, #9e7b3c);
    transform: translateY(-2px);
}

.pagination-button:disabled {
    background: linear-gradient(to bottom, #555, #333);
    color: #777;
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-info {
    color: #e3c16f;
    font-size: 16px;
    margin: 0 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .nav-container {
        padding: 15px;
    }
    
    .nav-row {
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid #333;
        padding-bottom: 15px;
        margin-bottom: 5px;
    }
    
    .nav-category {
        margin-bottom: 10px;
        width: 100%;
        text-align: left;
    }
    
    .nav-items {
        width: 100%;
        justify-content: flex-start;
    }
    
    .nav-link {
        margin-bottom: 5px;
    }
    
    .page-title {
        font-size: 26px;
    }
    
    .content-box {
        padding: 15px;
    }
} 