/* Video Site Template — Allianz Corporate Navy Style */

:root {
    --az-navy: #003781;
    --az-navy-deep: #002860;
    --az-navy-mid: #0a4fa0;
    --az-blue-light: #d6e4f7;
    --az-blue-pale: #eef4fb;
    --az-teal: #006192;
    --az-sky: #0070c0;
    --az-white: #ffffff;
    --az-off-white: #f7f8fa;
    --az-surface: #ffffff;
    --az-bg: #f4f6f8;
    --az-line: #e0e5ec;
    --az-line-strong: #c8d0db;
    --az-ink: #1a2332;
    --az-ink-sub: #374151;
    --az-ink-muted: #6b7a8d;
    --az-ink-faint: #a8b4c2;
    --radius: 6px;
    --radius-sm: 4px;
    --radius-lg: 10px;
    --radius-pill: 999px;
    --ease: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-xs: 0 1px 3px rgba(0,55,129,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,55,129,0.08), 0 1px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 18px rgba(0,55,129,0.12), 0 2px 6px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,55,129,0.16), 0 4px 10px rgba(0,0,0,0.07);
    --navy-glow: rgba(0, 55, 129, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
    background: var(--az-bg);
    color: var(--az-ink);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
.az-header {
    background: var(--az-white);
    border-bottom: 2px solid var(--az-navy);
    padding: 10px 0;
    box-shadow: var(--shadow-xs);
}

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

.az-brand-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--ease);
}

.az-brand-link:hover { opacity: 0.82; }

/* Allianz-style circle mark */
.az-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--az-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.az-logo-mark::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.9);
    border-radius: 50%;
    display: block;
}

.az-site-name {
    font-size: 21px;
    font-weight: 700;
    color: var(--az-navy);
    letter-spacing: -0.2px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    line-height: 1.2;
}

.az-domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--az-blue-pale);
    border: 1.5px solid var(--az-blue-light);
    border-radius: var(--radius);
    padding: 6px 16px;
}

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

.az-domain-addr {
    font-size: 18px;
    font-weight: 700;
    color: var(--az-navy-deep);
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', 'Courier New', monospace;
    letter-spacing: 0.2px;
}

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

.az-seg {
    padding: 6px 0;
}

/* ===== BANNER ===== */
.az-banner-zone {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--shadow-sm);
}

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

/* ===== NAVIGATION ===== */
.az-nav-board {
    background: var(--az-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 6px;
    border: 1px solid var(--az-line);
    box-shadow: var(--shadow-xs);
}

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

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

/* PC端：分区标签宽度自适应，不强制固定比例 */
.nav-row .nav-label {
    font-weight: 700;
    font-size: 13px;
    color: var(--az-white);
    background: var(--az-navy);
    white-space: nowrap;
    flex-shrink: 0;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    letter-spacing: 0.2px;
    min-width: 80px;
}

/* PC端：链接区域占满剩余宽度，8个链接平均分配 */
.nav-row .nav-links {
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    padding: 6px 8px;
    align-items: center;
}

.nav-row .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--az-ink-sub);
    text-decoration: none;
    padding: 7px 4px;
    border-radius: var(--radius-sm);
    transition: var(--ease);
    background: var(--az-off-white);
    border: 1px solid var(--az-line);
    white-space: nowrap;
    text-align: center;
    /* PC端：8个链接均分100%宽度，用calc减去间距 */
    flex: 1 1 0;
    min-width: 0;
    font-size: 13px;
    font-weight: 400;
    margin: 2px 3px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-row .nav-links a:hover {
    background: var(--az-blue-pale);
    color: var(--az-navy);
    border-color: var(--az-blue-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-xs);
}

.nav-row .nav-links a.active {
    background: var(--az-navy);
    color: var(--az-white);
    border-color: var(--az-navy);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* ===== SEARCH ===== */
.seach {
    background: var(--az-surface);
    border-radius: var(--radius-lg);
    padding: 12px;
    margin-bottom: 6px;
    border: 1px solid var(--az-line);
    box-shadow: var(--shadow-xs);
}

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

.seach input[type="text"] {
    flex: 1;
    min-width: 160px;
    padding: 9px 15px;
    border: 1.5px solid var(--az-line-strong);
    border-radius: var(--radius-sm);
    background: var(--az-off-white);
    color: var(--az-ink);
    font-size: 14px;
    font-family: inherit;
    transition: var(--ease);
    outline: none;
}

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

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

.seach button {
    padding: 9px 18px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--az-navy);
    color: var(--az-white);
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.1px;
}

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

