/* =====================================================
   PHP闭环影视站群系统 - 样式表（响应式优化版）
   ===================================================== */

/* 重置样式 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #1a1a2e;
    color: #ccc;
    line-height: 1.6;
    font-size: 16px;
    min-width: 320px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-touch-callout: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   容器（全屏宽度）
   ========================================== */
.container {
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ==========================================
   头部 — 三列布局：logo左 | 导航中 | 搜索右
   ========================================== */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 10px 0;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header .container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    flex-shrink: 0;
}
.logo a {
    font-size: 22px;
    font-weight: bold;
    color: #e94560;
    white-space: nowrap;
    display: inline-block;
    padding: 4px 0;
}

/* 搜索框（桌面端在右侧） */
.search-box {
    flex-shrink: 0;
}
.search-box form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
}

.search-box input {
    height: 36px;
    padding: 0 8px 0 14px;
    border: none;
    background: transparent;
    color: #fff;
    width: 180px;
    outline: none;
    font-size: 14px;
}
.search-box input::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-box button {
    height: 30px;
    min-width: 48px;
    padding: 0 14px;
    margin: 3px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.3s;
}
.search-box button:hover { background: #c73e54; }

/* 导航（居中，自动填满中间空间，移动端横向滚动） */
.nav {
    display: flex;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: center;
    align-items: center;
    gap: 0;
    position: relative;
}
.nav::-webkit-scrollbar { display: none; }

.nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 14px;
    color: #fff;
    font-size: 15px;
    position: relative;
    transition: color 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-item:hover { color: #e94560; }
.nav-item.active {
    color: #e94560;
    font-weight: 600;
}
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 14px;
    right: 14px;
    height: 3px;
    background: #e94560;
    border-radius: 2px;
}

/* ==========================================
   主要内容
   ========================================== */
.main {
    padding: 16px 0 0 0;
    min-height: 50vh;
}

/* 区块 */
.section {
    margin-bottom: 14px;
    background: #16213e;
    border-radius: 10px;
    padding: 18px;
}

.section-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.section-title {
    font-size: 18px;
    color: #e94560;
    font-weight: 600;
}

.view-all {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    transition: color 0.3s;
    white-space: nowrap;
    padding: 4px 0;
}
.view-all:hover { color: #e94560; }

.sort-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    margin-bottom: 6px;
}
.sort-label {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    flex-shrink: 0;
}
.sort-item {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 3px 12px;
    border-radius: 4px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    background: rgba(255,255,255,0.08);
    transition: background 0.2s, color 0.2s;
}
.sort-item:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.sort-item.active {
    background: #e94560;
    color: #fff;
}

/* ==========================================
   视频网格
   ========================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 14px;
}

.video-item {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255,255,255,0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.video-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
.video-item a { display: block; }

.video-cover {
    position: relative;
    overflow: hidden;
    background: #1a1a2e;
}
/* aspect-ratio 降级：先设 padding-bottom 作为兜底，再用 aspect-ratio 覆盖 */
@supports not (aspect-ratio: 3 / 4) {
    .video-cover { padding-bottom: 133.33%; }
}
@supports (aspect-ratio: 3 / 4) {
    .video-cover { aspect-ratio: 3 / 4; padding-bottom: 0; }
}
.video-cover img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.video-item:hover .video-cover img { transform: scale(1.08); }

/* 懒加载占位 */
img.lazyload {
    opacity: 0;
    transition: opacity 0.4s ease;
    background: rgba(255,255,255,0.03);
}
img.lazyload:not([data-original]) {
    opacity: 1;
}

.video-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e94560;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    z-index: 2;
    font-weight: 500;
    white-space: nowrap;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.video-cover-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.video-item .video-info { padding: 8px 10px; }

.video-name {
    font-size: 14px;
    color: #e0e0e0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
    margin-bottom: 4px;
}

.video-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}

.video-score {
    color: #ffb800;
    font-weight: 600;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    height: 18px;
    overflow: hidden;
}

.video-tag {
    display: inline-block;
    padding: 0 5px;
    background: rgba(233, 69, 96, 0.1);
    color: #e94560;
    font-size: 10px;
    border-radius: 3px;
    white-space: nowrap;
    line-height: 1.7;
}

/* ==========================================
   面包屑
   ========================================== */
