/* ===== ROOT VARIABLES ===== */
:root {
    --primary: #e84393;
    --primary-dark: #c0306e;
    --accent: #ff6ab0;
    --bg-deep: #0a0d1a;
    --bg-card: #111628;
    --bg-panel: #161c35;
    --bg-nav: #0d1226;
    --gradient-main: linear-gradient(135deg, #0a0d1a 0%, #1a0a2e 50%, #2a0818 100%);
    --gradient-header: linear-gradient(90deg, #0d1226 0%, #1a1040 50%, #2a0a1a 100%);
    --gradient-btn: linear-gradient(135deg, #e84393 0%, #c0306e 100%);
    --text-primary: #f0f0f8;
    --text-secondary: #a0a8c8;
    --text-muted: #606880;
    --border-color: rgba(232, 67, 147, 0.15);
    --shadow-glow: 0 0 20px rgba(232, 67, 147, 0.15);
    --radius: 8px;
    --radius-lg: 12px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
}

ul, ol {
    list-style: none;
}

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

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* ===== LAYOUT ===== */
.wrap-outer {
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.content {
    width: 100%;
}

/* ===== HEADER / SITE BRANDING ===== */
.site-header {
    background: var(--gradient-header);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.branding-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-title-text {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(232, 67, 147, 0.5);
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    display: inline-block;
}

.domain-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(232, 67, 147, 0.12);
    border: 1px solid rgba(232, 67, 147, 0.3);
    border-radius: 20px;
    padding: 3px 12px;
}

.domain-tag {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.domain-url-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.5px;
}

/* ===== BANNER AD AREA ===== */
.banner-zone {
    width: 100%;
    margin: 6px 0;
    overflow: hidden;
}

/* ===== NAVIGATION ===== */
.nav-section {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
}

.nav-table {
    width: 100%;
    border-collapse: collapse;
}

.nav-zone {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding: 4px 0;
}

.nav-zone:last-child {
    border-bottom: none;
}

.nav-zone-label {
    width: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(232, 67, 147, 0.08);
    border-radius: 4px;
    padding: 4px 2px;
    text-align: center;
    line-height: 1.3;
    margin-right: 8px;
    flex-shrink: 0;
}

.nav-zone-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
    align-items: center;
}

.nav-zone-links a {
    display: inline-block;
    padding: 4px 10px;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-zone-links a:hover {
    color: var(--accent);
    border-color: rgba(232, 67, 147, 0.3);
    background: rgba(232, 67, 147, 0.08);
}

.nav-zone-links a.active {
    color: #fff;
    background: var(--gradient-btn);
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(232, 67, 147, 0.3);
}

/* ===== SEARCH BOX ===== */
.search-wrap {
    padding: 10px 0;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border-color);
}

.search-form {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.search-form input[type="text"] {
    flex: 1;
    min-width: 180px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 14px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-form input[type="text"]::placeholder {
    color: var(--text-muted);
}

.search-form input[type="text"]:focus {
    border-color: var(--primary);
}

.search-form button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.search-form button[value="1"],
.search-form button[value="2"] {
    background: var(--gradient-btn);
    color: #fff;
}

.search-form button[value="1"]:hover,
.search-form button[value="2"]:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.search-form button:not([value]) {
    background: rgba(255,255,255,0.08);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.search-form button:not([value]):hover {
    background: rgba(255,255,255,0.14);
    color: var(--text-primary);
}

/* ===== HOT SEARCH TAGS ===== */
.hot-tags-block {
    padding: 8px 0 6px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-color);
}

.hot-tags-block h4 {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tag-grid-item {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    background: rgba(232, 67, 147, 0.1);
    border: 1px solid rgba(232, 67, 147, 0.2);
    border-radius: 14px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.tag-grid-item:hover {
    background: rgba(232, 67, 147, 0.22);
    color: var(--accent);
    border-color: rgba(232, 67, 147, 0.45);
}

/* ===== SECTION BLOCKS ===== */
.section-block {
    margin: 10px 0;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.section-heading-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-heading-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--gradient-btn);
    border-radius: 2px;
}

.section-heading-title a {
    color: var(--text-primary);
}

.section-heading-title a:hover {
    color: var(--accent);
}

/* ===== MEDIA GRID ===== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.media-grid li {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-card);
    transition: transform 0.25s, box-shadow 0.25s;
}

.media-grid li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.media-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--bg-panel);
}

.media-thumb::after {
    content: '';
    display: block;
    padding-top: calc(350 / 600 * 100%);
}

.media-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.media-grid li:hover .media-thumb img {
    transform: scale(1.05);
}

.media-meta {
    padding: 6px 8px 8px;
}

.media-meta h5 {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.media-meta h5 a {
    color: inherit;
}

.media-meta h5 a:hover {
    color: var(--accent);
}

/* ===== PAGINATION ===== */
.pagination-bar {
    margin-top: 20px;
    text-align: center;
    padding: 10px 0;
}

.pager-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.pager-link {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.pager-link:hover {
    color: #fff;
    background: rgba(232, 67, 147, 0.2);
    border-color: rgba(232, 67, 147, 0.4);
}

.pager-current {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--gradient-btn);
    border: 1px solid transparent;
}

/* ===== DETAIL PAGE: TITLE BANNER ===== */
.detail-title-bar {
    line-height: 1.8;
    text-align: center;
    padding: 16px 20px;
    font-size: 17px;
    margin: 12px 0;
    word-break: break-all;
    background: rgba(22, 28, 53, 0.8);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.detail-title-bar .cat-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-right: 8px;
}

.detail-title-bar .cat-link:hover {
    color: var(--accent);
}

/* ===== TORRENT INFO PANEL ===== */
.torrent-info-panel {
    font-size: 15px;
    line-height: 1.9;
    padding: 20px 24px;
    background: rgba(22, 28, 53, 0.7);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin: 12px 0;
}

.torrent-snap-grid {
    margin-top: 10px;
}

.torrent-snap-grid picture {
    display: block;
    width: 100%;
}

.torrent-snap-grid picture img,
.torrent-snap-grid picture source {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
}

/* ===== DOWNLOAD BUTTONS ===== */
.dl-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 16px 0;
}

.dl-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: var(--gradient-btn);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(232, 67, 147, 0.3);
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.dl-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(232, 67, 147, 0.45);
    color: #fff;
}

.client-hint {
    text-align: center;
    padding: 10px 0;
}

.client-hint a {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.client-hint a:hover {
    color: var(--accent);
}

/* ===== SHARE SECTION ===== */
.share-panel {
    background: rgba(22, 28, 53, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-label-text {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.share-url-text {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
    word-break: break-all;
    min-width: 120px;
}

.share-copy-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(232, 67, 147, 0.12);
    border: 1px solid rgba(232, 67, 147, 0.35);
    border-radius: 6px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.share-copy-button:hover {
    background: rgba(232, 67, 147, 0.22);
    color: #fff;
}

/* ===== FOOTER LINKS ===== */
.footer-links-section {
    padding: 10px 0 6px;
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
}

.flink-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.flink-list dd {
    margin: 0;
}

.flink-list a {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    transition: all 0.2s;
}

.flink-list a:hover {
    color: var(--accent);
    border-color: rgba(232, 67, 147, 0.3);
}

/* ===== FOOTER COPYRIGHT ===== */
.site-footer-bar {
    padding: 12px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.site-footer-bar p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== UTILITY ===== */
.hide-mobile { display: block; }
.hide-pc { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .media-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    .hide-pc { display: block; }

    .site-title-text {
        font-size: 16px;
    }

    .domain-url-text {
        font-size: 13px;
    }

    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .nav-zone-label {
        width: 15%;
        min-width: 0;
        font-size: 10px;
    }

    .nav-zone-links {
        width: 85%;
    }

    .nav-zone-links a {
        font-size: 12px;
        padding: 3px 6px;
    }

    .detail-title-bar {
        font-size: 15px;
        padding: 12px;
    }

    .dl-actions {
        gap: 8px;
    }

    .dl-btn {
        padding: 9px 18px;
        font-size: 14px;
    }

    .torrent-info-panel {
        padding: 14px 16px;
        font-size: 14px;
    }

    .share-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-heading-title {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .nav-zone-links a {
        font-size: 12px;
        padding: 3px 5px;
    }

    .nav-zone-label {
        font-size: 10px;
    }

    .search-form input[type="text"] {
        min-width: 120px;
        font-size: 13px;
    }

    .search-form button {
        padding: 7px 10px;
        font-size: 12px;
    }
}

@media (min-width: 480px) and (max-width: 768px) {
    .nav-zone-links a {
        font-size: 14px;
    }

    .nav-zone-label {
        font-size: 10px;
    }
}

/* ===== NAV MOBILE: 每视频分区4个一行，分2行 ===== */
@media (max-width: 768px) {
    .nav-zone-links {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
    }

    .nav-zone-links a {
        text-align: center;
        font-size: 12px;
        padding: 4px 2px;
    }
}

@media (min-width: 480px) and (max-width: 768px) {
    .nav-zone-links a {
        font-size: 14px;
    }
}

/* PC端导航链接占满宽度 */
@media (min-width: 769px) {
    .nav-zone-links {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 4px;
    }

    .nav-zone-links a {
        flex: 1;
        text-align: center;
        font-size: 13px;
    }
}
