/*
Theme Name: 沉默经典攻略
Theme URI: https://yourdomain.com/silent-guide
Author: 您的名字
Author URI: https://yourdomain.com
Description: 一款清新简洁的“我本沉默”传奇攻略主题，适配移动端，包含装备解析、技能获取、打宝攻略、新手起步等模块。
Version: 1.0
License: GPL v2 or later
Text Domain: silent-guide
*/

/* ==================== 全局重置与基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f5f7fb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e2a32;
    line-height: 1.5;
}

.wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 24px 48px;
}

@media (max-width: 780px) {
    .wrapper {
        padding: 16px;
    }
}

/* ==================== 头部区域 ==================== */
.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.logo-area h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #2c5f8a, #4a8bb7);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 4px;
}

.logo-area h1 a {
    text-decoration: none;
    background: linear-gradient(135deg, #2c5f8a, #4a8bb7);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.logo-area p {
    font-size: 0.8rem;
    color: #5b6e8c;
}

.version-badge {
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #2c5f8a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.version-badge i {
    margin-right: 6px;
    color: #4a8bb7;
}

@media (max-width: 780px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ==================== 导航栏 ==================== */
.nav-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin: 28px 0 36px;
    padding: 12px 24px;
    background: #ffffffcc;
    backdrop-filter: blur(2px);
    border-radius: 60px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid #eef2f6;
}

.nav-bar a {
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 8px 4px;
    transition: all 0.2s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-bar a i {
    font-size: 1.1rem;
    color: #4a8bb7;
    transition: transform 0.2s;
}

.nav-bar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a8bb7, #9ac2db);
    border-radius: 3px;
    transition: width 0.25s ease;
}

.nav-bar a:hover {
    color: #1e6f9f;
}

.nav-bar a:hover::after {
    width: 100%;
}

.nav-bar a:hover i {
    transform: translateY(-2px);
}

.nav-bar a.active {
    color: #1e6f9f;
    border-bottom: 3px solid #4a8bb7;
    padding-bottom: 5px;
}

@media (max-width: 780px) {
    .nav-bar {
        gap: 16px;
        padding: 10px 16px;
        border-radius: 40px;
    }
    .nav-bar a {
        font-size: 0.9rem;
        gap: 4px;
    }
    .nav-bar a i {
        font-size: 0.8rem;
    }
}

/* ==================== 卡片通用样式 ==================== */
.card {
    background: #fff;
    border-radius: 24px;
    padding: 28px 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #eef2f6;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid #4a8bb7;
    padding-left: 18px;
    margin-bottom: 8px;
    color: #1e2a32;
}

.section-title i {
    color: #4a8bb7;
    font-size: 1.6rem;
}

.section-sub {
    color: #6c7f8f;
    font-size: 0.9rem;
    margin-bottom: 28px;
    margin-top: 8px;
    padding-left: 22px;
}

@media (max-width: 780px) {
    .card {
        padding: 20px;
    }
    .section-title {
        font-size: 1.4rem;
    }
}

/* ==================== 两列布局（列表页和详情页） ==================== */
.two-columns {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.main-content {
    flex: 3;
    min-width: 0;
}

.sidebar {
    flex: 1;
    min-width: 280px;
}

@media (max-width: 900px) {
    .two-columns {
        flex-direction: column;
    }
}

/* ==================== 列表页文章列表 ==================== */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 16px;
}

.article-info {
    flex: 1;
}

.article-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.article-info h3 a {
    color: #1e2a32;
    text-decoration: none;
}

.article-info h3 a:hover {
    color: #2c5f8a;
    text-decoration: underline;
}

.article-desc {
    font-size: 0.85rem;
    color: #5b6e8c;
    margin-bottom: 8px;
}

.article-meta {
    font-size: 0.7rem;
    color: #8b9ab0;
    display: flex;
    gap: 16px;
}

.read-btn {
    background: transparent;
    border: 1px solid #cbdde9;
    color: #2c5f8a;
    padding: 6px 18px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    transition: 0.2s;
    display: inline-block;
}

.read-btn:hover {
    background: #eef2ff;
    border-color: #4a8bb7;
}

@media (max-width: 900px) {
    .article-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ==================== 详情页样式 ==================== */
.article-card {
    background: #fff;
    border-radius: 28px;
    padding: 32px 36px;
    margin-bottom: 32px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #eef2f6;
}

.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e2e8f0;
}

.breadcrumb a {
    color: #4a8bb7;
    text-decoration: none;
    font-weight: 500;
}

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

.breadcrumb i {
    margin: 0 8px;
    font-size: 0.7rem;
    color: #8b9ab0;
}

.breadcrumb span {
    color: #6c7f8f;
}

.article-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e2a32;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 24px;
    font-size: 0.8rem;
    color: #6c7f8f;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.article-meta i {
    margin-right: 6px;
    color: #4a8bb7;
}

