/*
 * Mosee开发
 * 微信：18025769683
 * 视频展示网站样式 - 现代精致鲤鱼主题
 */

:root {
    /* 主色调 - 锦鲤红 */
    --primary-color: #ff6b6b;
    --primary-dark: #ee5a5a;
    --primary-light: #ff8e8e;
    
    /* 辅助色 - 清新青 */
    --secondary-color: #3dd6d0;
    --secondary-light: #6eeae5;
    --secondary-dark: #2ab8b3;
    
    /* 强调色 - 金色 */
    --accent-gold: #ffd700;
    --accent-orange: #ff9f43;
    --accent-coral: #ff7e5f;
    
    /* 默认主题变量 - 深色主题作为默认 */
    --bg-color: #000000;
    --bg-surface: #0a0a0a;
    
    /* 卡片背景 - 增强玻璃效果 */
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-bg-hover: rgba(255, 255, 255, 0.08);
    --card-glass: rgba(255, 255, 255, 0.05);
    
    /* 文字颜色 */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* 边框和阴影 - 增强层次 */
    --border-color: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.03);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(255, 94, 98, 0.25);
    --shadow-gold: 0 0 30px rgba(255, 215, 0, 0.2);
    
    /* 动画 - 更流畅的贝塞尔曲线 */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 背景层 */
.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-color);
    transition: var(--transition-normal);
}

/* 头部 - 高级玻璃拟态效果 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.98) 0%, rgba(15, 15, 15, 0.95) 100%);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 28px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.03);
}

.header-content {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 头部图片样式 */
.header-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.header-image {
    max-height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-image.loaded {
    opacity: 1;
}

/* 头部图片响应式适配 */
@media (max-width: 768px) {
    .header-image {
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .header-image {
        max-height: 40px;
    }
}

@media (max-width: 360px) {
    .header-image {
        max-height: 36px;
    }
}

.site-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.3px;
    position: relative;
    display: inline-block;
}

/* 头部文字渐变效果 - 仅应用内联样式设置的颜色 */
.site-title.gradient-text {
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    -moz-background-clip: text !important;
    -ms-background-clip: text !important;
    text-fill-color: transparent !important;
    display: inline-block;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* 移动端特殊处理 */
@supports (-webkit-touch-callout: none) {
    .site-title.gradient-text {
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
    }
}

/* 微信内置浏览器特殊处理 */
.wechat-browser .site-title.gradient-text,
.wx-browser .site-title.gradient-text {
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Android设备特殊处理 */
.android-device .site-title.gradient-text {
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    /* Android WebView需要这些额外的设置 */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* 强制GPU加速 */
    -webkit-transform: translateZ(0);
    /* 确保背景正确渲染 */
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* iOS设备特殊处理 */
.ios-device .site-title.gradient-text {
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* 纯色文字 - 仅应用内联样式设置的颜色 */
.site-title.solid-text {
    background: none !important;
    background-image: none !important;
}

.header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-width: 40px;
    height: 40px;
}

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

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

.header-btn:hover {
    background: linear-gradient(135deg, rgba(255, 94, 98, 0.15), rgba(255, 94, 98, 0.08));
    border-color: rgba(255, 94, 98, 0.3);
    color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 94, 98, 0.2);
}

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

.header-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.header-btn:hover i {
    transform: scale(1.1);
}

/* 语言切换按钮 - 高级简约设计 */
.lang-toggle-header {
    padding: 10px 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 40px;
}

.lang-toggle-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.lang-toggle-header:hover::before {
    left: 100%;
}

.lang-toggle-header:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 159, 67, 0.1));
    border-color: rgba(255, 215, 0, 0.4);
    color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.2);
}

.lang-toggle-header:active {
    transform: translateY(0);
}

.lang-toggle-header .lang-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
}

/* 深色主题语言按钮 */
body.dark-theme .lang-toggle-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .lang-toggle-header:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 159, 67, 0.08));
    border-color: rgba(255, 215, 0, 0.3);
}

/* 浅色主题语言按钮 */
body.light-theme .lang-toggle-header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.02));
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text-primary);
}

body.light-theme .lang-toggle-header:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 159, 67, 0.08));
    border-color: rgba(255, 107, 107, 0.3);
    color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.15);
}

/* 翻译中状态 */
.lang-toggle-header.translating {
    pointer-events: none;
    opacity: 0.7;
}

.lang-toggle-header.translating .lang-label {
    opacity: 0;
}

.lang-toggle-header.translating::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: lang-spin 0.8s linear infinite;
}

@keyframes lang-spin {
    to { transform: rotate(360deg); }
}

.search-trigger {
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.04));
    border-color: rgba(255, 215, 0, 0.2);
    color: var(--accent-gold);
}

.search-trigger:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.4);
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.25);
}

/* 客服按钮 */
.customer-service-trigger {
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(61, 214, 208, 0.1), rgba(61, 214, 208, 0.04));
    border-color: rgba(61, 214, 208, 0.2);
    color: var(--secondary-light);
}

.customer-service-trigger:hover {
    background: linear-gradient(135deg, rgba(61, 214, 208, 0.2), rgba(61, 214, 208, 0.1));
    border-color: rgba(61, 214, 208, 0.4);
    color: #fff;
    box-shadow: 0 6px 20px rgba(61, 214, 208, 0.25);
}

/* 轮播图 */
.home-carousel {
    width: 100%;
    margin-bottom: 20px;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: #000;
}

