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

:root {
    --bg-base: #1b2838;
    --bg-panel: #2a475e;
    --bg-card: #16202d;
    --bg-input: #316282;
    --bg-row: #1e3347;
    --bg-hover: #2e587a;
    --clr-accent: #66c0f4;
    --clr-accent-dk: #4fa3d1;
    --clr-accent-lt: rgba(102,192,244,.12);
    --clr-green: #5ba32b;
    --clr-green-dk: #4a8a22;
    --clr-gold: #c6a84e;
    --clr-text: #c6d4df;
    --clr-text2: #8f98a0;
    --clr-text3: #556772;
    --clr-white: #ffffff;
    --clr-border: rgba(102,192,244,.15);
    --clr-border2: rgba(102,192,244,.28);
    --shadow-sm: 0 1px 4px rgba(0,0,0,.35);
    --shadow-md: 0 3px 12px rgba(0,0,0,.45);
    --shadow-lg: 0 6px 24px rgba(0,0,0,.55);
    --radius: 4px;
    --radius-sm: 3px;
    --radius-lg: 6px;
}

html { font-size: 15px; }

body {
    background: var(--bg-base);
    color: var(--clr-text);
    font-family: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei',Arial,sans-serif;
    line-height: 1.6;
}

a { color: var(--clr-accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--clr-white); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.cf::after { content: ''; display: table; clear: both; }

/* ===== WRAPPER ===== */
.gw-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
}

/* ===== SITE HEADER ===== */
.gw-topbar {
    background: linear-gradient(180deg, #171d25 0%, #1b2838 100%);
    border-bottom: 1px solid var(--clr-border2);
    padding: 9px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.5);
}

.gw-topbar .gw-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.gw-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.gw-logo-lnk {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.gw-site-name {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--clr-accent);
    letter-spacing: -.3px;
    font-style: normal;
    border-bottom: none;
    text-decoration: none;
    display: inline-block;
    text-shadow: 0 0 18px rgba(102,192,244,.35);
}

.gw-domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,.4);
    border: 1px solid var(--clr-border2);
    border-radius: var(--radius-sm);
    padding: 4px 12px;
}

.gw-domain-tag .dtag-lbl {
    font-size: 0.67rem;
    color: var(--clr-text3);
    white-space: nowrap;
}

.gw-domain-tag .dtag-url {
    font-size: 1.06rem;
    font-weight: 800;
    color: var(--clr-gold);
    white-space: nowrap;
}

/* ===== BANNER ===== */
.gw-banner-zone {
    margin: 3px 0 2px;
}
.gw-banner-zone img { border-radius: var(--radius); width: 100%; }

/* ===== CATEGORY NAV ===== */
.gw-nav-board {
    background: var(--bg-panel);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 2px 0;
    box-shadow: var(--shadow-sm);
}

.gw-nav-line {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,.04);
    min-height: 35px;
}

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

.gw-zone-lbl {
    background: rgba(0,0,0,.3);
    color: var(--clr-text2);
    font-size: .67rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
    width: 58px;
    min-width: 58px;
    border-right: 1px solid rgba(255,255,255,.04);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .4px;
    flex-shrink: 0;
}

.gw-links-zone {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    align-items: center;
    padding: 3px 7px;
    gap: 3px;
    flex: 1;
}

