/*
Theme Name: 176复古网
Theme URI: https://www.176fugu.com
Author: 176复古网
Author URI: https://www.176fugu.com
Description: 专注1.76复古传奇的WordPress主题，包含攻略宝典、装备图鉴、地图大全、怪物BOSS、开区推荐等功能。
Version: 1.0
License: GPL v2 or later
Text Domain: 176fugu
*/

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

body {
    background-color: #1a150e;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300" opacity="0.08"><path d="M0 0 L400 0 L400 300 L0 300 Z" fill="none" stroke="%23b87c2e" stroke-width="0.5"/><circle cx="20" cy="25" r="1.2" fill="%23b87c2e"/><circle cx="120" cy="85" r="1" fill="%23b87c2e"/><circle cx="280" cy="170" r="1.5" fill="%23b87c2e"/><circle cx="340" cy="45" r="0.8" fill="%23b87c2e"/><circle cx="60" cy="220" r="1.2" fill="%23b87c2e"/><circle cx="370" cy="260" r="1" fill="%23b87c2e"/></svg>');
    font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Roboto, sans-serif;
}

.site-container {
    width: 1200px;
    margin: 0 auto;
    background-color: #f5ecd9;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========= 顶部导航 ========= */
.top-nav {
    background-color: #0f0c07;
    border-bottom: 2px solid #c9a03d;
    padding: 0 28px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-icon {
    font-size: 32px;
    color: #c9a03d;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #c9a03d;
    letter-spacing: 2px;
    font-family: "Noto Serif SC", serif;
}

.logo-text span {
    color: #e6b422;
    background: #2c2416;
    padding: 0 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-size: 20px;
}

.nav-menu {
    display: flex;
    gap: 36px;
}

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

.nav-menu a:hover,
.nav-menu .current-menu-item a,
.nav-menu .current-page-ancestor a {
    color: #c9a03d;
    border-bottom-color: #c9a03d;
}

.search-box {
    background: #2a2418;
    border-radius: 24px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #5e4b2b;
}

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

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

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

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

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

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

.breadcrumb span {
    color: #b8860b;
}

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

.content-main {
    width: 840px;
}

.sidebar {
    width: 320px;
}

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

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

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

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

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

.article-item {
    background: #fffbf0;
    border: 1px solid #ddceaa;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 16px;
    transition: all 0.2s;
    cursor: pointer;
}

.article-item:hover {
    transform: translateY(-2px);
    border-color: #c9a03d;
    box-shadow: 0 6px 12px rgba(0,0,0,0.06);
}

.article-icon {
    width: 60px;
    height: 60px;
    background: #f2e8d4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddceaa;
}

.article-icon i {
    font-size: 28px;
    color: #c9a03d;
}

.article-info {
    flex: 1;
}

.article-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c2416;
    margin-bottom: 6px;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #9e875f;
}

.article-excerpt {
    font-size: 13px;
    color: #7a6846;
    margin-top: 6px;
    line-height: 1.4;
}

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

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

.grid-card {
    background: #fffbf0;
    border: 1px solid #ddceaa;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.grid-card:hover {
    transform: translateY(-3px);
    border-color: #c9a03d;
}

.grid-card i {
    font-size: 36px;
    color: #c9a03d;
    margin-bottom: 8px;
}

.grid-card h4 {
    font-size: 14px;
    color: #2c2416;
    margin-bottom: 4px;
}

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

/* ========= 右侧边栏卡片 ========= */
.sidebar-card {
    background: #fffbf0;
    border: 1px solid #ddceaa;
    border-radius: 12px;
    padding: 18px 16px;
    margin-bottom: 24px;
}

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

/* 开区列表 */
.server-list {
    list-style: none;
}

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

.server-list li .server-time {
    background: #2c2416;
    color: #c9a03d;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    min-width: 70px;
    text-align: center;
}

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

.server-list li .server-info strong {
    color: #2c2416;
    display: block;
    font-size: 14px;
}

.server-list li .server-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    background: #c9a03d;
    color: #1f1a10;
}

.server-list li .server-status.hot {
    background: #a83232;
    color: #fff;
}

/* 热门排行 */
.hot-list {
    list-style: none;
}

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

.hot-list li .rank {
    width: 26px;
    height: 26px;
    background: #2c2416;
    color: #c9a03d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: bold;
    font-size: 13px;
}

.hot-list li .rank.top3 {
    background: #c9a03d;
    color: #1f1a10;
}

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

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

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

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.tag-cloud a {
    background: #f2e8d4;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    color: #8b6914;
    transition: all 0.2s;
}

.tag-cloud a:hover {
    background: #c9a03d;
    color: #1f1a10;
}