/* 副标题样式 */
.article-subtitle {
    font-size: 1.1rem;
    color: #aaa;
    margin: 10px 0 15px 0;
    padding: 0;
    font-style: italic;
    border-left: none;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 28px 0 12px;
    padding-left: 12px;
    border-left: 4px solid #4a8bb7;
    color: #1e3a5f;
}

.article-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 24px 0 10px;
    color: #2c5f8a;
}

.article-content p {
    margin-bottom: 16px;
    color: #2d3e4f;
}

.article-content ul,
.article-content ol {
    margin: 12px 0 20px 24px;
}

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

@media (max-width: 900px) {
    .article-card {
        padding: 20px;
    }
    .article-title {
        font-size: 1.5rem;
    }
}

/* ==================== 侧边栏卡片 ==================== */
.sidebar-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #eef2f6;
}

.sidebar-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    border-left: 3px solid #4a8bb7;
    padding-left: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e3a5f;
}

.sidebar-card h3 i {
    color: #4a8bb7;
}

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

.server-list li,
.hot-list li {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
}

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

.server-name {
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.server-type {
    background: #eef2ff;
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #2c5f8a;
}

.server-detail {
    font-size: 0.75rem;
    color: #5b6e8c;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 4px;
}

.server-detail i {
    width: 16px;
    color: #4a8bb7;
}

.server-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.tag {
    background: #f0f2f5;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
    color: #4a5b6e;
}

.hot-item a {
    text-decoration: none;
    color: #2c5f8a;
    font-weight: 500;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 4px;
}

.hot-item a:hover {
    text-decoration: underline;
}

.hot-meta {
    font-size: 0.65rem;
    color: #8b9ab0;
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.more-link {
    margin-top: 12px;
    text-align: right;
    font-size: 0.75rem;
}

.more-link a {
    color: #4a8bb7;
    text-decoration: none;
}

/* ==================== 底部 ==================== */
.footer {
    margin-top: 48px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
    font-size: 0.75rem;
    color: #8b9ab0;
}

/* ==================== 分页导航样式 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eef2f6;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
    background: #eef2ff;
    border-color: #4a8bb7;
    color: #2c5f8a;
    transform: translateY(-2px);
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, #2c5f8a, #4a8bb7);
    border-color: #4a8bb7;
    color: #fff;
    cursor: default;
    transform: none;
}

.pagination .page-numbers.current:hover {
    background: linear-gradient(135deg, #2c5f8a, #4a8bb7);
    transform: none;
}

.pagination .prev,
.pagination .next {
    gap: 6px;
    font-weight: 500;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: #eef2ff;
}

.pagination .dots {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: default;
    min-width: auto;
    padding: 0 4px;
}

.pagination .dots:hover {
    background: transparent;
    transform: none;
}

/* 分页信息统计 */
.pagination-info {
    text-align: center;
    font-size: 13px;
    color: #8b9ab0;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #eef2f6;
}

@media (max-width: 640px) {
    .pagination {
        gap: 5px;
    }
    .pagination .page-numbers {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
        border-radius: 10px;
    }
    .pagination .prev,
    .pagination .next {
        padding: 0 10px;
    }
}

/* ==================== 文章内图片强制居中 ==================== */
.article-content img,
.single .article-content img,
.page .article-content img,
.post-content img,
.article-body img,
.article-card .article-content img,
.article-content figure img,
.wp-block-image img,
.entry-content img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100%;
    height: auto;
}

.article-content figure,
.article-content .wp-block-image,
.article-content p > img,
figure.wp-block-image {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.article-content p:has(img) {
    text-align: center !important;
}

.article-content figcaption,
.article-content .wp-caption-text,
.wp-block-image figcaption {
    text-align: center !important;
    margin-top: 8px;
    color: #666;
    font-size: 13px;
}

img.alignleft,
.alignleft img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

img.alignright,
.alignright img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

img.aligncenter,
.aligncenter img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.wp-block-gallery .blocks-gallery-item img {
    display: block !important;
    margin: 0 auto !important;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.gallery-item {
    text-align: center;
}

.gallery-icon img {
    display: block !important;
    margin: 0 auto !important;
}
/* 友情链接样式 */
.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 8px 0;
}

.friend-links-list a {
    display: inline-block;
    color: #2c5f8a;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 8px;
    background: #f5f0e0;
    border: 1px solid #d0c8b0;
    border-radius: 4px;
    transition: all 0.2s;
}

.friend-links-list a:hover {
    background: #e8dcc8;
    color: #cc0000;
    border-color: #b0a080;
}