.carousel-track {
    display: flex;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide {
    flex-shrink: 0;
    width: 100%;
    display: none;
    position: relative;
}

.carousel-slide.active {
    display: block;
}

.carousel-title {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* 轮播图导航点 */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* 轮播图箭头 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-arrow.prev {
    left: 15px;
}

.carousel-arrow.next {
    right: 15px;
}

/* 只有一张图时隐藏导航 */
.carousel-wrapper.single-slide .carousel-dots,
.carousel-wrapper.single-slide .carousel-arrow {
    display: none;
}

/* 轮播图下方标题区域 */
.carousel-section-title {
    width: 100%;
    text-align: center;
    padding: 24px 16px;
    margin-bottom: 20px;
    background: transparent;
}

.carousel-section-title .carousel-title-text {
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
    display: block;
    font-size: clamp(1.5rem, 5vw, 2.5rem); /* 响应式字体大小 24px-40px */
}

.carousel-section-title .carousel-subtitle-text {
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    display: block;
    font-size: clamp(1.125rem, 4vw, 1.875rem); /* 副标题为标题的75% 18px-30px */
}

.carousel-section-title .carousel-activity-text {
    font-weight: 500;
    line-height: 1.5;
    margin: 16px 0 0 0;
    display: block;
    font-size: clamp(1.25rem, 4.5vw, 2rem);
    padding-top: 16px;
    border-top: 1px solid var(--border-color, rgba(128, 128, 128, 0.3));
    position: relative;
}

.carousel-section-title .carousel-activity-text::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-coral));
    border-radius: 1px;
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .carousel-section-title {
        padding: 16px 12px;
        margin-bottom: 12px;
    }

    .carousel-section-title .carousel-title-text {
        font-size: clamp(1.375rem, 4.5vw, 2rem);
        margin-bottom: 8px;
    }

    .carousel-section-title .carousel-subtitle-text {
        font-size: clamp(1.0625rem, 3.5vw, 1.5rem);
    }

    .carousel-section-title .carousel-activity-text {
        font-size: clamp(1.1875rem, 4vw, 1.75rem);
        margin-top: 12px;
        padding-top: 12px;
    }

    .carousel-section-title .carousel-activity-text::before {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .carousel-section-title {
        padding: 12px 8px;
        margin-bottom: 8px;
    }

    .carousel-section-title .carousel-title-text {
        font-size: clamp(1.25rem, 4vw, 1.625rem);
        margin-bottom: 6px;
    }

    .carousel-section-title .carousel-subtitle-text {
        font-size: clamp(0.9375rem, 3vw, 1.25rem);
    }

    .carousel-section-title .carousel-activity-text {
        font-size: clamp(1.0625rem, 3.5vw, 1.375rem);
        margin-top: 10px;
        padding-top: 10px;
    }

    .carousel-section-title .carousel-activity-text::before {
        width: 30px;
    }
}

/* ==================== 客服二维码弹窗样式 ==================== */

/* 客服图标按钮 */
.customer-service-trigger {
    position: relative;
    transition: var(--transition-normal);
}

.customer-service-trigger:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.customer-service-trigger:hover i {
    animation: headset-pulse 1.5s ease-in-out infinite;
}

@keyframes headset-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* 二维码弹窗 */
.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-modal.active {
    display: flex;
    opacity: 1;
}

