/* ===== 小蓝视频 - 深海蓝调主题样式 ===== */
/* CSS前缀: xl2- */

/* ===== 基础重置与变量 ===== */
:root {
    --xl2-primary: #0A192F;
    --xl2-secondary: #172A45;
    --xl2-accent: #64FFDA;
    --xl2-text: #CCD6F6;
    --xl2-link: #64FFDA;
    --xl2-text-dim: #8892B0;
    --xl2-glass-bg: rgba(23, 42, 69, 0.6);
    --xl2-glass-border: rgba(100, 255, 218, 0.1);
    --xl2-card-bg: rgba(10, 25, 47, 0.8);
    --xl2-gradient-dark: linear-gradient(180deg, #0A192F 0%, #0d1b2a 50%, #172A45 100%);
    --xl2-font-heading: "Source Han Serif CN", "Noto Serif SC", serif;
    --xl2-font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --xl2-radius: 12px;
    --xl2-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --xl2-glow: 0 0 20px rgba(100, 255, 218, 0.15);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--xl2-font-body);
    background: var(--xl2-primary);
    color: var(--xl2-text);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== 字体加载 ===== */
@font-face {
    font-family: "Inter";
    font-display: swap;
    src: local("Inter");
}

/* ===== 通用工具类 ===== */
.xl2-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.xl2-section {
    padding: 80px 0;
    position: relative;
}

.xl2-section-title {
    font-family: var(--xl2-font-heading);
    font-size: 2.2rem;
    color: var(--xl2-text);
    margin-bottom: 16px;
    font-weight: 700;
}

.xl2-section-subtitle {
    font-size: 1.1rem;
    color: var(--xl2-text-dim);
    margin-bottom: 48px;
    max-width: 600px;
}

.xl2-accent-text {
    color: var(--xl2-accent);
}

/* ===== 导航栏 ===== */
#xl2-header {
    width: 100%;
    background: var(--xl2-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--xl2-glass-border);
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.xl2-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.xl2-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.xl2-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0A192F, #1a3a5c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.xl2-logo-icon::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 8px solid var(--xl2-accent);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    margin-left: 2px;
}

.xl2-logo-text {
    font-family: var(--xl2-font-heading);
    font-size: 1.3rem;
    color: var(--xl2-text);
    font-weight: 700;
}

.xl2-nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.xl2-nav-links a {
    color: var(--xl2-text);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.xl2-nav-links a:hover {
    color: var(--xl2-accent);
    background: rgba(100, 255, 218, 0.05);
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

/* 汉堡菜单 */
.xl2-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.xl2-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--xl2-text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.xl2-hamburger.xl2-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.xl2-hamburger.xl2-active span:nth-child(2) {
    opacity: 0;
}

.xl2-hamburger.xl2-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端侧边导航 */
.xl2-mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--xl2-primary);
    border-left: 1px solid var(--xl2-glass-border);
    padding: 80px 24px 24px;
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.xl2-mobile-nav.xl2-open {
    right: 0;
}

.xl2-mobile-nav a {
    display: block;
    color: var(--xl2-text);
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.xl2-mobile-nav a:hover {
    color: var(--xl2-accent);
    background: rgba(100, 255, 218, 0.05);
}

.xl2-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.xl2-overlay.xl2-visible {
    opacity: 1;
    visibility: visible;
}

/* ===== Hero / 深海首映 ===== */
#xl2-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.xl2-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 0;
}

.xl2-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10,25,47,0.3) 0%, rgba(10,25,47,0.8) 70%, var(--xl2-primary) 100%);
    z-index: 1;
}

.xl2-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 24px;
    max-width: 800px;
}

.xl2-hero-content h1 {
    font-family: var(--xl2-font-heading);
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.2;
}

.xl2-hero-content p {
    font-size: 1.25rem;
    color: var(--xl2-text);
    margin-bottom: 36px;
    line-height: 1.8;
}

.xl2-btn {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    border: 1px solid var(--xl2-accent);
    color: var(--xl2-accent);
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.xl2-btn:hover {
    background: rgba(100, 255, 218, 0.1);
    box-shadow: var(--xl2-glow);
    transform: translateY(-2px);
}

.xl2-btn-primary {
    background: var(--xl2-accent);
    color: var(--xl2-primary);
    font-weight: 600;
}

.xl2-btn-primary:hover {
    background: #4de8c2;
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.3);
}

/* ===== 卡片系统 ===== */
.xl2-card {
    background: var(--xl2-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--xl2-glass-border);
    border-radius: var(--xl2-radius);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.xl2-card:hover {
    transform: translateY(-8px);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: var(--xl2-glow);
}

.xl2-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.xl2-card-body {
    padding: 24px;
}

.xl2-card-title {
    font-family: var(--xl2-font-heading);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 12px;
}

.xl2-card-desc {
    font-size: 0.9rem;
    color: var(--xl2-text-dim);
    line-height: 1.6;
}

.xl2-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--xl2-text-dim);
}