.gw-links-zone a {
    font-size: .81rem;
    color: var(--clr-text);
    padding: 3px 5px;
    border-radius: var(--radius-sm);
    transition: all .14s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.gw-links-zone a:hover {
    background: var(--bg-hover);
    color: var(--clr-white);
    border-color: var(--clr-border2);
}

.gw-links-zone a.active {
    background: var(--clr-accent);
    color: var(--bg-base);
    border-color: var(--clr-accent);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.gw-search-bar {
    background: var(--bg-panel);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 7px 11px;
    margin: 2px 0;
    box-shadow: var(--shadow-sm);
}

.gw-search-bar form {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.gw-search-bar input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 35px;
    border: 1px solid var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 0 11px;
    font-size: .87rem;
    color: var(--clr-white);
    background: var(--bg-card);
    outline: none;
    transition: border-color .18s;
}

.gw-search-bar input[type="text"]::placeholder { color: var(--clr-text3); }
.gw-search-bar input[type="text"]:focus { border-color: var(--clr-accent); }

.gw-search-bar button {
    height: 35px;
    padding: 0 11px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--clr-white);
    font-size: .81rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .14s;
    flex-shrink: 0;
}

.gw-search-bar button:hover { background: var(--bg-hover); }
.gw-search-bar button[value="1"] { background: #4c7a2f; }
.gw-search-bar button[value="1"]:hover { background: var(--clr-green); }
.gw-search-bar button[value="2"] { background: #5a6a1c; }
.gw-search-bar button[value="2"]:hover { background: #7a8e28; }

/* ===== HOT TAGS ===== */
.gw-hot-box {
    background: var(--bg-panel);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 6px 11px;
    margin: 2px 0;
    box-shadow: var(--shadow-sm);
}

.gw-hot-box h4 {
    font-size: .77rem;
    font-weight: 700;
    color: var(--clr-accent);
    margin-bottom: 5px;
}

.gw-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.gw-tag-row .gw-tag {
    display: inline-block;
    background: rgba(0,0,0,.28);
    color: var(--clr-text2);
    border: 1px solid var(--clr-border);
    border-radius: 3px;
    padding: 2px 9px;
    font-size: .75rem;
    text-decoration: none;
    transition: all .14s;
}

.gw-tag-row .gw-tag:hover {
    background: var(--bg-hover);
    color: var(--clr-white);
    border-color: var(--clr-border2);
}

/* ===== CONTENT SECTION ===== */
.gw-section {
    background: var(--bg-panel);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 11px 11px 9px;
    margin: 2px 0;
    box-shadow: var(--shadow-sm);
}

.gw-sect-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    position: relative;
}

.gw-sect-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 36px;
    height: 2px;
    background: var(--clr-accent);
    border-radius: 2px;
}

.gw-sect-hd h3 {
    font-size: .96rem;
    font-weight: 800;
    color: var(--clr-white);
}

.gw-sect-hd h3 a { color: var(--clr-white); }
.gw-sect-hd h3 a:hover { color: var(--clr-accent); }

.gw-sect-hd h4 {
    font-size: .93rem;
    font-weight: 800;
    color: var(--clr-white);
}

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

.gw-grid li {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.05);
    background: var(--bg-card);
    transition: box-shadow .2s, transform .2s;
}

.gw-grid li:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--clr-border2);
}

.gw-cover {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--bg-base);
}

.gw-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.gw-cover:hover img { transform: scale(1.06); }

.gw-caption {
    padding: 5px 6px 7px;
}

.gw-caption h5 {
    font-size: .77rem;
    font-weight: 400;
    color: var(--clr-text);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.gw-caption h5 a { color: var(--clr-text); }
.gw-caption h5 a:hover { color: var(--clr-white); }

/* ===== PAGINATION ===== */
.gw-pager {
    margin: 12px 0 5px;
    display: flex;
    justify-content: center;
}

.gw-page-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.gw-page-btns a.gw-pg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    background: var(--bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    font-size: .82rem;
    color: var(--clr-text2);
    text-decoration: none;
    transition: all .14s;
}

.gw-page-btns a.gw-pg:hover {
    background: var(--bg-hover);
    border-color: var(--clr-border2);
    color: var(--clr-white);
}

.gw-page-btns a.gw-pg-cur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    background: var(--clr-accent);
    border: 1px solid var(--clr-accent);
    border-radius: var(--radius-sm);
    font-size: .82rem;
    font-weight: 700;
    color: var(--bg-base);
    cursor: default;
}

/* ===== FOOTER LINKS ===== */
.gw-flink-box {
    background: var(--bg-panel);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 8px 12px;
    margin: 2px 0;
    box-shadow: var(--shadow-sm);
}

.gw-flinks {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.gw-flinks dd { display: inline; }

.gw-flinks a {
    display: inline-block;
    font-size: .74rem;
    color: var(--clr-text3);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--clr-border);
    background: rgba(0,0,0,.2);
    text-decoration: none;
    transition: all .14s;
}

