/* Video Site Template — Academic Teal & Orange Style (学术之家风) */

:root {
    --teal:        #0099c8;
    --teal-dark:   #007ba8;
    --teal-mid:    #18aad6;
    --teal-pale:   #e6f6fb;
    --teal-xpale:  #f0fafd;
    --orange:      #f07800;
    --orange-dark: #d46200;
    --orange-pale: #fff3e6;
    --near-black:  #1a1a1a;
    --dark-gray:   #333333;
    --mid-gray:    #666666;
    --sub-gray:    #999999;
    --light-gray:  #cccccc;
    --border:      #e0e0e0;
    --border-mid:  #d0d0d0;
    --pale:        #f7f7f7;
    --pale2:       #f2f2f2;
    --white:       #ffffff;
    --shd-sm:      0 1px 4px rgba(0,0,0,0.08);
    --shd-md:      0 3px 10px rgba(0,0,0,0.10);
    --shd-lg:      0 6px 20px rgba(0,0,0,0.12);
    --rr:          4px;
    --rr-sm:       3px;
    --rr-pill:     20px;
    --ease:        all 0.20s ease;
}

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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: var(--pale);
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}

/* top accent bar */
body::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--teal) 0%, var(--teal-mid) 60%, var(--orange) 100%);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
}

/* ── HEADER ── */
.site-header {
    background: var(--white);
    border-bottom: 2px solid var(--border);
    padding: 0.55rem 0;
    box-shadow: var(--shd-sm);
}

.hdr-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
    justify-content: center;
}

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

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

.brand-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: 0;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
}

.brand-sep {
    width: 1px;
    height: 22px;
    background: var(--border);
    flex-shrink: 0;
}

.addr-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--teal-xpale);
    border: 1px solid var(--teal-pale);
    border-radius: var(--rr);
}

.addr-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--teal);
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.addr-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--teal-dark);
    letter-spacing: 0.5px;
    font-family: 'Courier New', monospace;
}

/* ── LAYOUT ── */
.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 14px;
}

.content { padding: 6px 0; }

/* ── NAV CATEGORIES ── */
.nav-container {
    background: var(--white);
    border-radius: var(--rr);
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shd-sm);
}

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

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

.nav-row .nav-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    background: var(--teal);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 5px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.nav-row .nav-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 7px 8px;
    align-items: center;
    background: var(--pale);
}

.nav-row .nav-links a {
    display: inline-block;
    color: var(--dark-gray);
    text-decoration: none;
    padding: 4px 4px;
    border-radius: var(--rr-sm);
    transition: var(--ease);
    background: var(--white);
    border: 1px solid var(--border);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    font-weight: 400;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.nav-row .nav-links a:hover {
    background: var(--teal-pale);
    color: var(--teal);
    border-color: var(--teal-mid);
}

.nav-row .nav-links a.active {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal-dark);
    font-weight: 600;
}

/* ── SEARCH ── */
.seach {
    background: var(--white);
    border-radius: var(--rr);
    padding: 9px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shd-sm);
}

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

.seach input[type="text"] {
    flex: 1;
    min-width: 100px;
    padding: 8px 12px;
    border: 1px solid var(--border-mid);
    border-radius: var(--rr-sm);
    background: var(--pale);
    color: var(--near-black);
    font-size: 14px;
    font-family: inherit;
    transition: var(--ease);
    outline: none;
}

.seach input[type="text"]:focus {
    border-color: var(--teal);
    background: var(--white);
    box-shadow: 0 0 0 2px rgba(0,153,200,0.10);
}

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

.seach button {
    padding: 8px 13px;
    border: none;
    border-radius: var(--rr-sm);
    background: var(--teal);
    color: var(--white);
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
}

.seach button:hover { background: var(--teal-dark); }
.seach button:active { transform: scale(0.97); }

/* ── TAG CLOUDS ── */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 9px 12px;
    background: var(--white);
    border-radius: var(--rr);
    margin-bottom: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shd-sm);
}

.grid-item {
    padding: 3px 11px;
    background: var(--pale2);
    border-radius: var(--rr-sm);
    color: var(--mid-gray);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    transition: var(--ease);
    border: 1px solid var(--border);
}

.grid-item:hover {
    background: var(--teal-pale);
    color: var(--teal);
    border-color: var(--teal-mid);
}

/* ── SECTION HEADINGS ── */
.mhlleset { margin-bottom: 12px; }

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

.mhlleset-heading::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 48px; height: 2px;
    background: var(--teal);
}

.mhlleset-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--near-black);
    letter-spacing: 0;
}

.mhlleset-title a { color: var(--near-black); text-decoration: none; transition: var(--ease); }
.mhlleset-title a:hover { color: var(--teal); }

