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

:root {
    --bg: #ffffff;
    --bg-soft: #f8f8f9;
    --bg-muted: #ececef;
    --gyg-red: #e8420f;
    --gyg-red-dk: #c23209;
    --gyg-red-lt: #fff2ee;
    --gyg-red-pale: #fde8e2;
    --gyg-blue: #1a6edb;
    --gyg-blue-dk: #1358b0;
    --gyg-blue-lt: #e8f0fc;
    --gyg-dark: #1a1a2e;
    --gyg-dark2: #2d2d44;
    --txt: #1a1a2e;
    --txt2: #484860;
    --txt3: #9898b0;
    --bdr: #e4e4ee;
    --bdr2: #d0d0e0;
    --sh1: 0 1px 4px rgba(26,26,46,.06);
    --sh2: 0 3px 12px rgba(26,26,46,.09);
    --sh3: 0 6px 24px rgba(26,26,46,.13);
    --rr: 12px;
    --rr2: 8px;
    --rr3: 16px;
}

html { font-size: 15px; }

body {
    background: var(--bg-soft);
    color: var(--txt);
    font-family: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
    line-height: 1.65;
}

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

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

/* ===== SITE HEADER ===== */
.gyg-header {
    background: var(--bg);
    border-bottom: 1px solid var(--bdr);
    padding: 10px 0;
    box-shadow: var(--sh1);
}

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

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

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

.gyg-sitename {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--gyg-red);
    font-style: normal;
    letter-spacing: -0.5px;
    border-bottom: none;
    text-decoration: none;
    line-height: 1;
}

.gyg-domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gyg-dark);
    border-radius: 30px;
    padding: 5px 15px;
    box-shadow: 0 2px 8px rgba(26,26,46,.2);
}

.gyg-domain-badge .gdb-lbl {
    font-size: 0.66rem;
    color: rgba(255,255,255,.55);
    white-space: nowrap;
}

.gyg-domain-badge .gdb-url {
    font-size: 1.09rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
}

/* ===== BANNER ===== */
.gyg-banner {
    margin: 4px 0 3px;
    border-radius: var(--rr2);
    overflow: hidden;
}
.gyg-banner img { width: 100%; }

/* ===== CATEGORY NAV ===== */
.gyg-nav-board {
    background: var(--bg);
    border: 1px solid var(--bdr);
    border-radius: var(--rr3);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

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

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

.gyg-zone-lbl {
    background: var(--gyg-red);
    color: rgba(255,255,255,.95);
    font-size: .67rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid rgba(255,255,255,.12);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

.gyg-nav-items {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    align-items: center;
    padding: 4px 10px;
    gap: 3px;
    flex: 1;
}

.gyg-nav-items a {
    font-size: .81rem;
    color: var(--txt2);
    padding: 4px 5px;
    border-radius: var(--rr2);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.gyg-nav-items a:hover {
    background: var(--gyg-red-lt);
    color: var(--gyg-red);
    border-color: #f5b8a8;
}

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

/* ===== SEARCH ===== */
.gyg-search-box {
    background: var(--bg);
    border: 1px solid var(--bdr);
    border-radius: var(--rr);
    padding: 9px 14px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.gyg-search-box form {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.gyg-search-box input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 2px solid var(--bdr2);
    border-radius: 30px;
    padding: 0 16px;
    font-size: .87rem;
    color: var(--txt);
    background: var(--bg-soft);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.gyg-search-box input[type="text"]:focus {
    border-color: var(--gyg-blue);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(26,110,219,.14);
}

.gyg-search-box button {
    height: 40px;
    padding: 0 14px;
    border: none;
    border-radius: 30px;
    background: var(--gyg-dark2);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}

.gyg-search-box button:hover { background: var(--gyg-dark); }

.gyg-search-box button[value="1"] {
    background: var(--gyg-blue);
    color: #fff;
    box-shadow: 0 2px 8px rgba(26,110,219,.28);
}
.gyg-search-box button[value="1"]:hover {
    background: var(--gyg-blue-dk);
    box-shadow: none;
}

.gyg-search-box button[value="2"] {
    background: var(--gyg-red);
    color: #fff;
    box-shadow: 0 2px 8px rgba(232,66,15,.28);
}
.gyg-search-box button[value="2"]:hover { background: var(--gyg-red-dk); box-shadow: none; }

/* ===== HOT TAGS ===== */
.gyg-hot {
    background: var(--bg);
    border: 1px solid var(--bdr);
    border-radius: var(--rr);
    padding: 8px 14px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.gyg-hot h4 {
    font-size: .78rem;
    font-weight: 700;
    color: var(--gyg-dark);
    margin-bottom: 6px;
}

.gyg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gyg-tags .gyg-tag {
    display: inline-block;
    background: var(--gyg-red-pale);
    color: var(--txt2);
    border: 1px solid #f5b8a8;
    border-radius: 20px;
    padding: 3px 11px;
    font-size: .75rem;
    text-decoration: none;
    transition: all .15s;
}

.gyg-tags .gyg-tag:hover {
    background: var(--gyg-red);
    color: #fff;
    border-color: var(--gyg-red);
    box-shadow: 0 2px 8px rgba(232,66,15,.22);
}

/* ===== CONTENT SECTION ===== */
.gyg-section {
    background: var(--bg);
    border: 1px solid var(--bdr);
    border-radius: var(--rr3);
    padding: 13px 13px 10px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.gyg-sec-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg-muted);
    position: relative;
}

.gyg-sec-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background: var(--gyg-red);
    border-radius: 2px;
}

.gyg-sec-hd h3 {
    font-size: .98rem;
    font-weight: 800;
    color: var(--gyg-dark);
}

.gyg-sec-hd h3 a { color: var(--gyg-dark); }
.gyg-sec-hd h3 a:hover { color: var(--gyg-red); }

.gyg-sec-hd h4 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--gyg-dark);
}

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

.gyg-grid li {
    border-radius: var(--rr);
    overflow: hidden;
    border: 1px solid var(--bdr);
    background: var(--bg-soft);
    transition: box-shadow .2s, transform .18s;
}

.gyg-grid li:hover {
    box-shadow: var(--sh3);
    transform: translateY(-3px);
}

.gyg-card-img {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--bg-muted);
}

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

.gyg-card-img:hover img { transform: scale(1.06); }

.gyg-card-txt {
    padding: 6px 8px 8px;
}

.gyg-card-txt h5 {
    font-size: .78rem;
    font-weight: 500;
    color: var(--txt);
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.gyg-card-txt h5 a { color: var(--txt); }
.gyg-card-txt h5 a:hover { color: var(--gyg-red); }

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

.gyg-pager-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.gyg-pager-btns a.gpb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: var(--bg);
    border: 1.5px solid var(--bdr2);
    border-radius: var(--rr2);
    font-size: .84rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .15s;
}

.gyg-pager-btns a.gpb:hover {
    background: var(--gyg-blue-lt);
    border-color: var(--gyg-blue);
    color: var(--gyg-blue-dk);
}

.gyg-pager-btns a.gpb-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: var(--gyg-blue);
    border: 1.5px solid var(--gyg-blue);
    border-radius: var(--rr2);
    font-size: .84rem;
    font-weight: 800;
    color: #fff;
    cursor: default;
    box-shadow: 0 2px 8px rgba(26,110,219,.3);
}

