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

:root {
    --bg: #ffffff;
    --bg-soft: #f4f5f7;
    --bg-muted: #eaecf0;
    --bg-dark: #1a1a1a;
    --bg-dark2: #2c2c2c;
    --blue: #0052cc;
    --blue-dk: #003d99;
    --blue-lt: #e8f0fe;
    --blue2: #1a6ef5;
    --orange: #e85c00;
    --orange-lt: #fff4ee;
    --red: #d4380d;
    --red-lt: #fff1ee;
    --green: #007a3d;
    --green-lt: #e6f7ee;
    --txt: #1a1a1a;
    --txt2: #404040;
    --txt3: #8c8c8c;
    --border: #e0e0e0;
    --border2: #c8c8c8;
    --border-dk: #b0b0b0;
    --shadow1: 0 1px 3px rgba(0,0,0,.07);
    --shadow2: 0 2px 10px rgba(0,0,0,.10);
    --shadow3: 0 4px 18px rgba(0,0,0,.14);
    --radius: 3px;
    --radius2: 2px;
    --radius3: 16px;
}

html { font-size: 14px; }

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

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

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

/* ===== SITE HEADER ===== */
.sh-header {
    background: var(--bg-dark);
    border-bottom: 2px solid var(--blue);
    padding: 9px 0;
}

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

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

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

/* Sohu-style: white bold sans-serif site name */
.sh-site-name {
    font-size: 1.38rem;
    font-weight: 900;
    color: #ffffff;
    font-style: normal;
    letter-spacing: -.5px;
    text-decoration: none;
    border-bottom: none;
}

.sh-domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue2);
    border-radius: var(--radius);
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,.15);
}

.sh-domain-pill .sp-tip {
    font-size: 0.68rem;
    color: rgba(255,255,255,.65);
    white-space: nowrap;
    letter-spacing: .5px;
}

.sh-domain-pill .sp-url {
    font-size: 1.06rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: .2px;
}

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

/* ===== CATEGORY NAV ===== */
.sh-nav-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--blue);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--shadow1);
}

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

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

.sh-zone-lbl {
    background: var(--bg-dark);
    color: rgba(255,255,255,.75);
    font-size: .65rem;
    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,.06);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.sh-zone-links a {
    font-size: .8rem;
    color: var(--txt2);
    padding: 3px 4px;
    border-radius: var(--radius2);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
    font-weight: 500;
}

.sh-zone-links a:hover {
    background: var(--blue-lt);
    color: var(--blue);
    border-color: #aac4f8;
}

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

/* ===== SEARCH ===== */
.sh-search-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 7px 12px;
    margin: 3px 0;
    box-shadow: var(--shadow1);
}

.sh-search-card form {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.sh-search-card input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1.5px solid var(--border2);
    border-radius: var(--radius);
    padding: 0 12px;
    font-size: .86rem;
    color: var(--txt);
    background: var(--bg-soft);
    outline: none;
    transition: border-color .18s;
    font-family: inherit;
}

.sh-search-card input[type="text"]:focus {
    border-color: var(--blue);
    background: var(--bg);
    box-shadow: 0 0 0 2px rgba(0,82,204,.1);
}

.sh-search-card button {
    height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: var(--radius);
    background: var(--bg-dark2);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
    font-family: inherit;
    letter-spacing: .3px;
}

.sh-search-card button:hover { background: var(--bg-dark); }

.sh-search-card button[value="1"] {
    background: var(--blue);
}
.sh-search-card button[value="1"]:hover { background: var(--blue-dk); }

.sh-search-card button[value="2"] {
    background: var(--orange);
}
.sh-search-card button[value="2"]:hover { background: #c44f00; }

/* ===== HOT TAGS ===== */
.sh-hot-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 12px;
    margin: 3px 0;
    box-shadow: var(--shadow1);
}

.sh-hot-card h4 {
    font-size: .73rem;
    font-weight: 700;
    color: var(--txt2);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sh-hot-card h4::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--orange);
    border-radius: 50%;
    flex-shrink: 0;
}

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

.sh-tag-row .sh-tag {
    display: inline-block;
    background: var(--bg-soft);
    color: var(--txt2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2px 10px;
    font-size: .74rem;
    text-decoration: none;
    transition: all .15s;
    font-weight: 500;
}

.sh-tag-row .sh-tag:hover {
    background: var(--blue-lt);
    color: var(--blue);
    border-color: #aac4f8;
}

/* ===== CONTENT SECTION ===== */
.sh-section {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 12px 10px;
    margin: 4px 0;
    box-shadow: var(--shadow1);
}

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

.sh-sec-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 36px;
    height: 2px;
    background: var(--blue);
    border-radius: 1px;
}

.sh-sec-hd h3 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--txt);
    display: flex;
    align-items: center;
    gap: 5px;
}

