/* GameVault - Green Gaming Portal Theme | 4399-style */

:root {
    --grn: #5cb800;
    --grn-deep: #4a9600;
    --grn-light: #7ed321;
    --grn-pale: #eaf6d5;
    --grn-grad: linear-gradient(135deg, #5cb800 0%, #4a9600 100%);
    --grn-grad2: linear-gradient(180deg, #6dcf00 0%, #4a9600 100%);
    --orange: #ff6600;
    --orange-light: #ff8833;
    --yellow: #ffcc00;
    --red-tag: #e8001c;
    --bg-base: #f0f4e8;
    --bg-surface: #ffffff;
    --bg-raised: #f5f8ef;
    --bg-header: #2d6e00;
    --bg-nav: #3d8c00;
    --txt-primary: #333333;
    --txt-secondary: #555555;
    --txt-muted: #888888;
    --txt-white: #ffffff;
    --border-grn: #b8d98a;
    --border-light: #dde8c8;
    --border-mid: #c5d9a0;
    --shadow-grn: rgba(76, 150, 0, 0.18);
    --shadow-sm: rgba(0, 0, 0, 0.08);
    --r-xs: 2px;
    --r-sm: 4px;
    --r-base: 6px;
    --r-lg: 8px;
    --ease: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', SimHei, Arial, sans-serif;
    background: var(--bg-base);
    color: var(--txt-primary);
    line-height: 1.5;
    font-size: 13px;
    overflow-x: hidden;
}

/* ============ HEADER ============ */
.site-header {
    background: var(--grn-grad2);
    padding: 0.45rem 0;
    box-shadow: 0 3px 8px var(--shadow-grn);
    border-bottom: 2px solid var(--grn-deep);
}

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

.brand-wrap { display: flex; align-items: center; gap: 16px; }

.brand-link { text-decoration: none; }

.brand-title {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    font-style: normal;
    text-decoration: none;
    display: inline-block;
}

.brand-link:hover .brand-title { color: #ffffcc; }

.addr-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--r-sm);
}

.addr-tag {
    font-size: 10px;
    font-weight: 700;
    color: #ccffaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.addr-val {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.3px;
    font-family: 'Courier New', Courier, monospace;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* ============ LAYOUT ============ */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 10px; }
.block { padding: 5px 0; }

/* ============ NAV ============ */
.nav-board {
    background: var(--bg-surface);
    border-radius: var(--r-base);
    overflow: hidden;
    margin-bottom: 6px;
    border: 1px solid var(--border-grn);
    box-shadow: 0 1px 4px var(--shadow-sm);
}

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

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

.nav-zone {
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    flex-shrink: 0;
    background: var(--grn-grad);
}

.nav-items {
    font-size: 13px;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 7px 8px;
    align-items: center;
    background: var(--bg-surface);
}

.nav-items a {
    display: inline-block;
    color: var(--txt-secondary);
    text-decoration: none;
    padding: 4px 3px;
    border-radius: var(--r-xs);
    transition: var(--ease);
    background: var(--bg-raised);
    border: 1px solid var(--border-light);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 28px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    font-size: 13px;
}

.nav-items a:hover {
    background: var(--grn);
    color: #fff;
    border-color: var(--grn-deep);
    box-shadow: 0 2px 5px var(--shadow-grn);
}

.nav-items a.active {
    background: var(--grn-grad);
    color: #fff;
    border-color: var(--grn-deep);
    font-weight: 700;
}

/* ============ SEARCH ============ */
.seach {
    background: var(--bg-surface);
    border-radius: var(--r-base);
    padding: 9px;
    margin-bottom: 6px;
    border: 1px solid var(--border-grn);
    box-shadow: 0 1px 3px var(--shadow-sm);
}

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

.seach input[type="text"] {
    flex: 1;
    min-width: 50px;
    padding: 8px 12px;
    border: 1.5px solid var(--border-mid);
    border-radius: var(--r-sm);
    background: var(--bg-raised);
    color: var(--txt-primary);
    font-size: 13px;
    transition: var(--ease);
    outline: none;
}

.seach input[type="text"]:focus {
    border-color: var(--grn);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(92,184,0,0.15);
}

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

.seach button {
    padding: 8px 13px;
    border: none;
    border-radius: var(--r-sm);
    background: var(--grn-grad);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    border-bottom: 2px solid var(--grn-deep);
}

.seach button:hover {
    background: var(--grn-grad2);
    box-shadow: 0 2px 8px var(--shadow-grn);
}

.seach button:active { border-bottom-width: 1px; transform: translateY(1px); }

/* ============ HOT TAGS ============ */
.hotzone {
    background: var(--bg-surface);
    border-radius: var(--r-base);
    margin-bottom: 6px;
    border: 1px solid var(--border-grn);
    overflow: hidden;
    box-shadow: 0 1px 3px var(--shadow-sm);
}

.hotzone-hd {
    padding: 6px 10px;
    border-bottom: 1px solid var(--border-grn);
    background: linear-gradient(135deg, var(--grn-pale) 0%, #dff0b5 100%);
}

.hotzone-hd h4 { font-size: 13px; font-weight: 700; color: var(--grn-deep); margin: 0; }
.hotzone-hd strong { font-weight: 700; }

.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 8px;
    background: transparent;
    border: none;
    margin: 0;
}

.grid-item {
    padding: 3px 11px;
    background: var(--bg-raised);
    color: var(--txt-secondary);
    border-radius: var(--r-xs);
    font-size: 12px;
    text-decoration: none;
    border: 1px solid var(--border-light);
    transition: var(--ease);
    display: inline-block;
}

.grid-item:hover { background: var(--grn); color: #fff; border-color: var(--grn-deep); }

/* ============ SECTION BLOCKS ============ */
.mhlleset { margin-bottom: 6px; }

.mhlleset-main {
    background: var(--bg-surface);
    border-radius: var(--r-base);
    padding: 12px;
    border: 1px solid var(--border-grn);
    box-shadow: 0 1px 3px var(--shadow-sm);
}

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

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

.mhlleset-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--txt-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mhlleset-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 15px;
    background: var(--grn-grad);
    border-radius: 2px;
    flex-shrink: 0;
}

.mhlleset-title a { color: var(--txt-primary); text-decoration: none; transition: var(--ease); }
.mhlleset-title a:hover { color: var(--grn-deep); }

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

.thumbnail2-group li { animation: popIn 0.32s ease both; }
.thumbnail2-group li:nth-child(1) { animation-delay: 0.03s; }
.thumbnail2-group li:nth-child(2) { animation-delay: 0.07s; }
.thumbnail2-group li:nth-child(3) { animation-delay: 0.11s; }
.thumbnail2-group li:nth-child(4) { animation-delay: 0.15s; }
.thumbnail2-group li:nth-child(5) { animation-delay: 0.19s; }
.thumbnail2-group li:nth-child(6) { animation-delay: 0.23s; }
.thumbnail2-group li:nth-child(7) { animation-delay: 0.27s; }
.thumbnail2-group li:nth-child(8) { animation-delay: 0.31s; }

@keyframes popIn {
    from { opacity: 0; transform: scale(0.96) translateY(6px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.thumbnail2 {
    display: block;
    border-radius: var(--r-sm);
    overflow: hidden;
    position: relative;
    background: var(--bg-raised);
    aspect-ratio: 600 / 350;
    border: 1px solid var(--border-light);
    transition: var(--ease);
}

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

.thumbnail2:hover {
    border-color: var(--grn);
    box-shadow: 0 3px 10px var(--shadow-grn);
}

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

.thumbnail2::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255,255,255,0);
    background: rgba(0,80,0,0);
    transition: var(--ease);
}

.thumbnail2:hover::after {
    color: rgba(255,255,255,0.92);
    background: rgba(0,80,0,0.44);
}

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

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

.video-info h5 a { color: var(--txt-secondary); text-decoration: none; transition: var(--ease); }
.video-info h5 a:hover { color: var(--grn-deep); }

/* ============ TORRENT CAPTURE ============ */
.torrent-capture-grid { width: 100%; margin-top: 8px; }

.torrent-capture-grid img,
.torrent-capture-grid .img_item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-light);
    transition: var(--ease);
}