.breadcrumb {
    margin-bottom: 14px;
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.breadcrumb a {
    color: rgba(255,255,255,0.85);
    padding: 2px 0;
}
.breadcrumb a:hover { color: #e94560; }
.breadcrumb span { margin: 0 4px; }

/* ==========================================
   分页（触控友好）
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.page-num, .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.page-num:hover, .page-btn:hover,
.page-num.active {
    background: #e94560;
    border-color: #e94560;
    color: #fff;
}

/* ==========================================
   详情页
   ========================================== */
.detail {
    display: flex;
    gap: 24px;
    margin-bottom: 0;
}

.detail-left {
    width: 260px;
    flex-shrink: 0;
}

.detail-poster {
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.detail-poster img { width: 100%; display: block; }

.mobile-play-btn {
    display: flex;
    align-items: center; justify-content: center; gap: 5px;
    padding: 8px 16px;
    background: #e94560;
    color: #fff; font-size: 14px; font-weight: 600;
    border-radius: 0 0 10px 10px;
    text-decoration: none;
    transition: background 0.2s;
}
.mobile-play-btn:hover { background: #ff6b6b; }
.mobile-play-btn i { font-size: 12px; }

.detail-right { flex: 1; }

.detail-title {
    font-size: 24px;
    color: #fff;
    margin-bottom: 6px;
    font-weight: 700;
}

.detail-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    align-items: center;
}
.detail-meta em { font-style: normal; }

.detail-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ffb800;
    font-weight: 600;
    font-size: 14px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.detail-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(233, 69, 96, 0.12);
    border: 1px solid rgba(233, 69, 96, 0.3);
    color: #e94560;
    border-radius: 20px;
    font-size: 12px;
    white-space: nowrap;
}

.detail-info p {
    margin-bottom: 5px;
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    line-height: 1.7;
}
.detail-info strong {
    color: rgba(255,255,255,0.8);
    margin-right: 2px;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 12px 16px;
}

.stat-item h4 {
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    margin-bottom: 3px;
    font-size: 12px;
}
.stat-item p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    max-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ==========================================
   剧集列表
   ========================================== */
.episode-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.episode-item:hover, .episode-item.active {
    background: #e94560;
    color: #fff;
    border-color: #e94560;
}

/* ==========================================
   播放器
   ========================================== */
.player-container {
    background: #000;
    border-radius: 8px;
    margin-bottom: 16px;
    height: 500px;
}
.player-container > * {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    border-radius: 8px;
}
.player-container .dplayer { height: 100%; }

.player-tip {
    color: #666;
    text-align: center;
    padding: 100px 20px;
}

/* 播放源选项卡 */
.source-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    margin-bottom: 12px;
    gap: 0;
}

.source-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 18px;
    color: rgba(255,255,255,0.5);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.source-tab:hover, .source-tab.active {
    color: #e94560;
    border-bottom-color: #e94560;
}

.play-tabs .tab-content {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
}
.play-tabs .tab-content.active {
    display: flex;
    max-height: 400px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}
.play-tabs .tab-content::-webkit-scrollbar { width: 4px; }
.play-tabs .tab-content::-webkit-scrollbar-thumb { background: #c0c0c0; border-radius: 2px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================
   通用按钮
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn-primary {
    background: #e94560;
    color: #fff;
}
.btn-primary:hover { background: #c73e54; }

/* ==========================================
   简介区
   ========================================== */
.d-intro-bd {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.9;
    word-break: break-word;
}
.d-intro-bd p { margin-bottom: 8px; }

.video-info p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    line-height: 1.9;
    word-break: break-word;
}

/* ==========================================
   标签云
   ========================================== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-item {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 5px 14px;
    background: rgba(255,255,255,0.07);
    border-radius: 18px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}
.tag-item:hover {
    background: #e94560;
    color: #fff;
}

/* ==========================================
   筛选区
   ========================================== */
.filter-section {
    background: #16213e;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
}
.filter-summary {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 14px; font-weight: 600; color: #e94560;
    cursor: pointer; padding: 4px 0; outline: none; list-style: none;
}
.filter-summary::-webkit-details-marker { display: none; }
.filter-summary::marker { display: none; }
.filter-summary::after {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    border-right: 2px solid #e94560;
    border-bottom: 2px solid #e94560;
    transform: rotate(45deg);
    transition: transform 0.25s;
    flex-shrink: 0; margin-left: 8px;
}
.filter-section[open] > .filter-summary::after {
    transform: rotate(-135deg);
}
/* 桌面端默认展开（由 HTML open 属性控制，仍可手动折叠） */
.filter-row {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.filter-row:last-child { border-bottom: none; }
.filter-label {
    flex-shrink: 0;
    width: 56px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    padding-top: 4px;
}
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.filter-item {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 3px 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    transition: background 0.2s, color 0.2s;
}
.filter-item:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.filter-item.active {
    background: #e94560;
    color: #fff;
}

/* ==========================================
   空结果 / 404
   ========================================== */
.no-result {
    text-align: center;
    padding: 50px 20px;
    color: rgba(255,255,255,0.4);
    font-size: 15px;
}
.btn-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 20px;
    padding: 10px 28px;
    background: #e94560;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.3s, transform 0.3s;
}
.btn-home:hover {
    background: #c73e54;
    transform: translateY(-2px);
}

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
.error-content { text-align: center; color: #fff; }
.error-content h1 {
    font-size: clamp(80px, 20vw, 120px);
    margin: 0;
    color: #e94560;
    text-shadow: 0 10px 30px rgba(233,69,96,0.3);
}
.error-content h2 { font-size: clamp(18px, 4vw, 24px); margin: 16px 0; }
.error-content p { color: #999; margin-bottom: 24px; font-size: 14px; }

/* ==========================================
   底部
   ========================================== */
.tags-section { margin-bottom: 0; }

.footer {
    background: #1a1a2e;
    color: #fff;
    padding: 16px 0;
    margin-top: 0;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.footer-links a {
    color: #999;
    font-size: 14px;
    transition: color 0.3s;
    padding: 4px 0;
}
.footer-links a:hover { color: #e94560; }
.footer-copyright {
    text-align: center;
    color: #666;
    font-size: 13px;
}

/* ==========================================
   响应式 - 平板（≤1024px）
   ========================================== */
@media (max-width: 1024px) {
    .container { padding: 0 12px; }
    .video-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .detail-left { width: 220px; }
    .section { padding: 14px; }
}

/* ==========================================
   响应式 - 竖屏平板/大屏手机（≤768px）
   ========================================== */
@media (max-width: 768px) {
    .header { padding: 8px 0; }
    .header .container { flex-wrap: wrap; gap: 8px; }

    /* 移动端：logo + 搜索 一行，导航 第二行横向滚动 */
    .logo a { font-size: 20px; }
    .search-box { flex: 1; }
    .search-box form { width: 100%; }
    .search-box input { width: 100%; flex: 1; min-width: 0; font-size: 13px; }
    .search-box button { flex-shrink: 0; }

    .nav {
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .main { padding: 10px 0 0 0; }

    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .video-name { font-size: 13px; }
    .video-meta-row { font-size: 11px; }

    .detail { flex-direction: column; gap: 6px; }
    .detail-left {
        width: 100%;
        max-width: 200px;
        margin: 0 auto 4px;
    }
    .detail-title { font-size: 20px; text-align: center; }
    .detail-subtitle { text-align: center; }
    .detail-meta { justify-content: center; font-size: 13px; gap: 12px; }
    .detail-stats { grid-template-columns: repeat(2, 1fr); padding: 10px 12px; gap: 8px; }
    .stat-item h4 { font-size: 11px; }
    .stat-item p { font-size: 13px; }

    .player-container { height: 250px; }

    .section { padding: 12px; margin-bottom: 10px; }
    .section-hd { margin-bottom: 12px; padding-bottom: 8px; }
    .section-title { font-size: 16px; }

    .d-intro-bd { font-size: 14px; }

    .faq-q { font-size: 14px; }
    .faq-a { font-size: 13px; }
    .faq-item { padding: 10px 0; }

    .pagination { gap: 4px; }
    .page-num, .page-btn { min-width: 36px; min-height: 36px; padding: 4px 10px; font-size: 13px; }

    .source-tab { min-height: 38px; padding: 6px 14px; font-size: 16px; }

    .filter-row {
        flex-direction: column;
        gap: 6px;
    }
    .filter-label { width: auto; }
}

/* ==========================================
   响应式 - 小屏手机（≤480px）
   ========================================== */
@media (max-width: 480px) {
    .container { padding: 0 10px; }
    .header { padding: 6px 0; }

    .logo a { font-size: 16px; }
    .search-box { margin: 0 4px; }
    .search-box input {
        height: 34px;
        font-size: 12px;
    }
    .search-box button {
        height: 28px;
        min-width: 44px;
        padding: 0 10px;
        font-size: 12px;
    }

    .nav-toggle { width: 40px; height: 40px; }
    .nav-item { min-height: 48px; padding: 10px 14px; font-size: 15px; }

    .main { padding: 8px 0 0 0; }

    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .video-item .video-info { padding: 6px 8px; }
    .video-name { font-size: 12px; margin-bottom: 2px; }
    .video-meta-row { font-size: 11px; margin-bottom: 2px; }
    .video-tags { height: 15px; }
    .video-tag { font-size: 9px; padding: 0 3px; }

    .section { padding: 10px; margin-bottom: 8px; border-radius: 8px; }
    .section-hd { margin-bottom: 10px; }
    .section-title { font-size: 15px; }

    .detail-left { max-width: 180px; }
    .detail-title { font-size: 18px; }
    .detail-meta { font-size: 12px; gap: 8px; }
    .detail-tags { gap: 6px; }
    .detail-tag { padding: 3px 10px; font-size: 11px; }
    .detail-info p { font-size: 13px; }
    .detail-stats { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 8px 10px; }

    .player-container { height: 200px; }

    .source-tab { min-height: 38px; padding: 6px 12px; font-size: 16px; }
    .play-tabs .tab-content { flex-wrap: wrap; gap: 4px; max-height: 300px; }
    .episode-item { min-height: 34px; padding: 4px 8px; font-size: 13px; }

    .breadcrumb { font-size: 13px; margin-bottom: 10px; }

    .filter-section { padding: 10px 14px; }
    .filter-item { min-height: 30px; padding: 3px 10px; font-size: 12px; }
    .filter-options { gap: 4px; }

    .pagination { gap: 3px; }
    .page-num, .page-btn { min-width: 34px; min-height: 34px; padding: 3px 8px; font-size: 12px; }

    .tag-item { min-height: 34px; padding: 4px 12px; font-size: 13px; }

    .footer-copyright { font-size: 12px; }

    /* 隐藏移动端hover效果 */
    .video-item:hover { transform: none; }
    .video-item:hover .video-cover img { transform: none; }
}

/* ==========================================
   PC端 平台引导卡片
   ========================================== */
.pc-notice {
    text-align: center;
    padding: 50px 30px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    margin-bottom: 20px;
}
.pc-notice-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.8;
}
.pc-notice-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.pc-notice-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 32px;
}

/* 平台卡片网格 */
.pc-platforms {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 560px;
    margin: 0 auto;
}
.pc-platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}
.pc-platform-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: #e94560;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233,69,96,0.15);
}
.pc-platform-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    flex-shrink: 0;
}
.pc-platform-name {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .pc-platforms {
        grid-template-columns: repeat(2, 1fr);
        max-width: 320px;
    }
    .pc-notice {
        padding: 30px 16px;
    }
    .pc-notice-title {
        font-size: 18px;
    }
}

/* ==========================================
   防 F12 模拟手机：检测真实输入设备
   pointer:fine=鼠标，hover:hover=支持悬停
   这两个特征 F12 模拟无法伪造
   ========================================== */
.touch-fallback {
    display: none;
}

@media (pointer: fine), (hover: hover) {
    .touch-required {
        display: none !important;
    }
    .touch-fallback {
        display: block;
    }
}

/* ==========================================
   响应式 - 极小屏（≤360px）
   ========================================== */
@media (max-width: 360px) {
    .search-box input { width: 90px; }
    .logo a { font-size: 16px; }
    .video-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .detail-left { max-width: 140px; }
}

/* ==========================================
   常见问题模块（内容页 / 播放页）
   ========================================== */
.faq-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.faq-q {
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 8px;
    line-height: 1.7;
}
.faq-a {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.9;
    word-break: break-word;
}
.faq-a strong {
    color: rgba(255,255,255,0.85);
}

/* — 搜索结果高亮 — */
.video-highlight {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
    margin: 2px 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-highlight em.hl,
em.hl {
    font-style: normal;
    color: #e94560;
    font-weight: 600;
}

/* — 热门搜索词（搜索结果页底部） — */
.hot-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
}
.hot-term {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.hot-term:hover {
    background: rgba(233, 69, 96, 0.2);
    color: #e94560;
    text-decoration: none;
}
.hot-term small {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    margin-left: 2px;
}

/* ===== 加载动画 ===== */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(233,69,96,0.2);
    border-top-color: #e94560;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 50px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #e94560;
    color: #fff;
    border: none; outline: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(233,69,96,0.3);
    pointer-events: none;
}
.back-to-top:hover {
    background: #c73e54;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