/* ===== KEYWORD TAGS ===== */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 12px;
    background: var(--az-surface);
    border-radius: var(--radius-lg);
    margin-bottom: 6px;
    border: 1px solid var(--az-line);
    box-shadow: var(--shadow-xs);
}

.grid-item {
    padding: 4px 12px;
    background: var(--az-off-white);
    border-radius: var(--radius-sm);
    color: var(--az-ink-sub);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid var(--az-line);
}

.grid-item:hover {
    background: var(--az-blue-pale);
    color: var(--az-navy);
    border-color: var(--az-blue-light);
    transform: translateY(-1px);
}

/* ===== SECTION HEADINGS ===== */
.mhlleset { margin-bottom: 10px; }
.mhlleset-main { width: 100%; }

.mhlleset-heading {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--az-line);
    position: relative;
}

.mhlleset-heading::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 44px;
    height: 3px;
    background: var(--az-navy);
    border-radius: 2px;
}

.mhlleset-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--az-ink);
    letter-spacing: -0.2px;
}

.mhlleset-title a {
    color: var(--az-ink);
    text-decoration: none;
    transition: var(--ease);
}

.mhlleset-title a:hover { color: var(--az-navy); }

/* ===== FILM GRID — PC端4列 ===== */
.thumbnail2-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    list-style: none;
    padding: 0;
}

.thumbnail2-group li {
    animation: azReveal 0.4s ease backwards;
}

.thumbnail2-group li:nth-child(1) { animation-delay: 0.03s; }
.thumbnail2-group li:nth-child(2) { animation-delay: 0.06s; }
.thumbnail2-group li:nth-child(3) { animation-delay: 0.09s; }
.thumbnail2-group li:nth-child(4) { animation-delay: 0.12s; }
.thumbnail2-group li:nth-child(5) { animation-delay: 0.15s; }
.thumbnail2-group li:nth-child(6) { animation-delay: 0.18s; }
.thumbnail2-group li:nth-child(7) { animation-delay: 0.21s; }
.thumbnail2-group li:nth-child(8) { animation-delay: 0.24s; }

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

/* 600:350 = 12:7 */
.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 12 / 7;
    background: var(--az-off-white);
    border: 1px solid var(--az-line);
    box-shadow: var(--shadow-xs);
    transition: var(--ease);
}

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

.thumbnail2:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--az-navy-mid);
    transform: translateY(-3px);
}

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

/* Navy blue play button */
.thumbnail2::before {
    content: '▶';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    z-index: 2;
    color: white;
    font-size: 18px;
    background: var(--az-navy);
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--ease);
    line-height: 44px;
    text-indent: 2px;
    box-shadow: 0 4px 16px var(--navy-glow);
}

.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,26,77,0.5) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.28s ease;
    z-index: 1;
}

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

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

.video-info h5 {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--az-ink-sub);
}

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

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

/* ===== DETAIL TITLE BAR ===== */
.pg-titlebar {
    line-height: 1.7;
    text-align: center;
    padding: 18px 22px;
    font-size: 16px;
    margin: 8px 0;
    word-break: break-all;
    background: var(--az-blue-pale);
    border-radius: var(--radius-lg);
    border: 1px solid var(--az-blue-light);
    box-shadow: var(--shadow-xs);
}

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

/* ===== TORRENT DETAIL ===== */
.torrent-detail-blk {
    font-size: 15px;
    line-height: 1.9;
    padding: 22px 24px;
    background: var(--az-surface);
    border-radius: var(--radius-lg);
    margin: 8px 0;
    border: 1px solid var(--az-line);
    box-shadow: var(--shadow-xs);
}

.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: 10px;
    box-shadow: var(--shadow-sm);
}

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

.down_btn {
    display: inline-block;
    padding: 11px 28px;
    border-radius: var(--radius-sm);
    color: var(--az-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--ease);
    border: none;
    background: var(--az-navy);
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.1px;
    text-align: center;
}

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

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

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

.share-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--az-navy);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-url {
    font-size: 12px;
    color: var(--az-ink-muted);
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    background: var(--az-navy);
    color: var(--az-white);
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: var(--ease);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    white-space: nowrap;
}

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

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

/* ===== PAGINATION ===== */
.page_info_div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 16px 0;
}

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

.a_page_info:hover {
    background: var(--az-blue-pale);
    border-color: var(--az-blue-light);
    color: var(--az-navy);
}

.page_info_focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    min-width: 36px;
    background: var(--az-navy);
    color: var(--az-white);
    border: 1px solid var(--az-navy);
    cursor: default;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

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

