/**
 * 通用详情页样式
 * 文件: assets/css/single.css
 */

/* ===== 详情页布局 ===== */
.detail-layout {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.article-main {
    flex: 1;
    min-width: 300px;
}
.sidebar-right {
    width: 260px;
    flex-shrink: 0;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    font-size: 0.8rem;
    color: #666;
    padding: 0.4rem 0;
    margin-bottom: 0.6rem;
}
.breadcrumb a { color: #000080; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .separator { margin: 0 6px; color: #999; }
.breadcrumb .current { color: #333; font-weight: bold; }

/* ===== 文章头部（职业攻略） ===== */
.article-header {
    background: #faf5e8;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
}
.article-header h1 {
    font-size: 1.4rem;
    color: #000080;
    font-family: '宋体', 'SimSun', serif;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}
.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.8rem;
    color: #888;
    padding-bottom: 0.8rem;
    border-bottom: 1px dotted #c8b898;
}
.article-meta-row span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.article-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0.8rem;
    align-items: center;
}
.article-tags-row .tags-label {
    font-size: 0.8rem;
    color: #666;
}
.tag {
    display: inline-block;
    padding: 2px 10px;
    font-size: 0.75rem;
    border: 1px solid #b0a080;
    background: #efe8d0;
    color: #5a4a32;
    text-decoration: none;
}
.tag:hover {
    background: #e0d4b8;
    color: #000080;
}

/* ===== 文章目录 ===== */
.article-toc {
    background: #fffef5;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
}
.article-toc h3 {
    font-size: 0.95rem;
    color: #4a3810;
    font-family: '宋体', 'SimSun', serif;
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #c8b898;
    letter-spacing: 2px;
}
.article-toc ol {
    list-style: none;
    counter-reset: toc-counter;
}
.article-toc li {
    counter-increment: toc-counter;
    padding: 0.3rem 0;
    font-size: 0.85rem;
}
.article-toc li::before {
    content: counter(toc-counter) ".";
    color: #000080;
    font-weight: bold;
    margin-right: 8px;
}
.article-toc a {
    color: #000080;
    text-decoration: none;
}
.article-toc a:hover {
    text-decoration: underline;
    color: #cc0000;
}

/* ===== 文章正文 ===== */
.article-body {
    background: #faf5e8;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 1.5rem;
    margin-bottom: 1rem;
    line-height: 2;
    font-size: 0.9rem;
    overflow-x: hidden;
}
.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.article-body iframe {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}
.article-body .wp-caption,
.article-body figure {
    max-width: 100%;
    margin: 1rem auto;
    text-align: center;
}
.article-body .wp-caption-text,
.article-body figcaption,
.article-body .wp-caption-dd {
    text-align: center !important;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
}
.article-body table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.85rem;
    table-layout: fixed;
}
.article-body th,
.article-body td {
    padding: 6px 10px;
    border: 1px solid #c8b898;
    background: #fffef5;
    text-align: left;
    word-break: break-word;
}
.article-body th {
    background: #4a3810;
    color: #fffde0;
}
.article-body tr:nth-child(even) td {
    background: #f5f0e0;
}
.article-body h2 {
    font-size: 1.15rem;
    color: #000080;
    font-family: '宋体', 'SimSun', serif;
    margin: 1.5rem 0 0.8rem;
    padding-left: 10px;
    border-left: 4px solid #cc0000;
    letter-spacing: 2px;
}
.article-body h2:first-child {
    margin-top: 0;
}
.article-body h3 {
    font-size: 1rem;
    color: #4a3810;
    margin: 1.2rem 0 0.5rem;
    font-family: '宋体', 'SimSun', serif;
}
.article-body p {
    text-indent: 2em;
    margin-bottom: 0.8rem;
}
.article-body strong {
    color: #cc0000;
}

/* ===== 上下篇导航 ===== */
.article-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.article-nav a {
    padding: 6px 16px;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    background: #c0c0c0;
    color: #2a2a2a;
    text-decoration: none;
    font-size: 0.8rem;
}
.article-nav a:hover {
    background: #d4d0c8;
}
.article-nav a:active {
    border-color: #808080 #ffffff #ffffff #808080;
}

