/* Video Site Template - Vibrant Commerce Style */

:root {
    --brand: #e91e8c;
    --brand-deep: #c0157a;
    --brand-soft: #ff6bbf;
    --accent-warm: #ff9800;
    --accent-cool: #00bcd4;
    --text-main: #1a1a2e;
    --text-sub: #555577;
    --text-muted: #8888aa;
    --surface: #ffffff;
    --surface-alt: #fdf0f8;
    --surface-card: #ffffff;
    --line: #f0d8ec;
    --line-strong: #e0b8d8;
    --glow: rgba(233, 30, 140, 0.15);
    --glow-strong: rgba(233, 30, 140, 0.35);
    --radius-base: 10px;
    --radius-pill: 999px;
    --radius-sm: 6px;
    --ease: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --brand-gradient: linear-gradient(135deg, #e91e8c 0%, #ff6b35 100%);
    --brand-gradient-v: linear-gradient(180deg, #e91e8c 0%, #c0157a 100%);
    --page-bg: #fdf0f8;
    --shadow-sm: 0 2px 8px rgba(233, 30, 140, 0.08);
    --shadow-md: 0 4px 16px rgba(233, 30, 140, 0.15);
    --shadow-lg: 0 8px 28px rgba(233, 30, 140, 0.22);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: var(--page-bg);
    color: var(--text-main);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========== SITE HEADER ========== */
.site-header {
    background: var(--surface);
    border-bottom: 3px solid var(--brand);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.brand-logo {
    text-decoration: none;
    display: inline-block;
    transition: var(--ease);
}

.brand-logo:hover {
    transform: scale(1.04);
}

.brand-name {
    font-size: 30px;
    font-weight: 900;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    display: inline-block;
    line-height: 1.2;
}

.brand-domain-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fff0f8 0%, #ffe0f4 100%);
    border: 2px solid var(--brand);
    border-radius: var(--radius-pill);
    padding: 6px 16px;
    position: relative;
    overflow: hidden;
}

.brand-domain-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%;
    height: 100%;
    background: rgba(255,255,255,0.5);
    transform: skewX(-20deg);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% { left: -60%; }
    100% { left: 130%; }
}

.domain-tag {
    font-size: 10px;
    font-weight: 800;
    color: var(--surface);
    background: var(--brand);
    border-radius: var(--radius-pill);
    padding: 2px 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.domain-addr {
    font-size: 17px;
    font-weight: 800;
    color: var(--brand-deep);
    letter-spacing: 0.5px;
    font-family: 'Courier New', 'Menlo', monospace;
}

/* ========== CONTAINER ========== */
.wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 14px;
}

.section-block {
    padding: 8px 0;
}

/* ========== BANNER AREA ========== */
.promo-banner {
    width: 100%;
    margin: 4px 0;
    overflow: hidden;
    border-radius: var(--radius-base);
}

.promo-banner img {
    display: block;
    width: 100%;
}

/* ========== NAVIGATION ========== */
.category-nav-box {
    background: var(--surface);
    border-radius: var(--radius-base);
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.cat-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
}

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

.cat-zone-label {
    font-weight: 800;
    font-size: 14px;
    color: var(--surface);
    background: var(--brand-gradient);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.cat-links-area {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
    align-items: center;
}

/* PC端：8个链接均分占满宽度 */
.cat-links-area a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-sub);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--radius-sm);
    transition: var(--ease);
    background: var(--surface-alt);
    border: 1px solid var(--line-strong);
    white-space: nowrap;
    text-align: center;
    flex: 1 0 calc((100% - 42px) / 8);
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
}

.cat-links-area a:hover,
.cat-links-area a.active {
    background: var(--brand);
    color: var(--surface);
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
    transform: translateY(-1px);
}

/* ========== SEARCH ========== */
.search-panel {
    background: var(--surface);
    border-radius: var(--radius-base);
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

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

.search-panel input[type="text"] {
    flex: 1;
    min-width: 160px;
    padding: 10px 14px;
    border: 2px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface-alt);
    color: var(--text-main);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
}

.search-panel input[type="text"]:focus {
    border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--glow);
}

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

.search-panel button {
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--brand-gradient);
    color: var(--surface);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.3px;
}

.search-panel button:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* ========== KEYWORD TAGS ========== */
.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 12px;
    background: var(--surface);
    border-radius: var(--radius-base);
    margin-bottom: 8px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.kw-tag {
    padding: 5px 13px;
    background: var(--surface-alt);
    border-radius: var(--radius-pill);
    color: var(--text-sub);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid var(--line-strong);
}