.qr-modal-content {
    background: var(--card-glass, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-xl, 24px);
    padding: 0;
    max-width: 380px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 60px rgba(255, 107, 107, 0.15);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qr-modal.active .qr-modal-content {
    transform: scale(1) translateY(0);
}

.qr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.qr-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.qr-modal-header h3 i {
    color: var(--primary-color);
    font-size: 1.1em;
}

.qr-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.qr-modal-close:hover {
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.qr-modal-body {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-image-container {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    background: var(--bg-surface, #1a1a1a);
    border: 2px solid var(--border-color, rgba(255, 255, 255, 0.1));
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.qr-image.loaded {
    display: block;
    animation: qr-fade-in 0.5s ease;
}

@keyframes qr-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.qr-loading {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 32px;
}

.qr-loading.hidden {
    display: none;
}

.qr-error {
    position: absolute;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
}

.qr-error.visible {
    display: flex;
}

.qr-error i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.qr-error span {
    font-size: 14px;
}

.qr-tip {
    margin: 24px 0 0;
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
}

/* 浅色主题 - 二维码弹窗适配 */
body.light-theme .qr-modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 0 60px rgba(255, 107, 107, 0.1);
}

body.light-theme .qr-modal-header {
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .qr-image-container {
    background: #f5f5f5;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.05),
        0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 移动端适配 */
@media (max-width: 480px) {
    .qr-modal-content {
        max-width: 320px;
    }
    
    .qr-image-container {
        width: 200px;
        height: 200px;
    }
    
    .qr-modal-body {
        padding: 24px 20px;
    }
    
    .qr-tip {
        font-size: 14px;
    }
}

/* 渐变文字效果支持 */
.carousel-section-title .carousel-title-text[data-gradient="true"],
.carousel-section-title .carousel-subtitle-text[data-gradient="true"],
.carousel-section-title .carousel-activity-text[data-gradient="true"] {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 主内容区 */
.main-content {
    max-width: 1800px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* 视频网格 - 响应式布局：电脑/iPad端自动铺满，手机端固定2个 */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    align-items: start;
    max-width: 1800px;
    margin: 0 auto;
}

/* 懒加载占位样式 - 统一的加载中视觉反馈 */
.video-card[data-lazy="true"] .video-cover,
.video-card[data-loading="true"] .video-cover {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    background-size: 200% 200%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    min-height: 200px;
    position: relative;
}

/* 加载中占位符 - 统一的加载状态提示 */
.video-card[data-lazy="true"] .video-cover::before,
.video-card[data-loading="true"] .video-cover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color, #ff6b6b);
    border-radius: 50%;
    animation: cover-loading-spin 1s linear infinite;
    z-index: 5;
}

/* 加载状态文字提示 */
.video-card[data-lazy="true"] .video-cover::after,
.video-card[data-loading="true"] .video-cover::after {
    content: '加载中...';
    position: absolute;
    top: calc(50% + 30px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    z-index: 5;
    white-space: nowrap;
}

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

@keyframes cover-loading-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 图片加载完成前隐藏 */
.video-card[data-lazy="true"] .video-cover img,
.video-card[data-loading="true"] .video-cover img {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 图片加载完成后显示 */
.video-card[data-loaded="true"] .video-cover img {
    opacity: 1;
    visibility: visible;
}

/* 图片加载错误时的默认图样式 */
.video-card[data-error="true"] .video-cover {
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1a2e 100%);
    animation: none;
}

.video-card[data-error="true"] .video-cover::before,
.video-card[data-error="true"] .video-cover::after {
    display: none;
}

/* 性能优化 - 使用GPU加速 */
.videos-grid {
    will-change: transform;
    contain: layout style paint;
}

/* 视频卡片 - 增强交互效果 */
.video-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
    /* 使用flex布局确保封面区域独立 */
    display: flex;
    flex-direction: column;
    /* GPU加速 */
    will-change: transform, box-shadow;
    contain: layout style;
    /* 硬件加速 */
    transform: translateZ(0);
    backface-visibility: hidden;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* 悬停效果 - 优雅的缩放、阴影、边框 */
.video-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(255, 94, 98, 0.3),
                0 0 40px rgba(255, 94, 98, 0.15);
    border-color: rgba(255, 94, 98, 0.5);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
}

/* 点击效果 */
.video-card:active {
    transform: translateY(-6px) scale(0.98);
    transition-duration: 0.1s;
}

.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-coral), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

.video-card:hover::before {
    transform: scaleX(1);
}

/* 卡片光晕效果 */
.video-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 94, 98, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.video-card:hover::after {
    opacity: 1;
}

/* 封面区域 - 高度自适应图片 */
.video-cover {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    display: flex;
    flex-direction: column;
    /* 高度自适应，由图片决定 */
    height: auto;
    min-height: 200px;
    flex-shrink: 0;
}

/* 图片包装器 - 高度自适应图片 */
.cover-image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 图片自适应显示 - 保持原始比例 */
.cover-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* 横版图片样式 - 高度自适应 */
.video-cover.landscape .cover-image-wrapper {
    height: auto;
}

/* 竖版图片样式 - 高度自适应 */
.video-cover.portrait .cover-image-wrapper {
    height: auto;
}

/* 默认样式（图片加载前） - 增强交互效果 */
.cover-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 悬停时图片放大效果 */
.video-card:hover .cover-image-wrapper img {
    transform: scale(1.08);
}

/* 悬停时封面遮罩效果 */
.video-card:hover .cover-image-wrapper::after {
    opacity: 1;
}

.cover-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    padding: 16px;
}



/* 价格标签 */
.price-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* 截止时间 */
.deadline-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* 播放按钮 - 增强设计 */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(255, 94, 98, 0.95), rgba(255, 126, 95, 0.95));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(255, 94, 98, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.video-card:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.play-button::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 94, 98, 0.5), rgba(61, 214, 208, 0.5));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.video-card:hover .play-button::before {
    opacity: 1;
}

.play-button i {
    font-size: 28px;
    color: white;
    margin-left: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 视频信息 */
.video-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

/* 视频卡片封面覆盖层 */
.video-cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 封面标题 - 高对比度底色框，在顶部居中 */
.cover-title {
    /* 标题已隐藏 - 如需显示请删除下行 */
    display: none;
}

/* 封面截止时间 - 高对比度底色框，在左下角 */
.cover-deadline {
    font-size: 12px;
    color: #ffffff;
    font-weight: 600;
    /* 高对比度底色框 */
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.9), rgba(78, 205, 196, 0.7));
    /* 截止时间内边距 - 修改这里调整标签大小 */
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    /* 截止时间定位 - 修改left/bottom调整位置 */
    position: absolute;
    left: 20px; /* 截止时间左边距 */
    bottom: 40px; /* 截止时间底部边距 - 向上减少数值，向下增加数值 */
    right: auto;
    top: auto;
    z-index: 10;
}

/* 封面标签7 - 右下角显示 */
.cover-custom7 {
    font-size: 13px;
    color: #ffffff;
    font-weight: 600;
    /* 橙色渐变背景，与截止时间区分 */
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.95), rgba(255, 140, 0, 0.85));
    /* 标签7内边距 - 修改这里调整标签大小 */
    padding: 8px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    /* 标签7定位 - 修改right/bottom调整位置 */
    position: absolute;
    right: 20px; /* 标签7右边距 */
    bottom: 40px; /* 标签7底部边距 - 向上减少数值，向下增加数值 */
    left: auto;
    top: auto;
    z-index: 10;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 视频卡片信息区域 */
.video-card .video-info {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.video-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

/* 视频元信息 - 垂直排列布局 */
.video-card .video-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    width: 100%;
}

/* 标签项垂直排列样式 */
.video-card .video-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    line-height: 1.4;
    /* 占满整行 */
    width: 100%;
    justify-content: flex-start;
    transition: all 0.2s ease;
}

/* 当只有一项时 */
.video-card .video-meta .meta-item:only-child {
    width: 100%;
}

/* 空标签区域完全隐藏 */
.video-card .video-meta:empty {
    display: none;
    padding: 0;
    margin: 0;
}

