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

/* ====== 手机端导航按钮 ====== */
.mobile-nav-buttons {
    display: none;
    margin-bottom: 1rem;
    gap: 1rem;
    justify-content: center;
}

.mobile-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;
}

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

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

/* ====== 桌面端：三栏布局 ====== */
.content-desktop {
    display: flex;
    gap: 2rem;
}

.left-panel {
    flex: 1;
    min-width: 0;
}

/* ====== 右侧面板新布局 ====== */
.right-panel {
    flex: 0 0 800px;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    transition: all 0.3s ease;
}

.right-left,
.right-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.right-right {
    gap: 2rem;
}

/* ====== 左侧主图板块 ====== */
.main-image-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.main-image-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(255, 77, 77, 0.1);
    text-align: center;
    height: 100%;
    border: 1px solid #ffe6e6;
}

.main-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 1.5rem;
    display: block;
}

.image-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #cc0000;
}

/* ====== 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;
}

/* ====== 右侧各板块通用样式 ====== */
.collapsible-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(255, 77, 77, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #ffe6e6;
}

.section-header {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4d4d 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.section-header:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff3333 100%);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.collapse-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.section-content {
    padding: 2rem;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

/* 展开状态 */
.section-content.expanded {
    max-height: 5000px;
    opacity: 1;
    visibility: visible;
}

/* 折叠状态 */
.section-content.collapsed {
    max-height: 0 !important;
    opacity: 0;
    padding: 0 !important;
    visibility: hidden;
}

/* ====== 版面导航样式 ====== */
.banmiandaohang {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.banmiandaohang p {
    line-height: 2rem;
    border-bottom: #FFF5F5 1px solid;
    margin: 0;
    padding: 0.2rem 0;
}

.banmiandaohang p a {
    color: #333;
    display: block;
    padding: 0.25rem 0;
    transition: all 0.2s ease;
}

.banmiandaohang p a:hover {
    color: #990000;
}
/* ====== 版面导航按钮 ====== */
.layout-nav-buttons {
    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: "→";
}
/* 版面导航激活状态样式 */
.banmiandaohang a.active {
    color: #cc0000 !important;
    font-weight: bold;
    border-left: 3px solid #cc0000;
    padding-left: 10px;
}

/* ====== 底部信息板块 ====== */
.info-section .section-content {
    max-height: 2000px !important;
    opacity: 1 !important;
    padding: 1rem !important;
    visibility: visible !important;
}

.info-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    padding: 0.5rem;
    background: #fff5f5;
    border-radius: 8px;
    border-left: 4px solid #ff6b6b;
}

.info-item a{
    color: #cc0000;
    margin-bottom: 0.5rem;
}

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

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

.footer_sqd {
    width: 1000px;
    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 (min-width: 769px) {
    .pcno{display: none}
    /* 调整标题栏布局，使标题居中 */
    .collapsible-section:not(.info-section) .section-header {
        justify-content: left;
        cursor: default; /* 桌面端不可点击 */
        padding-left: 1rem;
    }

    /* 确保所有可折叠板块在桌面端都是展开状态 */
    .collapsible-section:not(.info-section) .section-content {
        display: block !important;
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 1rem !important;
    }
}

/* ====== 大桌面 (1400px以上) ====== */
@media (min-width: 1400px) {
    .right-panel {
        flex: 0 0 900px;
    }

    .content-desktop {
        gap: 3rem;
    }
}

/* ====== 桌面 (1200px以上) ====== */
@media (min-width: 1200px) {
    .content-desktop {
        gap: 2rem;
    }

    .right-panel {
        flex: 0 0 700px;
        gap: 2rem;
    }

    /* 确保版面导航有良好的阅读体验 */
    .banmiandaohang p {
        line-height: 2rem;
        font-size: 1rem;
    }
}

/* ====== 大平板/小桌面 (900px-1200px) ====== */
@media (min-width: 900px) and (max-width: 1200px) {
    .content-desktop {
        flex-direction: row;
        gap: 1.5rem;
    }

    .right-panel {
        flex: 0 0 400px;
        flex-direction: column;
    }

    .right-left, .right-right {
        min-width: auto;
        width: 100%;
    }

    /* 确保版面导航有足够的宽度 */
    .banmiandaohang p {
        line-height: 1.8rem;
        font-size: 0.95rem;
    }
}

/* ====== 小平板 (768px-900px) ====== */
@media (min-width: 768px) and (max-width: 900px) {
    .main-container {
        padding: 1.5rem;
    }

    .content-desktop {
        flex-direction: column;
    }

    .right-panel {
        flex-direction: row;
        gap: 1rem;
    }

    .right-left, .right-right {
        min-width: 280px;
    }

    /* 调整标题大小 */
    .section-title {
        font-size: 1.2rem;
    }

    /* 调整内边距 */
    .section-content {
        padding: 1.5rem !important;
    }
}

/* ====== 平板 (768px-1200px) ====== */
@media (min-width: 768px) and (max-width: 1200px) {
    .main-container {
        padding: 1.5rem;
    }

    .right-left, .right-right {
        min-width: 300px; /* 确保最小宽度 */
    }

    /* 调整日历样式适应中等屏幕 */
    .calendar td {
        height: 40px;
        font-size: 0.85rem;
    }

    .calendar th {
        font-size: 0.85rem;
    }

    /* 调整选择器布局 */
    .calendar-selectors {
        flex-wrap: wrap;
        gap: 10px;
    }

    .year-selector,
    .month-selector {
        min-width: 120px;
        flex: 1;
    }

    .today-btn {
        min-width: 80px;
    }

    /* 调整主图板块 */
    .main-image-card {
        padding: 1.5rem;
    }

    /* 改善版面导航链接的响应式 */
    .banmiandaohang a {
        padding: 0.5rem 0.5rem;
        line-height: 1.4;
        font-size: 0.95rem;
    }

    .banmiandaohang p {
        margin-bottom: 0.25rem;
    }
}

/* ====== 手机 (768px以下) ====== */
@media (max-width: 768px) {
    .phone-no{display: none}
    .pcno{display: flex}
    .main-container {
        padding: 1rem;
    }

    .content-desktop {
        flex-direction: column;
        gap: 1rem;
    }

    .right-panel {
        flex: 0 0 auto;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }

    .right-left, .right-right {
        width: 100%;
        min-width: auto;
    }

    /* 显示手机导航按钮 */
    .mobile-nav-buttons {
        display: flex;
    }

    /* 手机端隐藏版面导航和日历板块 */
    #banmian-daohang,
    #riqi-chaxun {
        display: none !important;
    }

    /* 手机端日历优化 */
    .calendar td {
        height: 35px;
        font-size: 0.85rem;
        padding: 2px;
    }

    .calendar th {
        padding: 0.5rem 0;
        font-size: 0.8rem;
    }

    .calendar-selectors {
        flex-wrap: wrap;
        gap: 8px;
    }

    .year-selector,
    .month-selector {
        flex: 1;
        min-width: 45%;
        padding: 6px 8px;
        font-size: 12px;
    }

    .today-btn {
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
        padding: 8px;
        font-size: 12px;
    }

    .mobile-bottom-panel {
        display: block;
    }


    /* 手机端主图板块优化 */
    .main-image-card {
        padding: 1rem;
    }

    /* 手机端版面导航优化 */
    .banmiandaohang p {
        line-height: 1.5rem;
        font-size: 0.9rem;
    }

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

    /* 手机端顶部header优化 */
    .logo {
        max-width: 250px;
        padding: 10px;
    }

    /* 弹窗动画 */
    .modal-overlay.active {
        display: flex;
        animation: modalFadeIn 0.3s ease-out;
    }
}

/* ====== 小手机优化 (480px以下) ====== */
@media (max-width: 480px) {
    .calendar td {
        height: 30px;
        font-size: 0.75rem;
    }

    .calendar-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .calendar-nav-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .calendar-month-year {
        font-size: 0.9rem;
    }

    .calendar-selectors {
        flex-direction: column;
    }

    .year-selector,
    .month-selector {
        width: 100%;
    }

    .today-btn {
        margin-top: 5px;
    }

    .main-container {
        padding: 0.5rem;
    }

    .section-content {
        padding: 1rem;
    }

    .calendar-container {
        padding: 0.5rem !important;
    }

    /* 小手机导航按钮优化 */
    .mobile-nav-buttons {
        align-items: center;
    }

    .mobile-nav-btn {
        max-width: 50%;
        width: 50%;
    }

    /* 弹窗在小手机上的优化 */
    .modal-content {
        max-height: 85vh;
    }

    .modal-body {
        padding: 1rem;
    }
}

/* ====== 通用改善样式 ====== */
.banmiandaohang a {
    transition: color 0.2s, border-left 0.2s, padding-left 0.2s;
}

.calendar-header {
    transition: all 0.3s ease;
}

.right-panel,
.right-left,
.right-right {
    transition: all 0.3s ease;
}

/* 改善版面导航链接的响应式 */
@media (max-width: 1200px) and (min-width: 768px) {
    .banmiandaohang a {
        padding: 0.5rem 0.5rem;
        line-height: 1.4;
        font-size: 0.95rem;
    }

    .banmiandaohang p {
        margin-bottom: 0.25rem;
    }
}