.kw-tag:hover {
    background: var(--brand);
    color: var(--surface);
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

/* ========== SECTION HEADING ========== */
.module-block {
    margin-bottom: 12px;
}

.module-hd {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--line);
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-hd::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 56px;
    height: 3px;
    background: var(--brand-gradient);
    border-radius: 2px;
}

.module-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
    letter-spacing: -0.2px;
}

.module-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--ease);
}

.module-title a:hover {
    color: var(--brand);
}

/* ========== FILM CARD GRID ========== */
/* PC端：每行4个 */
.film-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    list-style: none;
    padding: 0;
}

.film-grid li {
    position: relative;
    animation: fadeUp 0.5s ease backwards;
}

.film-grid li:nth-child(1) { animation-delay: 0.04s; }
.film-grid li:nth-child(2) { animation-delay: 0.08s; }
.film-grid li:nth-child(3) { animation-delay: 0.12s; }
.film-grid li:nth-child(4) { animation-delay: 0.16s; }
.film-grid li:nth-child(5) { animation-delay: 0.20s; }
.film-grid li:nth-child(6) { animation-delay: 0.24s; }
.film-grid li:nth-child(7) { animation-delay: 0.28s; }
.film-grid li:nth-child(8) { animation-delay: 0.32s; }

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

/* 封面比例 600:350 ≈ 12:7 */
.film-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-base);
    aspect-ratio: 12 / 7;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: var(--ease);
}

.film-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.film-thumb:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-soft);
}

.film-thumb:hover img {
    transform: scale(1.08);
}

.film-thumb::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    z-index: 2;
    color: white;
    font-size: 28px;
    background: rgba(233, 30, 140, 0.8);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--ease);
    line-height: 48px;
    text-indent: 3px;
}

.film-thumb:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.film-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.film-thumb:hover::after {
    opacity: 1;
}

.film-meta {
    padding: 8px 2px 4px;
}

.film-meta h5 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.film-meta h5 a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--ease);
}

.film-meta h5 a:hover {
    color: var(--brand);
}

/* ========== VIDEO PLAYER ========== */
.player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-base);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 12px;
}

.player-wrapper iframe,
.player-wrapper video,
.player-wrapper object,
.player-wrapper embed {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-base);
}

/* ========== BREADCRUMB / TITLE BAR ========== */
.content-titlebar {
    line-height: 1.8;
    text-align: center;
    padding: 18px 20px;
    font-size: 18px;
    margin: 12px 0;
    word-break: break-all;
    background: linear-gradient(135deg, rgba(233,30,140,0.08) 0%, rgba(255,107,53,0.06) 100%);
    border-radius: var(--radius-base);
    border: 1px solid var(--line-strong);
}

.content-titlebar a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
    margin-right: 8px;
}

/* ========== TORRENT INFO BLOCK ========== */
.torrent-info-block {
    font-size: 15px;
    line-height: 1.9;
    padding: 22px 24px;
    background: linear-gradient(135deg, rgba(233,30,140,0.06) 0%, rgba(255,107,53,0.04) 100%);
    border-radius: var(--radius-base);
    margin: 10px 0;
    border: 1px solid var(--line-strong);
}

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

.torrent-capture-grid picture img,
.torrent-capture-grid img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin-top: 8px;
}

/* ========== DOWNLOAD BUTTONS ========== */
.action-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 10px;
    margin: 12px 0;
    background: var(--surface);
    border-radius: var(--radius-base);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.dl-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    color: var(--surface);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--ease);
    border: none;
    background: var(--brand-gradient);
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.3px;
    text-align: center;
}

.dl-btn:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

/* ========== SHARE SECTION ========== */
.share-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--surface);
    border-radius: var(--radius-base);
    margin: 10px 0;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    flex-wrap: nowrap;
}

.share-url-display {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    background: var(--surface-alt);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    overflow: hidden;
}

.share-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
    flex-shrink: 0;
}

.share-url {
    font-size: 12px;
    color: var(--text-sub);
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    background: var(--brand-gradient);
    color: var(--surface);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: var(--ease);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    white-space: nowrap;
}

.share-copy-btn:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.share-icon {
    font-size: 18px;
    line-height: 1;
}

/* ========== PAGINATION ========== */
.pager-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 18px 0;
}

