/* 寿宴风格色调变量 - 基于原科技感结构，仅替换颜色与装饰细节，字体完全不变 */
:root {
    --primary-red: #c49a6c;         /* 香槟金 / 寿宴主色 */
    --secondary-red: #b88645;       /* 暗金 */
    --dark-red: #9e6b3e;            /* 深褐色 */
    --glow-red: #e6b422;            /* 明黄 / 烛光色 */
    --gold: #d4af37;                /* 纯金 */
    --glow-gold: #ffc107;            /* 亮金色 */
    --dark-bg: #2c1e1a;             /* 深红木色背景 */
    --card-bg: rgba(60, 40, 30, 0.9); /* 暖棕半透明卡片 */
    --text-light: #fef6e4;           /* 米白 */
    --text-gray: #e0d6c0;            /* 暖灰 */
    --border-glow: rgba(196, 154, 108, 0.4); /* 香槟金边框光晕 */
    --shadow-red: rgba(196, 154, 108, 0.3);   /* 暖金色阴影 */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif;  /* 原字体完全保留 */
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 禁止右键菜单 (保留) */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 寿宴风格背景 - 祥云 / 暗纹 / 金色光斑 */
.tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

/* 网格改为仿古窗格 / 万字纹效果 */
.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(196, 154, 108, 0.08) 1px, transparent 1px) 0 0 / 60px 60px,
        linear-gradient(rgba(196, 154, 108, 0.08) 1px, transparent 1px) 0 0 / 60px 60px;
    opacity: 0.2;
}

/* 暖金色光斑，模拟烛光 */
.glow-spot-red {
    position: absolute;
    width: 450px;
    height: 450px;
    top: 15%;
    right: 5%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 180, 34, 0.15) 0%, transparent 70%);
    filter: blur(100px);
    animation: floatGlow 18s ease-in-out infinite alternate;
}

.glow-spot-gold {
    position: absolute;
    width: 400px;
    height: 400px;
    bottom: 10%;
    left: 5%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    filter: blur(100px);
    animation: floatGlow 22s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    100% { transform: translate(40px, -20px) scale(1.15); opacity: 0.8; }
}

/* 飘浮寿桃 / 福字剪影 (替换原心形) */
.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
}

.heart {
    position: absolute;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif; /* 保持一致 */
    color: rgba(230, 180, 34, 0.15);
    font-size: 28px;
    opacity: 0;
    text-shadow: 0 0 15px rgba(230, 180, 34, 0.4);
    animation: floatShou 18s linear infinite;
}

/* 使用文字符号替代，避免emoji字体影响 */
.heart:nth-child(1)::before { content: "🍑"; }
.heart:nth-child(2)::before { content: "福"; }
.heart:nth-child(3)::before { content: "寿"; }
.heart:nth-child(4)::before { content: "🍑"; }
.heart:nth-child(5)::before { content: "禧"; }
.heart:nth-child(6)::before { content: "🍷"; }

.heart:nth-child(1) { left: 10%; animation-delay: 0s; font-size: 32px; }
.heart:nth-child(2) { left: 30%; animation-delay: 3s; font-size: 36px; font-weight: bold; }
.heart:nth-child(3) { left: 50%; animation-delay: 6s; font-size: 36px; }
.heart:nth-child(4) { left: 70%; animation-delay: 9s; font-size: 32px; }
.heart:nth-child(5) { left: 90%; animation-delay: 12s; font-size: 30px; }
.heart:nth-child(6) { left: 20%; animation-delay: 15s; font-size: 28px; }

@keyframes floatShou {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-20vh) rotate(15deg);
        opacity: 0;
    }
}

#wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* 页面标题区域 - 寿宴风格 (红金搭配，增加祥云纹) */
.page-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, 
        rgba(80, 45, 30, 0.9) 0%, 
        rgba(110, 60, 40, 0.9) 50%, 
        rgba(80, 45, 30, 0.9) 100%);
    color: var(--text-light);
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 215, 0, 0.15),
        inset 0 0 30px rgba(230, 180, 34, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-glow);
    position: relative;
    overflow: hidden;
}

