/*
Theme Name: 微变传奇攻略站
Theme URI: 
Author: 微变传奇
Author URI: 
Description: 微变传奇攻略资讯站主题，支持微变复古、微变单职业、微变合击、轻变打金四大栏目，内置BOSS图鉴、SEO设置、友情链接等功能。
Version: 1.0
License: GPL v2 or later
Text Domain: weibian
*/

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

body {
    background: linear-gradient(135deg, #1a0e0a 0%, #2a1a10 100%);
    font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Roboto, sans-serif;
}

.site-container {
    width: 1200px;
    margin: 0 auto;
    background: rgba(30, 20, 15, 0.94);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
}

/* === 顶部导航 === */
.top-nav {
    background: linear-gradient(135deg, #1a0e08 0%, #2a1a0e 100%);
    border-bottom: 2px solid #ff6b4a;
    padding: 0 28px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-icon {
    font-size: 32px;
    color: #ff6b4a;
    text-shadow: 0 0 10px rgba(255,107,74,0.5);
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b4a;
    letter-spacing: 2px;
    font-family: "Noto Serif SC", serif;
    text-shadow: 0 0 8px rgba(255,107,74,0.3);
}

.logo-text span {
    color: #ffaa44;
    background: rgba(255,107,74,0.15);
    padding: 0 8px;
    border-radius: 4px;
    margin-left: 6px;
    font-size: 20px;
}

.nav-menu {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu a {
    color: #ffccaa;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.current-menu-item {
    color: #ff6b4a;
    border-bottom-color: #ff6b4a;
    text-shadow: 0 0 5px rgba(255,107,74,0.5);
}

.nav-menu .current-menu-item {
    color: #ff6b4a;
    border-bottom-color: #ff6b4a;
}

.search-box {
    background: rgba(40, 30, 20, 0.8);
    border-radius: 24px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #aa5533;
}

.search-box i {
    color: #ff6b4a;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffddcc;
    width: 160px;
}

.search-box input::placeholder {
    color: #aa8866;
}

/* === 面包屑 === */
.breadcrumb {
    padding: 18px 28px 0 28px;
    font-size: 13px;
    color: #aa8866;
}

.breadcrumb a {
    color: #ff6b4a;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #ffaa44;
}

/* === 主布局 === */
.main-layout {
    display: flex;
    gap: 32px;
    padding: 28px 28px 40px 28px;
    flex: 1;
}

.content-main {
    width: 840px;
}

.sidebar {
    width: 320px;
}

/* === 首页特色卡片 === */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255,107,74,0.15), rgba(255,107,74,0.05));
    border: 1px solid #ff6b4a;
    border-radius: 12px;
    padding: 20px 12px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.feature-card:hover {
    transform: translateY(-4px);
    background: rgba(255,107,74,0.25);
    box-shadow: 0 8px 16px rgba(255,107,74,0.2);
}

.feature-card i {
    font-size: 36px;
    color: #ff6b4a;
    margin-bottom: 10px;
}

.feature-card h3 {
    font-size: 18px;
    color: #ffddcc;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 12px;
    color: #ccaa88;
}

/* === 文章卡片列表 === */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.article-card {
    background: linear-gradient(135deg, rgba(40, 30, 20, 0.7) 0%, rgba(30, 20, 15, 0.85) 100%);
    border: 1px solid #aa5533;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    gap: 20px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-3px);
    border-color: #ff6b4a;
    box-shadow: 0 8px 20px rgba(255,107,74,0.15);
}

.article-thumb {
    width: 140px;
    height: 100px;
    background: linear-gradient(135deg, #2a1a0e, #1a0e08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #ff6b4a;
}

.article-thumb i {
    font-size: 48px;
    color: #ff6b4a;
}

.article-info {
    flex: 1;
}

.article-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffddcc;
    margin-bottom: 8px;
    font-family: "Noto Serif SC", serif;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #bb9977;
    margin-bottom: 10px;
}

.article-excerpt {
    font-size: 14px;
    color: #ddbb99;
    line-height: 1.5;
    margin-bottom: 12px;
}

.article-tag {
    display: inline-block;
    background: rgba(255,107,74,0.15);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: #ff6b4a;
    border: 1px solid rgba(255,107,74,0.3);
}

/* === 网格卡片（BOSS） === */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.grid-card {
    background: linear-gradient(135deg, rgba(40, 30, 20, 0.7) 0%, rgba(30, 20, 15, 0.85) 100%);
    border: 1px solid #aa5533;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.grid-card:hover {
    transform: translateY(-4px);
    border-color: #ff6b4a;
    box-shadow: 0 8px 16px rgba(255,107,74,0.15);
}

.grid-card i {
    font-size: 40px;
    color: #ff6b4a;
    margin-bottom: 10px;
}

.grid-card h4 {
    font-size: 15px;
    color: #ffddcc;
    margin-bottom: 6px;
}

.grid-card p {
    font-size: 11px;
    color: #ccaa88;
}

/* === 模块标题 === */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 28px 0 18px 0;
    border-left: 5px solid #ff6b4a;
    padding-left: 14px;
}

.section-header h2 {
    font-size: 22px;
    font-family: "Noto Serif SC", serif;
    color: #ffddcc;
}

.section-header a {
    color: #ff6b4a;
    font-size: 13px;
    text-decoration: none;
}

.section-header a:hover {
    color: #ffaa44;
}

/* === 分类页面头部 === */
.page-header {
    margin-bottom: 24px;
    border-left: 5px solid #ff6b4a;
    padding-left: 18px;
}

.page-header h1 {
    font-size: 28px;
    color: #ffddcc;
    font-family: "Noto Serif SC", serif;
}

.page-header p {
    color: #ccaa88;
    margin-top: 6px;
    font-size: 14px;
}

/* === 筛选标签 === */
.filter-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 28px;
    border-bottom: 2px solid #aa5533;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #ccaa88;
    cursor: pointer;
    border-radius: 30px 30px 0 0;
}