.pg-link,
.pg-cur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: var(--ease);
    min-width: 38px;
    text-align: center;
    text-decoration: none;
}

.pg-link {
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--line-strong);
}

.pg-link:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--surface);
    box-shadow: var(--shadow-sm);
}

.pg-cur {
    background: var(--brand-gradient);
    color: var(--surface);
    border: 1px solid var(--brand);
    cursor: default;
    font-weight: 700;
}

/* old class names (keep for backward compat) */
.page_info_div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 18px 0;
}

.a_page_info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: var(--ease);
    min-width: 38px;
    text-align: center;
    text-decoration: none;
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--line-strong);
}

.a_page_info:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--surface);
}

.page_info_focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    min-width: 38px;
    background: var(--brand-gradient);
    color: var(--surface);
    border: 1px solid var(--brand);
    cursor: default;
    font-weight: 700;
}

/* ========== FRIENDLY LINKS ========== */
.links-panel {
    padding: 12px;
    background: var(--surface);
    border-radius: var(--radius-base);
    border: 1px solid var(--line);
}

.links-panel dl {
    margin: 0;
}

.links-panel dd {
    display: inline-block;
    margin: 4px;
}

.links-panel a {
    color: var(--accent-cool);
    text-decoration: none;
    transition: var(--ease);
    font-size: 13px;
    padding: 2px 4px;
}

.links-panel a:hover {
    color: var(--brand);
}

/* ========== FOOTER ========== */
.site-footer {
    padding: 24px 0;
    text-align: center;
    border-top: 2px solid var(--brand);
    margin-top: 24px;
    background: var(--surface);
}

.site-footer p {
    margin: 6px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--ease);
}

.site-footer a:hover {
    color: var(--brand);
}

/* ========== CLEARFIX ========== */
.clr::after {
    content: "";
    display: table;
    clear: both;
}

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

/* ========== UTILITIES ========== */
.hidden-xs { display: block; }
.hidden-lg { display: block; }

@media (max-width: 768px) {
    .hidden-xs { display: none !important; }
}

@media (min-width: 769px) {
    .hidden-lg { display: none !important; }
}

/* ========== RESPONSIVE MOBILE ========== */
@media (max-width: 768px) {
    .wrap {
        padding: 0 8px;
    }

    .site-header {
        padding: 8px 0;
    }

    .site-header-inner {
        gap: 8px;
    }

    .brand-name {
        font-size: 22px;
    }

    .brand-domain-wrap {
        padding: 5px 12px;
        gap: 6px;
    }

    .domain-tag {
        font-size: 9px;
        padding: 2px 6px;
    }

    .domain-addr {
        font-size: 15px;
    }

    .section-block {
        padding: 6px 0;
    }

    /* 移动端导航：左边15%，右边85%，每行4个，分2行 */
    .cat-row {
        display: flex;
        align-items: stretch;
    }

    .cat-zone-label {
        width: 15%;
        font-size: 13px;
        padding: 8px 3px;
        letter-spacing: 0;
        line-height: 1.5;
        word-break: keep-all;
        writing-mode: vertical-rl;
        text-orientation: mixed;
    }

    .cat-links-area {
        width: 85%;
        gap: 4px;
        padding: 7px 6px;
    }

    /* 移动端：每行4个，共2行（8个栏目） */
    .cat-links-area a {
        font-size: 12px;
        padding: 4px 2px;
        flex: 0 0 calc((100% - 12px) / 4);
        min-width: 0;
    }

    .search-panel {
        padding: 10px;
    }

    .search-panel form {
        gap: 6px;
    }

    .search-panel input[type="text"] {
        min-width: 100px;
        padding: 9px 12px;
        font-size: 13px;
    }

    .search-panel button {
        padding: 9px 10px;
        font-size: 12px;
    }

    /* 移动端2列 */
    .film-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .film-meta h5 {
        font-size: 12px;
    }

    .module-block {
        margin-bottom: 10px;
    }

    .module-hd {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .module-title {
        font-size: 16px;
    }

    .keyword-cloud {
        padding: 10px;
        gap: 6px;
    }

    .kw-tag {
        padding: 4px 11px;
        font-size: 12px;
    }

    .dl-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .action-btns {
        padding: 12px 8px;
        margin: 10px 0;
        gap: 8px;
    }

    .share-section {
        padding: 10px 12px;
        margin: 10px 0;
        gap: 8px;
    }

    .share-url-display {
        padding: 9px 10px;
    }

    .share-label {
        font-size: 11px;
    }

    .share-url {
        font-size: 10px;
    }

    .share-copy-btn {
        padding: 9px 12px;
        font-size: 12px;
    }

    .share-icon {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 20px;
    }

    .domain-addr {
        font-size: 13px;
    }

    .cat-zone-label {
        width: 15%;
        font-size: 12px;
        writing-mode: vertical-rl;
        text-orientation: mixed;
    }

    .cat-links-area {
        width: 85%;
        gap: 3px;
        padding: 6px 4px;
    }

    .cat-links-area a {
        font-size: 12px;
        padding: 3px 1px;
        flex: 0 0 calc((100% - 9px) / 4);
        min-width: 0;
    }

    .search-panel input[type="text"] {
        min-width: 80px;
        font-size: 12px;
    }

    .search-panel button {
        padding: 8px 8px;
        font-size: 11px;
    }

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

    .film-meta h5 {
        font-size: 12px;
    }

    .module-title {
        font-size: 15px;
    }

    .action-btns {
        gap: 6px;
    }

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

    .share-section {
        padding: 8px 10px;
        gap: 6px;
    }

    .share-copy-btn {
        padding: 8px 10px;
        font-size: 11px;
    }
}

/* Loading img placeholder */
img[data-original] {
    background: var(--surface-alt);
}

/* ========== OLD CLASS NAMES (backward compat) ========== */
.mhlleset { margin-bottom: 12px; }
.mhlleset-main { width: 100%; }
.mhlleset-heading {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--line);
    position: relative;
}
.mhlleset-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 56px;
    height: 3px;
    background: var(--brand-gradient);
    border-radius: 2px;
}
.mhlleset-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
}
.mhlleset-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--ease);
}
.mhlleset-title a:hover { color: var(--brand); }