/* ===== FOOTER ===== */
.gyg-flink-wrap {
    background: var(--bg);
    border: 1px solid var(--bdr);
    border-radius: var(--rr);
    padding: 10px 14px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

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

.gyg-flinks dd { display: inline; }

.gyg-flinks a {
    display: inline-block;
    font-size: .76rem;
    color: var(--txt3);
    padding: 2px 9px;
    border-radius: 4px;
    border: 1px solid var(--bdr);
    background: var(--bg-soft);
    text-decoration: none;
    transition: all .15s;
}

.gyg-flinks a:hover {
    color: var(--gyg-red-dk);
    border-color: var(--gyg-red);
    background: var(--gyg-red-lt);
}

.gyg-copyright {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--txt3);
    font-size: .75rem;
}

/* ===== DETAIL PAGES ===== */
.gyg-post-title {
    line-height: 1.8;
    text-align: center;
    padding: 12px 15px;
    font-size: .97rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--bg);
    border: 1px solid var(--bdr);
    border-left: 4px solid var(--gyg-red);
    border-radius: var(--rr);
    box-shadow: var(--sh1);
}

.gyg-post-title a {
    color: var(--gyg-red);
    font-weight: 800;
    margin-right: 6px;
}

.gyg-post-info {
    font-size: .89rem;
    line-height: 1.95;
    padding: 14px 18px;
    background: var(--bg);
    border: 1px solid var(--bdr);
    border-radius: var(--rr);
    box-shadow: var(--sh1);
    margin: 4px 0;
}

.gyg-preview {
    display: block;
    width: 100%;
    margin-top: 10px;
}

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

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

.gyg-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 11px 26px;
    background: var(--gyg-blue);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: .89rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(26,110,219,.3);
}

.gyg-btn:hover {
    background: var(--gyg-blue-dk);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(26,110,219,.38);
}

.gyg-client-note {
    text-align: center;
    padding: 6px;
    font-size: .81rem;
}

.gyg-client-note a { color: var(--gyg-blue); font-weight: 600; }
.gyg-client-note a:hover { color: var(--gyg-blue-dk); }

/* ===== SHARE ===== */
.gyg-share {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--gyg-blue-lt);
    border: 1px solid #b8d0f8;
    border-radius: var(--rr);
    padding: 8px 13px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.gyg-share .gs-lbl { font-size: .76rem; color: var(--txt3); white-space: nowrap; }
.gyg-share .gs-url { font-size: .78rem; color: var(--txt2); flex: 1; min-width: 0; word-break: break-all; }

.gyg-share .gs-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 15px;
    background: var(--gyg-blue);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: .79rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(26,110,219,.25);
}

.gyg-share .gs-btn:hover {
    background: var(--gyg-blue-dk);
    box-shadow: none;
}

/* ===== VIS HELPERS ===== */
.gyg-desktop { display: block; }
.gyg-mobile { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .gyg-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .gyg-desktop { display: none; }
    .gyg-mobile { display: block; }
}

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

    .gyg-sitename { font-size: 1.08rem; }
    .gyg-domain-badge .gdb-url { font-size: .94rem; }

    .gyg-nav-row { align-items: stretch; }

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

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

    .gyg-nav-items a {
        font-size: 12px;
        padding: 5px 2px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    /* Search: single row, no wrap */
    .gyg-search-box form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .gyg-search-box input[type="text"] {
        height: 34px;
        font-size: .77rem;
        padding: 0 9px;
    }

    .gyg-search-box button {
        height: 34px;
        padding: 0 8px;
        font-size: .72rem;
    }

    /* Film grid: 2 columns */
    .gyg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .gyg-card-img { aspect-ratio: 600 / 350; }
    .gyg-card-txt h5 { font-size: .71rem; }
    .gyg-section { padding: 9px 9px 7px; }
    .gyg-btn { padding: 9px 18px; font-size: .84rem; }
}

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

@media (max-width: 380px) {
    .gyg-zone-lbl { font-size: 10px; }
    .gyg-nav-items a { font-size: 12px; }
    .gyg-search-box button { padding: 0 5px; font-size: .67rem; }
}