.tab-btn:hover {
    color: #ff6b4a;
    background: rgba(255,107,74,0.1);
}

.tab-btn.active {
    color: #ff6b4a;
    background: rgba(255,107,74,0.15);
    border-bottom: 3px solid #ff6b4a;
    margin-bottom: -2px;
}

/* === 分页 === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    background: rgba(40, 30, 20, 0.8);
    padding: 8px 16px;
    border: 1px solid #aa5533;
    text-decoration: none;
    color: #ccaa88;
    border-radius: 30px;
    display: inline-block;
}

.pagination a:hover,
.pagination .current {
    background: #ff6b4a;
    color: #1a0e08;
    border-color: #ff6b4a;
}

/* === 文章详情页 === */
.article-header {
    background: linear-gradient(135deg, rgba(40,30,20,0.7), rgba(30,20,15,0.85));
    border: 1px solid #aa5533;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 28px;
}

.article-category {
    display: inline-block;
    background: #ff6b4a;
    color: #1a0e08;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.article-header h1 {
    font-size: 28px;
    color: #ffddcc;
    margin-bottom: 16px;
}

.article-content {
    background: linear-gradient(135deg, rgba(40,30,20,0.7), rgba(30,20,15,0.85));
    border: 1px solid #aa5533;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 28px;
    line-height: 1.8;
    color: #ddbb99;
    font-size: 16px;
}

.article-content h2 {
    font-size: 22px;
    color: #ffddcc;
    margin: 28px 0 16px 0;
    padding-left: 14px;
    border-left: 4px solid #ff6b4a;
}

.article-content h3 {
    font-size: 18px;
    color: #ffaa44;
    margin: 20px 0 12px 0;
}

.article-content p {
    margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
    margin: 12px 0 16px 28px;
}

.article-content li {
    margin: 8px 0;
}

.article-content .tip-box {
    background: rgba(255,107,74,0.1);
    border-left: 4px solid #ff6b4a;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.article-content .warning-box {
    background: rgba(255,68,68,0.1);
    border-left: 4px solid #ff4444;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-content th,
.article-content td {
    border: 1px solid #aa5533;
    padding: 10px 12px;
    text-align: left;
}

.article-content th {
    background: rgba(255,107,74,0.2);
    font-weight: 600;
    color: #ffddcc;
}

.article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 24px 0 20px;
    padding-top: 20px;
    border-top: 1px solid #aa5533;
}

.article-tags a {
    background: rgba(255,107,74,0.15);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    color: #ccaa88;
    transition: all 0.2s;
    border: 1px solid rgba(255,107,74,0.3);
}

.article-tags a:hover {
    background: #ff6b4a;
    color: #1a0e08;
}

.article-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
    margin-bottom: 28px;
}