/* PC端：每行4个影片卡片 */
.thumbnail2-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    list-style: none;
    padding: 0;
}

.thumbnail2-group li {
    position: relative;
    animation: fadeUp 0.5s ease backwards;
}

.thumbnail2-group li:nth-child(1) { animation-delay: 0.04s; }
.thumbnail2-group li:nth-child(2) { animation-delay: 0.08s; }
.thumbnail2-group li:nth-child(3) { animation-delay: 0.12s; }
.thumbnail2-group li:nth-child(4) { animation-delay: 0.16s; }
.thumbnail2-group li:nth-child(5) { animation-delay: 0.2s; }
.thumbnail2-group li:nth-child(6) { animation-delay: 0.24s; }
.thumbnail2-group li:nth-child(7) { animation-delay: 0.28s; }
.thumbnail2-group li:nth-child(8) { animation-delay: 0.32s; }

/* 封面比例 600:350 */
.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-base);
    aspect-ratio: 12 / 7;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: var(--ease);
}

.thumbnail2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.thumbnail2:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-soft);
}

.thumbnail2:hover img {
    transform: scale(1.08);
}

.thumbnail2::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    z-index: 2;
    color: white;
    font-size: 28px;
    background: rgba(233, 30, 140, 0.82);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--ease);
    line-height: 48px;
    text-indent: 3px;
}

.thumbnail2:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.thumbnail2:hover::after {
    opacity: 1;
}

.video-info {
    padding: 8px 2px 4px;
}

.video-info h5 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-info h5 a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--ease);
}

.video-info h5 a:hover {
    color: var(--brand);
}

.download {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 10px;
    margin: 12px 0;
    background: var(--surface);
    border-radius: var(--radius-base);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.down_btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    color: var(--surface);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--ease);
    border: none;
    background: var(--brand-gradient);
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.3px;
    text-align: center;
}

.down_btn:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 12px;
    background: var(--surface);
    border-radius: var(--radius-base);
    margin-bottom: 8px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.grid-item {
    padding: 5px 13px;
    background: var(--surface-alt);
    border-radius: var(--radius-pill);
    color: var(--text-sub);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid var(--line-strong);
}

.grid-item:hover {
    background: var(--brand);
    color: var(--surface);
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
}

.seach {
    background: var(--surface);
    border-radius: var(--radius-base);
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.seach form {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
}

.seach input[type="text"] {
    flex: 1;
    min-width: 160px;
    padding: 10px 14px;
    border: 2px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface-alt);
    color: var(--text-main);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
}

