/*
Theme Name: 游戏修改器主题
Description: 专为游戏修改器网站设计的WordPress主题
Version: 2.0
Author: PCXGQ
*/

/* ===== 基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

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

a:hover {
    color: #5e35b1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #7e57c2, #5e35b1);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-size: 20px;
}

.btn:hover {
    background: linear-gradient(135deg, #5e35b1, #4527a0);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(94, 53, 177, 0.3);
}

/* ===== 导航栏样式 ===== */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 25px;
    font-weight: 700;
    color: #333;
}

.logo img {
    height: 50px;
    width: 50px;
    object-fit: contain;
    margin-right: 8px;
    border-radius: 8px;
}

/* Logo 文字备用样式（当图片无法加载时显示） */
.logo-fallback {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7e57c2, #5e35b1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.logo-text {
    color: #7e57c2;
    font-size: 22px;
    white-space: nowrap;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* 导航链接样式 */
.nav-link {
    color: #555;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
}

.nav-link:hover {
    color: #7e57c2;
    background: rgba(126, 87, 194, 0.08);
}

/* ===== 文章区域样式 ===== */
.articles-section {
    padding: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: #333;
}

/* 文章网格布局 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
    width: 100%;
}

.articles-grid > * {
    min-width: 0;
}

/* 文章卡片样式 */
.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    display: block;
    width: 100%;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: #7e57c2;
    box-shadow: 0 8px 20px rgba(126, 87, 194, 0.12);
}

/* 文章图片 */
.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.03);
}

/* 卡片图片链接样式（图片区域不参与SEO链接权重） */
.card-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 默认缩略图 */
.default-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7e57c2, #5e35b1);
    color: white;
    font-weight: 700;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

.article-content {
    padding: 18px;
}

.article-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #888;
    align-items: center;
    flex-wrap: wrap;
}

.article-tag {
    background: rgba(126, 87, 194, 0.1);
    color: #7e57c2;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.views-count {
    color: #999;
    font-size: 0.8rem;
}

.article-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: #7e57c2;
}

.article-excerpt {
    color: #666;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* 无文章提示 */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1rem;
    background: white;
    border-radius: 10px;
    border: 2px dashed #e0e0e0;
}

/* ===== 翻页样式 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 40px;
    padding: 30px 0;
}

.pagination ul {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
}

.pagination .page-numbers:hover {
    background: #e9ecef;
    border-color: #7e57c2;
    color: #7e57c2;
}

.pagination .page-numbers.current {
    background: #7e57c2;
    color: white;
    border-color: #7e57c2;
    font-weight: 600;
}

/* ===== 搜索框样式 ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-box input[type="text"] {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    width: 200px;
    transition: all 0.3s;
}

.search-box input[type="text"]:focus {
    outline: none;
    border-color: #7e57c2;
    box-shadow: 0 0 0 2px rgba(126, 87, 194, 0.1);
    width: 250px;
}

.search-box button {
    background: #7e57c2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.search-box button:hover {
    background: #5e35b1;
    transform: translateY(-1px);
}

/* 搜索结果信息 */
.search-results-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #7e57c2;
}

.search-results-info p {
    margin: 0;
    color: #666;
    font-weight: 500;
}

/* 首页介绍段落 — 融入页面结构，避免与文章卡片争夺视觉焦点 */
.homepage-intro {
    background: #f3f0f8;
    padding: 16px 20px;
    margin-bottom: 28px;
    border-left: 3px solid #7e57c2;
    border-radius: 6px;
}

.homepage-intro p {
    margin: 0;
    color: #444;
    font-size: 0.93rem;
    line-height: 1.75;
}

.homepage-intro strong {
    color: #5e35b1;
    font-weight: 600;
}

/* 分类归档描述区域 — 与首页介绍保持一致的非卡片风格 */
.category-archive-intro {
    background: #f3f0f8;
    padding: 16px 20px;
    margin-bottom: 28px;
    border-left: 3px solid #7e57c2;
    border-radius: 6px;
}

.category-archive-intro p {
    margin: 0;
    color: #444;
    font-size: 0.93rem;
    line-height: 1.75;
}


/* ===== 文章详情页样式 ===== */
.article-detail {
    background: white;
    border-radius: 10px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.breadcrumb {
    padding: 15px 0;
    color: #888;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: #7e57c2;
}

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

.article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.article-header .article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #888;
    align-items: center;
    flex-wrap: wrap;
}

.article-detail .article-title {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: #222;
    line-height: 1.3;
    font-weight: 700;
}

