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

:root {
    --g-bg: #f7f8fa;
    --g-surface: #ffffff;
    --g-surface2: #f0f2f5;
    --g-border: #e4e6ea;
    --g-border2: #cdd0d8;
    --g-blue: #1a6ed8;
    --g-blue-dk: #1458b0;
    --g-blue-lt: #e8f0fb;
    --g-blue2: #0f4fa0;
    --g-orange: #ff5533;
    --g-orange-dk: #e0401f;
    --g-orange-bg: #fff2ef;
    --g-teal: #0093a8;
    --g-txt: #1a1a2a;
    --g-txt2: #4a4e5e;
    --g-txt3: #8a90a2;
    --g-gold: #f0a000;
    --g-sh1: 0 1px 4px rgba(26,40,80,.07);
    --g-sh2: 0 3px 12px rgba(26,40,80,.11);
    --g-sh3: 0 6px 24px rgba(26,40,80,.16);
    --g-r: 10px;
    --g-r2: 6px;
    --g-r3: 16px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.gyg-header {
    background: var(--g-surface);
    border-bottom: 1px solid var(--g-border);
    padding: 9px 0;
    box-shadow: var(--g-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.30rem;
    font-weight: 900;
    color: var(--g-orange);
    font-style: normal;
    letter-spacing: -.3px;
    text-decoration: none;
    border-bottom: none;
}

.gyg-domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--g-blue);
    border-radius: 24px;
    padding: 4px 14px;
}

.gyg-domain-pill .dp-tag {
    font-size: 0.65rem;
    color: rgba(255,255,255,.65);
    white-space: nowrap;
}

.gyg-domain-pill .dp-url {
    font-size: 1.06rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.gyg-nav-box {
    background: var(--g-surface);
    border: 1px solid var(--g-border);
    border-radius: var(--g-r);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--g-sh1);
}

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

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

.gyg-zone-name {
    background: var(--g-blue);
    color: rgba(255,255,255,.85);
    font-size: .64rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
    width: 60px;
    min-width: 60px;
    border-right: 1px solid rgba(255,255,255,.12);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.gyg-cat-links a {
    font-size: .80rem;
    color: var(--g-txt2);
    padding: 3px 5px;
    border-radius: var(--g-r2);
    transition: all .16s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.gyg-cat-links a:hover {
    background: var(--g-orange-bg);
    color: var(--g-orange);
    border-color: #ffc0b0;
}

.gyg-cat-links a.active {
    background: var(--g-blue);
    color: #fff;
    border-color: var(--g-blue);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.gyg-search-bar {
    background: var(--g-surface);
    border: 1px solid var(--g-border);
    border-radius: var(--g-r);
    padding: 9px 13px;
    margin: 3px 0;
    box-shadow: var(--g-sh1);
}

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

.gyg-search-bar input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: 2px solid var(--g-border2);
    border-radius: 24px;
    padding: 0 16px;
    font-size: .88rem;
    color: var(--g-txt);
    background: var(--g-surface2);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

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

.gyg-search-bar button {
    height: 38px;
    padding: 0 14px;
    border: none;
    border-radius: 24px;
    background: var(--g-blue);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .16s, transform .12s;
    flex-shrink: 0;
}

.gyg-search-bar button:hover {
    background: var(--g-blue-dk);
    transform: translateY(-1px);
}

.gyg-search-bar button[value="1"] { background: var(--g-orange); }
.gyg-search-bar button[value="1"]:hover { background: var(--g-orange-dk); }

.gyg-search-bar button[value="2"] { background: var(--g-gold); }
.gyg-search-bar button[value="2"]:hover { background: #c88000; }

/* ===== HOT TAGS ===== */
.gyg-tags-card {
    background: var(--g-surface);
    border: 1px solid var(--g-border);
    border-radius: var(--g-r);
    padding: 8px 13px;
    margin: 3px 0;
    box-shadow: var(--g-sh1);
}

.gyg-tags-card h4 {
    font-size: .77rem;
    font-weight: 700;
    color: var(--g-blue2);
    margin-bottom: 6px;
}

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

.gyg-tag-cloud .gyg-tc {
    display: inline-block;
    background: var(--g-surface2);
    color: var(--g-txt2);
    border: 1px solid var(--g-border2);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .75rem;
    text-decoration: none;
    transition: all .16s;
}

.gyg-tag-cloud .gyg-tc:hover {
    background: var(--g-blue-lt);
    color: var(--g-blue);
    border-color: #a0c0f0;
}

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

.gyg-sect-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--g-bg);
    position: relative;
}

.gyg-sect-top::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background: var(--g-orange);
    border-radius: 2px;
}

.gyg-sect-top h3 {
    font-size: .97rem;
    font-weight: 800;
    color: var(--g-txt);
}

.gyg-sect-top h3 a { color: var(--g-txt); }
.gyg-sect-top h3 a:hover { color: var(--g-orange); }

.gyg-sect-top h4 {
    font-size: .94rem;
    font-weight: 800;
    color: var(--g-txt);
}

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

.gyg-card-grid li {
    border-radius: var(--g-r);
    overflow: hidden;
    border: 1px solid var(--g-border);
    background: var(--g-surface2);
    transition: box-shadow .2s, transform .2s;
}

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

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

.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-body {
    padding: 6px 8px 8px;
}

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

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

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

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

.gyg-pager-inner a.gyg-pg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--g-surface);
    border: 1.5px solid var(--g-border2);
    border-radius: var(--g-r2);
    font-size: .83rem;
    color: var(--g-blue);
    text-decoration: none;
    transition: all .16s;
}