.like-btn {
    background: rgba(255,107,74,0.15);
    border: 1px solid #aa5533;
    padding: 8px 24px;
    border-radius: 40px;
    cursor: pointer;
    color: #ccaa88;
    transition: all 0.2s;
    font-size: 14px;
}

.like-btn:hover {
    background: #ff6b4a;
    color: #1a0e08;
    border-color: #ff6b4a;
}

/* === 相关推荐 === */
.related-section {
    background: linear-gradient(135deg, rgba(40,30,20,0.7), rgba(30,20,15,0.85));
    border: 1px solid #aa5533;
    border-radius: 16px;
    padding: 24px;
}

.related-title {
    font-size: 20px;
    border-left: 4px solid #ff6b4a;
    padding-left: 14px;
    margin-bottom: 20px;
    color: #ffddcc;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.related-item {
    background: rgba(255,107,74,0.05);
    border: 1px solid #aa5533;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
}

.related-item:hover {
    transform: translateY(-3px);
    border-color: #ff6b4a;
}

.related-item i {
    font-size: 28px;
    color: #ff6b4a;
    margin-bottom: 10px;
}

.related-item h4 {
    font-size: 15px;
    color: #ffddcc;
    margin-bottom: 6px;
}

.related-item p {
    font-size: 12px;
    color: #ccaa88;
}

/* === 侧边栏 === */
.sidebar-card {
    background: linear-gradient(135deg, rgba(35, 25, 18, 0.75) 0%, rgba(25, 18, 12, 0.9) 100%);
    border: 1px solid #aa5533;
    border-radius: 12px;
    padding: 20px 16px;
    margin-bottom: 28px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: bold;
    color: #ffddcc;
    border-left: 4px solid #ff6b4a;
    padding-left: 12px;
    margin-bottom: 16px;
    font-family: "Noto Serif SC", serif;
}

.hot-list {
    list-style: none;
}

.hot-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #aa5533;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hot-list li .rank {
    width: 28px;
    height: 28px;
    background: #2a1a0e;
    color: #ff6b4a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
}

.hot-list li .rank.top3 {
    background: #ff6b4a;
    color: #1a0e08;
}

.hot-list li a {
    text-decoration: none;
    color: #ccaa88;
    flex: 1;
    font-size: 13px;
}

.hot-list li a:hover {
    color: #ff6b4a;
}

.hot-list li .views {
    font-size: 11px;
    color: #aa8866;
}

/* === 友情链接模块 === */
.friendly-links {
    background: #1a0e08;
    border-top: 1px solid #aa5533;
    border-bottom: 1px solid #aa5533;
    padding: 16px 28px;
    margin-top: 20px;
}

.friendly-links-title {
    font-size: 14px;
    color: #ff6b4a;
    margin-bottom: 12px;
    font-weight: 500;
}

.friendly-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
}

.friendly-links-list li a {
    color: #aa8866;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.friendly-links-list li a:hover {
    color: #ff6b4a;
}

/* === 底部 === */
.footer {
    background: #1a0e08;
    border-top: 1px solid #aa5533;
    padding: 24px 28px;
    text-align: center;
    color: #aa8866;
    font-size: 13px;
}

