/* ===== 东方韵味图片轮播 ===== */

.gallery-section {
    padding: 5rem 5%;
    background: linear-gradient(135deg, rgba(245,240,232,0.97) 0%, rgba(237,230,218,0.97) 100%);
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gallery-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/patterns/auspicious-pattern.png');
    background-repeat: repeat;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

.gallery-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.gallery-title h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.gallery-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* 轮播容器 */
.chinese-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 500px;
    transform-style: preserve-3d;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%) scale(0.9);
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

.carousel-slide.prev {
    transform: translateX(-100%) scale(0.9);
}

/* 卡片样式 */
.carousel-card {
    display: flex;
    gap: 2rem;
    height: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(139, 69, 19, 0.15);
    position: relative;
}

.carousel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--border);
    border-radius: 20px;
    pointer-events: none;
}

/* 左侧图片 */
.carousel-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}

.carousel-card:hover .carousel-image img {
    transform: scale(1.05);
}

/* 右侧内容 */
.carousel-content {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #faf8f5, #f5f0e8);
}

.carousel-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.carousel-content h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.carousel-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.carousel-meta {
    display: flex;
    gap: 2rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.meta-item span:first-child {
    font-size: 1.2rem;
}

/* 控制按钮 */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    transition: all 0.3s;
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: -25px;
}

.carousel-next {
    right: -25px;
}

/* 指示器 */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.carousel-dot::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: var(--primary);
    transform: scale(0);
    transition: transform 0.3s;
}

.carousel-dot.active::after {
    transform: scale(1);
}

.carousel-dot:hover {
    background: var(--primary-light);
}

/* 装饰元素 */
.carousel-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    pointer-events: none;
    opacity: 0.1;
}

.carousel-decoration.left {
    top: -50px;
    left: -50px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
}

.carousel-decoration.right {
    bottom: -50px;
    right: -50px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

/* 响应式 */
@media (max-width: 900px) {
    .carousel-card {
        flex-direction: column;
    }
    
    .carousel-track {
        height: 600px;
    }
    
    .carousel-content {
        padding: 2rem;
    }
    
    .carousel-content h3 {
        font-size: 1.5rem;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
}

/* 加载骨架 */
.skeleton {
    background: linear-gradient(90deg, 
        var(--border) 25%, 
        var(--bg-cream) 50%, 
        var(--border) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 淡入动画 */
.carousel-slide {
    animation: none;
}

.carousel-slide.active {
    animation: slideIn 0.8s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 悬浮效果 */
.carousel-card {
    transition: all 0.4s ease;
}

.carousel-card:hover {
    box-shadow: 
        0 30px 80px rgba(139, 69, 19, 0.2),
        0 0 0 1px var(--gold);
}

.carousel-card:hover .carousel-content h3 {
    color: var(--primary);
}

/* 文字动画 */
.carousel-content h3,
.carousel-content p {
    transition: color 0.3s;
}
