/* ========== 全局 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

html {
    height: 100%;
}

body {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #f2f2f2;

    max-width: 1200px;
    min-width: 1050px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bei { display: none; }

/* ========== 头部 ========== */
.header-section {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(229, 229, 229, 0.6);
    flex-shrink: 0;
}

.article-title {
    font-size: 24px;
    color: #000;
    margin-bottom: 16px;
}

.article-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding-top: 10px;
    border-top: 1px solid rgba(229, 229, 229, 0.6);
}

.info-item {
    background: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 14px;
    color: #c00000;
    border: 1px solid #c00000;
}

/* ========== 主内容区 ========== */
.main-container {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 24px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 24px;
    align-items: start;
}

/* ========== 左侧列 ========== */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 文章图片（完全不透明） */
.article-image {
    background: white;
    border-radius: 18px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.article-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

/* 同专题推荐 */
.same-topic-box {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(229, 229, 229, 0.6);
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
    min-height: 200px;
}

.same-topic-title {
    font-size: 16px;
    color: #000;
    margin-bottom: 0;
    padding-left: 8px;
    border-left: 3px solid #c00000;
}

.same-topic-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

/* 文章列表 */
.same-topic-box .article-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.same-topic-box .article-item {
    border-bottom: 1px solid rgba(229, 229, 229, 0.6);
    padding-bottom: 6px;
    padding-left: 0 !important;
    position: static;
}

.same-topic-box .article-item::before {
    content: none !important;
}

.same-topic-box .article-link {
    font-size: 14px;
    color: #c00000;
    text-decoration: none;
    font-weight: normal;
}

.same-topic-box .article-link:hover {
    color: #a00000;
    padding-left: 4px;
    text-decoration: none;
}

.no-data {
    font-size: 13px;
    color: #999;
    text-align: center;
}

/* 分页按钮 */
.topic-pager {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    padding: 8px 0;
}

.page-btn {
    background: none !important;
    border: none !important;
    color: #c00000;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s, opacity 0.2s;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(.disabled) {
    color: #a00000;
}

.page-btn.disabled {
    color: #bbb;
    pointer-events: none;
    opacity: 0.5;
}

.page-btn .arrow {
    display: inline-block;
    line-height: 1;
    transform: none !important;
}

.page-indicator {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

/* 返回按钮 */
.back-btn {
    background: #c00000;
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: auto;
}

.back-btn:hover {
    background: #a00000;
}

/* ========== 右侧列（高度由 JS 同步） ========== */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
}

.article-summary {
    border-left: 4px solid #c00000;
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    background: rgba(255, 255, 255, 0.6);
    color: #000;
    font-size: 15px;
    flex-shrink: 0;
}

/* ========== 文章正文容器 ========== */
.article-content {
    position: relative;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 17px;
    color: #000;
    line-height: 1.9;
    word-break: break-word;
    white-space: pre-wrap;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
    z-index: 0;
}

/* 默认隐藏背景图 */
.article-content::before {
    content: none;
}

/* 无滚动条时显示低透明度背景 */
.article-content.no-scrollbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("../../images/detail/3A4A9B5A2A68E73E3C92BF12DD6530A3.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: inherit;
    opacity: 0.10;               /* 低透明度，仅见轮廓 */
    z-index: -1;
    pointer-events: none;
}

.article-content p {
    margin-bottom: 22px;
    text-align: justify;
}

.article-content p:last-child {
    margin-bottom: 0;
}

/* 滚动条 */
.article-content::-webkit-scrollbar {
    width: 6px;
}
.article-content::-webkit-scrollbar-thumb {
    background: #c00000;
    border-radius: 3px;
}
.article-content::-webkit-scrollbar-track {
    background: transparent;
}

/* ========== 页脚 ========== */
.footer {
    background: rgba(255, 255, 255, 0.75);
    text-align: center;
    padding: 28px 0;
    border-top: 1px solid rgba(221, 221, 221, 0.5);
    border-radius: 0 0 20px 20px;
    flex-shrink: 0;
}

.footer p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

/* 移动端 */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 4fr 6fr;
    }
}