/* ====== 主内容区容器 ====== */
.main-container {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ====== 内页主内容区 ====== */
.inner-page-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* ====== 左侧板块（包含图片和新闻标题） ====== */
.left-panel {
    flex: 1;
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 报纸信息标题 */
.paper-info {
    font-size: 1rem;
    color: #cc0000;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem;
    background: #fff5f5;
    border-radius: 8px;
    border: 1px solid #ffe6e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.paper-info a {
    color: #cc0000;
    text-decoration: none;
    flex: 1;
    text-align: center;
}

.paper-info a:hover {
    color: #990000;
}

/* ====== 导航按钮样式 ====== */
.nav-buttons-container {
    display: flex;
    gap: 0.8rem;
}

.nav-btn {
    font-size: 1rem;
    color: #cc0000;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem;
    background: url("/szb/img/anniumore.png") calc(100% - 10px) center no-repeat #fff5f5;
    border-radius: 8px;
    border: 1px solid #ffe6e6;
    width: 49%;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    color: white;
    text-decoration: none;
}

.nav-btn:active {
    transform: translateY(0);
}

/* 返回按钮 */
.back-btn {
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4d4d 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    color: white;
    text-decoration: none;
}

.back-btn::before {
    content: "←";
}

.main-image-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(255, 77, 77, 0.1);
    text-align: center;
    border: 1px solid #ffe6e6;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pcno{
    display: none;
}

/* 主图容器 */
.main-image-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* 调整图片变小 */
.main-image {
    width: 80%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 8px;
    display: block;
}

/* ====== SVG热点区域样式 ====== */
.image-hotspots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.image-hotspots.active {
    pointer-events: auto;
}

.hotspot-area {
    fill: transparent;
    stroke: transparent;
    cursor: pointer;
    transition: fill 0.2s;
}

.hotspot-area:hover {
    fill: rgba(255, 0, 0, 0.1);
}

/* 调试模式：显示热点区域轮廓 */
.debug-hotspots .hotspot-area {
    fill: rgba(255, 0, 0, 0.3);
    stroke: red;
    stroke-width: 1;
}

/* ====== 新闻标题栏 ====== */
.news-titles-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(255, 77, 77, 0.1);
    border: 1px solid #ffe6e6;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-titles-header {
    font-size: 1.2rem;
    font-weight: 600;
    color: #cc0000;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ffe6e6;
}

.news-titles-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    overflow-y: auto;
    max-height: 400px;
    padding-right: 0.5rem;
}

.news-titles-list::-webkit-scrollbar {
    width: 6px;
}

.news-titles-list::-webkit-scrollbar-track {
    background: #fff5f5;
    border-radius: 3px;
}

.news-titles-list::-webkit-scrollbar-thumb {
    background: #ffcccc;
    border-radius: 3px;
}

.news-titles-list::-webkit-scrollbar-thumb:hover {
    background: #ff9999;
}

.news-title-item {
    padding: 0.8rem;
    background: #fff5f5;
    border-radius: 8px;
    border-left: 4px solid #ff6b6b;
    transition: all 0.3s ease;
}

.news-title-item:hover {
    background: #ffe6e6;
    transform: translateX(5px);
}

.news-title-item a {
    color: #333;
    text-decoration: none;
    display: block;
    line-height: 1.4;
}

.news-title-item a:hover {
    color: #cc0000;
}

.news-title-item.active {
    background: #ffe6e6;
    border-left: 4px solid #cc0000;
}

.news-title-item.active a {
    color: #cc0000;
    font-weight: 600;
}

/* ====== 版面导航按钮 ====== */
.layout-nav-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.layout-btn {
    flex: 1;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4d4d 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.layout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    color: white;
    text-decoration: none;
}

.layout-btn:active {
    transform: translateY(0);
}