.gyg-pager-inner a.gyg-pg:hover {
    background: var(--g-blue-lt);
    border-color: var(--g-blue);
    color: var(--g-blue);
}

.gyg-pager-inner a.gyg-pg-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--g-blue);
    border: 1.5px solid var(--g-blue);
    border-radius: var(--g-r2);
    font-size: .83rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.gyg-flinks-wrap {
    background: var(--g-surface);
    border: 1px solid var(--g-border);
    border-radius: var(--g-r);
    padding: 9px 13px;
    margin: 4px 0;
    box-shadow: var(--g-sh1);
}

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

.gyg-flink-list dd { display: inline; }

.gyg-flink-list a {
    display: inline-block;
    font-size: .75rem;
    color: var(--g-txt3);
    padding: 2px 9px;
    border-radius: 4px;
    border: 1px solid var(--g-border);
    background: var(--g-surface2);
    text-decoration: none;
    transition: all .16s;
}

.gyg-flink-list a:hover { color: var(--g-blue); border-color: var(--g-blue); }

.gyg-copyright {
    text-align: center;
    padding: 7px 0 13px;
    color: var(--g-txt3);
    font-size: .74rem;
}

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

.gyg-dtl-title a {
    color: var(--g-orange);
    font-weight: 700;
    margin-right: 6px;
}

.gyg-dtl-info {
    font-size: .89rem;
    line-height: 1.95;
    padding: 14px 17px;
    background: var(--g-surface);
    border: 1px solid var(--g-border);
    border-radius: var(--g-r);
    box-shadow: var(--g-sh1);
    margin: 4px 0;
}

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

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

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

.gyg-act-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 22px;
    background: var(--g-blue);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: .90rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .14s;
    text-decoration: none;
}

.gyg-act-btn:hover {
    background: var(--g-orange);
    color: #fff;
    transform: translateY(-1px);
}

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

.gyg-client-tip a { color: var(--g-blue2); font-weight: 600; }
.gyg-client-tip a:hover { color: var(--g-orange); }

/* ===== SHARE ===== */
.gyg-share-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--g-surface2);
    border: 1px solid var(--g-border);
    border-radius: var(--g-r);
    padding: 8px 13px;
    margin: 4px 0;
    flex-wrap: wrap;
}

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

.gyg-share-bar .gsb-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--g-blue);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: .80rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .16s;
    flex-shrink: 0;
}

.gyg-share-bar .gsb-btn:hover { background: var(--g-orange); }

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

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

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

    .gyg-sitename { font-size: 1.05rem; }
    .gyg-domain-pill .dp-url { font-size: .88rem; }

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

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

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

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

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

    .gyg-search-bar input[type="text"] {
        height: 34px;
        font-size: .78rem;
        padding: 0 8px;
    }

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

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

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

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

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