/* 标签项悬停效果 */
.video-card .video-meta .meta-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 107, 107, 0.3);
    transform: translateY(-1px);
}

/* 视频信息区域 - 平滑过渡 */
.video-card .video-info {
    padding: 8px 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* 当标签区域为空时，完全隐藏video-info */
.video-card .video-info:empty,
.video-card .video-info:has(.video-meta:empty) {
    display: none;
    padding: 0;
    height: 0;
}

/* 平滑显示效果 */
.video-card .video-meta {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-card .video-meta .meta-label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 400;
}

.video-card .video-meta .meta-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* 视频描述 */
.video-card .video-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 浅色主题视频卡片描述 - 黑色文字 */
body.light-theme .video-card .video-description {
    color: #000000;
}

/* 深色主题视频卡片描述 - 白色文字 */
body.dark-theme .video-card .video-description {
    color: #ffffff;
}

.video-card .video-description .desc-label {
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 4px;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-meta i {
    font-size: 12px;
    color: var(--primary-color);
}

/* 点击播放视频提示 */
.video-play-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 2px 4px;
    margin: 4px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    min-height: auto;
}

.video-play-hint i {
    font-size: 11px;
    color: var(--primary-color);
}

.video-play-hint:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 107, 107, 0.3);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* 浅色主题下的播放提示样式 */
body.light-theme .video-play-hint {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.7);
}

body.light-theme .video-play-hint:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
    color: #1a1a1a;
}

/* 视频详情区域 */
.video-details {
    padding: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
}

.detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* 观看视频按钮 - 通用版本 */
.watch-video-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    margin-top: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
}

.watch-video-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.watch-video-btn i {
    font-size: 20px;
}

/* 视频播放弹窗 - 适配横竖版视频，支持缩放和拖动 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
}

/* 浅色主题视频弹窗背景 */
body.light-theme .video-modal-backdrop {
    background: rgba(255, 255, 255, 0.95);
}

/* 弹窗内容容器 - 自适应布局 */
.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(20px);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.video-modal.active .video-modal-content {
    transform: scale(1) translateY(0);
}

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

/* 横版视频适配 */
.video-modal-content.landscape {
    max-width: 90vw;
}

/* 竖版视频适配 */
.video-modal-content.portrait {
    max-width: 450px;
}

/* 视频弹窗头部 */
.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    flex-shrink: 0;
}

.video-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.video-modal-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: rotate(90deg) scale(1.1);
}

/* 浅色主题关闭按钮 */
body.light-theme .video-modal-close {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
}

body.light-theme .video-modal-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

/* 视频弹窗工具栏 */
.video-modal-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
}

.video-zoom-level {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 50px;
    text-align: center;
}

/* 视频弹窗内容 - 适配HTML结构 */
.video-modal > .modal-content {
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 视频弹窗关闭按钮 */
.video-modal .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.video-modal .modal-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 20px rgba(255, 94, 98, 0.5);
}

/* 视频播放容器 - 自适应16:9比例 */
.video-player-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}

.video-player-container video,
.video-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain;
}

/* 视频信息区域 */
.video-modal .video-info {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.video-modal .video-info h2.video-title {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-primary);
}

.video-modal .video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.video-modal .video-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 16px;
}

/* 浅色主题视频描述 - 黑色文字 */
body.light-theme .video-modal .video-description {
    color: #000000;
}

/* 深色主题视频描述 - 白色文字 */
body.dark-theme .video-modal .video-description {
    color: #ffffff;
}

/* 轮播图响应式 */
@media (max-width: 768px) {
    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .carousel-dots {
        bottom: 10px;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    
    .carousel-arrow {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .carousel-arrow.prev {
        left: 8px;
    }
    
    .carousel-arrow.next {
        right: 8px;
    }
}

/* 深色主题 */
body.dark-theme {
    --bg-color: #000000;
    --bg-surface: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-bg-hover: rgba(255, 255, 255, 0.08);
    --card-glass: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.03);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    background: #000000;
    color: #ffffff;
}

body.dark-theme .background-layer {
    background: #000000;
}

body.dark-theme .site-header {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.92) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

body.dark-theme .video-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

body.dark-theme .video-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

body.dark-theme .search-trigger {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

body.dark-theme .search-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.dark-theme .video-modal .modal-content {
    background: #0a0a0a;
    color: #ffffff;
}

body.dark-theme .site-title.solid-text {
    color: #ffd700;
    -webkit-text-fill-color: #ffd700;
}

/* 深色主题 - 轮播图活动标题分割线 */
body.dark-theme .carousel-section-title .carousel-activity-text {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .carousel-section-title .carousel-activity-text::before {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-coral));
}

/* 浅色主题 */
body.light-theme {
    --bg-color: #ffffff;
    --bg-surface: #fafafa;
    --card-bg: rgba(0, 0, 0, 0.03);
    --card-bg-hover: rgba(0, 0, 0, 0.06);
    --card-glass: rgba(255, 255, 255, 0.8);
    --text-primary: #1a1a1a;
    --text-secondary: rgba(0, 0, 0, 0.75);
    --text-muted: rgba(0, 0, 0, 0.45);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    color: #1a1a1a;
}

body.light-theme .background-layer {
    background: #ffffff;
}

body.light-theme .site-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-theme .video-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .video-card:hover {
    background: #fafafa;
}

body.light-theme .search-trigger {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

body.light-theme .search-trigger:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.light-theme .video-modal .modal-content {
    background: #ffffff;
    color: #1a1a1a;
}

body.light-theme .site-title.solid-text {
    background: none !important;
    background-image: none !important;
}

/* 浅色主题下的渐变文字样式 - 仅应用内联样式 */
body.light-theme .site-title.gradient-text {
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* 浅色主题 + 微信浏览器 */
body.light-theme.wechat-browser .site-title.gradient-text,
body.light-theme.wx-browser .site-title.gradient-text {
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* 浅色主题 + Android设备 */
body.light-theme.android-device .site-title.gradient-text {
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* 浅色主题 - 搜索弹窗样式 */
body.light-theme .search-overlay {
    background: rgba(240, 242, 245, 0.9);
}

body.light-theme .search-modal {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 252, 0.98) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(0, 0, 0, 0.04),
                0 0 60px rgba(255, 94, 98, 0.08);
}

body.light-theme .search-modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.01) 100%);
}

body.light-theme .search-close {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
}

body.light-theme .search-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

body.light-theme .search-box {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .search-box:focus-within {
    background: rgba(0, 0, 0, 0.06);
    border-color: var(--accent-gold);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

body.light-theme .search-input::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

/* 浅色主题 - 通用弹窗样式 */
body.light-theme .modal {
    background: rgba(240, 242, 245, 0.9);
}

body.light-theme .modal-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 252, 0.98) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

body.light-theme .modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.01) 100%);
}

