/* ===== 中国风纹饰样式 ===== */

/* 传统纹饰边框 - 旗边 */
.chinese-border {
    position: relative;
    padding: 2rem;
}

.chinese-border::before,
.chinese-border::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary) 10%, 
        var(--gold) 50%, 
        var(--primary) 90%, 
        transparent 100%
    );
}

.chinese-border::before {
    top: 0;
}

.chinese-border::after {
    bottom: 0;
}

/* 传统云纹装饰 */
.cloud-pattern {
    position: relative;
}

.cloud-pattern::before {
    content: '☁';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 1.5rem;
    color: var(--gold);
    opacity: 0.3;
}

/* 方形回纹边框 */
.fret-pattern {
    border: 2px solid var(--primary);
    position: relative;
    padding: 1.5rem;
}

.fret-pattern::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 1px solid var(--border);
    pointer-events: none;
}

/* 传统纹饰背景 - 海水江崖 */
.ocean-pattern {
    background: linear-gradient(135deg, 
        var(--bg-cream) 0%, 
        rgba(139, 69, 19, 0.05) 50%, 
        var(--bg-cream) 100%
    );
}

/* 卷草纹装饰 */
.vine-decoration {
    position: relative;
}

.vine-decoration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath d='M0,10 Q25,0 50,10 T100,10' stroke='%23C9A227' stroke-width='2' fill='none' opacity='0.5'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* 圆形纹饰 - 团花 */
.floral-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.floral-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50,10 Q60,30 50,50 Q40,30 50,10 M50,50 Q70,50 70,70 Q50,70 50,50 M50,50 Q30,50 30,70 Q50,70 50,50 M50,50 Q50,30 70,30 Q50,30 50,50 M50,50 Q50,70 30,70 Q50,70 50,50' stroke='white' stroke-width='1' fill='none' opacity='0.3'/%3E%3C/svg%3E") center/70% no-repeat;
}

/* 边框装饰 - 左右对称 */
.side-decoration {
    position: relative;
    padding: 0 3rem;
}

.side-decoration::before,
.side-decoration::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 0.8rem;
}

.side-decoration::before {
    left: 0;
}

.side-decoration::after {
    right: 0;
}

/* 传统标题装饰 */
.traditional-title {
    text-align: center;
    position: relative;
    padding: 1rem 0;
}

.traditional-title::before,
.traditional-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary));
}

.traditional-title::before {
    right: calc(50% + 60px);
}

.traditional-title::after {
    left: calc(50% + 60px);
    background: linear-gradient(90deg, var(--primary), transparent);
}

/* 浮雕纹理 */
.embossed {
    background: linear-gradient(135deg, 
        #f5f0e8 0%, 
        #ede6db 100%
    );
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.8),
        0 4px 20px rgba(139, 69, 19, 0.1);
}

/* 和纸纹理 */
.washi-texture {
    background: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E"),
        linear-gradient(135deg, var(--bg-cream), #f5f0e8);
}

/* 金色描边 */
.gold-border {
    border: 2px solid var(--gold);
    position: relative;
}

.gold-border::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid var(--gold);
    opacity: 0.5;
}

/* 动态轮播指示器 - 中国风圆点 */
.chinese-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.chinese-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

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

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

.chinese-dots .dot:hover::after {
    transform: scale(0.5);
}

/* 传统按钮 */
.traditional-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.traditional-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.traditional-btn:hover::before {
    left: 100%;
}

.traditional-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

/* 卡片悬浮效果 */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(139, 69, 19, 0.15),
        0 0 0 1px rgba(139, 69, 19, 0.1);
}

/* 渐入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* 脉动动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* 飘动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 旋转动画 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 弹幕动画 */
@keyframes slide {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}