.seach input[type="text"]:focus {
    border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--glow);
}

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

.seach button {
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--brand-gradient);
    color: var(--surface);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.3px;
}

.seach button:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.txtguanggao2 {
    padding: 12px;
    background: var(--surface);
    border-radius: var(--radius-base);
    border: 1px solid var(--line);
}

.txtguanggao2 dl { margin: 0; }
.txtguanggao2 dd { display: inline-block; margin: 4px; }
.txtguanggao2 a {
    color: var(--accent-cool);
    text-decoration: none;
    transition: var(--ease);
    font-size: 13px;
    padding: 2px 4px;
}
.txtguanggao2 a:hover { color: var(--brand); }

.footer {
    padding: 24px 0;
    text-align: center;
    border-top: 2px solid var(--brand);
    margin-top: 24px;
    background: var(--surface);
}

.footer p {
    margin: 6px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--ease);
}

.footer a:hover {
    color: var(--brand);
}

.hide_mobile { display: block; }
.hide_pc { display: block; }

@media (max-width: 768px) {
    .hide_mobile { display: none !important; }

    /* 移动端：每行2个影片卡片 */
    .thumbnail2-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mhlleset { margin-bottom: 10px; }
    .mhlleset-title { font-size: 16px; }

    .seach {
        padding: 10px;
    }

    .seach form { gap: 6px; }

    .seach input[type="text"] {
        min-width: 100px;
        padding: 9px 12px;
        font-size: 13px;
    }

    .seach button {
        padding: 9px 10px;
        font-size: 12px;
    }

    .grid-container {
        padding: 10px;
        gap: 6px;
    }

    .grid-item {
        padding: 4px 11px;
        font-size: 12px;
    }

    .download {
        padding: 12px 8px;
        margin: 10px 0;
        gap: 8px;
    }

    .down_btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (min-width: 769px) {
    .hide_pc { display: none !important; }
}

@media (max-width: 480px) {
    .thumbnail2-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .video-info h5 { font-size: 12px; }
    .mhlleset-title { font-size: 15px; }

    .seach input[type="text"] {
        min-width: 80px;
        font-size: 12px;
    }

    .seach button {
        padding: 8px 8px;
        font-size: 11px;
    }

    .down_btn {
        padding: 9px 14px;
        font-size: 12px;
    }
}

/* ========== NAV CONTAINER (backward compat) ========== */
.nav-container {
    background: var(--surface);
    border-radius: var(--radius-base);
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.nav-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
}

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

/* PC端：label 占合适宽度，links 占满剩余空间，8个链接均分 */
.nav-row .nav-label {
    font-weight: 800;
    font-size: 14px;
    color: var(--surface);
    background: var(--brand-gradient);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    flex-shrink: 0;
}

.nav-row .nav-links {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
    align-items: center;
}

/* PC端：8个链接均分占满links区域宽度 */
.nav-row .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-sub);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--radius-sm);
    transition: var(--ease);
    background: var(--surface-alt);
    border: 1px solid var(--line-strong);
    white-space: nowrap;
    text-align: center;
    flex: 1 0 calc((100% - 42px) / 8);
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
}

.nav-row .nav-links a:hover,
.nav-row .nav-links a.active {
    background: var(--brand);
    color: var(--surface);
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
    transform: translateY(-1px);
}

/* 移动端导航布局 */
@media (max-width: 768px) {
    /* label：15%宽，4个汉字竖排显示 */
    .nav-row .nav-label {
        width: 15%;
        font-size: 13px;
        padding: 8px 3px;
        line-height: 1.5;
        word-break: keep-all;
        white-space: normal;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        letter-spacing: 2px;
    }

    /* links：85%宽 */
    .nav-row .nav-links {
        flex: none;
        width: 85%;
        gap: 4px;
        padding: 7px 6px;
    }

    /* 每行4个，共2行（8个栏目） */
    .nav-row .nav-links a {
        font-size: 12px;
        padding: 4px 2px;
        flex: 0 0 calc((100% - 12px) / 4);
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .nav-row .nav-label {
        font-size: 12px;
        width: 15%;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        letter-spacing: 2px;
    }

    .nav-row .nav-links {
        width: 85%;
        gap: 3px;
        padding: 6px 4px;
    }

    .nav-row .nav-links a {
        font-size: 12px;
        padding: 3px 1px;
        flex: 0 0 calc((100% - 9px) / 4);
        min-width: 0;
    }
}