.torrent-capture-grid img:hover,
.torrent-capture-grid .img_item img:hover { opacity: 0.9; }

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

/* ============ DOWNLOAD BUTTONS ============ */
.download {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    padding: 13px 10px;
    margin: 9px 0;
    background: var(--bg-surface);
    border-radius: var(--r-base);
    border: 1px solid var(--border-grn);
}

.down_btn {
    display: inline-block;
    padding: 9px 20px;
    background: var(--grn-grad);
    color: #fff;
    text-decoration: none;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--ease);
    border: none;
    border-bottom: 2px solid var(--grn-deep);
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.down_btn:hover {
    background: var(--grn-grad2);
    box-shadow: 0 3px 10px var(--shadow-grn);
    transform: translateY(-1px);
    color: #fff;
}

/* ============ SHARE ============ */
.share-section {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px;
    background: var(--bg-surface);
    border-radius: var(--r-base);
    border: 1px solid var(--border-grn);
    margin: 9px 0;
    flex-wrap: nowrap;
}

.share-url-display {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
    padding: 7px 10px;
    background: var(--bg-raised);
    border-radius: var(--r-sm);
    border: 1px solid var(--border-light);
}

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

.share-url {
    font-size: 11px;
    color: var(--txt-secondary);
    font-family: 'Courier New', Courier, monospace;
    flex: 1;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-copy-btn {
    padding: 9px 16px;
    background: var(--grn-grad);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    border-bottom: 2px solid var(--grn-deep);
}

.share-copy-btn:hover { background: var(--grn-grad2); box-shadow: 0 3px 8px var(--shadow-grn); }
.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: 5px 12px;
    border-radius: var(--r-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    min-width: 34px;
    text-align: center;
}

.a_page_info { background: var(--bg-surface); color: var(--txt-secondary); border: 1px solid var(--border-mid); }
.a_page_info:hover { background: var(--grn); border-color: var(--grn-deep); color: #fff; }
.page_info_focus { background: var(--grn-grad); color: #fff; border: 1px solid var(--grn-deep); cursor: default; }

/* ============ FOOTER ============ */
.site-footer { padding: 16px 0; text-align: center; border-top: 2px solid var(--border-grn); margin-top: 16px; background: var(--bg-surface); }
.site-footer p { margin: 4px 0; color: var(--txt-muted); font-size: 12px; }
.site-footer a { color: var(--txt-muted); text-decoration: none; transition: var(--ease); }
.site-footer a:hover { color: var(--grn-deep); }

.friend-links { padding: 9px; background: var(--bg-surface); border-radius: var(--r-base); border: 1px solid var(--border-grn); }
.friend-links dl { margin: 0; }
.friend-links dd { display: inline-block; margin: 2px 3px; }
.friend-links a { color: var(--txt-secondary); text-decoration: none; transition: var(--ease); font-size: 12px; padding: 2px 5px; }
.friend-links a:hover { color: var(--grn-deep); }

/* COMPAT */
.txtguanggao2 { padding: 9px; background: var(--bg-surface); border-radius: var(--r-base); border: 1px solid var(--border-grn); }
.txtguanggao2 dl { margin: 0; }
.txtguanggao2 dd { display: inline-block; margin: 2px 3px; }
.txtguanggao2 a { color: var(--txt-secondary); text-decoration: none; transition: var(--ease); font-size: 12px; padding: 2px 4px; }
.txtguanggao2 a:hover { color: var(--grn-deep); }

/* UTILS */
img[data-original] { background: var(--bg-raised); }
.clearfix::after { content: ''; display: table; clear: both; }
.p_c { cursor: pointer; }
.pd5 { padding: 2px 5px; }
.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) {
    .wrap { padding: 0 6px; }
    .block { padding: 4px 0; }
    .brand-title { font-size: 18px; }
    .addr-badge { gap: 6px; padding: 3px 10px; }
    .addr-tag { font-size: 9px; }
    .addr-val { font-size: 14px; }

    /* nav: zone=15%, items=85%, 4 cols → 2 rows */
    .nav-zone { width: 15%; font-size: 10px; padding: 6px 2px; }
    .nav-items { width: 85%; font-size: 12px; gap: 3px; padding: 5px 4px; display: flex; flex-wrap: wrap; }
    .nav-items a { padding: 4px 2px; font-size: 12px; width: calc((100% - 9px) / 4); flex-shrink: 0; flex-grow: 0; }

    /* search single row */
    .seach form { flex-wrap: nowrap; gap: 4px; }
    .seach input[type="text"] { min-width: 50px; padding: 7px 9px; font-size: 12px; }
    .seach button { padding: 7px 8px; font-size: 11px; }

    /* cards 2 per row */
    .thumbnail2-group { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .video-info h5 { font-size: 11px; }
    .mhlleset-title { font-size: 14px; }
    .mhlleset-main { padding: 9px; }
    .download { gap: 6px; flex-wrap: nowrap; padding: 10px 7px; }
    .down_btn { padding: 8px 12px; font-size: 12px; }
    .share-section { flex-wrap: nowrap; padding: 8px; gap: 5px; }
    .share-url-display { padding: 6px 8px; }
    .share-label { font-size: 11px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 7px 10px; font-size: 11px; }
    .share-icon { font-size: 13px; }
    .page_info_div { padding: 11px 0; }
    .a_page_info, .page_info_focus { padding: 4px 9px; font-size: 12px; min-width: 30px; }
    .site-footer { padding: 13px 0; margin-top: 12px; }
}

/* ============ RESPONSIVE ≤480px ============ */
@media (max-width: 480px) {
    .brand-title { font-size: 16px; }
    .addr-val { font-size: 13px; }
    .nav-zone { width: 15%; font-size: 10px; padding: 5px 2px; }
    .nav-items { width: 85%; gap: 3px; padding: 5px 3px; }
    .nav-items a { font-size: 12px; padding: 3px 1px; width: calc((100% - 9px) / 4); }
    .seach input[type="text"] { padding: 6px 7px; font-size: 12px; min-width: 40px; }
    .seach button { padding: 6px 6px; font-size: 11px; }
    .mhlleset-title { font-size: 13px; }
    .mhlleset-main { padding: 7px; }
    .down_btn { padding: 7px 9px; font-size: 12px; }
    .share-section { padding: 6px; gap: 4px; }
    .share-copy-btn { padding: 6px 8px; font-size: 11px; }
}