body.light-theme .modal-close {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .modal-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

body.light-theme .modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* 浅色主题 - 分享弹窗样式 */
body.light-theme .share-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .share-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

body.light-theme .share-preview {
    background: rgba(0, 0, 0, 0.05);
}

/* 浅色主题 - Toast提示样式 */
body.light-theme .toast-content {
    box-shadow: 0 8px 32px rgba(255, 94, 98, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* 浅色主题 - 骨架屏样式 */
body.light-theme .skeleton {
    background: linear-gradient(90deg, rgba(0,0,0,0.03) 25%, rgba(0,0,0,0.06) 50%, rgba(0,0,0,0.03) 75%);
    background-size: 200% 100%;
}

/* 浅色主题 - 视频封面加载状态 */
body.light-theme .video-card[data-lazy="true"] .video-cover,
body.light-theme .video-card[data-loading="true"] .video-cover {
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 50%, #f5f5f5 100%);
    background-size: 200% 200%;
}

body.light-theme .video-card[data-lazy="true"] .video-cover::before,
body.light-theme .video-card[data-loading="true"] .video-cover::before {
    border-color: rgba(0, 0, 0, 0.06);
    border-top-color: var(--primary-color);
}

body.light-theme .video-card[data-lazy="true"] .video-cover::after,
body.light-theme .video-card[data-loading="true"] .video-cover::after {
    color: rgba(0, 0, 0, 0.4);
}

body.light-theme .video-card[data-error="true"] .video-cover {
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
}

/* 浅色主题 - 按钮样式 */
body.light-theme .btn-secondary {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
}

body.light-theme .btn-outline {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-secondary);
}

body.light-theme .btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(255, 94, 98, 0.05);
}

/* 浅色主题 - 截止时间标签 */
body.light-theme .deadline-tag {
    background: rgba(0, 0, 0, 0.6);
}

/* 浅色主题 - 视频元信息标签 */
body.light-theme .video-card .video-meta .meta-item {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-theme .video-card .video-meta .meta-item:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 107, 107, 0.2);
}

/* 浅色主题 - 表单控件 */
body.light-theme .form-control {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .form-control:focus {
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.08);
}

/* 浅色主题 - 轮播图活动标题分割线 */
body.light-theme .carousel-section-title .carousel-activity-text {
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .carousel-section-title .carousel-activity-text::before {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-coral));
}

/* 浅色主题 - 滚动条 */
body.light-theme::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .video-modal {
        padding: 0;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 9999;
    }

    .video-modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        height: 100%;
        width: 100%;
    }

    /* 移动端横版视频 */
    .video-modal-content.landscape .video-container {
        width: 100%;
        max-height: 60vh;
        aspect-ratio: 16 / 9;
    }

    /* 移动端竖版视频 */
    .video-modal-content.portrait .video-container {
        width: 100%;
        max-width: 100%;
        max-height: 60vh;
        aspect-ratio: 9 / 16;
    }

    .video-container video,
    .video-container iframe {
        object-fit: contain;
    }

    .video-modal .video-info {
        padding: 16px;
        flex: 0 0 auto;
        max-height: 25vh;
        overflow-y: auto;
    }
    
    .video-modal-header {
        padding: 12px 16px;
    }
    
    .video-modal-title {
        font-size: 16px;
    }
    
    .video-modal-toolbar {
        padding: 8px 12px;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .video-modal-toolbar .toolbar-divider {
        height: 20px;
        margin: 0 4px;
    }
    
    .video-modal-toolbar .toolbar-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .video-modal-toolbar .video-zoom-level,
    .video-modal-toolbar .video-speed-level {
        font-size: 12px;
        min-width: 35px;
    }

    .video-modal-close {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* 小屏幕手机适配 */
@media (max-width: 480px) {
    .video-modal-content {
        height: 100%;
        width: 100%;
    }

    /* 小屏幕横版视频 */
    .video-modal-content.landscape .video-container {
        max-height: 65vh;
    }

    /* 小屏幕竖版视频 */
    .video-modal-content.portrait .video-container {
        max-height: 65vh;
        max-width: 100%;
    }

    .video-modal .video-info {
        padding: 12px 16px;
        max-height: 35vh;
    }

    .video-modal .video-info h2.video-title {
        font-size: 16px;
    }

    .video-modal .video-meta {
        font-size: 13px;
        gap: 8px 16px;
    }

    .video-modal .video-description {
        font-size: 14px;
        line-height: 1.6;
    }

    .video-modal-close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    /* 封面标题和截止时间移动端适配 */
    .cover-title {
        font-size: 13px;
        padding: 6px 10px;
        border-left-width: 3px;
    }

    .cover-deadline {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* 视频容器 - 自适应横竖版，支持缩放和拖动 */
.video-container {
    position: relative;
    flex: 1;
    min-height: 300px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: grab;
}

.video-container:active {
    cursor: grabbing;
}

.video-container.dragging {
    cursor: grabbing;
}

/* 横版视频容器 */
.video-modal-content.landscape .video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
}

/* 竖版视频容器 */
.video-modal-content.portrait .video-container {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 9 / 16;
    max-height: 60vh;
}

/* 视频播放器元素 - 支持缩放 */
.video-container iframe,
.video-container video,
.video-container #video-player {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain;
    transition: transform 0.1s ease-out;
}

/* 视频元素需要保持指针事件，以便控制条正常工作 */
.video-container video {
    pointer-events: auto;
}

/* 隐藏视频暂停时显示的中央播放按钮 */
.video-container video::-webkit-media-controls-overlay-play-button,
.video-container video::-webkit-media-controls-play-button {
    display: none !important;
}

/* Firefox */
.video-container video::-moz-media-controls-overlay-play-button,
.video-container video::-moz-media-controls-play-button {
    display: none !important;
}

/* 通用方式隐藏视频上的播放按钮 */
.video-container video[paused]::-webkit-media-controls-overlay-play-button {
    display: none !important;
}

/* 视频播放器缩放包装器 */
#video-player {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#video-player video,
#video-player iframe {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.1s ease-out;
}

/* 视频信息区域 - 始终完整显示 */
.video-info {
    padding: 20px 24px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    max-height: 200px;
    overflow-y: auto;
}

.video-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.video-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
}

