/* ==========================================
   1. 全局基础样式与变量设置
   ========================================== */
:root {
    --bg-color: #09090b;       /* 极深背景色 */
    --card-bg: #18181b;        /* 卡片容器深灰色 */
    --text-main: #f4f4f5;      /* 主文字乳白色 */
    --text-muted: #a1a1aa;     /* 辅助文字灰色 */
    --accent-color: #ec4899;   /* 亮丽霓虹粉（主调色） */
    --accent-hover: #db2777;   /* 悬停时的粉色 */
    --border-color: #27272a;   /* 细边框颜色 */
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.5;
    padding-bottom: 40px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* ==========================================
   2. 顶部导航栏 (Header)
   ========================================== */
.site-header {
    background-color: #030303;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-main);
}
.logo span {
    color: var(--accent-color);
}

.search-bar {
    flex: 1;
    max-width: 600px;
    display: flex;
    background-color: #121214;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.search-bar:focus-within {
    border-color: var(--accent-color);
}
.search-bar input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 20px;
    color: var(--text-main);
    font-size: 14px;
}
.search-bar button {
    background: transparent;
    border: none;
    padding: 0 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}
.search-bar button:hover {
    color: var(--accent-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.btn-upload {
    background-color: var(--accent-color);
    color: #fff;
}
.btn-upload:hover {
    background-color: var(--accent-hover);
}

/* ==========================================
   3. 扁平化标签栏 (Tags)
   ========================================== */
.tag-nav {
    border-bottom: 1px solid var(--border-color);
    background-color: #09090b;
}
.tag-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
}
.tag-container::-webkit-scrollbar {
    display: none;
}
.tag-item {
    display: inline-block;
    padding: 6px 16px;
    background-color: #18181b;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}
.tag-item:hover, .tag-item.active {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* ==========================================
   4. 主内容与视频网格
   ========================================== */
.main-content {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-color);
    padding-left: 10px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 25px 20px;
}
@media (min-width: 576px) {
    .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
    .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
    .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.video-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #000;
}
.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.video-card:hover .thumbnail {
    transform: scale(1.05);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}
.video-quality {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--accent-color);
    color: #fff;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
}

.video-info {
    padding: 12px;
}
.video-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}
.video-title:hover {
    color: var(--accent-color);
}
.video-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* ==========================================
   5. 底部合规声明 (Footer)
   ========================================== */
.site-footer {
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
    padding: 40px 20px;
    background-color: #030303;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}
.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.footer-links a:hover {
    color: var(--accent-color);
}
.disclaimer {
    border-top: 1px solid #18181b;
    padding-top: 15px;
    color: #71717a;
}

/* ==========================================
   6. 播放页布局与响应式设计 (Watch Page)
   ========================================== */
.watch-layout {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 电脑端双栏布局：左边播放器，右边推荐栏 */
@media (min-width: 992px) {
    .watch-layout {
        flex-direction: row;
    }
    .video-main {
        flex: 1;
    }
    .video-sidebar {
        width: 380px;
        flex-shrink: 0;
    }
}

/* 强行锁死 16:9 的播放器容器，完美自适应 iframe */
.player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 视频信息区 */
.video-details {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}
.video-details h1 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}
.video-details-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-muted);
}
.video-details-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 侧边栏相关视频推荐 */
.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    border-left: 3px solid var(--accent-color);
    padding-left: 8px;
}
.related-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.related-item {
    display: flex;
    gap: 12px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    padding: 8px;
}
.related-thumb-wrapper {
    width: 120px;
    aspect-ratio: 16 / 9;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}
.related-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}
.related-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-title:hover {
    color: var(--accent-color);
}
.related-meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================
   7. 分页样式 (Pagination)
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    margin-bottom: 20px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.page-link:hover {
    border-color: var(--accent-color);
    color: #fff;
}

/* 当前激活的页码高亮 */
.page-link.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/* 无法点击的按钮（如第一页的“上一页”，最后一页的“下一页”） */
.page-link.disabled {
    opacity: 0.3;
    pointer-events: none; /* 禁用鼠标点击 */
}

/* ==========================================
   8. 热门分类图墙 (Categories Grid)
   ========================================== */
.category-section {
    max-width: 1400px;
    margin: 40px auto 10px auto;
    padding: 0 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}