.gw-flinks a:hover { color: var(--clr-accent); border-color: var(--clr-border2); }

.gw-copyright {
    text-align: center;
    padding: 6px 0 12px;
    color: var(--clr-text3);
    font-size: .73rem;
}

/* ===== DETAIL PAGES ===== */
.gw-dtl-title {
    line-height: 1.8;
    text-align: center;
    padding: 11px 14px;
    font-size: .96rem;
    margin: 2px 0;
    word-break: break-all;
    background: var(--bg-panel);
    border: 1px solid var(--clr-border);
    border-left: 3px solid var(--clr-accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    color: var(--clr-text);
}

.gw-dtl-title a {
    color: var(--clr-accent);
    font-weight: 700;
    margin-right: 6px;
}

.gw-dtl-meta {
    font-size: .89rem;
    line-height: 1.95;
    padding: 13px 16px;
    background: var(--bg-panel);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin: 2px 0;
    color: var(--clr-text);
}

.gw-preview-block {
    display: block;
    width: 100%;
    margin-top: 9px;
}

.gw-preview-block picture,
.gw-preview-block img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
}

/* ===== DL BUTTONS ===== */
.gw-btn-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 10px 0;
}

.gw-act-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 20px;
    background: var(--clr-green);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .14s;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,.4);
}

.gw-act-btn:hover {
    background: var(--clr-accent);
    color: var(--bg-base);
    transform: translateY(-1px);
}

.gw-cli-hint {
    text-align: center;
    padding: 5px;
    font-size: .79rem;
}

.gw-cli-hint a { color: var(--clr-accent); font-weight: 600; }
.gw-cli-hint a:hover { color: var(--clr-white); }

/* ===== SHARE ROW ===== */
.gw-share-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,.25);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 7px 11px;
    margin: 2px 0;
    flex-wrap: wrap;
}

.gw-share-strip .ss-lbl { font-size: .74rem; color: var(--clr-text3); white-space: nowrap; }
.gw-share-strip .ss-url { font-size: .76rem; color: var(--clr-text2); flex: 1; min-width: 0; word-break: break-all; }

.gw-share-strip .ss-cpbtn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: var(--bg-input);
    color: var(--clr-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: .77rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .14s;
    flex-shrink: 0;
}

.gw-share-strip .ss-cpbtn:hover { background: var(--clr-accent); color: var(--bg-base); }

/* ===== VISIBILITY ===== */
.only-pc { display: block; }
.only-mb { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .gw-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .only-pc { display: none; }
    .only-mb { display: block; }
}

@media (max-width: 768px) {
    html { font-size: 14px; }

    .gw-site-name { font-size: 1.04rem; }
    .gw-domain-tag .dtag-url { font-size: .9rem; }

    .gw-nav-line { align-items: stretch; }

    .gw-zone-lbl {
        width: 15%;
        min-width: 15%;
        max-width: 15%;
        font-size: 10px;
        padding: 3px 1px;
        letter-spacing: 0;
        line-height: 1.4;
        word-break: break-all;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gw-links-zone {
        width: 85%;
        flex: 1;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2px;
        padding: 3px 4px;
        align-items: center;
    }

    .gw-links-zone a {
        font-size: 12px;
        padding: 4px 2px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    .gw-search-bar form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .gw-search-bar input[type="text"] {
        height: 32px;
        font-size: .77rem;
        padding: 0 6px;
    }

    .gw-search-bar button {
        height: 32px;
        padding: 0 6px;
        font-size: .72rem;
    }

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

    .gw-cover { aspect-ratio: 600 / 350; }
    .gw-caption h5 { font-size: .71rem; }
    .gw-section { padding: 8px 8px 6px; }
    .gw-act-btn { padding: 8px 12px; font-size: .82rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .gw-zone-lbl { font-size: 10px; }
    .gw-links-zone a { font-size: 13px; }
}

@media (max-width: 380px) {
    .gw-zone-lbl { font-size: 10px; }
    .gw-links-zone a { font-size: 12px; }
    .gw-search-bar button { padding: 0 4px; font-size: .66rem; }
}
