/* ========== Banner ========== */
.page-banner-wrap { position: relative; width: 100%; max-width: 100%; height: 600px; overflow: hidden; }
.page-banner-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.page-banner-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ========== 主体内容区 ========== */
.page-content { padding: 0 0 70px; background: var(--bg-page); width: 100%; max-width: 100%; }
.page-layout { display: flex; gap: 56px; align-items: flex-start; }
.page-sidebar {
    width: 265px; flex-shrink: 0; margin-top: -85px; position: relative; z-index: 10;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
    border-radius: 0 0 12px 12px; overflow: hidden; background: #fff;
}
.side-cat-title {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff; font-size: 24px; font-weight: bold; padding: 0 32px; letter-spacing: 4px;
    text-align: center; height: 85px; display: flex; align-items: center; justify-content: center;
}
.side-menu { background: #fff; }
.side-menu li { border-bottom: 1px solid #f5f5f5; }
.side-menu li:last-child { border-bottom: none; }
.side-menu li a {
    display: block; padding: 18px 30px; font-size: 18px; color: var(--text-main);
    transition: all .3s; position: relative; font-weight: 500;
}
.side-menu li a:hover { background: var(--brand-light); color: var(--brand); padding-left: 38px; }
.side-menu li.active a { background: var(--brand-light); color: var(--brand); font-weight: bold; padding-left: 38px; }
.side-menu li.active a::before {
    content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%;
    background: var(--brand); border-radius: 0 2px 2px 0;
}
.page-main { flex: 1; min-width: 0; padding-top: 40px; }
.page-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.page-breadcrumb { font-size: 15px; color: var(--text-muted); margin-bottom: 0; padding-bottom: 0; border-bottom: none; flex-shrink: 0; }
.page-breadcrumb .breadcrumb-label { color: var(--text-muted); }
.page-breadcrumb a { color: var(--text-muted); transition: color .3s; }
.page-breadcrumb a:hover { color: var(--brand); }
.page-breadcrumb .sep { margin: 0 8px; color: #ddd; }
.page-breadcrumb .current { color: var(--text-muted); font-weight: normal; }
.page-title-wrap { margin-bottom: 0; min-width: 0; }
.page-title {
    font-size: 28px; font-weight: bold; color: var(--text-main);
    padding-left: 18px; border-left: 5px solid var(--brand); line-height: 1.3; letter-spacing: 1px;
}
.page-title-en {
    font-size: 12px; color: #c0c0c0; letter-spacing: 5px; margin-top: 8px;
    padding-left: 18px; text-transform: uppercase;
}

/* ========== 文章详情 ========== */
.article-detail {
    background: #fff; border-radius: 14px; padding: 56px 64px;
    box-shadow: 0 2px 16px rgba(0,0,0,.04); transition: box-shadow .3s;
    max-width: 100%; overflow: hidden;
}
.article-detail:hover { box-shadow: 0 6px 28px rgba(0,0,0,.07); }
.article-detail-title {
    font-size: 26px; font-weight: bold; color: var(--text-main);
    line-height: 1.5; margin-bottom: 24px; text-align: center; letter-spacing: .5px;
}
.article-detail-meta {
    display: flex; justify-content: center; align-items: center;
    margin-bottom: 36px; flex-wrap: wrap;
    padding-bottom: 28px; border-bottom: 1px solid #f0f0f0;
}
.article-detail-meta .meta-item { display: flex; align-items: center; gap: 6px; padding: 0; font-size: 14px; color: var(--text-muted); }
.article-detail-meta .meta-item + .meta-item { margin-left: 28px; }
.article-detail-meta .meta-item svg { width: 15px; height: 15px; fill: #ccc; flex-shrink: 0; }
.article-detail-content { font-size: 16px; color: #444; line-height: 2; word-break: break-word; }
.article-detail-content p { margin-bottom: 22px; text-indent: 2em; }
.article-detail-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 24px auto; display: block; }
.article-detail-content h1, .article-detail-content h2, .article-detail-content h3, .article-detail-content h4 {
    font-weight: bold; color: var(--text-main); margin: 34px 0 18px;
    padding-left: 16px; line-height: 1.5; position: relative;
}
.article-detail-content h1::before, .article-detail-content h2::before,
.article-detail-content h3::before, .article-detail-content h4::before {
    content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px;
    background: linear-gradient(to bottom, var(--brand), var(--brand-dark)); border-radius: 2px;
}
.article-detail-content h1 { font-size: 24px; }
.article-detail-content h2 { font-size: 22px; }
.article-detail-content h3 { font-size: 20px; }
.article-detail-content h4 { font-size: 18px; }
.article-detail-content blockquote {
    background: var(--brand-light); border: 0; padding: 20px 28px 20px 56px; margin: 28px 0;
    color: #666; font-size: 15px; border-radius: 0 10px 10px 0; position: relative; line-height: 1.9;
}
.article-detail-content blockquote::before {
    content: "\201C"; position: absolute; left: 18px; top: 10px;
    font-size: 48px; color: var(--brand); opacity: .25; font-family: Georgia, serif; line-height: 1;
}
.article-detail-content blockquote p { text-indent: 0; margin-bottom: 0; }
.article-detail-content ul { list-style: disc; }
.article-detail-content ol { list-style: decimal; }
.article-detail-content ul, .article-detail-content ol { margin: 16px 0 22px; padding-left: 2.5em; }
.article-detail-content ul li, .article-detail-content ol li { margin-bottom: 8px; }
.article-detail-content ul li::marker { color: var(--brand); }
.article-detail-content table { width: 100%; max-width: 100%; border-collapse: collapse; margin: 24px 0; display: block; overflow-x: auto; }
.article-detail-content table th, .article-detail-content table td { border: 1px solid #e5e5e5; padding: 10px 14px; font-size: 15px; }
.article-detail-content table th { background: #faf5f5; color: var(--brand); font-weight: bold; }
.article-detail-content a { color: var(--brand); }
.article-detail-content a:hover { text-decoration: underline; }
.article-detail-content strong { color: var(--brand); font-weight: bold; }

/* ========== 上一篇/下一篇 ========== */
.article-prev-next { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 32px; border-top: 1px solid #f0f0f0; }
.pn-item { flex: 1; min-width: 0; }
.pn-item a {
    display: flex; align-items: center; gap: 16px; padding: 18px;
    background: #faf8f6; border-radius: 12px; transition: all .3s; border: 1px solid #eee; height: 100%; min-width: 0;
}
.pn-item a:hover { background: #fff; border-color: var(--brand); box-shadow: 0 8px 24px rgba(200,16,46,.12); transform: translateY(-3px); }
.pn-thumb { flex-shrink: 0; width: 90px; height: 70px; border-radius: 8px; overflow: hidden; background: #f0f0f0; }
.pn-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pn-text { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.pn-label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.pn-label svg { width: 15px; height: 15px; fill: var(--brand); transition: transform .3s; flex-shrink: 0; }
.pn-item:last-child a:hover .pn-label svg { transform: translateX(4px); }
.pn-item:first-child a:hover .pn-label svg { transform: translateX(-4px); }
.pn-title {
    font-size: 15px; color: var(--text-main); font-weight: 500; line-height: 1.5;
    width: 100%; max-width: 100%; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s;
}
.pn-item a:hover .pn-title { color: var(--brand); }
.pn-empty {
    display: flex; align-items: center; gap: 16px; padding: 18px;
    background: #f5f5f5; border-radius: 12px; border: 1px solid #eee; height: 100%; cursor: not-allowed; min-width: 0;
}
.pn-empty .pn-label { color: #ccc; }
.pn-empty .pn-label svg { fill: #ccc; }
.pn-empty .pn-title { color: #ccc; }

/* ========== 响应式（详情页独有部分） ========== */
@media (max-width: 1200px) {
    .page-banner-wrap { height: 460px; }
    .page-layout { flex-direction: column; gap: 36px; }
    .page-sidebar { width: 100%; margin-top: -85px; }
    .side-cat-title { font-size: 22px; padding: 0 28px; height: 85px; letter-spacing: 4px; }
    .side-menu { display: flex; flex-wrap: wrap; }
    .side-menu li { border-bottom: none; border-right: 1px solid #f0f0f0; flex: 1; min-width: 25%; }
    .side-menu li:last-child { border-right: none; }
    .side-menu li a { padding: 16px 18px; font-size: 17px; text-align: center; }
    .side-menu li a:hover { padding-left: 18px; }
    .side-menu li.active a { padding-left: 18px; }
    .side-menu li.active a::before { display: none; }
    .page-main { padding-top: 0; width: 100%; }
    .page-header-row { flex-direction: column; align-items: flex-start; gap: 16px; }
    .page-breadcrumb { font-size: 14px; }
    .article-detail { padding: 32px 28px 40px; }
    .article-detail-title { font-size: 22px; }
    .article-detail-meta { flex-direction: column; gap: 8px; align-items: flex-start; padding-bottom: 20px; }
    .article-detail-meta .meta-item + .meta-item { margin-left: 0; }
    .article-detail-content { font-size: 15px; }
    .article-prev-next { flex-direction: column; gap: 14px; }
}
@media (max-width: 768px) {
    .page-banner-wrap { height: 380px; }
    .page-sidebar { margin-top: -85px; }
    .side-cat-title { font-size: 20px; padding: 0 24px; height: 85px; letter-spacing: 3px; }
    .page-content { padding-bottom: 50px; }
    .page-title { font-size: 24px; }
    .page-title-en { font-size: 11px; }
    .side-menu li { min-width: 50%; }
    .side-menu li:nth-child(2n) { border-right: 0; }
    .side-menu li a { font-size: 16px; }
    .article-detail { padding: 24px 18px 32px; border-radius: 12px; }
    .article-detail-title { font-size: 19px; margin-bottom: 18px; }
    .article-detail-meta { gap: 6px; margin-bottom: 28px; }
    .article-detail-content { font-size: 15px; line-height: 1.9; }
    .article-detail-content p { margin-bottom: 18px; }
    .article-prev-next { margin-top: 32px; padding-top: 24px; }
    .pn-item a, .pn-empty { padding: 14px; gap: 12px; }
    .pn-thumb { width: 72px; height: 56px; }
    .pn-title { font-size: 14px; }
}
@media (max-width: 600px) {
    .page-banner-wrap { height: 320px; }
}