.article-detail .article-excerpt {
    color: #555;
    font-size: 1.02rem;
    margin-bottom: 20px;
    line-height: 1.7;
    padding: 12px 16px;
    background: #fafafa;
    border-radius: 6px;
    border-left: 3px solid #7e57c2;
}

.article-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7e57c2, #5e35b1);
    flex-shrink: 0;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #333;
}

.publish-date {
    color: #888;
    font-size: 0.85rem;
}

.article-stats {
    display: flex;
    gap: 16px;
    color: #888;
    font-size: 0.9rem;
}

.article-stats .stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 文章内容样式 */
.content-section {
    line-height: 1.85;
    font-size: 1.05rem;
}

.content-section p {
    margin-bottom: 1.2em;
}

.content-section h2,
.content-section h3,
.content-section h4 {
    margin: 1.5em 0 0.8em 0;
    color: #222;
}

.content-section h2 {
    font-size: 1.6rem;
    border-bottom: 2px solid #7e57c2;
    padding-bottom: 8px;
}

.content-section h3 {
    font-size: 1.35rem;
}

.content-section ul,
.content-section ol {
    margin: 1em 0;
    padding-left: 2em;
}

.content-section li {
    margin-bottom: 0.5em;
}

.content-section blockquote {
    border-left: 4px solid #7e57c2;
    padding-left: 20px;
    margin: 1.5em 0;
    color: #666;
    font-style: italic;
}

/* 文章内容表格样式 */
.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

.content-section table th,
.content-section table td {
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    text-align: left;
}

.content-section table th {
    background: #f8f7fc;
    font-weight: 600;
    color: #333;
}

.content-section table tr:nth-child(even) {
    background: #fafafa;
}

.content-section table tr:hover {
    background: #f5f0fa;
}

/* 文章内容中的图片样式 */
.content-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.content-section img.aligncenter,
.content-section img.alignnone {
    display: block;
    margin: 25px auto;
    max-width: 800px;
    width: 100%;
}

.content-section img.alignleft {
    float: left;
    margin: 10px 20px 10px 0;
    max-width: 400px;
}

.content-section img.alignright {
    float: right;
    margin: 10px 0 10px 20px;
    max-width: 400px;
}

.content-section:after {
    content: "";
    display: table;
    clear: both;
}