/* === 移动适配（响应式） === */
@media (max-width: 1200px) {
    .site-container {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 992px) {
    .main-layout {
        flex-direction: column;
    }
    
    .content-main {
        width: 100%;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 12px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-thumb {
        width: 100%;
        height: auto;
        padding: 30px;
    }
    
    .article-header h1 {
        font-size: 22px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 18px;
    }
    
    .breadcrumb {
        padding: 12px 20px 0 20px;
    }
    
    .main-layout {
        padding: 20px;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    .article-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 18px;
    }
    
    .logo-text span {
        font-size: 14px;
    }
    
    .nav-menu a {
        font-size: 13px;
    }
    
    .article-title {
        font-size: 16px;
    }
    
    .page-header h1 {
        font-size: 22px;
    }
    
    .sidebar-title {
        font-size: 16px;
    }
    
    .friendly-links-list {
        gap: 12px;
    }
    
    .friendly-links-list li a {
        font-size: 12px;
    }
}
/* === 最新开服横栏（与网站风格统一） === */
.latest-servers-bar {
    background: linear-gradient(135deg, #2a1a0e, #1a0e08);
    border-bottom: 2px solid #ff6b4a;
    padding: 12px 28px;
    margin-top: 0;
}

.latest-servers-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.latest-servers-label {
    background: rgba(255,107,74,0.15);
    color: #ff6b4a;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,107,74,0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.latest-servers-label i {
    font-size: 12px;
}

.latest-servers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.server-item {
    background: rgba(40, 30, 20, 0.6);
    border: 1px solid #aa5533;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    color: #ddbb99;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.server-item:hover {
    border-color: #ff6b4a;
    background: rgba(255,107,74,0.1);
}

.hot-badge {
    background: #ff6b4a;
    color: #1a0e08;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 4px;
    font-style: normal;
}

.new-badge {
    background: #ffaa44;
    color: #1a0e08;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 4px;
    font-style: normal;
}

/* === 侧边栏开服列表样式（与网站风格统一） === */
.server-list {
    list-style: none;
}

.server-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #aa5533;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.server-list li .server-time {
    background: rgba(255,107,74,0.12);
    color: #ffaa44;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    min-width: 95px;
    text-align: center;
    border: 1px solid rgba(255,107,74,0.2);
}

.server-list li .server-info {
    flex: 1;
    font-size: 13px;
    color: #ccaa88;
}

.server-list li .server-info strong {
    color: #ffddcc;
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.server-list li .server-status {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
    background: rgba(255,107,74,0.15);
    color: #ff6b4a;
    border: 1px solid rgba(255,107,74,0.3);
}

.server-list li .server-status.hot {
    background: rgba(255,170,68,0.15);
    color: #ffaa44;
    border-color: rgba(255,170,68,0.3);
}

.server-list li .server-status.new {
    background: rgba(68,170,68,0.15);
    color: #44aa44;
    border-color: rgba(68,170,68,0.3);
}

/* 查看全部开服按钮 */
.gold-btn {
    display: block;
    background: linear-gradient(135deg, #ff6b4a, #cc5533);
    text-align: center;
    padding: 10px 16px;
    border-radius: 30px;
    color: #1a0e08;
    font-weight: bold;
    text-decoration: none;
    margin-top: 18px;
    transition: all 0.2s;
    font-size: 13px;
}

.gold-btn:hover {
    background: linear-gradient(135deg, #ff7a5a, #dd6644);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,74,0.3);
}
/* === 首页最新攻略 - 纯文字卡片样式 === */
.article-list-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.article-card-text {
    background: linear-gradient(135deg, rgba(40, 30, 20, 0.7) 0%, rgba(30, 20, 15, 0.85) 100%);
    border: 1px solid #aa5533;
    border-radius: 14px;
    padding: 20px 24px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.article-card-text:hover {
    transform: translateY(-3px);
    border-color: #ff6b4a;
    box-shadow: 0 8px 20px rgba(255,107,74,0.15);
}

.article-card-text .article-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffddcc;
    margin-bottom: 10px;
    font-family: "Noto Serif SC", serif;
    transition: color 0.2s;
}

.article-card-text:hover .article-title {
    color: #ffaa44;
}

.article-card-text .article-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #bb9977;
    margin-bottom: 12px;
}

.article-card-text .article-excerpt {
    font-size: 14px;
    color: #ddbb99;
    line-height: 1.6;
    margin-bottom: 14px;
}

.article-card-text .article-tag {
    display: inline-block;
    background: rgba(255,107,74,0.15);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    color: #ff6b4a;
    border: 1px solid rgba(255,107,74,0.3);
    transition: all 0.2s;
}

.article-card-text:hover .article-tag {
    background: #ff6b4a;
    color: #1a0e08;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .article-card-text {
        padding: 16px 18px;
    }
    
    .article-card-text .article-title {
        font-size: 16px;
    }
    
    .article-card-text .article-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
}
/* === 首页最新开服栏目样式 === */
.server-home-list {
    background: linear-gradient(135deg, rgba(40, 30, 20, 0.7) 0%, rgba(30, 20, 15, 0.85) 100%);
    border: 1px solid #aa5533;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 32px;
}

.server-home-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(170, 85, 51, 0.3);
    transition: all 0.2s;
}

.server-home-item:last-child {
    border-bottom: none;
}

.server-home-item:hover {
    background: rgba(255, 107, 74, 0.08);
}

.server-home-name {
    min-width: 200px;
    color: #ffddcc;
    font-size: 15px;
}

.server-home-name i {
    color: #ff6b4a;
    margin-right: 8px;
}

.server-home-name strong {
    font-weight: 600;
}

.server-home-info {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.server-home-time {
    font-size: 13px;
    color: #ffaa44;
}

.server-home-time i {
    color: #ff6b4a;
    margin-right: 5px;
}

.server-home-version {
    font-size: 13px;
    color: #ccaa88;
}

.server-home-version i {
    color: #ff6b4a;
    margin-right: 5px;
}

.server-home-status {
    background: rgba(255, 107, 74, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #ff6b4a;
    border: 1px solid rgba(255, 107, 74, 0.3);
}

/* 响应式 */
@media (max-width: 768px) {
    .server-home-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px 20px;
    }
    
    .server-home-name {
        min-width: auto;
    }
    
    .server-home-info {
        gap: 15px;
    }
}
/* ========== 修复文章内图片溢出问题 ========== */

/* 限制文章内容中所有图片的最大宽度 */
.article-content img,
.article-content figure img,
.article-content .wp-block-image img,
.article-content .aligncenter img,
.article-content .size-full img,
.article-content .size-large img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 限制figure容器宽度 */
.article-content figure,
.article-content .wp-block-image,
.article-content .aligncenter {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 强制所有文章内的图片容器不溢出 */
.article-content * img {
    max-width: 100% !important;
    height: auto !important;
}

/* 确保表格也不溢出（如果有的话） */
.article-content table,
.article-content iframe {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* 响应式：小屏幕下的额外保护 */
@media (max-width: 992px) {
    .article-content img,
    .article-content figure,
    .article-content iframe {
        max-width: 100% !important;
    }
}
/* ========== 强制文章内图片、表格、说明文字全部居中 ========== */

/* 图片居中 */
.article-content img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    clear: both !important;
}

/* 图片容器居中 */
.article-content .wp-block-image {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 图片说明文字居中 */
.article-content figcaption,
.article-content .wp-element-caption,
.article-content .wp-block-image figcaption {
    display: block !important;
    text-align: center !important;
    margin: 8px auto 0 auto !important;
    font-size: 14px;
    color: #ccaa88;
}

/* 表格居中 */
.article-content table {
    display: table !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100%;
}

/* 表格容器居中 */
.article-content .wp-block-table {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 表格说明文字居中 */
.article-content .wp-block-table figcaption {
    text-align: center !important;
}

/* 小屏幕表格滚动 */
@media (max-width: 768px) {
    .article-content {
        overflow-x: auto;
    }
    .article-content table {
        min-width: 500px;
    }
}
/* ========== 侧边栏开服列表样式优化 ========== */

/* 开服列表容器 */
.sidebar-card .server-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 每个开服项 */
.sidebar-card .server-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 8px;
}

/* 开服时间 */
.sidebar-card .server-list .server-time {
    font-size: 12px;
    color: #8ba0bc;
    min-width: 105px;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
    text-align: center;
}

/* 游戏信息容器（名称+版本） */
.sidebar-card .server-list .server-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

/* 游戏名称链接 */
.sidebar-card .server-list .server-info a {
    color: #e8d5b5;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    transition: color 0.2s;
}

.sidebar-card .server-list .server-info a:hover {
    color: #ffaa33;
    text-decoration: underline;
}

/* 版本标签 */
.sidebar-card .server-list .server-info > span:not(.version-tag),
.sidebar-card .server-list .server-info .version-tag {
    font-size: 11px;
    color: #6c86a3;
    background: rgba(108, 134, 163, 0.15);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    width: fit-content;
}

/* 状态标签 */
.sidebar-card .server-list .server-status {
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.sidebar-card .server-list .server-status.hot {
    background: linear-gradient(135deg, #ff6b4a, #ff4444);
    color: #fff;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.3);
}

.sidebar-card .server-list .server-status.new {
    background: linear-gradient(135deg, #4a8bb7, #2c5f8a);
    color: #fff;
}

/* 当版本标签和状态标签都在同一行时的布局优化 */
@media (min-width: 500px) {
    .sidebar-card .server-list li {
        flex-wrap: nowrap;
    }
    
    .sidebar-card .server-list .server-info {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    
    .sidebar-card .server-list .server-info a {
        flex: 2;
    }
    
    .sidebar-card .server-list .server-info .version-tag,
    .sidebar-card .server-list .server-info > span:not(a) {
        flex: 1;
        text-align: center;
    }
    
    .sidebar-card .server-list .server-status {
        min-width: 50px;
        text-align: center;
    }
}

/* 移动端适配 */
@media (max-width: 780px) {
    .sidebar-card .server-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .sidebar-card .server-list .server-time {
        font-size: 11px;
        min-width: auto;
    }
    
    .sidebar-card .server-list .server-info {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar-card .server-list .server-info a {
        width: 100%;
        font-size: 13px;
    }
    
    .sidebar-card .server-list .server-status {
        align-self: flex-start;
    }
}

/* 查看全部开服按钮样式 */
.sidebar-card .gold-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ffaa33, #ff8844);
    color: #1e2a32;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.sidebar-card .gold-btn:hover {
    background: linear-gradient(135deg, #ffbb55, #ffaa33);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 136, 68, 0.3);
}

.sidebar-card .gold-btn i {
    margin-right: 6px;
}
/* ========== 独立开服列表页样式 ========== */

/* 表格容器，支持横向滚动 */
.server-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
    background: rgba(10, 15, 25, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 表格基础样式 */
.server-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 680px;
}

.server-table th {
    text-align: left;
    padding: 16px 16px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffaa33;
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 170, 51, 0.3);
    white-space: nowrap;
}

.server-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    color: #e8e8e8;
}

.server-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.2s;
}

/* 游戏名称 */
.server-table td:first-child strong {
    color: #ffdd99;
    font-size: 15px;
}

/* 版本标签 */
.tag-sm {
    background: rgba(108, 134, 163, 0.2);
    color: #9ab3d4;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
}

/* 开区时间列图标 */
.server-table td:nth-child(3) i {
    margin-right: 6px;
    color: #ffaa33;
    font-size: 12px;
}

/* 更多开区时间标识 */
.more-times {
    display: inline-block;
    background: rgba(255, 170, 51, 0.2);
    border-radius: 20px;
    font-size: 10px;
    padding: 2px 6px;
    margin-left: 8px;
    color: #ffaa33;
    font-weight: bold;
}

/* 特色简介单元格 */
.intro-cell {
    max-width: 250px;
    white-space: normal;
    word-break: break-all;
    line-height: 1.4;
    font-size: 13px;
    color: #c0c0c0;
}

/* 操作按钮 */
.btn-sm {
    background: transparent;
    border: 1px solid #ffaa33;
    color: #ffaa33;
    padding: 6px 16px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
    white-space: nowrap;
}

.btn-sm:hover {
    background: #ffaa33;
    color: #1e1e2a;
    border-color: #ffaa33;
    transform: translateY(-2px);
}

/* 响应式：移动端卡片式布局 */
@media (max-width: 780px) {
    .server-table,
    .server-table thead,
    .server-table tbody,
    .server-table th,
    .server-table td,
    .server-table tr {
        display: block;
    }

    .server-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .server-table tr {
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        margin-bottom: 20px;
        background: rgba(0, 0, 0, 0.2);
    }

    .server-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .server-table td:last-child {
        border-bottom: none;
    }

    .server-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #ffaa33;
        text-align: left;
        margin-right: 15px;
        min-width: 80px;
        font-size: 13px;
    }

    .intro-cell {
        max-width: 100%;
    }
}

/* 错误提示页面样式 */
.error-message h3 {
    color: #ffaa33;
    margin-bottom: 10px;
}
.gold-btn {
    background: linear-gradient(135deg, #ffaa33, #ff8844);
    border: none;
    color: #1e1e2a;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
}
/* ========== 首页最新开服栏目样式 ========== */
.server-home-list {
    background: linear-gradient(135deg, rgba(40, 30, 20, 0.7) 0%, rgba(30, 20, 15, 0.85) 100%);
    border: 1px solid #aa5533;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 32px;
}

.server-home-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(170, 85, 51, 0.3);
    transition: all 0.2s;
    text-decoration: none;
    background: transparent;
}

.server-home-item:last-child {
    border-bottom: none;
}

.server-home-item:hover {
    background: rgba(255, 107, 74, 0.08);
    transform: translateX(4px);
}

/* 微变版本高亮 */
.server-home-item.weibian-highlight {
    background: rgba(255, 107, 74, 0.05);
    border-left: 3px solid #ff6b4a;
}

.server-home-item.weibian-highlight:hover {
    background: rgba(255, 107, 74, 0.12);
}

.server-home-name {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 180px;
    flex-shrink: 0;
}

.server-home-name i {
    color: #ff6b4a;
    font-size: 16px;
}

.server-home-name strong {
    color: #ffddcc;
    font-size: 15px;
    font-weight: 600;
}

/* 微变推荐徽章 */
.weibian-badge {
    background: #ff6b4a;
    color: #1a0e08;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: bold;
    white-space: nowrap;
}

.server-home-info {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
}

.server-home-time {
    font-size: 13px;
    color: #ffaa44;
    white-space: nowrap;
}

.server-home-time i {
    color: #ff6b4a;
    margin-right: 4px;
}

.server-home-version {
    font-size: 13px;
    color: #ccaa88;
    white-space: nowrap;
}

.server-home-version i {
    color: #ff6b4a;
    margin-right: 4px;
}

.server-home-status {
    background: rgba(255, 107, 74, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #ff6b4a;
    border: 1px solid rgba(255, 107, 74, 0.3);
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 空状态 */
.server-empty {
    text-align: center;
    padding: 40px;
    color: #ccaa88;
}

.server-empty i {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

/* 响应式：中等屏幕 */
@media (max-width: 992px) {
    .server-home-status {
        max-width: 150px;
    }
}

/* 响应式：小屏幕 */
@media (max-width: 768px) {
    .server-home-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 20px;
    }
    
    .server-home-name {
        min-width: auto;
        width: 100%;
    }
    
    .server-home-info {
        width: 100%;
        justify-content: flex-start;
    }
    
    .server-home-status {
        white-space: normal;
        word-break: break-all;
        max-width: 100%;
    }
}

@media (max-width: 580px) {
    .server-home-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .server-home-time,
    .server-home-version {
        white-space: normal;
    }
}
/* ========== 底部友情链接模块样式（与网站正文一致） ========== */
.friendly-links-section {
    background: linear-gradient(135deg, rgba(40, 30, 20, 0.7) 0%, rgba(30, 20, 15, 0.85) 100%);
    border-top: 1px solid #aa5533;
    border-bottom: 1px solid #aa5533;
    padding: 20px 28px;
    margin: 0;
}

.friendly-links-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.friendly-links-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffaa44;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.friendly-links-title i {
    color: #ff6b4a;
    font-size: 14px;
}

.friendly-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.friendly-links-list li {
    margin: 0;
    padding: 0;
}

.friendly-links-list li a {
    color: #ccaa88;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    position: relative;
}

.friendly-links-list li a:hover {
    color: #ff6b4a;
}

/* 响应式 */
@media (max-width: 768px) {
    .friendly-links-section {
        padding: 16px 20px;
    }
    
    .friendly-links-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .friendly-links-list {
        gap: 12px 16px;
    }
    
    .friendly-links-list li a {
        font-size: 12px;
    }
}
/* ========== 强制文章内视频居中 ========== */

/* 视频通用居中 */
.article-content video,
.article-content iframe,
.article-content embed,
.article-content object,
.article-content .wp-video,
.article-content .wp-video-shortcode,
.article-content .video-container,
.article-content .embed-responsive,
.article-content .wp-block-embed,
.article-content .wp-block-embed__wrapper {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* YouTube、B站等iframe视频居中 */
.article-content iframe {
    display: block !important;
    margin: 0 auto !important;
    clear: both !important;
}

/* WordPress默认视频播放器居中 */
.article-content .wp-video {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
}

.article-content .wp-video video {
    display: inline-block !important;
}

/* 视频封面图居中 */
.article-content .wp-video-shortcode {
    text-align: center !important;
}

/* 视频说明文字居中 */
.article-content .wp-video-caption,
.article-content figcaption,
.article-content .wp-element-caption {
    text-align: center !important;
    display: block !important;
    margin: 8px auto 0 auto !important;
}

/* 响应式视频容器（保持16:9比例且居中） */
.article-content .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9比例 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px auto;
}

.article-content .video-wrapper iframe,
.article-content .video-wrapper video,
.article-content .video-wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 确保所有视频容器都不溢出 */
.article-content .wp-block-embed__wrapper {
    max-width: 100%;
    overflow-x: auto;
}

/* 小屏幕下视频滚动（如果超出） */
@media (max-width: 768px) {
    .article-content iframe,
    .article-content video {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* 针对特定视频平台的优化 */
.article-content iframe[src*="youtube"],
.article-content iframe[src*="bilibili"],
.article-content iframe[src*="youku"],
.article-content iframe[src*="qq.com"],
.article-content iframe[src*="tudou"] {
    display: block !important;
    margin: 16px auto !important;
}