.xl2-card-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(100, 255, 218, 0.1);
    color: var(--xl2-accent);
    border-radius: 4px;
    font-size: 0.75rem;
}

/* ===== 网格布局 ===== */
.xl2-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.xl2-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.xl2-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ===== 纪录片库 ===== */
.xl2-library-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.xl2-filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--xl2-glass-border);
    color: var(--xl2-text-dim);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.xl2-filter-btn:hover,
.xl2-filter-btn.xl2-active {
    border-color: var(--xl2-accent);
    color: var(--xl2-accent);
    background: rgba(100, 255, 218, 0.05);
}

/* ===== 导演专访 ===== */
.xl2-interview-card {
    display: flex;
    gap: 32px;
    align-items: center;
    padding: 32px;
    background: var(--xl2-glass-bg);
    border: 1px solid var(--xl2-glass-border);
    border-radius: var(--xl2-radius);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.xl2-interview-card:hover {
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: var(--xl2-glow);
}

.xl2-interview-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--xl2-glass-border);
    flex-shrink: 0;
}

.xl2-interview-info h3 {
    font-family: var(--xl2-font-heading);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 8px;
}

.xl2-interview-info p {
    color: var(--xl2-text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== 观众评论 ===== */
.xl2-review-card {
    background: var(--xl2-glass-bg);
    border: 1px solid var(--xl2-glass-border);
    border-radius: var(--xl2-radius);
    padding: 28px;
    position: relative;
}

.xl2-review-card::before {
    content: "\201C";
    font-size: 4rem;
    color: var(--xl2-accent);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
}

.xl2-review-text {
    font-size: 0.95rem;
    color: var(--xl2-text);
    line-height: 1.8;
    margin-bottom: 16px;
    padding-top: 20px;
}

.xl2-review-author {
    font-size: 0.85rem;
    color: var(--xl2-accent);
}

/* ===== 主题策展 ===== */
.xl2-theme-card {
    position: relative;
    border-radius: var(--xl2-radius);
    overflow: hidden;
    height: 300px;
}

.xl2-theme-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.xl2-theme-card:hover img {
    transform: scale(1.05);
}

.xl2-theme-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(10, 25, 47, 0.95));
}

.xl2-theme-overlay h3 {
    font-family: var(--xl2-font-heading);
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.xl2-theme-overlay p {
    color: var(--xl2-text-dim);
    font-size: 0.85rem;
}

/* ===== 会员模块 ===== */
.xl2-membership-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.xl2-plan-card {
    background: var(--xl2-glass-bg);
    border: 1px solid var(--xl2-glass-border);
    border-radius: var(--xl2-radius);
    padding: 36px 28px;
    text-align: center;
    transition: all 0.3s ease;
}

.xl2-plan-card:hover {
    border-color: rgba(100, 255, 218, 0.3);
    transform: translateY(-4px);
}

.xl2-plan-card.xl2-featured {
    border-color: var(--xl2-accent);
    position: relative;
}

.xl2-plan-card.xl2-featured::before {
    content: "推荐";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--xl2-accent);
    color: var(--xl2-primary);
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.xl2-plan-name {
    font-family: var(--xl2-font-heading);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 8px;
}

.xl2-plan-price {
    font-size: 2.5rem;
    color: var(--xl2-accent);
    font-weight: 700;
    margin-bottom: 24px;
}

.xl2-plan-price span {
    font-size: 0.9rem;
    color: var(--xl2-text-dim);
}

.xl2-plan-features {
    list-style: none;
    margin-bottom: 28px;
}

.xl2-plan-features li {
    padding: 8px 0;
    color: var(--xl2-text-dim);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(100, 255, 218, 0.05);
}

/* ===== 放映日历 ===== */
.xl2-calendar-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--xl2-glass-bg);
    border: 1px solid var(--xl2-glass-border);
    border-radius: var(--xl2-radius);
    margin-bottom: 16px;
    align-items: center;
    transition: all 0.3s ease;
}

.xl2-calendar-item:hover {
    border-color: rgba(100, 255, 218, 0.3);
}

.xl2-calendar-date {
    text-align: center;
    min-width: 60px;
}

.xl2-calendar-date .xl2-day {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--xl2-accent);
    line-height: 1;
}

.xl2-calendar-date .xl2-month {
    font-size: 0.8rem;
    color: var(--xl2-text-dim);
    margin-top: 4px;
}

.xl2-calendar-info h4 {
    font-family: var(--xl2-font-heading);
    color: #fff;
    margin-bottom: 4px;
}

.xl2-calendar-info p {
    font-size: 0.85rem;
    color: var(--xl2-text-dim);
}