/* 文章操作区域 */
.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.share-btn:hover {
    border-color: #7e57c2;
    color: #7e57c2;
    background: rgba(126, 87, 194, 0.05);
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 相关文章 */
.related-articles {
    margin: 50px 0;
}

.related-articles .section-title {
    margin-bottom: 20px;
}

.related-articles .articles-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ===== 页脚样式 ===== */
footer {
    background-color: #f1f3f5;
    padding: 40px 0 20px;
    border-top: 1px solid #e0e0e0;
}

.footer-brand {
    margin-bottom: 24px;
}

.footer-brand .logo {
    margin-bottom: 12px;
}

.footer-description {
    max-width: 700px;
}

.footer-description p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-description strong {
    color: #7e57c2;
}

.footer-nav {
    margin-bottom: 24px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.footer-nav h3 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 12px;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-nav ul li a {
    background: white;
    padding: 6px 14px;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    font-size: 0.85rem;
    color: #555;
    transition: all 0.3s;
}

.footer-nav ul li a:hover {
    background: #7e57c2;
    color: white;
    border-color: #7e57c2;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #666;
}

.footer-links a:hover {
    color: #7e57c2;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #888;
    font-size: 0.85rem;
}

.copyright a {
    color: #888;
}

.copyright a:hover {
    color: #7e57c2;
}

/* ===== 友情链接样式 ===== */
.friend-links-section {
    padding: 30px 0;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.friend-links-section .section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.friend-links-desc {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.friend-links a {
    background: #f8f9fa;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    font-size: 14px;
    color: #555;
}

.friend-links a:hover {
    background: #7e57c2;
    color: white;
    border-color: #7e57c2;
    transform: translateY(-2px);
}

/* ===== 网站地图页面样式（重新设计） ===== */
.sitemap-page {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.sitemap-page-header {
    text-align: center;
    margin-bottom: 36px;
}

.sitemap-page-title {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 8px;
}

.sitemap-page-desc {
    color: #666;
    font-size: 0.95rem;
}

.sitemap-page-desc strong {
    color: #7e57c2;
    font-weight: 600;
}

/* 快捷导航卡片 */
.sitemap-quick-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.sitemap-quick-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.sitemap-quick-card h4 {
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #7e57c2;
}

.sitemap-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sitemap-quick-links a {
    display: inline-block;
    background: #f3f0f8;
    color: #5e35b1;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.88rem;
    transition: all 0.3s;
}

.sitemap-quick-links a:hover {
    background: #7e57c2;
    color: white;
    transform: translateY(-1px);
}

/* 文章区域 */
.sitemap-articles {
    margin-bottom: 40px;
}

.sitemap-articles-title {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid #7e57c2;
}

.sitemap-cat-group {
    background: white;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 16px;
    border: 1px solid #e8e8e8;
}

.sitemap-cat-name {
    font-size: 1rem;
    color: #333;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sitemap-cat-name a {
    color: #7e57c2;
}

.sitemap-cat-name a:hover {
    text-decoration: underline;
}

.sitemap-cat-count {
    font-size: 0.78rem;
    color: #fff;
    background: #7e57c2;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.sitemap-cat-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px 20px;
}

.sitemap-cat-links a {
    display: block;
    color: #555;
    font-size: 0.88rem;
    padding: 5px 0;
    border-bottom: 1px dashed #f0f0f0;
    transition: color 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sitemap-cat-links a:hover {
    color: #7e57c2;
}

/* 网站地图响应式 */
@media (max-width: 768px) {
    .sitemap-quick-nav {
        grid-template-columns: 1fr;
    }
    .sitemap-cat-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .sitemap-cat-links {
        grid-template-columns: 1fr;
    }
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* 导航栏响应式 */
    .navbar {
        flex-direction: column;
        gap: 10px;
        padding: 12px 0;
        min-height: auto;
    }

    .logo img {
        height: 40px;
    }

    .logo-fallback {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .logo-text {
        font-size: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 16px;
    }

    /* 文章区域响应式 */
    .articles-section {
        padding: 30px 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* 页脚响应式 */
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }

    .footer-nav ul {
        gap: 8px;
    }

    .footer-nav ul li a {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    /* 搜索框响应式 */
    .header-actions {
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    .search-box form {
        width: 100%;
    }

    .search-box input[type="text"] {
        flex: 1;
        width: auto;
    }

    /* 文章详情页响应式 */
    .article-detail {
        padding: 20px;
        margin: 15px 0;
    }

    .article-detail .article-title {
        font-size: 1.3rem;
    }

    .article-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .article-actions {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .related-articles .articles-grid {
        grid-template-columns: 1fr;
    }

    /* 翻页响应式 */
    .pagination {
        gap: 3px;
        margin-top: 30px;
        padding: 20px 0;
    }

    .pagination ul {
        gap: 3px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    /* 网站地图响应式 */
    .sitemap-content {
        flex-direction: column;
        gap: 20px;
    }

    .sitemap-column {
        min-width: 100%;
    }

    .sitemap-all-posts-list {
        column-count: 1;
    }

    .sitemap-section {
        padding: 20px;
        margin: 15px 0;
    }
}

/* ===== 打印样式（SEO友好） ===== */
@media print {
    header, footer, .article-actions, .related-articles, .pagination, .search-box, .nav-actions {
        display: none;
    }

    .article-detail {
        box-shadow: none;
        padding: 0;
        margin: 0;
    }

    body {
        background: white;
        color: black;
    }
}

/* ===== 无障碍优化 ===== */
/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* 键盘导航焦点样式 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #7e57c2;
    outline-offset: 2px;
}

/* ===== 404 页面样式 ===== */
.error-404-section {
    padding: 60px 0;
}

.error-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.error-title {
    font-size: 2.5rem;
    color: #7e57c2;
    margin-bottom: 16px;
}

.error-message {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
}

.error-search {
    margin-bottom: 40px;
}

.error-search h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: #333;
}

.error-search-form {
    display: flex;
    justify-content: center;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto;
}

.error-search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.error-search-input:focus {
    outline: none;
    border-color: #7e57c2;
}

.error-search-btn {
    background: #7e57c2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.error-search-btn:hover {
    background: #5e35b1;
}

.error-categories {
    margin-bottom: 40px;
}

.error-categories h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: #333;
}

.error-cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.error-cat-tag {
    background: white;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    color: #555;
    transition: all 0.3s;
    text-decoration: none;
}

.error-cat-tag:hover {
    background: #7e57c2;
    color: white;
    border-color: #7e57c2;
}

.error-recent {
    margin-bottom: 40px;
}

.error-recent h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
}

.error-back-home {
    margin-top: 30px;
}

/* ===== 子分类导航样式 ===== */
.subcategories-nav {
    margin-bottom: 28px;
}

.subcategories-nav h2 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #333;
}

.subcategory-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.subcategory-tag {
    background: white;
    padding: 6px 16px;
    border-radius: 18px;
    border: 1px solid #e0e0e0;
    font-size: 13px;
    color: #555;
    transition: all 0.3s;
    text-decoration: none;
}

.subcategory-tag:hover {
    background: #7e57c2;
    color: white;
    border-color: #7e57c2;
}

/* ===== 同分类更多文章样式 ===== */
.same-category-articles {
    margin: 40px 0;
}

.same-category-articles .section-title {
    margin-bottom: 20px;
}

/* ===== 面包屑有序列表样式 ===== */
.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: #888;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "›";
    margin: 0 8px;
    color: #ccc;
    font-size: 1em;
}

.breadcrumb-list li a {
    color: #7e57c2;
    text-decoration: none;
}

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

.breadcrumb-list li:last-child span {
    color: #666;
}

/* ===== 404 响应式 ===== */
@media (max-width: 768px) {
    .error-title {
        font-size: 1.8rem;
    }
    
    .error-search-form {
        flex-direction: column;
    }
    
    .error-search-input,
    .error-search-btn {
        width: 100%;
    }
    
    .error-cat-list {
        gap: 8px;
    }
    
    .error-cat-tag {
        font-size: 13px;
        padding: 6px 14px;
    }
}
/* ===== 网站地图页面样式（SEO优化版） ===== */
.sitemap-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.sitemap-page-header {
    text-align: center;
    padding: 30px 0 20px;
    border-bottom: 2px solid #f0f0f5;
    margin-bottom: 28px;
}
.sitemap-page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
}
.sitemap-page-title span {
    color: #7e57c2;
}
.sitemap-page-desc {
    color: #666;
    font-size: 0.95rem;
    margin-top: 4px;
}
.sitemap-page-desc strong {
    color: #7e57c2;
}
.sitemap-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.sitemap-stats .stat-item {
    background: #f8f7fc;
    padding: 4px 18px;
    border-radius: 16px;
    font-size: 0.85rem;
    color: #555;
}
.sitemap-stats .stat-item strong {
    color: #7e57c2;
}
.sitemap-search {
    margin-bottom: 28px;
}
.sitemap-search form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 8px;
}
.sitemap-search input {
    flex: 1;
    padding: 10px 18px;
    border: 2px solid #e0e0e8;
    border-radius: 30px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
    background: #fafafc;
}
.sitemap-search input:focus {
    border-color: #7e57c2;
    box-shadow: 0 0 0 3px rgba(126, 87, 194, 0.1);
}
.sitemap-search button {
    padding: 10px 28px;
    background: #7e57c2;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}
.sitemap-search button:hover {
    background: #5e35b1;
}
.sitemap-quick-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}
.sitemap-quick-card {
    background: #f8f7fc;
    border-radius: 12px;
    padding: 18px 22px;
    border: 1px solid #eee;
}
.sitemap-quick-card h4 {
    font-size: 0.95rem;
    color: #1a1a2e;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #7e57c2;
    display: inline-block;
}
.sitemap-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}
.sitemap-quick-links a {
    color: #4a4a6a;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
    border-bottom: 1px solid transparent;
}
.sitemap-quick-links a:hover {
    color: #7e57c2;
    border-bottom-color: #7e57c2;
}
.sitemap-alpha-index {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-bottom: 28px;
    padding: 10px 0;
    border-top: 1px solid #f0f0f5;
    border-bottom: 1px solid #f0f0f5;
}
.sitemap-alpha-index a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 4px;
    border-radius: 50%;
    color: #4a4a6a;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
}
.sitemap-alpha-index a:hover,
.sitemap-alpha-index a.active {
    background: #7e57c2;
    color: #fff;
}
.sitemap-articles-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #7e57c2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sitemap-articles-title .count {
    font-size: 0.85rem;
    font-weight: 400;
    color: #888;
}
.sitemap-cat-group {
    background: #fafafc;
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid #eaeaf0;
}
.sitemap-cat-group:hover {
    border-color: #d5d0f0;
}
.sitemap-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 22px;
    background: #fff;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}