/* 金色按钮 */
.gold-btn {
    display: block;
    background: linear-gradient(135deg, #d4af37, #aa7c11);
    text-align: center;
    padding: 10px;
    border-radius: 40px;
    color: #1f1a10;
    font-weight: bold;
    text-decoration: none;
    margin-top: 16px;
    transition: 0.2s;
}

.gold-btn:hover {
    background: linear-gradient(135deg, #e6c268, #b8860b);
}

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

.pagination a,
.pagination span {
    background: #fef5e6;
    padding: 8px 16px;
    border: 1px solid #ddceaa;
    text-decoration: none;
    color: #8b6914;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.2s;
}

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

/* ========= 筛选Tab ========= */
.level-tabs,
.category-tabs,
.type-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 28px;
    border-bottom: 2px solid #e2d2ae;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #6f5a38;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 30px 30px 0 0;
    font-family: inherit;
}

.tab-btn:hover {
    color: #c9a03d;
    background: #f2e8d4;
}

.tab-btn.active {
    color: #c9a03d;
    background: #fffbf0;
    border-bottom: 3px solid #c9a03d;
    margin-bottom: -2px;
}

/* ========= 装备图鉴网格 ========= */
.equip-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.equip-card {
    background: #fffbf0;
    border: 1px solid #ddceaa;
    border-radius: 12px;
    padding: 18px 12px 16px;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
}

.equip-card:hover {
    transform: translateY(-6px);
    border-color: #c9a03d;
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.equip-icon {
    font-size: 56px;
    color: #8b6914;
    margin-bottom: 12px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.equip-name {
    font-size: 16px;
    font-weight: 700;
    color: #3a2a14;
    margin-bottom: 8px;
    border-bottom: 1px dashed #e2d2ae;
    display: inline-block;
    padding-bottom: 4px;
}

.equip-stats {
    font-size: 12px;
    color: #7c623e;
    line-height: 1.5;
    margin-top: 8px;
}

/* ========= 地图/BOSS卡片 ========= */
.map-grid,
.boss-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.map-card,
.boss-card {
    background: #fffbf0;
    border: 1px solid #ddceaa;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.map-card:hover,
.boss-card:hover {
    transform: translateY(-4px);
    border-color: #c9a03d;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.map-preview,
.boss-preview {
    height: 140px;
    background: linear-gradient(135deg, #3a2a14, #2c2416);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 2px solid #c9a03d;
}

.map-preview i,
.boss-preview i {
    font-size: 64px;
    color: #c9a03d;
    opacity: 0.9;
}

.map-level-badge,
.boss-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.map-info,
.boss-info {
    padding: 16px;
}

.map-name,
.boss-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c2416;
    font-family: "Noto Serif SC", serif;
    margin-bottom: 8px;
}

.monster-list,
.drop-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
}

.monster-tag,
.drop-tag {
    background: #f2e8d4;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    color: #b4682d;
}

/* ========= 详情页样式 ========= */
.page-header {
    margin-bottom: 24px;
    border-left: 6px solid #c9a03d;
    padding-left: 18px;
}

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

.article-header,
.equip-detail-header,
.map-header,
.boss-header {
    background: #fffbf0;
    border: 1px solid #ddceaa;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 28px;
}

.article-content {
    background: #fffbf0;
    border: 1px solid #ddceaa;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 28px;
    line-height: 1.8;
    color: #3a2a14;
    font-size: 16px;
}

.article-content h2 {
    font-size: 22px;
    color: #2c2416;
    font-family: "Noto Serif SC", serif;
    margin: 28px 0 16px 0;
    padding-left: 14px;
    border-left: 4px solid #c9a03d;
}

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

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

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

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

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

.article-content th {
    background: #f2e8d4;
}

.article-content .tip-box {
    background: #f2e8d4;
    border-left: 4px solid #c9a03d;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
}

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

/* ========= 响应式 ========= */
@media (max-width: 1200px) {
    .site-container {
        width: 100%;
    }
}

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

@media (max-width: 768px) {
    .top-nav {
        flex-wrap: wrap;
        height: auto;
        padding: 15px;
        gap: 15px;
    }
    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    .equip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .map-grid,
    .boss-grid {
        grid-template-columns: 1fr;
    }
}
/* ========== 图片和图片说明强制居中 ========== */

/* 1. 文章内容中的所有图片强制居中 */
.article-content img,
.single-content img,
.post-content img,
.entry-content img,
.page-content img,
.archive-content img,
.boss-content img,
.map-content img,
.equipment-content img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100%;
    height: auto;
}

/* 2. 图片说明文字强制居中（WordPress标准格式） */
.wp-caption {
    max-width: 100%;
    text-align: center !important;
}

.wp-caption img {
    display: block !important;
    margin: 0 auto !important;
}

.wp-caption-text,
.wp-caption-dd,
.wp-block-image figcaption,
.wp-block-gallery .blocks-gallery-image figcaption,
.wp-block-gallery .blocks-gallery-item figcaption,
figure figcaption,
.image-caption,
.gallery-caption {
    text-align: center !important;
    display: block !important;
    margin-top: 8px !important;
    margin-bottom: 10px !important;
    font-size: 13px;
    color: #7a6846;
}

/* 3. 古腾堡编辑器图片块强制居中 */
.wp-block-image {
    text-align: center !important;
}

.wp-block-image img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.wp-block-image .wp-element-caption,
.wp-block-image figcaption {
    text-align: center !important;
}

/* 4. 相册/画廊图片说明居中 */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

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

.gallery-icon img {
    display: block !important;
    margin: 0 auto !important;
}

.gallery-caption {
    text-align: center !important;
}

/* 5. 后台编辑器样式（前台不生效，但保留） */
.mceContentBody .wp-caption-text {
    text-align: center !important;
}

/* 6. 所有figure标签内的图片居中 */
figure {
    margin: 20px auto;
    text-align: center;
}

figure img {
    display: inline-block !important;
    margin: 0 auto !important;
}

figcaption {
    text-align: center !important;
}

/* 7. 防止主题自带样式覆盖 */
.aligncenter {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.alignnone {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 8. 响应式图片容器 */
.article-content figure,
.single-content figure {
    margin: 20px 0;
    text-align: center;
}
/* ========== 栏目页统一头部样式 ========== */

/* 面包屑导航 */
.archive-breadcrumb {
    margin-bottom: 20px;
    padding: 0;
    text-align: left;
    font-size: 13px;
    color: #7a6846;
}
.archive-breadcrumb a {
    color: #8b6914;
    text-decoration: none;
}
.archive-breadcrumb a:hover {
    text-decoration: underline;
}
.archive-breadcrumb span {
    color: #b8860b;
}

/* 栏目页头部 - 统一样式（无卡片框） */
.archive-header {
    margin-bottom: 24px;
    border-left: 6px solid #c9a03d;
    padding-left: 18px;
}
.archive-header h1 {
    font-size: 28px;
    color: #2c2416;
    margin: 0 0 6px 0;
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
}
.archive-header h1 i {
    color: #c9a03d;
    margin-right: 12px;
}
.archive-header p {
    color: #6f5a38;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}
/* ========== 统一面包屑导航样式 ========== */
.archive-breadcrumb {
    margin-bottom: 20px;
    padding: 0;
    text-align: left;
    font-size: 13px;
    color: #7a6846;
}
.archive-breadcrumb a {
    color: #8b6914;
    text-decoration: none;
}
.archive-breadcrumb a:hover {
    text-decoration: underline;
}
.archive-breadcrumb span {
    color: #b8860b;
}

/* ========== 友情链接样式（与网站整体风格一致） ========== */
.friend-links-section {
    background: #fffbf0;
    border-top: 1px solid #ddceaa;
    border-bottom: 1px solid #ddceaa;
    padding: 24px 28px;
    margin: 0;
}

.friend-links-title {
    font-size: 16px;
    font-weight: bold;
    color: #2c2416;
    border-left: 4px solid #c9a03d;
    padding-left: 14px;
    margin-bottom: 16px;
    font-family: "Noto Serif SC", serif;
}

.friend-links-title i {
    color: #c9a03d;
    margin-right: 8px;
}

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

.friend-link {
    background: #f2e8d4;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    color: #8b6914;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e2d2ae;
}

.friend-link:hover {
    background: #c9a03d;
    color: #1f1a10;
    transform: translateY(-2px);
    border-color: #c9a03d;
}

.no-links {
    color: #9e875f;
    font-size: 13px;
    text-align: center;
    padding: 10px;
}

/* 响应式 */
@media (max-width: 768px) {
    .friend-links-section {
        padding: 18px 20px;
    }
    .friend-link {
        padding: 4px 12px;
        font-size: 12px;
    }
}
/* ========== 所有表格强制居中（覆盖所有情况）========== */
/* 文章内容中的表格 */
.article-content table,
.equip-content table,
.map-content table,
.boss-content table,
.single-content table,
.entry-content table,
.post-content table,
.page-content table,
.wp-block-table table {
    margin-left: auto !important;
    margin-right: auto !important;
    display: table !important;
    width: auto !important;
    min-width: 300px;
    border-collapse: collapse !important;
    background-color: #fffbf0 !important;
}

/* 表格单元格文字居中，带边框 */
.article-content th,
.article-content td,
.equip-content th,
.equip-content td,
.map-content th,
.map-content td,
.boss-content th,
.boss-content td,
.single-content th,
.single-content td,
.entry-content th,
.entry-content td,
.post-content th,
.post-content td,
.page-content th,
.page-content td,
.wp-block-table th,
.wp-block-table td {
    text-align: center !important;
    vertical-align: middle !important;
    border: 1px solid #ddceaa !important;
    padding: 10px 12px !important;
    background-color: #fffbf0 !important;
}

/* 表头背景色 */
.article-content th,
.equip-content th,
.map-content th,
.boss-content th,
.wp-block-table th {
    background-color: #f2e8d4 !important;
    font-weight: 600 !important;
}

/* 表格容器 */
.wp-block-table {
    overflow-x: auto;
    margin: 20px 0;
}