/* ===== 页脚 ===== */
#xl2-footer {
    background: var(--xl2-secondary);
    border-top: 1px solid var(--xl2-glass-border);
    padding: 60px 0 30px;
}

.xl2-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.xl2-footer-col h4 {
    font-family: var(--xl2-font-heading);
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.xl2-footer-col ul {
    list-style: none;
}

.xl2-footer-col ul li {
    margin-bottom: 10px;
}

.xl2-footer-col ul li a {
    color: var(--xl2-text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.xl2-footer-col ul li a:hover {
    color: var(--xl2-accent);
}

.xl2-footer-social {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.xl2-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--xl2-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--xl2-text-dim);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.xl2-footer-social a:hover {
    border-color: var(--xl2-accent);
    color: var(--xl2-accent);
}

.xl2-footer-bottom {
    border-top: 1px solid var(--xl2-glass-border);
    padding-top: 24px;
    text-align: center;
}

.xl2-footer-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.xl2-footer-badge {
    font-size: 0.8rem;
    color: var(--xl2-text-dim);
    padding: 6px 14px;
    border: 1px solid var(--xl2-glass-border);
    border-radius: 4px;
}

.xl2-footer-badge a {
    color: var(--xl2-text-dim);
    text-decoration: none;
}

.xl2-footer-badge a:hover {
    color: var(--xl2-accent);
}

.xl2-copyright {
    font-size: 0.8rem;
    color: var(--xl2-text-dim);
    margin-top: 12px;
}

/* ===== 表单样式 ===== */
.xl2-form-group {
    margin-bottom: 24px;
}

.xl2-form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--xl2-text);
    margin-bottom: 8px;
    font-weight: 500;
}

.xl2-form-input,
.xl2-form-textarea,
.xl2-form-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 25, 47, 0.6);
    border: 1px solid var(--xl2-glass-border);
    border-radius: 8px;
    color: var(--xl2-text);
    font-size: 0.95rem;
    font-family: var(--xl2-font-body);
    transition: border-color 0.3s ease;
}

.xl2-form-input:focus,
.xl2-form-textarea:focus,
.xl2-form-select:focus {
    outline: none;
    border-color: var(--xl2-accent);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

.xl2-form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===== APP下载页 ===== */
.xl2-app-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.xl2-app-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.xl2-app-text h1 {
    font-family: var(--xl2-font-heading);
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 16px;
}

.xl2-app-text p {
    font-size: 1.1rem;
    color: var(--xl2-text-dim);
    margin-bottom: 32px;
}

.xl2-app-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.xl2-phone-mockup {
    max-width: 300px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ===== 内页通用 ===== */
.xl2-page-header {
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.xl2-page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--xl2-gradient-dark);
    opacity: 0.9;
    z-index: 0;
}

.xl2-page-header-content {
    position: relative;
    z-index: 1;
}

.xl2-page-header h1 {
    font-family: var(--xl2-font-heading);
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 16px;
}

.xl2-page-header p {
    font-size: 1.1rem;
    color: var(--xl2-text-dim);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 水波纹动画背景 ===== */
.xl2-wave-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.03;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(100, 255, 218, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(100, 255, 218, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(23, 42, 69, 0.5) 0%, transparent 50%);
}

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

@keyframes xl2-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.xl2-animate-in {
    animation: xl2-fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* ===== 响应式设计 ===== */
/* 1440px */
@media (max-width: 1440px) {
    .xl2-container {
        max-width: 1200px;
    }
}

/* 1024px */
@media (max-width: 1024px) {
    .xl2-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .xl2-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .xl2-membership-plans {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .xl2-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .xl2-interview-card {
        flex-direction: column;
        text-align: center;
    }
    
    .xl2-app-content {
        flex-direction: column;
        text-align: center;
    }
}

/* 768px */
@media (max-width: 768px) {
    .xl2-nav-links {
        display: none;
    }
    
    .xl2-hamburger {
        display: flex;
    }
    
    .xl2-section {
        padding: 60px 0;
    }
    
    .xl2-section-title {
        font-size: 1.8rem;
    }
    
    .xl2-hero-content h1 {
        font-size: 2.2rem;
    }
    
    .xl2-grid-2,
    .xl2-grid-3,
    .xl2-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .xl2-membership-plans {
        grid-template-columns: 1fr;
    }
    
    .xl2-footer-grid {
        grid-template-columns: 1fr;
    }
    
    .xl2-page-header h1 {
        font-size: 1.8rem;
    }
    
    .xl2-app-text h1 {
        font-size: 2rem;
    }
}

/* 360px */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }
    
    .xl2-container {
        padding: 0 16px;
    }
    
    .xl2-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .xl2-section-title {
        font-size: 1.5rem;
    }
}