/* 描述文字样式 */
.video-description {
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.8;
    margin-top: 8px;
}

/* 浅色主题描述 - 黑色文字 */
body.light-theme .video-description {
    color: #000000;
}

/* 深色主题描述 - 白色文字 */
body.dark-theme .video-description {
    color: #ffffff;
}

.desc-label {
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 6px;
}

/* 筛选弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 22, 40, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(180deg, rgba(36, 42, 74, 0.98) 0%, rgba(26, 31, 60, 0.98) 100%);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.modal-header h3 i {
    color: var(--primary-color);
    font-size: 22px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-normal);
}

.modal-close:hover {
    color: white;
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: rotate(90deg);
    box-shadow: 0 4px 15px rgba(255, 94, 98, 0.4);
}

.modal-body {
    padding: 28px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition-normal);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* 按钮 - 增强设计 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-coral));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 94, 98, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 94, 98, 0.45);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-light);
    background: rgba(255, 94, 98, 0.1);
    transform: translateY(-2px);
}

/* 加载更多 */
.load-more {
    text-align: center;
    padding: 40px 0;
}

/* Toast提示 - 增强设计 */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.active {
    transform: translateX(0);
}

.toast-content {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-coral));
    color: white;
    padding: 16px 28px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(255, 94, 98, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.toast-content i {
    font-size: 22px;
}

/* 空状态 - 增强设计 */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 80px;
    margin-bottom: 24px;
    opacity: 0.4;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state h3 {
    font-size: 26px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 700;
}

.empty-state p {
    font-size: 16px;
    opacity: 0.7;
}

/* 骨架屏 */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

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

.skeleton-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.skeleton-cover {
    aspect-ratio: 16 / 9;
}

.skeleton-content {
    padding: 20px;
}

.skeleton-title {
    height: 24px;
    margin-bottom: 12px;
}

.skeleton-meta {
    height: 16px;
    width: 60%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-header {
        padding: 10px 16px;
    }

    .header-content {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 12px;
    }

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

    .header-logo {
        width: 32px;
        height: 32px;
    }

    .site-title {
        font-size: 18px;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-right {
        width: auto;
        justify-content: flex-end;
        gap: 6px;
        flex-shrink: 0;
    }

    .header-btn {
        padding: 8px 12px;
        min-width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-full);
    }

    .header-btn i {
        font-size: 14px;
    }

    .search-trigger,
    .customer-service-trigger {
        padding: 8px 12px;
        min-width: 36px;
        height: 36px;
    }

    /* 移动端语言切换按钮 */
    .lang-toggle-header {
        padding: 8px 16px;
        min-width: 80px;
        height: 36px;
        font-size: 12px;
    }

    .lang-toggle-header .lang-label {
        font-size: 12px;
        letter-spacing: 0.5px;
    }
    
    .main-content {
        padding: 16px 12px;
    }
    
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .video-card {
        border-radius: 0;
    }
    
    .video-cover img {
        max-height: 300px;
    }
    
    .video-modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .video-info {
        padding: 16px;
    }
    
    .video-info h3 {
        font-size: 16px;
    }
    
    .price-tag {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .deadline-tag {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .video-title {
        font-size: 14px;
    }
    
    .video-meta {
        font-size: 11px;
        gap: 8px;
    }
    
    .detail-row {
        padding: 8px 0;
        font-size: 12px;
    }
    
    .youtube-btn {
        padding: 10px;
        font-size: 13px;
    }
    
    /* 平板端视频描述 */
    .video-card .video-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .video-modal .video-description {
        font-size: 15px;
        line-height: 1.7;
    }
}

@media (max-width: 1023px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .video-card {
        border-radius: 0;
    }

    /* 平板端标题样式 */
    .cover-title {
        font-size: 14px;
        padding: 6px 10px;
    }

    /* 平板端截止时间样式 */
    .cover-deadline {
        font-size: 11px;
        /* 平板端截止时间内边距 - 修改这里调整标签大小 */
        padding: 5px 10px;
        /* 平板端截止时间左边距 */
        left: 16px;
        /* 平板端截止时间底部边距 - 向上减少数值，向下增加数值 */
        bottom: 35px;
    }

    /* 平板端标签7样式 */
    .cover-custom7 {
        font-size: 12px;
        /* 平板端标签7内边距 - 修改这里调整标签大小 */
        padding: 6px 12px;
        /* 平板端标签7右边距 */
        right: 16px;
        /* 平板端标签7底部边距 - 向上减少数值，向下增加数值 */
        bottom: 35px;
        left: auto;
    }

    /* 平板端封面高度自适应 */
    .video-cover {
        height: auto;
        min-height: 180px;
    }
}

@media (max-width: 767px) {
    .header-logo {
        width: 28px;
        height: 28px;
    }

    .site-title {
        font-size: 22px;
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 12px;
    }

    .price-tag {
        font-size: 12px;
        padding: 4px 8px;
    }

    .deadline-tag {
        font-size: 10px;
        padding: 2px 6px;
    }

    .video-title {
        font-size: 14px;
    }

    /* 手机端标题样式 */
    .cover-title {
        font-size: 13px;
        padding: 5px 8px;
    }

    /* 手机端截止时间样式 */
    .cover-deadline {
        font-size: 10px;
        /* 手机端截止时间内边距 - 修改这里调整标签大小 */
        padding: 4px 8px;
        /* 手机端截止时间左边距 */
        left: 14px;
        /* 手机端截止时间底部边距 - 向上减少数值，向下增加数值 */
        bottom: 30px;
    }

    /* 手机端标签7样式 */
    .cover-custom7 {
        font-size: 11px;
        /* 手机端标签7内边距 - 修改这里调整标签大小 */
        padding: 5px 10px;
        /* 手机端标签7右边距 */
        right: 14px;
        /* 手机端标签7底部边距 - 向上减少数值，向下增加数值 */
        bottom: 30px;
        left: auto;
    }

    /* 手机端封面最小高度 */
    .video-cover {
        min-height: 150px;
    }

    /* 手机端标签垂直显示 */
    .video-card .video-meta {
        font-size: 12px;
        gap: 6px;
    }
    
    /* 手机端视频描述 */
    .video-card .video-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .video-modal .video-description {
        font-size: 15px;
        line-height: 1.7;
    }
}



/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 94, 98, 0.4), rgba(255, 126, 95, 0.4));
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 94, 98, 0.6), rgba(255, 126, 95, 0.6));
    background-clip: padding-box;
}