/* ===== 装备详情页头部 ===== */
.equip-detail-header {
    background: #faf5e8;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.equip-detail-icon {
    width: 120px;
    height: 120px;
    background: #fff8e8;
    border: 3px solid #cc6600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    border-radius: 8px;
}
.quality-badge {
    display: inline-block;
    padding: 2px 12px;
    background: linear-gradient(90deg, #cc6600, #e68a00);
    color: #fff;
    font-size: 0.75rem;
    margin-bottom: 0.6rem;
    border-radius: 3px;
}
.equip-detail-info h1 {
    font-size: 1.8rem;
    color: #000080;
    font-family: '宋体', 'SimSun', serif;
    margin: 0.2rem 0;
}
.equip-subtitle {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dotted #c8b898;
}
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
}
.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    border-bottom: 1px dotted #d0c8b0;
    font-size: 0.9rem;
}
.stat-label {
    color: #5a4a32;
}
.stat-val {
    color: #cc0000;
    font-weight: bold;
}

/* ===== 怪物详情页 ===== */
.monster-detail-header {
    background: #faf5e8;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
}
.monster-detail-header h1 {
    font-size: 1.4rem;
    color: #000080;
    font-family: '宋体', 'SimSun', serif;
    margin-bottom: 0.8rem;
}
.monster-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.8rem;
    color: #888;
    padding-bottom: 0.8rem;
    border-bottom: 1px dotted #c8b898;
}
.monster-section {
    background: #faf5e8;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 1.5rem;
    margin-bottom: 1rem;
    line-height: 2;
    font-size: 0.9rem;
}
.monster-section h2 {
    font-size: 1.15rem;
    color: #000080;
    margin: 1.5rem 0 0.8rem;
    padding-left: 10px;
    border-left: 4px solid #cc0000;
}
.monster-section h2:first-child {
    margin-top: 0;
}

/* ===== 任务详情页 ===== */
.quest-header {
    background: #faf5e8;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
}
.quest-header h1 {
    font-size: 1.4rem;
    color: #000080;
    font-family: '宋体', 'SimSun', serif;
    margin-bottom: 0.8rem;
}
.quest-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.8rem;
    color: #888;
    padding-bottom: 0.8rem;
    border-bottom: 1px dotted #c8b898;
}
.quest-section {
    background: #faf5e8;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 1.5rem;
    margin-bottom: 1rem;
    line-height: 2;
    font-size: 0.9rem;
}
.quest-section h2 {
    font-size: 1.15rem;
    color: #000080;
    margin: 1.5rem 0 0.8rem;
    padding-left: 10px;
    border-left: 4px solid #cc0000;
}

