/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #000;
    background-image: url('../images/index/background.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* 页眉样式 */
header {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px 0;
    position: relative;
}

.logo-container {
    width: 80%;
    margin: 0 auto;
    padding: 10px 0;
    display: flex;
    justify-content: flex-start;
    height: 120px; /* 固定高度 */
    position: relative; /* 添加定位上下文 */
}

.logo {
    display: flex;
    align-items: center;
    height: 100px; /* 固定高度 */
    position: absolute; /* 使用绝对定位 */
    left: 0; /* 固定左侧位置 */
    top: 10px; /* 固定顶部位置 */
}

.header-logo {
    height: 100px; /* 固定logo高度 */
    width: auto;
    max-width: 500px; /* 限制最大宽度 */
    object-fit: contain; /* 确保图片比例一致 */
}

/* 导航栏样式 */
nav {
    width: 80%;
    margin: 0 auto;
    border-bottom: 1px solid #444;
}

.nav-tabs {
    list-style: none;
    display: flex;
    padding: 0;
}

.nav-tabs li {
    padding: 0;
}

.nav-tabs li a {
    display: block;
    padding: 10px 30px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: background-color 0.3s;
}

.nav-tabs li.active a {
    background-color: #9e2b2b;
    color: white;
}

.nav-tabs li a:hover {
    background-color: rgba(240, 240, 240, 0.2);
    color: #ff9e9e;
}

.nav-tabs li.active a:hover {
    background-color: #9e2b2b;
    color: white;
}

/* 主要内容区域 */
main {
    width: 80%;
    margin: 0 auto;
    padding: 30px 0;
}

.content {
    margin-bottom: 30px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 25px;
    border-radius: 8px;
}

h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 28px;
}

h3 {
    color: #fff;
    margin: 20px 0 10px 0;
    font-size: 20px;
}

/* 页脚样式 */
footer {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px 0;
    border-top: 1px solid #444;
}

.footer-content {
    width: 80%;
    margin: 0 auto;
    text-align: center;
    color: #ccc;
}

.footer-nav {
    margin-top: 10px;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
}

.footer-nav a:hover {
    color: #ff9e9e;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .logo-container, nav, main, .footer-content {
        width: 95%;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
    }
    
    .nav-tabs li a {
        padding: 10px 15px;
    }
}