/* ── MEDIA GRID ── */
.thumbnail2-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
}

.thumbnail2-group li { animation: riseIn 0.35s ease both; }
.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 riseIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rr);
    aspect-ratio: 600 / 350;
    background: var(--pale2);
    border: 1px solid var(--border);
    box-shadow: var(--shd-sm);
}

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

.thumbnail2:hover { box-shadow: var(--shd-md); border-color: var(--teal-mid); }
.thumbnail2:hover img { transform: scale(1.05); }

.thumbnail2::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,60,90,0.65) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.22s ease;
}

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

.thumbnail2::before {
    content: '▶';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    color: white; font-size: 22px; z-index: 2;
    opacity: 0; transition: var(--ease);
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

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

.video-info { padding: 7px 1px 0; }

.video-info h5 {
    margin: 0; font-size: 13px; font-weight: 400;
    line-height: 1.45; color: var(--dark-gray);
}

.video-info h5 a {
    color: var(--dark-gray); text-decoration: none; transition: var(--ease);
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

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

/* ── VIDEO PLAYER ── */
.video-container {
    width: 100%; height: 600px; max-height: 600px;
    margin-bottom: 12px; background: #000;
    border-radius: var(--rr); overflow: hidden;
    box-shadow: var(--shd-lg); position: relative;
    border: 1px solid var(--border);
}

.video-container iframe,
.video-container video,
.video-container #video-container { width: 100%; height: 100%; border: none; }

.MacPlayer {
    background: #000; border-radius: var(--rr);
    overflow: hidden; margin-bottom: 12px; box-shadow: var(--shd-lg);
}

/* ── TORRENT CAPTURES ── */
.torrent-capture-grid img,
.torrent-capture-grid .img_item img {
    width: 100%; height: auto;
    border-radius: var(--rr-sm);
    border: 1px solid var(--border); display: block;
}

.torrent-capture-grid .img_item { width: 100%; }

/* ── DOWNLOAD BUTTONS ── */
.download {
    text-align: center; padding: 12px;
    background: var(--white); border-radius: var(--rr);
    margin: 10px 0; border: 1px solid var(--border);
    box-shadow: var(--shd-sm);
    display: flex; justify-content: center; align-items: center;
    flex-wrap: nowrap; gap: 10px;
}

.down_btn {
    display: inline-block; padding: 9px 22px;
    background: var(--orange);
    color: var(--white); text-decoration: none;
    border-radius: var(--rr); font-weight: 600;
    font-size: 13px; font-family: inherit;
    transition: var(--ease); border: none;
    white-space: nowrap; flex-shrink: 0; cursor: pointer;
}

.down_btn:hover { background: var(--orange-dark); box-shadow: var(--shd-sm); }
.down_btn:active { transform: scale(0.97); }

/* ── SHARE SECTION ── */
.share-section {
    background: var(--white); border-radius: var(--rr);
    padding: 12px; margin: 10px 0;
    border: 1px solid var(--border); box-shadow: var(--shd-sm);
    display: flex; align-items: center; gap: 10px;
}

.share-url-display {
    background: var(--pale); border: 1px solid var(--border);
    border-radius: var(--rr-sm); padding: 8px 12px;
    display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;
}

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

.share-url {
    font-size: 12px; color: var(--sub-gray);
    font-family: 'Courier New', monospace;
    word-break: break-all; flex: 1; line-height: 1.4;
    overflow: hidden; text-overflow: ellipsis;
}

.share-copy-btn {
    padding: 8px 16px; background: var(--teal);
    color: var(--white); border: none; border-radius: var(--rr);
    font-weight: 600; font-size: 13px; font-family: inherit;
    cursor: pointer; transition: var(--ease);
    display: flex; align-items: center; justify-content: center;
    gap: 5px; white-space: nowrap; flex-shrink: 0;
}

.share-copy-btn:hover { background: var(--teal-dark); }
.share-copy-btn:active { transform: scale(0.97); }
.share-icon { font-size: 14px; }

/* ── PAGINATION ── */
.page_info_div {
    display: flex; justify-content: center; align-items: center;
    gap: 4px; flex-wrap: wrap; padding: 14px 0;
}

.a_page_info, .page_info_focus {
    display: inline-block; padding: 6px 12px;
    border-radius: var(--rr-sm); text-decoration: none;
    font-weight: 400; font-size: 13px; font-family: inherit;
    transition: var(--ease); min-width: 34px; text-align: center;
}

.a_page_info {
    background: var(--white); color: var(--dark-gray);
    border: 1px solid var(--border);
}

.a_page_info:hover {
    background: var(--teal-pale); border-color: var(--teal);
    color: var(--teal);
}

.page_info_focus {
    background: var(--teal); color: var(--white);
    border: 1px solid var(--teal-dark); cursor: default;
}

/* ── FOOTER ── */
.footer {
    padding: 18px 0; text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 16px;
    background: var(--near-black);
}

.footer p { margin: 5px 0; color: rgba(255,255,255,0.45); font-size: 12px; }
.footer a  { color: rgba(255,255,255,0.45); text-decoration: none; transition: var(--ease); }
.footer a:hover { color: var(--teal-mid); }

.txtguanggao2 {
    padding: 10px 12px; background: var(--white);
    border-radius: var(--rr); border: 1px solid var(--border);
}

.txtguanggao2 dl  { margin: 0; }
.txtguanggao2 dd  { display: inline-block; margin: 3px 5px; }
.txtguanggao2 a   { color: var(--mid-gray); text-decoration: none; font-size: 13px; transition: var(--ease); }
.txtguanggao2 a:hover { color: var(--teal); }

/* ── UTILITIES ── */
.clearfix::after { content: ""; display: table; clear: both; }
img[data-original] { background: var(--pale2); }
.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 ≤ 768px
══════════════════════════════ */
@media (max-width: 768px) {
    .container { padding: 0 8px; }
    .content   { padding: 5px 0; }
    .site-header { padding: 0.5rem 0; }
    .brand-wrap  { gap: 8px; flex-wrap: wrap; justify-content: center; }
    .brand-title { font-size: 20px; }
    .brand-sep   { display: none; }
    .addr-badge  { padding: 4px 10px; gap: 5px; }
    .addr-tag    { font-size: 10px; }
    .addr-val    { font-size: 14px; }

    /* Nav: label 15% teal, links 85%, 4 per row × 2 rows */
    .nav-row .nav-label { width: 15%; font-size: 10px; padding: 7px 3px; }
    .nav-row .nav-links { width: 85%; gap: 4px; padding: 6px 4px; }
    .nav-row .nav-links a {
        font-size: 12px; padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0; flex-grow: 0; text-align: center;
    }

    /* Thumbnails 2 per row */
    .thumbnail2-group { grid-template-columns: repeat(2, 1fr); gap: 9px; }

    /* Search: all one row, no wrap */
    .seach form { flex-wrap: nowrap; gap: 5px; }
    .seach input[type="text"] { min-width: 70px; padding: 8px 9px; font-size: 13px; }
    .seach button { padding: 8px 9px; font-size: 12px; }

    .video-container { height: 56.25vw; max-height: 380px; margin-bottom: 10px; }
    .mhlleset { margin-bottom: 10px; }
    .mhlleset-title { font-size: 15px; }
    .grid-container { padding: 7px 10px; gap: 5px; }
    .grid-item { padding: 3px 9px; font-size: 12px; }
    .down_btn  { padding: 8px 13px; font-size: 12px; }
    .download  { padding: 9px 6px; gap: 7px; flex-wrap: nowrap; }
    .share-section { padding: 9px; margin: 9px 0; gap: 7px; flex-wrap: nowrap; }
    .share-url-display { padding: 7px 9px; gap: 5px; flex: 1; min-width: 0; }
    .share-label { font-size: 11px; }
    .share-url   { font-size: 10px; }
    .share-copy-btn { padding: 7px 10px; font-size: 11px; flex-shrink: 0; }
    .share-icon { font-size: 13px; }
    .page_info_div { padding: 11px 0; gap: 4px; }
    .a_page_info, .page_info_focus { padding: 5px 9px; font-size: 12px; min-width: 30px; }
    .footer { padding: 14px 0; margin-top: 14px; }
}

/* ══════════════════════════════
   RESPONSIVE ≤ 480px
══════════════════════════════ */
@media (max-width: 480px) {
    .brand-title { font-size: 18px; }
    .addr-tag    { font-size: 9px; }
    .addr-val    { font-size: 13px; }
    .nav-row .nav-label { width: 15%; font-size: 10px; padding: 6px 2px; }
    .nav-row .nav-links { width: 85%; gap: 3px; padding: 5px 3px; }
    .nav-row .nav-links a { font-size: 12px; padding: 3px 1px; width: calc((100% - 9px) / 4); }
    .thumbnail2-group { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .seach input[type="text"] { min-width: 55px; padding: 7px 7px; font-size: 12px; }
    .seach button { padding: 7px 7px; font-size: 11px; }
    .video-container { height: 56.25vw; max-height: 260px; }
    .video-info h5  { font-size: 12px; }
    .mhlleset-title { font-size: 14px; }
    .down_btn { padding: 7px 10px; font-size: 11px; }
    .share-section { padding: 7px; gap: 5px; }
    .share-url-display { padding: 6px 7px; }
    .share-copy-btn { padding: 7px 8px; font-size: 11px; }
}