.layout-btn.disabled {
    background: linear-gradient(135deg, #cccccc 0%, #999999 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

.layout-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.layout-btn.prev::before {
    content: "←";
}

.layout-btn.next::after {
    content: "→";
}

/* ====== 右侧文章内容 ====== */
.article-panel {
    flex: 2;
    min-width: 0;
    order: 1; /* 桌面端默认顺序 */
    position: relative;
    margin-right: 80px; /* 为桌面端控制面板留出空间 */
}

.article-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(255, 77, 77, 0.1);
    border: 1px solid #ffe6e6;
    overflow: hidden;
}

/* 期数导航按钮区域 */
.issue-nav-buttons {
    display: flex;
    gap: 1rem;
    background: linear-gradient(to bottom, #fff5f5 0%, #ffffff 100%);
    border-bottom: 1px solid #ffe6e6;
}

.issue-btn {
    flex: 1;
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.issue-btn:hover {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
    border-color: #ff6b6b;
    color: #990000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
    text-decoration: none;
}

.issue-btn:active {
    transform: translateY(0);
}

/* 禁用状态样式 */
.issue-btn.disabled {
    background: #f5f5f5 !important;
    color: #999 !important;
    border-color: #ddd !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.issue-btn.disabled:hover {
    background: #f5f5f5 !important;
    color: #999 !important;
    border-color: #ddd !important;
    transform: none !important;
    box-shadow: none !important;
}
.issue-btn {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}
.issue-btn.prev::before {
    content: "←";
}

.issue-btn.next::after {
    content: "→";
}

/* 文章内容区域 */
.article-content-container {
    padding: 2rem;
}

.article-header {
    margin-top: 15px;
    margin-bottom: 15px;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid #ffe6e6;
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 10px auto;
    line-height: 1.3;
    text-align: center;
    transition: font-size 0.3s ease;
}
.article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    margin: 1rem 0;
    justify-content: space-between;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-content {
    font-size: 1.05rem;
    line-height: 2;
    transition: font-size 0.3s ease, line-height 0.3s ease;
}

.article-content h2 {
    color: #cc0000;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
    border-left: 4px solid #ff6b6b;
    padding-left: 1rem;
}

.article-content h3 {
    color: #ff3333;
    margin: 1.5rem 0 0.8rem;
    font-size: 1.25rem;
}

.article-content p {
    margin: 1rem auto;
    /*text-align: justify;*/
}

.article-content blockquote {
    border-left: 4px solid #ff6b6b;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
    background: #fff5f5;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.article-content ul, .article-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-content .caption {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

/* ====== 字体大小控制面板 ====== */
.font-control-panel {
    position: fixed;
    right: 20px;
    bottom: 120px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    transition: all 0.3s ease;
}

.font-control-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.font-control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}

.font-control-btn:active {
    transform: translateY(0);
}

.font-control-btn.share {
    font-size: 1.1rem;
    display: none; /* 默认隐藏，在微信中显示 */
}

.font-control-btn.toggle {
    font-size: 1.2rem;
    display: flex;
}

/* 移动端样式调整 */
@media (max-width: 768px) {
    .font-control-panel {
        display: flex;
        flex-direction: column; /* 正常的列布局 */
        gap: 8px;
        position: fixed;
        right: 10px;
        bottom: 20px;
        z-index: 1000;
    }

    .font-control-btn {
        width: 40px;
        height: 40px;
    }

    /* 移动端默认显示控制面板 */
    .font-control-panel {
        display: flex;
    }

    /* 收缩状态 */
    .font-control-panel.collapsed .font-control-btn:not(.toggle) {
        display: none;
    }
    /* 展开状态显示所有按钮 */
    .font-control-panel:not(.collapsed) .font-control-btn {
        display: flex;
    }
}

/* 桌面端样式调整 - 使用fixed定位在右下角 */
@media (min-width: 769px) {
    /* 将控制面板定位在视窗右下角 */
    .font-control-panel {
        position: fixed;
        right: 30px;
        bottom: 150px;
        top: auto;
        left: auto;
        transform: none;
        gap: 10px;
        z-index: 1000;
    }

    .font-control-btn {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .font-control-btn.toggle {
        display: none; /* 桌面端不需要toggle按钮 */
    }

    /* 调整按钮悬停效果 */
    .font-control-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(204, 0, 0, 0.3);
    }

    /* 调整article-panel的右边距 */
    .article-panel {
        margin-right: 0; /* 取消右边距 */
    }
}

/* 超小屏幕手机 */
@media (max-width: 480px) {
    .font-control-panel {
        right: 18px;
        bottom: 15px;
    }

    .font-control-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .font-control-btn.toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* ====== 响应式调整 ====== */
@media (max-width: 1200px) {
    .inner-page-content {
        gap: 1.5rem;
    }

    .article-content-container {
        padding: 2rem;
    }

    /* 调整图片大小 */
    .main-image {
        width: 85%;
    }
}

@media (max-width: 992px) {
    .inner-page-content {
        gap: 1.5rem;
    }

    /* 进一步调整图片大小 */
    .main-image {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }

    .inner-page-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* 在移动端，将文章内容放在最上面 */
    .article-panel {
        order: 0; /* 移动端：文章内容排在最前面 */
        width: 100%;
        margin-right: 0;
    }

    /* 在移动端，将左侧面板放在下面 */
    .left-panel {
        order: 1; /* 移动端：左侧面板排在文章内容后面 */
        position: static;
        width: 100%;
    }

    /* 恢复图片大小 */
    .main-image {
        width: 60%;
    }

    .main-image-card {
        display: none;
    }

    .news-titles-section {
        padding: 1.5rem;
    }

    /* 调整文章内容 */
    .article-content-container {
        padding: 1.5rem;
    }

    .article-title {
        font-size: 1.5rem;
    }
    .article-meta {
        gap: 0.5rem;
    }
    /* 移动端隐藏所有导航按钮 */
    .layout-nav-buttons,
    .issue-nav-buttons {
        display: none !important;
    }

    .footer_sqd {
        width: 100%;
        height: auto;
        padding: 1rem;
    }

    /* 调整新闻标题列表高度 */
    .news-titles-list {
        max-height: 300px;
    }

    /* 移动端调整返回按钮显示 */
    .paper-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .back-btn {
        align-self: flex-start;
    }
}

@media (max-width: 576px) {
    .main-container {
        padding: 0.5rem;
    }

    .article-content-container {
        padding: 1rem;
    }

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

    .main-image-card {
        display: none;
    }

    .news-titles-section {
        padding: 1rem;
    }

    /* 进一步调整图片大小 */
    .main-image {
        width: 80%;
    }

    /* 调整新闻标题列表高度 */
    .news-titles-list {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .main-image {
        width: 90%;
    }

    .news-titles-list {
        max-height: 200px;
    }
}

/* ====== 手机端：底部板块 ====== */
.mobile-bottom-panel {
    display: none;
    margin-top: 2rem;
}

/* ====== 页脚 ====== */
.site-footer {
    color: white;
    text-align: center;
    margin-top: auto;
}

.footer_sqd {
    margin: 0 auto;
    height: 190px;
}

.footer_sqd span {
    display: block;
    text-align: center;
    color: #999;
    font-size: 12px;
    line-height: 34px;
}

.links {
    color: #ffffff;
}

.links a {
    color: #ffffff;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}


/* 响应式调整 */
@media (max-width: 768px) {
    .phone-no{display: none}
    .pcno{display: flex}
    .image-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 28px;
    }

    .image-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .image-modal-nav {
        padding: 0 10px;
    }

    .image-counter {
        top: 10px;
        left: 10px;
        font-size: 12px;
    }

    .zoom-controls {
        bottom: -50px;
    }

    .zoom-btn {
        width: 25px;
        height: 25px;
        font-size: 16px;
    }
}