/* 基础布局辅助 */
.writing-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* --- Swiper 定制指示器 --- */

/* 1. 全局基础样式 */
.swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
    background: var(--accent-gold, #c5a059) !important;
    opacity: 0.4 !important;
    border: 1px solid transparent !important;
    transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    transform: scale(1.4) !important;
    background: var(--accent-red, #a3262a) !important;
    border-color: var(--accent-gold, #c5a059) !important;
}

/* 2. 主导航（纵向）专项优化 */
.main-pagination .swiper-pagination-bullet {
    margin: 12px 0 !important;
    display: block !important;
}

/* 3. 嵌套图库导航（横向）专项优化 */
.ming-pagination, .xiandai-pagination {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.ming-pagination .swiper-pagination-bullet, 
.xiandai-pagination .swiper-pagination-bullet {
    margin: 0 !important;
    display: inline-block !important;
}

/* 针对动态分页圆点的显示修正 */
.swiper-pagination-bullets-dynamic {
    overflow: visible !important; /* 防止缩放的圆点被裁剪 */
}

/* 背景纹理效果 */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://www.transparenttextures.com/patterns/handmade-paper.png');
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

/* 装饰性水墨感背景 */
section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(163, 38, 42, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -50px;
    right: -50px;
    border-radius: 50%;
    z-index: 1;
}

/* 音乐旋转动画 */
.playing {
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 标题装饰布局 */
.title-seal {
    width: 3rem;
    height: 3rem;
    background-color: #a3262a; /* china-red */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.5rem;
    box-shadow: 2px 2px 0px rgba(197, 160, 89, 0.3); /* china-gold shadow */
    position: relative;
}

.title-seal::after {
    content: '';
    position: absolute;
    inset: 2px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.vertical-divider {
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #c5a059, transparent);
    margin: 0 1.5rem;
}

/* 渐显动画 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 动画延时辅助 */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* 指示器激活状态 */
.indicator span.active {
    opacity: 1;
    transform: scale(1.2);
    background-color: #a3262a; /* china-red */
    border-color: #c5a059; /* china-gold */
}

/* 响应式调整 - 横屏 */
@media (max-height: 500px) and (orientation: landscape) {
    section {
        flex-direction: row !important;
        justify-content: space-around !important;
    }
    
    .title-container {
        margin-bottom: 0 !important;
        margin-left: 2rem !important;
    }
    
    .content {
        max-width: 60% !important;
    }
}