/* 选中效果 */
.video-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 搜索弹窗样式 - 增强玻璃拟态 */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 22, 40, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    background: linear-gradient(180deg, rgba(36, 42, 74, 0.98) 0%, rgba(26, 31, 60, 0.98) 100%);
    border-radius: var(--radius-xl);
    padding: 0;
    width: 90%;
    max-width: 520px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 
                0 0 0 1px rgba(255, 255, 255, 0.08),
                0 0 60px rgba(255, 94, 98, 0.1);
    transform: translateY(-40px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.search-overlay.active .search-modal {
    transform: translateY(0) scale(1);
}

/* 搜索弹窗头部 - 增强 */
.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.search-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.search-modal-header h3 i {
    color: var(--accent-gold);
    font-size: 20px;
}

.search-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.search-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 4px 15px rgba(255, 94, 98, 0.4);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 24px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.search-input {
    flex: 1;
    padding: 18px 28px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 500;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

.search-submit {
    padding: 18px 28px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    border: none;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.search-submit:hover {
    background: linear-gradient(135deg, #ffe033, var(--accent-gold));
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.search-submit:active {
    transform: scale(0.98);
}

.search-submit i {
    font-size: 20px;
}

@media (max-width: 768px) {
    .search-modal {
        width: 95%;
    }
    
    .search-modal-header {
        padding: 14px 16px;
    }
    
    .search-box {
        margin: 16px;
    }
    
    .search-input {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .search-submit {
        padding: 14px 20px;
    }
}

/* 分享弹窗样式 */
.share-options {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.share-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-normal);
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.share-btn.wechat:hover {
    background: rgba(7, 193, 96, 0.2);
    border-color: #07c160;
}

.share-btn.wechat i {
    font-size: 32px;
    color: #07c160;
}

.share-btn.copy:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: var(--primary-color);
}

.share-btn.copy i {
    font-size: 32px;
    color: var(--primary-color);
}

.share-btn span {
    font-size: 14px;
    color: var(--text-secondary);
}

.share-preview {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    gap: 12px;
    padding: 12px;
}

.share-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.share-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.share-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-info p {
    font-size: 12px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ==================== 封面图弹窗样式 - 支持缩放和拖动 ==================== */

.cover-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cover-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.cover-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* 浅色主题弹窗背景 */
body.light-theme .cover-modal-backdrop {
    background: rgba(255, 255, 255, 0.95);
}

.cover-modal-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cover-modal.active .cover-modal-container {
    transform: scale(1) translateY(0);
}

/* 弹窗头部 */
.cover-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    flex-shrink: 0;
}

.cover-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.cover-modal-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cover-modal-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: rotate(90deg) scale(1.1);
}

/* 浅色主题关闭按钮 */
body.light-theme .cover-modal-close {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
}

body.light-theme .cover-modal-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

/* 工具栏 */
.cover-modal-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
}

.toolbar-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.toolbar-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

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

/* 工具栏分隔线 */
.toolbar-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
}

body.light-theme .toolbar-divider {
    background: rgba(0, 0, 0, 0.15);
}

.zoom-level,
.video-zoom-level,
.video-speed-level {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 50px;
    text-align: center;
}

.video-speed-level {
    min-width: 45px;
}

/* 浅色主题工具栏 */
body.light-theme .toolbar-btn {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
}

body.light-theme .toolbar-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

/* 弹窗主体 */
.cover-modal-body {
    position: relative;
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    min-height: 300px;
}

/* 浅色主题主体背景 */
body.light-theme .cover-modal-body {
    background: #ffffff;
}

/* 深色主题主体背景 */
body.dark-theme .cover-modal-body {
    background: #000000;
}

/* 加载动画 */
.cover-modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: var(--primary-color);
    z-index: 1;
}

/* 图片包装器 */
.cover-modal-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: grab;
}