@media (min-width: 768px) {
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
    .category-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.category-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

/* 分类卡片背景图（微暗处理，突出文字） */
.category-card img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 鼠标悬停时图片轻微放大并亮起 */
.category-card:hover img {
    transform: scale(1.08);
    opacity: 0.7;
}

/* 分类文字排版（加粗、大写、带发光投影） */
.category-card span {
    position: relative;
    z-index: 2;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.site-notice {
    background: #0d0d0f; /* 极深灰背景，与背景完美微差融合 */
    border-bottom: 1px solid #27272a; /* 仅保留下边框 */
    padding: 8px 20px;
    font-size: 13px;
    color: #a1a1aa;
    display: flex;
    align-items: center;
    justify-content: center; /* 文本居中对齐，更显大气 */
    width: 100%;
    box-sizing: border-box;
    }
    
    .notice-content {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap; /* 手机端自动换行 */
        gap: 5px;
    }
    
    .notice-content strong {
        color: #ffffff;
    }
    
    /* ============ 在刚才删除的位置粘贴以下新代码 ============ */
    /* 升级后的巨幕容器（改为了左右两端对齐） */
    .hero-banner {
        position: relative;
        background: linear-gradient(135deg, #111115 0%, #1c0e18 100%); 
        border: 1px solid #27272a;
        border-radius: 12px;
        padding: 40px 45px; 
        margin-bottom: 25px;
        overflow: hidden;
        display: flex;
        justify-content: space-between; 
        align-items: center;
        box-sizing: border-box;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .hero-overlay {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.08) 0%, transparent 50%); 
        pointer-events: none;
    }
    
    .hero-text-area {
        position: relative;
        z-index: 2;
        max-width: 550px;
    }
    
    .hero-badge {
        background: rgba(236, 72, 153, 0.15);
        color: #f472b6;
        border: 1px solid rgba(236, 72, 153, 0.3);
        padding: 4px 10px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
    }
    
    .hero-heading {
        font-size: 38px;
        font-weight: 900;
        color: #ffffff;
        margin-top: 15px;
        margin-bottom: 10px;
        letter-spacing: 1.5px;
    }
    
    .hero-heading span {
        color: #ec4899;
    }
    
    .hero-slogan {
        font-size: 15px;
        color: #a1a1aa;
        margin-bottom: 25px;
        line-height: 1.6;
    }
    
    .hero-cta-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .cta-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    
    .cta-btn.active {
        background: #ec4899;
        color: #ffffff;
    }
    
    .cta-btn.active:hover {
        background: #db2777;
    }
    
    .cta-btn.telegram {
        background: #18181b;
        color: #38bdf8;
        border: 1px solid #27272a;
    }
    
    .cta-btn.telegram:hover {
        background: #27272a;
        border-color: #38bdf8;
    }
    
    /* 右侧特色视频推荐卡片 */
    .hero-featured-card {
        position: relative;
        z-index: 5;
        width: 320px;
        background: #18181b;
        border: 1px solid #27272a;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        transform: rotate(2deg); 
    }
    
    .hero-featured-card:hover {
        transform: translateY(-8px) rotate(0deg); 
        border-color: #ec4899; 
        box-shadow: 0 20px 40px rgba(236, 72, 153, 0.15); 
    }
    
    .hero-featured-card a {
        text-decoration: none;
        color: inherit;
        display: block;
    }
    
    .featured-img-wrapper {
        position: relative;
        width: 100%;
        aspect-ratio: 16/9;
        overflow: hidden;
        background: #000;
    }
    
    .featured-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    
    .hero-featured-card:hover .featured-img-wrapper img {
        transform: scale(1.08);
    }
    
    .featured-play-overlay {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .featured-play-overlay i {
        font-size: 24px;
        color: #ffffff;
        background: #ec4899;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
        transition: transform 0.2s ease;
    }
    
    .hero-featured-card:hover .featured-play-overlay i {
        transform: scale(1.12);
    }
    
    .featured-card-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        background: #ec4899;
        color: #fff;
        font-size: 10px;
        font-weight: 800;
        padding: 3px 8px;
        border-radius: 4px;
    }
    
    .featured-card-title {
        padding: 15px;
    }
    
    .featured-card-title h4 {
        font-size: 14px;
        font-weight: 700;
        color: #ffffff;
        margin: 0 0 8px 0;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2; 
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .featured-card-title p {
        font-size: 11px;
        color: #a1a1aa;
        margin: 0;
    }
    
    @media (max-width: 1024px) {
        .hero-featured-card {
            display: none;
        }
        .hero-banner {
            justify-content: center;
            text-align: center;
            padding: 35px 20px;
        }
        .hero-cta-buttons {
            justify-content: center;
        }
    }
    /* ======================================================== */
    
    /* 统计条 Stats Bar */
    .stats-bar {
        background: #111113;
        border: 1px solid #27272a;
        border-radius: 10px;
        padding: 15px 25px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
        gap: 15px;
    }
    .stats-item {
        display: flex;
        flex-direction: column; /* 核心：改为纵向排列 */
        align-items: center;    /* 核心：水平居中 */
        text-align: center;     /* 核心：文字居中 */
        gap: 8px;               /* 缩短上下元素之间的间距 */
        flex: 1;
    }
    .stats-icon {
        font-size: 24px;
        color: #ec4899;
        margin-bottom: 2px; /* 给图标下方留一点点微弱空隙 */
    }
    .stats-text h3 {
        font-size: 18px;
        font-weight: 800;
        color: #ffffff;
        margin: 0;
        line-height: 1.2;
    }
    .stats-text p {
        font-size: 11px;
        color: #71717a;
        margin: 2px 0 0 0;
    }
    .stats-divider {
        width: 1px;
        height: 35px;
        background: #27272a;
    }
    
    /* 手机端响应式适配 */
    @media (max-width: 768px) {
        .stats-bar {
            flex-direction: column;
            padding: 20px;
            align-items: flex-start;
        }
        .stats-divider {
            display: none;
        }
        .stats-item {
            width: 100%;
        }
        .hero-banner {
            padding: 35px 20px;
        }
        .hero-heading {
            font-size: 30px;
        }
        .hero-slogan {
            font-size: 13px;
        }
    }
    
    /* 必须确保横幅容器拥有相对定位，这样内部的绝对定位心形才能在其中央落座 */
.hero-banner {
    position: relative !important;
}

.hero-dynamic-element {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; 
    pointer-events: none; /* 确保不会阻挡用户点击横幅或按钮 */
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ==========================================
   【新增】Banner 中间动态霓虹男女艺术剪影
   ========================================== */

.hero-banner {
    position: relative;
}

/* 动态元素容器：水平垂直居中 */
.hero-dynamic-element {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; 
    pointer-events: none; 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 包装器：横向布局并控制男女与心形的间距 */
.neon-heart-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px; /* 男体 - 爱心 - 女体 之间的间距，可根据需要微调 */
}

/* 中间爱心容器 */
.center-heart {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 霓虹剪影基础样式 */
.neon-figure {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* 左侧男体：冰蓝色霓虹光晕 + 呼吸动效 */
.male-figure {
    color: #00f0ff; 
    filter: drop-shadow(0 0 8px #00f0ff) 
            drop-shadow(0 0 20px rgba(0, 240, 255, 0.4));
    animation: neonGlowMale 2.8s infinite ease-in-out;
}

/* 右侧女体：玫瑰红/粉霓虹光晕 + 呼吸动效 */
.female-figure {
    color: #ff007f; 
    filter: drop-shadow(0 0 8px #ff007f) 
            drop-shadow(0 0 20px rgba(255, 0, 127, 0.4));
    animation: neonGlowFemale 2.8s infinite ease-in-out;
    animation-delay: 0.4s; /* 错开呼吸节奏，显得更自然生动 */
}

/* 中间主桃心（心跳 + 霓虹效果） */
.main-heart {
    font-size: 52px;
    color: #ec4899; 
    filter: drop-shadow(0 0 8px #ec4899) 
            drop-shadow(0 0 25px rgba(236, 72, 153, 0.6));
    animation: neonHeartBeat 1.4s infinite ease-in-out;
    z-index: 2;
}

/* 漂浮的小桃心 */
.mini-heart {
    position: absolute;
    color: #f43f5e;
    font-size: 16px;
    opacity: 0;
    z-index: 1;
}

.heart-1 {
    animation: floatUpLeft 3.5s infinite linear;
}

.heart-2 {
    animation: floatUpRight 4s infinite linear;
    animation-delay: 1.5s;
}

/* ==========================================
   【动画 Keyframes】
   ========================================== */

/* 男体霓虹呼吸 */
@keyframes neonGlowMale {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 6px #00f0ff) drop-shadow(0 0 15px rgba(0, 240, 255, 0.3));
    }
    50% {
        transform: scale(1.03);
        filter: drop-shadow(0 0 12px #00f0ff) drop-shadow(0 0 30px rgba(0, 240, 255, 0.7));
    }
}

/* 女体霓虹呼吸 */
@keyframes neonGlowFemale {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 6px #ff007f) drop-shadow(0 0 15px rgba(255, 0, 127, 0.3));
    }
    50% {
        transform: scale(1.03);
        filter: drop-shadow(0 0 12px #ff007f) drop-shadow(0 0 30px rgba(255, 0, 127, 0.7));
    }
}

/* 桃心跳动 */
@keyframes neonHeartBeat {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px #ec4899) drop-shadow(0 0 15px rgba(236, 72, 153, 0.6));
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 15px #ec4899) drop-shadow(0 0 30px rgba(236, 72, 153, 0.8));
    }
}

/* 小桃心漂浮 */
@keyframes floatUpLeft {
    0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
    30% { opacity: 0.8; }
    100% { transform: translate(-35px, -65px) scale(1) rotate(-15deg); opacity: 0; }
}

@keyframes floatUpRight {
    0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
    30% { opacity: 0.8; }
    100% { transform: translate(35px, -75px) scale(1) rotate(15deg); opacity: 0; }
}

/* 手机端隐藏：防止排版重叠 */
@media (max-width: 1150px) {
    .hero-dynamic-element {
        display: none !important;
    }
}