.txtguanggao2 dl { margin: 0; }
.txtguanggao2 dd { display: inline-block; margin: 4px; }

.txtguanggao2 a {
    color: var(--az-navy);
    text-decoration: none;
    transition: var(--ease);
    font-size: 13px;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.txtguanggao2 a:hover {
    background: var(--az-blue-pale);
    color: var(--az-navy-deep);
}

/* ===== FOOTER ===== */
.footer {
    padding: 22px 0;
    text-align: center;
    border-top: 2px solid var(--az-navy);
    margin-top: 20px;
    background: var(--az-white);
}

.footer p {
    margin: 6px 0;
    color: var(--az-ink-muted);
    font-size: 12px;
}

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

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

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

/* ===== UTILS ===== */
.hide_mobile { display: block; }
.hide_pc { display: block; }

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

/* ===== RESPONSIVE — 移动端 ===== */
@media (max-width: 768px) {
    .az-wrap { padding: 0 8px; }
    .az-header { padding: 8px 0; }
    .az-header-inner { gap: 8px; }
    .az-site-name { font-size: 18px; }

    .az-domain-badge { padding: 5px 13px; gap: 8px; }
    .az-domain-tag { font-size: 9px; padding: 2px 6px; }
    .az-domain-addr { font-size: 15px; }

    .az-seg { padding: 4px 0; }

    /* ===== 移动端导航：标签15%，链接区85% ===== */
    .nav-row .nav-label {
        width: 15%;
        min-width: 0;
        flex-shrink: 0;
        flex-grow: 0;
        /* 强制固定15%，覆盖PC端的flex-shrink:0 + min-width */
        flex-basis: 15%;
        font-size: 11px;
        padding: 8px 2px;
        letter-spacing: 0;
        line-height: 1.3;
        /* 让4个汉字能完整显示：允许换行 */
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    /* 移动端：链接区占85%，每行4个，共2行 */
    .nav-row .nav-links {
        width: 85%;
        flex: none;
        flex-basis: 85%;
        display: flex;
        flex-wrap: wrap;
        gap: 0;             /* 去掉gap，改用margin精确控制 */
        padding: 4px 3px;
        align-items: center;
        align-content: center;
    }

    .nav-row .nav-links a {
        /* 严格25%，用margin+padding代替gap，确保一行4个不溢出 */
        flex: none;
        width: 25%;
        box-sizing: border-box;
        padding: 5px 2px;
        margin: 2px 0;
        font-size: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        border-radius: var(--radius-sm);
        border: none;
        background: var(--az-off-white);
        outline: 1px solid var(--az-line);
        outline-offset: -1px;
    }

    .seach { padding: 10px; }
    .seach form { gap: 6px; }
    .seach input[type="text"] { min-width: 100px; padding: 8px 11px; font-size: 13px; }
    .seach button { padding: 8px 10px; font-size: 12px; }

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

    .video-info h5 { font-size: 12px; }
    .mhlleset { margin-bottom: 8px; }
    .mhlleset-title { font-size: 16px; }

    .grid-container { padding: 10px; gap: 5px; }
    .grid-item { padding: 4px 10px; font-size: 12px; }

    .download { padding: 12px 8px; gap: 8px; }
    .down_btn { padding: 10px 18px; font-size: 13px; }

    .share-section { padding: 10px 11px; gap: 7px; }
    .share-url-display { padding: 8px 10px; }
    .share-label { font-size: 10px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 8px 11px; font-size: 12px; }
    .share-icon { font-size: 14px; }

    .page_info_div { padding: 14px 0; gap: 4px; }
    .a_page_info, .page_info_focus { padding: 6px 11px; font-size: 12px; min-width: 32px; }
}

@media (max-width: 480px) {
    .az-site-name { font-size: 16px; }
    .az-domain-addr { font-size: 13px; }

    /* 极小屏：保持15%/85%比例，链接仍然4个一行 */
    .nav-row .nav-label {
        width: 15%;
        flex-basis: 15%;
        font-size: 10px;
        padding: 8px 1px;
    }

    .nav-row .nav-links {
        width: 85%;
        flex-basis: 85%;
    }

    .nav-row .nav-links a {
        font-size: 12px;
        padding: 4px 1px;
        width: 25%;
    }

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

    /* 移动端影片格保持2列 */
    .thumbnail2-group { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .video-info h5 { font-size: 12px; }
    .mhlleset-title { font-size: 15px; }
    .down_btn { padding: 9px 14px; font-size: 12px; }
}

img[data-original] { background: var(--az-off-white); }