/* 祥云暗纹浮动 */
.page-header:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(230, 180, 34, 0.08) 45%, 
        rgba(212, 175, 55, 0.15) 50%, 
        rgba(230, 180, 34, 0.08) 55%, 
        transparent 70%);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.6;
    animation: borderGlow 4s linear infinite;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.page-title {
    font-size: 2.8rem;  /* 恢复原大小 */
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    /* 移除中文字体，完全恢复原字体设置 */
    color: #fff2d7;
    text-shadow: 2px 2px 0 #b88645, 4px 4px 8px rgba(0,0,0,0.3);
}

.page-title:before,
.page-title:after {
    content: '❁';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: var(--glow-gold);
    opacity: 0.7;
    text-shadow: 0 0 12px #ffb347;
}

.page-title:before {
    left: -60px;  /* 恢复原间距 */
}

.page-title:after {
    right: -60px;
}

/* 金色下划线 - 保留但调整宽度 */
.page-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;  /* 恢复原宽度 */
    height: 2px;   /* 恢复原高度 */
    background: linear-gradient(90deg, transparent, #e6b422, #f1c40f, #e6b422, transparent);
}

.title-highlight {
    background: linear-gradient(135deg, #f5d742, #e6b422, #c49a6c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 400;
    text-shadow: 0 0 30px rgba(255, 193, 7, 0.5);
}

.page-subtitle {
    font-size: 1.2rem;  /* 恢复原大小 */
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    letter-spacing: 1px;
    color: #f5e6d3;
}

/* Logo样式 - 可用寿字纹或寿桃logo */
.logo {
    text-align: center;
    padding: 20px 0 30px;
}

.logo img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 5px 20px rgba(230, 180, 34, 0.4));
    border-radius: 50%;
}

/* 视频卡片容器 - 寿宴风格卡片 */
.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0 50px;
}

.video-item {
    position: relative;
    border-radius: 15px;  /* 恢复原圆角 */
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 215, 0, 0.1);
    transition: var(--transition-smooth);
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(196, 154, 108, 0.3);
    cursor: pointer;
}

/* 仿古描边效果 */
.video-item:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(230, 180, 34, 0.1) 45%, 
        rgba(255, 215, 0, 0.2) 50%, 
        rgba(230, 180, 34, 0.1) 55%, 
        transparent 70%);
    border-radius: 17px;  /* 恢复原数值 */
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.video-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #e6b422;
    box-shadow: 
        0 20px 40px rgba(158, 107, 62, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 40px rgba(230, 180, 34, 0.2);
}

.video-item:hover:before {
    opacity: 1;
    animation: borderGlow 2.5s linear infinite;
}

video {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: cover;
    border-radius: 15px 15px 0 0;  /* 恢复原圆角 */
    border-bottom: 1px solid rgba(196, 154, 108, 0.4);
    transition: transform 0.6s ease;
}

.video-item:hover video {
    transform: scale(1.05);
}

.video-info {
    padding: 20px;
    background: rgba(60, 40, 30, 0.95);
    border-radius: 0 0 15px 15px;  /* 恢复原圆角 */
    position: relative;
}

/* 金色分隔线 */
.video-info:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #e6b422, #c49a6c, #f1c40f, transparent);
    opacity: 0.8;
}

.video-title {
    font-size: 1.2rem;
    color: #fff0db;
    margin-bottom: 8px;
    font-weight: 400;
    position: relative;
    padding-left: 25px;
}

/* 寿桃icon标记 - 使用伪元素保持字体统一 */
.video-title:before {
    content: '🍑';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px #e6b422);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif; /* 保持一致 */
}

.video-desc {
    color: #e0d6c0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 导航按钮区域 - 红金寿宴风格 */
.navigation-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 50px auto;
    max-width: 1000px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 30px;
    background: linear-gradient(135deg, 
        rgba(90, 50, 35, 0.95) 0%, 
        rgba(70, 40, 30, 0.95) 100%);
    color: #fef6e4;
    text-decoration: none;
    border-radius: 30px;  /* 恢复原圆角 */
    font-size: 1.1rem;
    font-weight: 400;
    transition: var(--transition-smooth);
    box-shadow: 
        4px 4px 15px rgba(0, 0, 0, 0.6),
        -4px -4px 15px rgba(255, 215, 0, 0.1),
        inset 0 0 0 1px rgba(230, 180, 34, 0.2),
        inset 0 0 25px rgba(230, 180, 34, 0.1);
    border: 1px solid #b88645;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    min-width: 150px;
    /* 字体完全恢复原样，不添加任何中文字体 */
}