.sitemap-cat-header:hover {
    background: #f8f7fc;
}
.sitemap-cat-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
}
.sitemap-cat-name a {
    color: #1a1a2e;
    text-decoration: none;
}
.sitemap-cat-name a:hover {
    color: #7e57c2;
}
.sitemap-cat-count {
    font-size: 0.8rem;
    color: #888;
    background: #f0edf8;
    padding: 2px 14px;
    border-radius: 12px;
}
.sitemap-cat-toggle {
    font-size: 0.7rem;
    color: #aaa;
    margin-left: 10px;
    transition: transform 0.2s;
}
.sitemap-cat-toggle.open {
    transform: rotate(180deg);
}
.sitemap-cat-body {
    padding: 6px 22px 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2px 24px;
}
.sitemap-cat-body a {
    color: #4a4a6a;
    text-decoration: none;
    font-size: 0.87rem;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f5;
    transition: all 0.2s;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sitemap-cat-body a:hover {
    color: #7e57c2;
    padding-left: 8px;
    border-bottom-color: #7e57c2;
}
.sitemap-footer {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f5;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}
.sitemap-footer a {
    color: #7e57c2;
    text-decoration: none;
}
.sitemap-footer a:hover {
    text-decoration: underline;
}

/* 网站地图响应式 */
@media (max-width: 768px) {
    .sitemap-quick-nav {
        grid-template-columns: 1fr;
    }
    .sitemap-cat-body {
        grid-template-columns: 1fr;
        padding: 6px 16px 14px;
    }
    .sitemap-cat-header {
        padding: 10px 16px;
        flex-wrap: wrap;
        gap: 4px;
    }
    .sitemap-page-title {
        font-size: 1.4rem;
    }
    .sitemap-search form {
        flex-direction: column;
    }
    .sitemap-stats {
        gap: 12px;
    }
    .sitemap-stats .stat-item {
        font-size: 0.78rem;
        padding: 3px 14px;
    }
}

@media (max-width: 480px) {
    .sitemap-page {
        padding: 10px;
    }
    .sitemap-page-title {
        font-size: 1.2rem;
    }
    .sitemap-alpha-index a {
        min-width: 28px;
        height: 28px;
        font-size: 0.72rem;
    }
}

@media print {
    .sitemap-search,
    .sitemap-alpha-index,
    .sitemap-stats,
    .sitemap-quick-nav {
        display: none;
    }
    .sitemap-cat-body {
        display: block !important;
    }
    .sitemap-cat-body a {
        display: inline-block;
        margin-right: 10px;
        border-bottom: none;
    }
}

/* ===== 热门游戏修改器导航（首页/分类/归档页）===== */
.hot-tags-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 8px 0 28px;
    padding: 14px 18px;
    background: #f8f7fc;
    border: 1px solid #eceaf6;
    border-radius: 12px;
}
.hot-tags-label {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.9rem;
}
.hot-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #fff;
    border: 1px solid #e0d8f5;
    border-radius: 16px;
    color: #5e35b1;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.2s;
}
.hot-tag:hover {
    background: #7e57c2;
    color: #fff;
    border-color: #7e57c2;
}