.sh-sec-hd h3::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: var(--blue);
    border-radius: 2px;
    flex-shrink: 0;
}

.sh-sec-hd h3 a { color: var(--txt); }
.sh-sec-hd h3 a:hover { color: var(--blue); }

.sh-sec-hd h4 {
    font-size: .93rem;
    font-weight: 800;
    color: var(--txt);
    display: flex;
    align-items: center;
    gap: 5px;
}

.sh-sec-hd h4::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 13px;
    background: var(--orange);
    border-radius: 2px;
    flex-shrink: 0;
}

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

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

.sh-grid li:hover {
    box-shadow: var(--shadow3);
    transform: translateY(-2px);
}

.sh-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--bg-muted);
    position: relative;
}

.sh-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s;
}

.sh-thumb:hover img { transform: scale(1.05); }

.sh-caption {
    padding: 5px 7px 6px;
    border-top: 1px solid var(--border);
}

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

.sh-caption h5 a { color: var(--txt); }
.sh-caption h5 a:hover { color: var(--blue); }

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

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

.sh-pager-row a.shp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    background: var(--bg);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    font-size: .82rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .15s;
    font-weight: 500;
}

.sh-pager-row a.shp-btn:hover {
    background: var(--blue-lt);
    border-color: var(--blue);
    color: var(--blue);
}

.sh-pager-row a.shp-btn-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    background: var(--blue);
    border: 1px solid var(--blue);
    border-radius: var(--radius);
    font-size: .82rem;
    font-weight: 800;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.sh-flink-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--shadow1);
}

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

.sh-flinks dd { display: inline; }

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

.sh-flinks a:hover {
    color: var(--blue);
    border-color: #aac4f8;
    background: var(--blue-lt);
}

.sh-cr {
    text-align: center;
    padding: 7px 0 13px;
    color: var(--txt3);
    font-size: .72rem;
}

/* ===== DETAIL PAGES ===== */
.sh-dtl-title {
    line-height: 1.8;
    text-align: center;
    padding: 12px 15px;
    font-size: .95rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--blue);
    border-radius: var(--radius);
    box-shadow: var(--shadow1);
}

.sh-dtl-title a {
    color: var(--blue);
    font-weight: 700;
    margin-right: 6px;
    font-size: .8rem;
    background: var(--blue-lt);
    padding: 1px 7px;
    border-radius: var(--radius);
}

.sh-dtl-info {
    font-size: .9rem;
    line-height: 2;
    padding: 14px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow1);
    margin: 4px 0;
    color: var(--txt2);
}

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

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

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

.sh-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 22px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .13s;
    text-decoration: none;
    font-family: inherit;
    letter-spacing: .3px;
}

.sh-dl-btn:hover {
    background: var(--blue-dk);
    color: #fff;
    transform: translateY(-1px);
}

.sh-cli-hint {
    text-align: center;
    padding: 6px;
    font-size: .8rem;
}

.sh-cli-hint a { color: var(--blue); font-weight: 600; }
.sh-cli-hint a:hover { color: var(--blue-dk); }

/* ===== SHARE ===== */
.sh-share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-left: 3px solid var(--blue);
    border-radius: var(--radius);
    padding: 7px 12px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.sh-share-bar .ss-lbl {
    font-size: .72rem;
    color: var(--txt3);
    white-space: nowrap;
    letter-spacing: .3px;
}
.sh-share-bar .ss-url {
    font-size: .78rem;
    color: var(--txt2);
    flex: 1;
    min-width: 0;
    word-break: break-all;
}

.sh-share-bar .ss-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
    font-family: inherit;
}

.sh-share-bar .ss-btn:hover { background: var(--blue-dk); }

/* ===== VIS HELPERS ===== */
.sh-pc { display: block; }
.sh-mb { display: none; }

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

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

    .sh-site-name { font-size: 1.08rem; }
    .sh-domain-pill .sp-url { font-size: .88rem; }

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

    .sh-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;
    }

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

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

    /* Search: one row, no wrap */
    .sh-search-card form {
        flex-wrap: nowrap;
        gap: 3px;
    }

    .sh-search-card input[type="text"] {
        height: 33px;
        font-size: .74rem;
        padding: 0 7px;
    }

    .sh-search-card button {
        height: 33px;
        padding: 0 7px;
        font-size: .69rem;
    }

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

    .sh-thumb { aspect-ratio: 600 / 350; }
    .sh-caption h5 { font-size: .71rem; }
    .sh-section { padding: 9px 9px 7px; }
    .sh-dl-btn { padding: 8px 15px; font-size: .83rem; }
}

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

@media (max-width: 380px) {
    .sh-zone-lbl { font-size: 10px; }
    .sh-zone-links a { font-size: 12px; }
    .sh-search-card button { padding: 0 5px; font-size: .63rem; }
}