.cover-modal-image-wrapper:active {
    cursor: grabbing;
}

/* 弹窗图片 */
.cover-modal-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.1s ease-out;
    user-select: none;
    -webkit-user-drag: none;
    cursor: grab;
}

.cover-modal-image:active {
    cursor: grabbing;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .cover-modal-container {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .cover-modal-body {
        min-height: 200px;
    }
    
    .cover-modal-header {
        padding: 12px 16px;
    }
    
    .cover-modal-title {
        font-size: 16px;
    }
    
    .cover-modal-toolbar {
        padding: 8px 16px;
        gap: 12px;
    }
    
    .toolbar-btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .toolbar-divider {
        height: 20px;
        margin: 0 4px;
    }
    
    .video-zoom-level,
    .video-speed-level {
        font-size: 12px;
        min-width: 40px;
    }
    
    .cover-modal-image {
        max-height: 100%;
    }
}

/* 横屏模式适配 */
@media (max-width: 768px) and (orientation: landscape) {
    .cover-modal-container {
        height: 100%;
        max-height: 100vh;
    }
    
    .cover-modal-body {
        min-height: 200px;
    }
    
    .cover-modal-footer {
        padding: 8px 16px;
    }
    
    .cover-modal-tags {
        padding: 8px;
        flex-wrap: nowrap;
        justify-content: space-between;
        overflow-x: auto;
    }
    
    .cover-modal-tag {
        padding: 3px 6px;
        font-size: 11px;
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
    
    .cover-modal-tag .tag-label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .video-play-hint {
        padding: 2px 4px;
        font-size: 12px;
    }
    
    .video-play-hint i {
        font-size: 10px;
    }
}

/* 封面弹窗底部区域 */
.cover-modal-footer {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 浅色主题底部背景 */
body.light-theme .cover-modal-footer {
    background: #f5f5f5;
    border-color: #e0e0e0;
}

/* 深色主题底部背景 */
body.dark-theme .cover-modal-footer {
    background: #1a1a1a;
    border-color: #333333;
}

/* 封面弹窗标签区域 */
.cover-modal-tags {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 12px;
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 封面弹窗单个标签 */
.cover-modal-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    text-align: center;
}

/* 浅色主题标签背景 */
body.light-theme .cover-modal-tag {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

/* 深色主题标签 - 白色文字 */
body.dark-theme .cover-modal-tag {
    color: #ffffff;
}

/* 浅色主题标签 - 黑色文字 */
body.light-theme .cover-modal-tag {
    color: #000000;
}

/* 标签标签（名称） */
.cover-modal-tag .tag-label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 400;
}

/* 浅色主题标签名称颜色 - 深灰色 */
body.light-theme .cover-modal-tag .tag-label {
    color: rgba(0, 0, 0, 0.7);
}

/* 深色主题标签名称颜色 - 浅灰色 */
body.dark-theme .cover-modal-tag .tag-label {
    color: rgba(255, 255, 255, 0.7);
}

/* 标签值 */
.cover-modal-tag .tag-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* 浅色主题标签值 - 黑色 */
body.light-theme .cover-modal-tag .tag-value {
    color: #000000;
}

/* 深色主题标签值 - 白色 */
body.dark-theme .cover-modal-tag .tag-value {
    color: #ffffff;
}

/* 标签悬停效果 */
.cover-modal-tag:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 107, 107, 0.3);
    transform: translateY(-1px);
}

/* 浅色主题标签悬停效果 */
body.light-theme .cover-modal-tag:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* 封面弹窗操作区域 */
.cover-modal-actions {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* 跳转播放按钮 */
.cover-modal-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.cover-modal-play-btn i {
    font-size: 14px;
}

.cover-modal-play-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.cover-modal-play-btn:active {
    transform: translateY(0);
}

/* 响应式 - 平板端 */
@media (max-width: 768px) {
    .cover-modal-footer {
        padding: 12px 14px;
    }
    
    .cover-modal-tags {
        padding: 8px 10px;
        justify-content: space-between;
    }
    
    .cover-modal-tag {
        padding: 3px 6px;
        font-size: 11px;
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
    
    .cover-modal-tag .tag-label {
        font-size: 11px;
    }
    
    .cover-modal-play-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 响应式 - 手机端 */
@media (max-width: 480px) {
    .cover-modal-footer {
        padding: 10px 12px;
    }
    
    .cover-modal-tags {
        padding: 6px 8px;
        justify-content: space-between;
    }
    
    .cover-modal-tag {
        padding: 3px 5px;
        font-size: 10px;
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
    
    .cover-modal-tag .tag-label {
        font-size: 10px;
    }
    
    .cover-modal-play-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}
