/* ==========================
   全局重置 + 基础样式 SEO适配
========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
}

/* ==========================
   头部导航
========================== */
.header {
    background: #b71c1c;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}
.nav-menu {
    display: flex;
    gap: 30px;
}
.nav-link {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 0;
}
.nav-link:hover {
    color: #ffeb3b;
    border-bottom: 2px solid #ffeb3b;
}
.mobile-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* ==========================
   横幅
========================== */
.banner {
    height: 500px;
    background: linear-gradient(rgb(0 0 0 / 0%), rgb(0 0 0)), url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAMAAABb9FyaAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAGUExURQAAAP///8zMzJmZmfQ0NCh0UXsAAAAJcEhZcwAADsIAAA7CARUoSoAAAFdJREFUeJzt0TEBAAAAgKDW+12vEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPA3AXwAAWXQmWkAAAAASUVORK5CYII=') center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
}
.banner-title {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.banner-desc {
    font-size: 20px;
    margin-bottom: 30px;
}
.banner-btn {
    display: inline-block;
    padding: 12px 40px;
    background: #f44336;
    color: #fff;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}
.banner-btn:hover {
    background: #d32f2f;
    transform: translateY(-3px);
}

/* ==========================
   公共区域样式
========================== */
.section {
    padding: 70px 0;
}
.section-head {
    text-align: center;
    margin-bottom: 50px;
}
.section-head h2 {
    font-size: 32px;
    color: #b71c1c;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.section-head h2::after {
    content: '';
    width: 60%;
    height: 3px;
    background: #b71c1c;
    position: absolute;
    bottom: -8px;
    left: 20%;
}
.section-head p {
    color: #666;
    font-size: 16px;
}

/* ==========================
   职业介绍
========================== */
.career {
    background: #fff;
}
.career-list {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 20px;
}
.career-item {
    background: #f9f9f9;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid #eee;
}
.career-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.career-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #b71c1c;
}
.career-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #222;
}
.career-item .tag {
    color: #b71c1c;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

/* ==========================
   副本攻略
========================== */
.copy {
    background: #f9f9f9;
}
.copy-list {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 25px;
}
.copy-item {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #b71c1c;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.copy-item h3 {
    color: #b71c1c;
    font-size: 20px;
    margin-bottom: 10px;
}
.copy-item p {
    margin-bottom: 8px;
    color: #444;
}

/* ==========================
   游戏功能
========================== */
.func {
    background: #fff;
}
.func-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}
.func-item {
    background: #f9f9f9;
    padding: 25px 20px;
    border-radius: 10px;
    transition: 0.3s;
}
.func-item:hover {
    background: #fff3e0;
}
.func-item h4 {
    color: #b71c1c;
    margin-bottom: 10px;
    font-size: 18px;
}

/* ==========================
   新开服推荐
========================== */
.server {
    background: #f9f9f9;
}
.server-list {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}
.server-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
.server-card h3 {
    color: #b71c1c;
    margin-bottom: 10px;
}
.server-card p {
    color: #666;
    margin-bottom: 15px;
}
.label {
    display: inline-block;
    padding: 3px 10px;
    background: #b71c1c;
    color: #fff;
    font-size: 12px;
    border-radius: 20px;
}

/* ==========================
   关于本站
========================== */
.about {
    background: #fff;
}
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 16px;
    line-height: 2;
    color: #444;
}
.about-content p {
    margin-bottom: 15px;
}
.about-content strong {
    color: #b71c1c;
}

/* ==========================
   页脚
========================== */
.footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}
.footer p {
    margin-bottom: 8px;
    color: #ccc;
}

/* ==========================
   响应式适配
========================== */
@media (max-width: 1024px) {
    .career-list { grid-template-columns: repeat(3,1fr); }
    .func-grid { grid-template-columns: repeat(2,1fr); }
    .server-list { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #b71c1c;
        width: 100%;
        text-align: center;
        padding: 30px 0;
        transition: 0.3s;
    }
    .nav-menu.active { left: 0; }
    .mobile-btn { display: block; }
    .banner-title { font-size: 32px; }
    .career-list { grid-template-columns: repeat(2,1fr); }
    .copy-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .career-list { grid-template-columns: 1fr; }
    .func-grid { grid-template-columns: 1fr; }
    .server-list { grid-template-columns: 1fr; }
}