/* ===== 文章页：最近更新徽章 ===== */
.article-updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0 4px;
    padding: 4px 12px;
    background: #eef7ee;
    border: 1px solid #cfe9cf;
    border-radius: 20px;
    font-size: 0.82rem;
    color: #2e7d32;
}
.article-updated .updated-label {
    font-weight: 600;
}

/* ===== 文章页：安全使用声明 ===== */
.article-disclaimer {
    margin: 28px 0;
    padding: 18px 22px;
    background: #fff8f3;
    border: 1px solid #f3d9c4;
    border-left: 4px solid #ef8a3c;
    border-radius: 10px;
}
.article-disclaimer .disclaimer-title {
    font-size: 1.05rem;
    color: #c2621b;
    margin-bottom: 10px;
}
.article-disclaimer .disclaimer-list {
    margin: 0;
    padding-left: 20px;
    color: #6b4a2f;
    font-size: 0.9rem;
    line-height: 1.9;
}
.article-disclaimer .disclaimer-list strong {
    color: #c2621b;
}

/* ===== 文章页：作者信息盒（E-E-A-T）===== */
.author-bio-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: 28px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f7fc, #f3eefb);
    border: 1px solid #e6def7;
    border-radius: 14px;
}
.author-bio-avatar {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7e57c2, #5e35b1);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.author-bio-body {
    flex: 1;
}
.author-bio-name {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 1rem;
    margin-bottom: 6px;
}
.author-bio-desc {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 8px;
}
.author-bio-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #7e57c2;
    text-decoration: none;
}
.author-bio-link:hover {
    text-decoration: underline;
}

/* ===== 页脚：热门游戏修改器 ===== */
.footer-hot {
    margin-top: 18px;
}
.footer-hot h3 {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 10px;
}
.footer-hot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}
.footer-hot-links a {
    color: #d9d2ef;
    text-decoration: none;
    font-size: 0.82rem;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: all 0.2s;
}
.footer-hot-links a:hover {
    background: #7e57c2;
    color: #fff;
}

@media (max-width: 600px) {
    .author-bio-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hot-tags-nav {
        padding: 12px 14px;
    }
}