* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #c81623;
}

ul, ol {
    list-style: none;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-size: 28px;
    color: #ffd700;
    margin-bottom: 5px;
}

.logo a {
    color: #fff;
}

.slogan {
    font-size: 12px;
    color: #aaa;
}

.nav ul {
    display: flex;
}

.nav li {
    position: relative;
}

.nav li a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    font-size: 16px;
    border-radius: 3px;
}

.nav li a:hover,
.nav li a.active {
    background: #c81623;
    color: #fff;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 0 0 4px 4px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #333 !important;
    padding: 10px 15px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content a:hover {
    background: #f5f5f5;
    color: #c81623 !important;
}

/* Banner */
.banner {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="400"><rect fill="%23222" width="1920" height="400"/><text x="50%" y="50%" fill="%23ffd700" font-size="60" text-anchor="middle" font-family="serif">传奇私服发布网</text></svg>');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    color: #fff;
    text-align: center;
}

.banner-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #ddd;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 5px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: none;
    outline: none;
}

.search-box button {
    padding: 15px 40px;
    background: #c81623;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #a0121d;
}

/* Main Content */
.main {
    display: flex;
    gap: 20px;
    padding: 20px 0;
}

.content-wrapper {
    flex: 1;
}

/* Section */
.section {
    background: #fff;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #c81623;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 18px;
    color: #333;
}

.section-header .icon {
    margin-right: 8px;
}

.more {
    font-size: 13px;
    color: #999;
}

.two-col {
    display: flex;
    gap: 20px;
}

.two-col .section {
    flex: 1;
    margin-bottom: 0;
}

/* Server Grid */
.server-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.server-card {
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
    position: relative;
    transition: all 0.3s;
}

.server-card:hover {
    border-color: #c81623;
    box-shadow: 0 3px 12px rgba(200,22,35,0.15);
}

.server-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    color: #fff;
    background: #999;
}

.server-tag.hot {
    background: #e74c3c;
}

.server-tag.new {
    background: #27ae60;
}

.server-tag.recommend {
    background: #f39c12;
}

.server-card h4 {
    font-size: 16px;
    margin-bottom: 12px;
    padding-right: 60px;
}

.server-card h4 a:hover {
    color: #c81623;
}

.server-info {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.server-info span {
    font-size: 13px;
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 3px;
    color: #666;
}

.server-info .version {
    background: #fff5f5;
    color: #c81623;
}

.server-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.server-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px dashed #e8e8e8;
}

.btn {
    display: inline-block;
    padding: 6px 20px;
    background: #c81623;
    color: #fff !important;
    border-radius: 3px;
    font-size: 14px;
    transition: background 0.3s;
}

.btn:hover {
    background: #a0121d;
}

/* News List */
.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dotted #e8e8e8;
}

.news-item .date {
    width: 50px;
    color: #999;
    font-size: 13px;
    margin-right: 10px;
}

.news-item a {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Article List */
.article-list li {
    padding: 8px 0;
    border-bottom: 1px dotted #e8e8e8;
}

.article-list li::before {
    content: "•";
    color: #c81623;
    margin-right: 8px;
}

.article-list a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: calc(100% - 20px);
    vertical-align: middle;
}

/* Version Categories */
.version-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.version-card {
    display: block;
    padding: 20px;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s;
}

.version-card:hover {
    border-color: #c81623;
    background: #fff9f9;
    transform: translateY(-2px);
}

.version-card h4 {
    font-size: 18px;
    color: #c81623;
    margin-bottom: 10px;
}

.version-card p {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.version-card span {
    font-size: 12px;
    color: #999;
}

/* Friend Links */
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links a {
    padding: 5px 12px;
    background: #f5f5f5;
    border-radius: 3px;
    font-size: 13px;
    color: #666;
}

.friend-links a:hover {
    background: #c81623;
    color: #fff;
}

/* Sidebar */
.sidebar {
    width: 300px;
}

.widget {
    background: #fff;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 16px;
    border-bottom: 2px solid #c81623;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Server Stats */
.server-stats {
    display: flex;
    text-align: center;
}

.stat-item {
    flex: 1;
}

.stat-item .num {
    font-size: 24px;
    font-weight: bold;
    color: #c81623;
}

.stat-item .label {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Rank List */
.rank-list li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dotted #e8e8e8;
}

.rank {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    background: #ccc;
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 10px;
}

.rank.top1 {
    background: #e74c3c;
}

.rank.top2 {
    background: #f39c12;
}

.rank.top3 {
    background: #f1c40f;
}

.rank-list a {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Time List */
.time-list li {
    padding: 8px 0;
    border-bottom: 1px dotted #e8e8e8;
}

.time-tag {
    display: inline-block;
    width: 50px;
    padding: 2px 0;
    background: #c81623;
    color: #fff;
    text-align: center;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 10px;
}

.sidebar-list li {
    padding: 8px 0;
    border-bottom: 1px dotted #e8e8e8;
}

.sidebar-list li::before {
    content: "▸";
    color: #c81623;
    margin-right: 8px;
}

.sidebar-list a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: calc(100% - 25px);
    vertical-align: middle;
}

/* Footer */
.footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 40px 0 20px;
    margin-top: 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-col p {
    font-size: 13px;
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #aaa;
    font-size: 13px;
}

.footer-col ul li a:hover {
    color: #ffd700;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 12px;
}

.copyright p {
    margin-bottom: 5px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 10px 0;
    font-size: 13px;
    color: #999;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb span {
    margin: 0 5px;
}

/* Article Page */
.article {
    background: #fff;
    border-radius: 5px;
    padding: 30px;
    margin-bottom: 20px;
}

.article-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.article-meta {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 25px;
}

.article-meta span {
    margin: 0 10px;
}

.article-content {
    font-size: 15px;
    line-height: 2;
    color: #444;
}

.article-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.article-content h2 {
    font-size: 20px;
    margin: 25px 0 15px;
    color: #333;
    padding-left: 10px;
    border-left: 4px solid #c81623;
}

.article-content h3 {
    font-size: 17px;
    margin: 20px 0 10px;
    color: #444;
}

.article-content ul, .article-content ol {
    margin: 15px 0;
    padding-left: 40px;
}

.article-content ul li {
    list-style: disc;
    margin-bottom: 8px;
}

.article-content ol li {
    list-style: decimal;
    margin-bottom: 8px;
}

.article-content strong {
    color: #c81623;
}

/* Prev Next */
.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.article-nav a {
    color: #666;
    font-size: 14px;
    max-width: 45%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-nav a:hover {
    color: #c81623;
}

/* List Page */
.page-header {
    background: #fff;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.page-header h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.page-header p {
    color: #999;
    font-size: 13px;
}

.article-list-page li {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.article-list-page li:last-child {
    border-bottom: none;
}

.article-list-page h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.article-list-page .list-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.article-list-page .list-meta span {
    margin-right: 15px;
}

.article-list-page .list-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}

/* Pagination */
.pagination {
    text-align: center;
    padding: 20px 0;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.pagination a:hover, .pagination .current {
    background: #c81623;
    color: #fff;
    border-color: #c81623;
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .main {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 15px;
    }
    
    .nav li a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .banner-content h2 {
        font-size: 24px;
    }
    
    .server-grid,
    .news-list,
    .two-col,
    .version-categories {
        grid-template-columns: 1fr;
        display: grid;
    }
    
    .two-col {
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}