.nav-btn:hover {
    color: #fff7e6;
    border-color: #f1c40f;
    transform: translateY(-5px);
    box-shadow: 
        6px 6px 25px rgba(0, 0, 0, 0.8),
        -6px -6px 25px rgba(255, 215, 0, 0.15),
        inset 0 0 35px rgba(230, 180, 34, 0.2),
        0 0 30px rgba(230, 180, 34, 0.4);
}

.nav-btn:active {
    transform: translateY(-2px);
}

.nav-btn i {
    color: #f5d742;
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* 上一页/下一页图标 - 保持原结构，只改颜色 */
.page-btn:first-child i {
    margin-right: 12px;
}

.page-btn:last-child i {
    margin-left: 12px;
}

.home-btn i {
    margin-right: 12px;
}

.nav-btn:hover i {
    transform: scale(1.2);
}

.page-btn:first-child:hover i {
    transform: translateX(-5px) scale(1.2);
}

.page-btn:last-child:hover i {
    transform: translateX(5px) scale(1.2);
}

/* 流光特效保留，颜色调整为金色 */
.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(230, 180, 34, 0.2), 
        transparent);
    transition: left 0.8s ease;
}

.nav-btn:hover::before {
    left: 100%;
}

/* 返回主目录按钮特殊样式：更深红 */
.home-btn {
    background: linear-gradient(135deg, 
        rgba(120, 60, 40, 0.95) 0%, 
        rgba(100, 50, 35, 0.95) 100%);
    border-color: #c49a6c;
    box-shadow: 
        4px 4px 15px rgba(0, 0, 0, 0.6),
        -4px -4px 15px rgba(255, 215, 0, 0.1),
        inset 0 0 0 1px rgba(255, 215, 0, 0.15),
        inset 0 0 25px rgba(230, 180, 34, 0.15);
    min-width: 180px;
}

.home-btn:hover {
    box-shadow: 
        6px 6px 25px rgba(0, 0, 0, 0.8),
        -6px -6px 25px rgba(255, 215, 0, 0.15),
        inset 0 0 35px rgba(230, 180, 34, 0.25),
        0 0 30px rgba(230, 180, 34, 0.5);
}

/* 装饰元素：寿桃、福字 */
.decoration {
    position: absolute;
    z-index: -1;
    opacity: 0.15;
    color: #e6b422;
    text-shadow: 0 0 30px #ffb347;
    font-size: 6rem;
    /* 保持字体一致 */
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif;
}

.decoration-1 {
    top: 15%;
    left: 5%;
    animation: pulseGlow 5s ease-in-out infinite;
}

.decoration-1::before {
    content: "🍑";
}

.decoration-2 {
    bottom: 15%;
    right: 5%;
    font-size: 5rem;  /* 恢复原大小 */
    animation: pulseGlow 6s ease-in-out infinite 2s;
}

.decoration-2::before {
    content: "寿";
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.1); }
}

/* 响应式设计 - 完全保持原样 */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-title:before,
    .page-title:after {
        width: 20px;
        font-size: 1.2rem;
    }
    
    .page-title:before {
        left: -35px;
    }
    
    .page-title:after {
        right: -35px;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .video-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 320px;
        padding: 14px 30px;
        font-size: 1rem;
        min-width: 0;
    }
    
    .home-btn {
        order: 1;
    }
    
    .page-btn:first-child {
        order: 2;
    }
    
    .page-btn:last-child {
        order: 3;
    }
    
    .decoration {
        display: none;
    }
    
    .glow-spot-red,
    .glow-spot-gold {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .video-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .navigation-buttons {
        padding: 0 20px;
    }
}

@media (min-width: 1200px) {
    .video-container {
        grid-template-columns: repeat(3, 1fr);
    }
}