/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", "微软雅黑", Arial, sans-serif;
}

/* 传奇主题色 */
:root {
    --legend-gold: #ffd700;
    --legend-red: #c70000;
    --legend-dark: #1a1a1a;
    --legend-gray: #2c2c2c;
    --legend-light: #f5f5f5;
    --legend-green: #20a53a;
}

/* 页面主体 */
body {
    background-color: var(--legend-light);
    color: #333;
    line-height: 1.6;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

/* 页面容器 */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* 头部导航 */
header {
    background-color: var(--legend-dark);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(255, 215, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo a {
    color: var(--legend-gold);
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.logo span {
    color: var(--legend-red);
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 25px;
    font-size: 16px;
    transition: all 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-links a:hover {
    color: var(--legend-dark);
    background-color: var(--legend-gold);
    transform: translateY(-2px);
}

/* 侧边栏 */
.sidebar {
    width: 280px;
    background-color: rgba(26, 26, 26, 0.95);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 100px;
    align-self: flex-start;
    color: #fff;
}

.sidebar-title {
    font-size: 20px;
    color: var(--legend-gold);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--legend-gold);
}

.catalog {
    list-style: none;
}

.catalog li {
    margin-bottom: 12px;
}

.catalog a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.catalog a:hover {
    background-color: rgba(255, 215, 0, 0.2);
    color: var(--legend-gold);
    padding-left: 15px;
}

/* 主要内容 */
.main-content {
    flex: 1;
    min-width: 700px;
}

/* 标题样式 */
h1 {
    font-size: 36px;
    color: var(--legend-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--legend-gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

h2 {
    font-size: 28px;
    color: var(--legend-gray);
    margin: 30px 0 20px;
    position: relative;
    padding-left: 15px;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 20px;
    background-color: var(--legend-red);
}

h3 {
    font-size: 22px;
    color: var(--legend-gray);
    margin: 20px 0 15px;
    color: var(--legend-red);
}

/* 内容区块 */
.content-section {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border-top: 5px solid var(--legend-gold);
}

/* 链接样式 */
.btlink {
    color: var(--legend-green);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.btlink:hover {
    color: var(--legend-red);
}

.btlink::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--legend-red);
    transition: width 0.3s;
}

.btlink:hover::after {
    width: 100%;
}

/* 开服表 */
.server-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.server-table th {
    background-color: var(--legend-dark);
    color: var(--legend-gold);
    padding: 12px;
    text-align: center;
    font-size: 16px;
}

.server-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.server-table tr:hover {
    background-color: rgba(255, 215, 0, 0.05);
}

.server-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.status-hot {
    background-color: var(--legend-red);
    color: #fff;
}

.status-new {
    background-color: var(--legend-green);
    color: #fff;
}

/* 职业卡片 */
.class-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.class-card {
    flex: 1;
    min-width: 200px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.class-header {
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.warrior { background-color: #c70000; }
.mage { background-color: #0066cc; }
.taoist { background-color: #20a53a; }

.class-body {
    padding: 15px;
}

.class-body p {
    margin-bottom: 10px;
    font-size: 14px;
}

/* 攻略列表 */
.guide-list {
    list-style: none;
    margin: 20px 0;
}

.guide-list li {
    padding: 15px;
    border-left: 4px solid var(--legend-gold);
    background-color: #fff;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 私服列表 */
.sf-list {
    list-style: none;
    margin: 20px 0;
}

.sf-list li {
    padding: 15px;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    margin-bottom: 10px;
    border-radius: 4px;
}

.sf-name {
    font-weight: 600;
    color: var(--legend-gray);
    font-size: 16px;
}

.sf-version {
    color: #888;
    font-size: 14px;
}

.sf-btn {
    background-color: var(--legend-gold);
    color: var(--legend-dark);
    padding: 6px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.sf-btn:hover {
    background-color: var(--legend-red);
    color: #fff;
}

/* 底部 */
footer {
    background-color: var(--legend-dark);
    color: #ccc;
    padding: 40px 0;
    text-align: center;
    margin-top: 50px;
    width: 100%;
}

.footer-info {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 14px;
}

.footer-logo {
    color: var(--legend-gold);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    display: block;
}

/* 回到顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--legend-gold);
    color: var(--legend-dark);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    font-size: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    display: none;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top:hover {
    background-color: var(--legend-red);
    color: #fff;
    transform: scale(1.1);
}

/* 响应式 */
@media (max-width: 1024px) {
    .page-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        position: static;
    }
    .main-content {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .nav-links a {
        margin-left: 0;
    }
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    .content-section { padding: 15px; }
}