/* 全局初始化 军绿色机械风基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}
body {
    background-color: #1a2412;
    color: #e0e0e0;
    background-image: linear-gradient(rgba(26,36,18,0.9), rgba(26,36,18,0.9)), url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVQYlWNgYGD4z8DAwMgABXAGNgGwSgwVAFbmAgXQdISfAAAAAElFTkSuQmCC");
    min-height: 100vh;
}
a {
    text-decoration: none;
    color: #c7d4b8;
    transition: 0.3s;
}
a:hover {
    color: #ffcc00;
}
button {
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

/* 顶部固定导航栏 */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #2d3d1f;
    border-bottom: 3px solid #4a5f35;
    box-shadow: 0 3px 10px rgba(0,0,0,0.5);
    z-index: 999;
}
.header-container {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 100%;
}
.logo h1 {
    color: #ffcc00;
    font-size: 24px;
    text-shadow: 0 0 5px #4a5f35;
}
.logo p {
    color: #c7d4b8;
    font-size: 12px;
}
/* 高级搜索栏 */
.search-box {
    display: flex;
    gap: 5px;
    width: 500px;
}
.search-box input {
    flex: 1;
    height: 38px;
    padding: 0 15px;
    background-color: #1a2412;
    border: 2px solid #4a5f35;
    color: #fff;
    outline: none;
}
.search-box select {
    height: 38px;
    padding: 0 10px;
    background-color: #2d3d1f;
    border: 2px solid #4a5f35;
    color: #fff;
    outline: none;
}
.search-box button {
    height: 38px;
    padding: 0 20px;
    background-color: #4a5f35;
    color: #fff;
    font-weight: bold;
}
.search-box button:hover {
    background-color: #5c7a43;
}
.nav-menu {
    display: flex;
    gap: 20px;
}
.nav-menu a {
    font-weight: bold;
    padding: 8px 10px;
}
.nav-menu a.active {
    background-color: #4a5f35;
    border-radius: 3px;
    color: #ffcc00;
}

/* 左侧多功能按钮栏 */
.left-sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 220px;
    height: calc(100vh - 70px);
    background-color: #2d3d1f;
    border-right: 3px solid #4a5f35;
    padding: 20px 10px;
    overflow-y: auto;
    z-index: 998;
}
.sidebar-title {
    text-align: center;
    color: #ffcc00;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a5f35;
}
.sidebar-btn {
    width: 100%;
    height: 45px;
    background-color: #3a4d28;
    color: #fff;
    margin-bottom: 10px;
    border-radius: 3px;
    font-size: 14px;
    text-align: left;
    padding-left: 15px;
    border: 1px solid #4a5f35;
}
.sidebar-btn:hover {
    background-color: #4a5f35;
    color: #ffcc00;
    transform: translateX(5px);
}
.sidebar-count {
    margin-top: 20px;
    padding: 10px;
    background-color: #1a2412;
    border: 1px solid #4a5f35;
    text-align: center;
}
.sidebar-count p {
    margin: 5px 0;
    color: #ffcc00;
}

/* 主内容区域 */
.main-content {
    margin-top: 70px;
    margin-left: 220px;
    padding: 30px;
    max-width: calc(100% - 220px);
}
/* 轮播banner */
.banner {
    height: 180px;
    background-color: #2d3d1f;
    border: 2px solid #4a5f35;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.banner-slide {
    width: 100%;
    height: 100%;
}
.banner-slide img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    opacity: 0.8;
}
.banner-text {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    color: #fff;
}
.banner-text h2 {
    font-size: 36px;
    color: #ffcc00;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px #000;
}
.banner-text p {
    font-size: 18px;
    text-shadow: 1px 1px 2px #000;
}

/* 通用板块标题 */
.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a5f35;
}
.section-title h2 {
    color: #ffcc00;
    font-size: 24px;
}
.section-title span {
    color: #c7d4b8;
    font-size: 14px;
}

/* 开服列表板块 */
.server-section {
    margin-bottom: 40px;
}
.server-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.server-item {
    background-color: #2d3d1f;
    border: 2px solid #4a5f35;
    padding: 20px;
    position: relative;
    transition: 0.3s;
}
.server-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.server-tag {
    position: absolute;
    top: -10px;
    right: 15px;
    padding: 3px 10px;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
}
.hot { background-color: #ff3333; }
.new { background-color: #00ccff; }
.free { background-color: #33cc33; }
.super { background-color: #ff9900; }
.server-item h3 {
    color: #ffcc00;
    margin-bottom: 10px;
}
.server-item p {
    color: #c7d4b8;
    margin-bottom: 15px;
    font-size: 14px;
}
.enter-btn {
    width: 100%;
    height: 35px;
    background-color: #4a5f35;
    color: #fff;
    font-weight: bold;
}
.enter-btn:hover {
    background-color: #5c7a43;
}
/* 最新开服表格 */
.new-server-table {
    background-color: #2d3d1f;
    border: 2px solid #4a5f35;
    padding: 15px;
}
.new-server-table table {
    width: 100%;
    border-collapse: collapse;
}
.new-server-table th, .new-server-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #4a5f35;
}
.new-server-table th {
    background-color: #3a4d28;
    color: #ffcc00;
}
.new-server-table td button {
    padding: 5px 15px;
    background-color: #4a5f35;
    color: #fff;
}

/* 信息板块通用样式 */
.info-section {
    margin-bottom: 50px;
}
/* 职业介绍 */
.job-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.job-card {
    background-color: #2d3d1f;
    border: 2px solid #4a5f35;
    padding: 25px;
    text-align: center;
}
.job-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background-color: #4a5f35;
    border-radius: 50%;
}
.job-card h3 {
    color: #ffcc00;
    margin-bottom: 10px;
}
.job-card p {
    color: #c7d4b8;
    font-size: 13px;
    margin-bottom: 8px;
    text-align: left;
}
/* 副本攻略 */
.guide-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
.guide-item {
    background-color: #2d3d1f;
    border: 2px solid #4a5f35;
    padding: 25px;
}
.guide-item h3 {
    color: #ffcc00;
    margin-bottom: 12px;
}
.guide-item p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 10px;
}
.guide-item span {
    color: #999;
    font-size: 12px;
}
/* 游戏功能 */
.function-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.function-card {
    background-color: #2d3d1f;
    border: 2px solid #4a5f35;
    padding: 20px;
}
.function-card h4 {
    color: #ffcc00;
    margin-bottom: 8px;
}
.function-card p {
    color: #c7d4b8;
    font-size: 13px;
    line-height: 1.5;
}
/* 传奇版本 */
.version-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.version-card {
    background-color: #2d3d1f;
    border: 2px solid #4a5f35;
    padding: 30px;
    text-align: center;
}
.version-card h3 {
    color: #ffcc00;
    margin-bottom: 15px;
}
.version-card p {
    color: #c7d4b8;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    margin-left: 220px;
    background-color: #2d3d1f;
    border-top: 3px solid #4a5f35;
    padding: 40px 20px;
    text-align: center;
}
.footer-info h3 {
    color: #ffcc00;
    margin-bottom: 10px;
}
.footer-info p {
    color: #c7d4b8;
    margin-bottom: 8px;
}
.footer-link {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.copyright {
    color: #999;
    font-size: 12px;
    margin-top: 20px;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-thumb {
    background-color: #4a5f35;
}
::-webkit-scrollbar-track {
    background-color: #1a2412;
}