/* ===== 地图走法详情页 ===== */
.map-header {
    background: #faf5e8;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
}
.map-header h1 {
    font-size: 1.4rem;
    color: #000080;
    font-family: '宋体', 'SimSun', serif;
    margin-bottom: 0.8rem;
}
.map-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.8rem;
    color: #888;
    padding-bottom: 0.8rem;
    border-bottom: 1px dotted #c8b898;
}
.route-mantra {
    background: linear-gradient(90deg, #2a1a0a, #4a3810);
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}
.mantra-label {
    font-size: 0.8rem;
    color: #c0b080;
    letter-spacing: 3px;
    margin-bottom: 0.8rem;
}
.mantra-text {
    font-size: 2rem;
    color: #ffcc66;
    font-family: '宋体', 'SimSun', serif;
    letter-spacing: 8px;
    font-weight: bold;
    text-shadow: 2px 2px 0 #000;
}
.map-section {
    background: #faf5e8;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 1.5rem;
    margin-bottom: 1rem;
    line-height: 2;
    font-size: 0.9rem;
}
.map-section h2 {
    font-size: 1.15rem;
    color: #000080;
    margin: 1.5rem 0 0.8rem;
    padding-left: 10px;
    border-left: 4px solid #cc0000;
}

/* ===== 右侧边栏 ===== */
.side-box {
    background: #faf5e8;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    margin-bottom: 1rem;
}
.side-box-title {
    background: linear-gradient(90deg, #4a3810, #8b6914);
    color: #fffde0;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 2px;
}
.side-box-body {
    padding: 0.8rem;
}
.side-box-body ul {
    list-style: none;
}
.side-box-body li {
    padding: 0.4rem 0;
    border-bottom: 1px dotted #c8b898;
    font-size: 0.82rem;
}
.side-box-body li:last-child {
    border-bottom: none;
}
.side-box-body a {
    color: #000080;
    text-decoration: none;
}
.side-box-body a:hover {
    color: #cc0000;
    text-decoration: underline;
}
.side-box-footer {
    text-align: right;
    margin-top: 0.6rem;
    padding-top: 0.4rem;
    border-top: 1px dotted #c8b898;
}
.side-box-footer a {
    font-size: 0.7rem;
    color: #000080;
    text-decoration: none;
}

/* 开服信息卡片 */
.server-mini-item {
    padding: 0.5rem 0;
    border-bottom: 1px dotted #c8b898;
    font-size: 0.78rem;
}
.server-mini-item:last-child {
    border-bottom: none;
}
.server-mini-tag {
    display: inline-block;
    padding: 1px 6px;
    font-size: 0.65rem;
    font-weight: bold;
    margin-right: 4px;
}
.server-mini-tag.new {
    background: #ffe0e0;
    color: #cc0000;
    border: 1px solid #cc0000;
}
.server-mini-tag.rec {
    background: #e0f0ff;
    color: #0066cc;
    border: 1px solid #0066cc;
}
.server-mini-name {
    font-weight: bold;
    color: #000080;
}
.server-mini-info {
    color: #888;
    font-size: 0.7rem;
    margin-top: 0.15rem;
}

/* BOSS 速查 */
.boss-item {
    padding: 0.5rem 0;
    border-bottom: 1px dotted #c8b898;
}
.boss-item:last-child {
    border-bottom: none;
}
.boss-name {
    font-weight: bold;
    margin-bottom: 0.2rem;
}
.boss-name a {
    color: #000080;
    text-decoration: none;
}
.boss-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.7rem;
    color: #888;
}
.boss-location,
.boss-respawn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* 回到顶部 */
.back-to-top {
    text-align: center;
    margin-top: 0.5rem;
}
.back-to-top a {
    color: #000080;
    font-size: 0.8rem;
    text-decoration: none;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .detail-layout {
        flex-direction: column;
    }
    .sidebar-right {
        width: 100%;
    }
    .article-body p {
        text-indent: 1em;
    }
    .equip-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .stat-grid {
        grid-template-columns: 1fr;
    }
    .route-mantra .mantra-text {
        font-size: 1.3rem;
        letter-spacing: 4px;
    }
}

/* ===== 图片及说明文字强制居中 ===== */
.article-body img,
.map-section img,
.quest-section img,
.monster-section img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1rem auto !important;
    text-align: center;
}
.article-body .wp-caption,
.map-section .wp-caption,
.quest-section .wp-caption,
.monster-section .wp-caption,
.article-body figure,
.map-section figure,
.quest-section figure,
.monster-section figure {
    display: block;
    margin: 1rem auto !important;
    text-align: center;
    max-width: 100%;
}
.article-body .wp-caption-text,
.article-body .wp-caption-dd,
.article-body figcaption,
.article-body .wp-block-image figcaption,
.map-section .wp-caption-text,
.map-section .wp-caption-dd,
.map-section figcaption,
.quest-section .wp-caption-text,
.quest-section .wp-caption-dd,
.quest-section figcaption,
.monster-section .wp-caption-text,
.monster-section .wp-caption-dd,
.monster-section figcaption {
    text-align: center !important;
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: normal;
}
.article-body .wp-block-image,
.map-section .wp-block-image,
.quest-section .wp-block-image,
.monster-section .wp-block-image {
    text-align: center;
    margin: 1rem auto;
}
.article-body .wp-block-image img,
.map-section .wp-block-image img,
.quest-section .wp-block-image img,
.monster-section .wp-block-image img {
    margin: 0 auto;
}
.article-body table img {
    margin: 0 auto;
}
.aligncenter,
.aligncenter img {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
}

/* ===== 任务信息卡片区 - 独立框框样式（最终版本）===== */
.quest-info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.5rem;
}
.quest-info-card-item {
    background: #faf5e8;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 8px 16px;
    min-width: 120px;
    text-align: center;
}
.quest-info-card-label {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 4px;
    letter-spacing: 1px;
}
.quest-info-card-value {
    font-size: 0.95rem;
    font-weight: bold;
    color: #000080;
}
/* 难度颜色 */
.quest-info-card-value.easy {
    color: #4caf50;
}
.quest-info-card-value.medium {
    color: #ff9800;
}
.quest-info-card-value.hard {
    color: #cc0000;
}
/* 奖励图标 */
.reward-icons {
    font-size: 1rem;
    margin-right: 6px;
}
/* 奖励卡片稍宽 */
.quest-info-card-reward {
    min-width: 160px;
}
/* 响应式 */
@media (max-width: 768px) {
    .quest-info-cards {
        justify-content: center;
    }
}