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

:root {
    --bg: #ffffff;
    --bg-soft: #f7f7f7;
    --bg-muted: #eeeeee;
    --sina-red: #e22a27;
    --sina-red-dk: #bf1f1d;
    --sina-red-lt: #fff3f3;
    --sina-red-pale: #fdeaea;
    --sina-orange: #f06316;
    --sina-dark: #1a1a1a;
    --sina-dark2: #333333;
    --sina-mid: #555555;
    --txt: #1a1a1a;
    --txt2: #444444;
    --txt3: #999999;
    --bdr: #e5e5e5;
    --bdr2: #d8d8d8;
    --bdr-red: rgba(226,42,39,.28);
    --sh1: 0 1px 3px rgba(0,0,0,.06);
    --sh2: 0 2px 8px rgba(0,0,0,.08);
    --sh3: 0 4px 16px rgba(0,0,0,.11);
    --rr: 4px;
    --rr2: 3px;
    --rr3: 5px;
}

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

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

/* ===== SITE HEADER ===== */
.sina-header {
    background: var(--bg);
    border-bottom: 2px solid var(--sina-red);
    padding: 9px 0;
    box-shadow: var(--sh1);
}

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

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

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

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

.sina-domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sina-red);
    border-radius: var(--rr2);
    padding: 4px 13px;
    box-shadow: 0 2px 6px rgba(226,42,39,.22);
}

.sina-domain-tag .sdt-lbl {
    font-size: 0.66rem;
    color: rgba(255,255,255,.62);
    white-space: nowrap;
}

.sina-domain-tag .sdt-url {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
}

/* ===== BANNER ===== */
.sina-banner {
    margin: 4px 0 3px;
    overflow: hidden;
}
.sina-banner img { width: 100%; }

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

/* top red border like Sina section tabs */
.sina-nav-board::before {
    content: '';
    display: block;
    height: 3px;
    background: var(--sina-red);
}

.sina-nav-strip {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--bdr);
    min-height: 38px;
}

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

.sina-zone-lbl {
    background: var(--sina-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;
}

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

.sina-nav-cells a {
    font-size: .81rem;
    color: var(--txt2);
    padding: 3px 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;
}

.sina-nav-cells a:hover {
    background: var(--sina-red-lt);
    color: var(--sina-red);
    border-color: #f5b0b0;
}

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

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

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

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

.sina-search input[type="text"]:focus {
    border-color: var(--sina-red);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(226,42,39,.1);
}

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

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

.sina-search button[value="1"] {
    background: var(--sina-red);
    color: #fff;
    box-shadow: 0 2px 6px rgba(226,42,39,.3);
}
.sina-search button[value="1"]:hover {
    background: var(--sina-red-dk);
    box-shadow: none;
}

.sina-search button[value="2"] {
    background: var(--sina-orange);
    color: #fff;
}
.sina-search button[value="2"]:hover { background: #cc5010; }

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

.sina-hot h4 {
    font-size: .78rem;
    font-weight: 800;
    color: var(--sina-dark);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sina-hot h4 .hot-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--sina-red);
    border-radius: 50%;
    flex-shrink: 0;
}

.sina-tagline {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.sina-tagline .stag {
    display: inline-block;
    background: var(--bg-soft);
    color: var(--txt2);
    border: 1px solid var(--bdr2);
    border-radius: 3px;
    padding: 2px 10px;
    font-size: .75rem;
    text-decoration: none;
    transition: all .15s;
}

.sina-tagline .stag:hover {
    background: var(--sina-red-lt);
    color: var(--sina-red);
    border-color: #f5b0b0;
}

/* ===== CONTENT SECTION ===== */
.sina-block {
    background: var(--bg);
    border: 1px solid var(--bdr);
    border-radius: var(--rr3);
    padding: 12px 12px 9px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.sina-block-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;
}

.sina-block-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 38px;
    height: 2px;
    background: var(--sina-red);
    border-radius: 1px;
}

.sina-block-hd h3 {
    font-size: .97rem;
    font-weight: 800;
    color: var(--sina-dark);
    display: flex;
    align-items: center;
    gap: 7px;
}

/* red vertical bar before title like Sina sections */
.sina-block-hd h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 15px;
    background: var(--sina-red);
    border-radius: 2px;
    flex-shrink: 0;
}

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

.sina-block-hd h4 {
    font-size: .94rem;
    font-weight: 800;
    color: var(--sina-dark);
    display: flex;
    align-items: center;
    gap: 7px;
}

.sina-block-hd h4::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 15px;
    background: var(--sina-red);
    border-radius: 2px;
    flex-shrink: 0;
}

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

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

.sina-grid li:hover {
    box-shadow: var(--sh3);
    transform: translateY(-2px);
    border-color: var(--bdr-red);
}

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

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

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

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

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

.sina-caption h5 a { color: var(--txt); }
.sina-caption h5 a:hover { color: var(--sina-red); }

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

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

.sina-pager-row a.spr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg);
    border: 1px solid var(--bdr2);
    border-radius: var(--rr2);
    font-size: .83rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .15s;
}

.sina-pager-row a.spr:hover {
    background: var(--sina-red-lt);
    border-color: var(--sina-red);
    color: var(--sina-red);
}

.sina-pager-row a.spr-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--sina-red);
    border: 1px solid var(--sina-red);
    border-radius: var(--rr2);
    font-size: .83rem;
    font-weight: 800;
    color: #fff;
    cursor: default;
    box-shadow: 0 2px 6px rgba(226,42,39,.3);
}

/* ===== FOOTER ===== */
.sina-flinks {
    background: var(--bg);
    border: 1px solid var(--bdr);
    border-radius: var(--rr);
    padding: 9px 12px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

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

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

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

.sina-flink-list a:hover {
    color: var(--sina-red);
    border-color: var(--sina-red);
    background: var(--sina-red-lt);
}

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

/* ===== DETAIL PAGES ===== */
.sina-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(--sina-red);
    border-radius: var(--rr);
    box-shadow: var(--sh1);
}

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

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

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

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

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

.sina-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 22px;
    background: var(--sina-red);
    color: #fff;
    border: none;
    border-radius: var(--rr2);
    font-size: .89rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(226,42,39,.3);
}

.sina-dl-btn:hover {
    background: var(--sina-red-dk);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(226,42,39,.38);
}

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

.sina-app-note a { color: var(--sina-red); font-weight: 600; }
.sina-app-note a:hover { color: var(--sina-red-dk); }

/* ===== SHARE ===== */
.sina-share {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-soft);
    border: 1px solid var(--bdr);
    border-radius: var(--rr);
    padding: 8px 12px;
    margin: 4px 0;
    flex-wrap: wrap;
}

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

.sina-share .ss-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 13px;
    background: var(--sina-red);
    color: #fff;
    border: none;
    border-radius: var(--rr2);
    font-size: .79rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(226,42,39,.25);
}

.sina-share .ss-btn:hover {
    background: var(--sina-red-dk);
    box-shadow: none;
}

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

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

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

    .sina-sitename { font-size: 1.08rem; }
    .sina-domain-tag .sdt-url { font-size: .95rem; }

    .sina-nav-strip { align-items: stretch; }

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

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

    .sina-nav-cells 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 */
    .sina-search form {
        flex-wrap: nowrap;
        gap: 4px;
    }

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

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

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

    .sina-thumb { aspect-ratio: 600 / 350; }
    .sina-caption h5 { font-size: .71rem; }
    .sina-block { padding: 8px 8px 6px; }
    .sina-dl-btn { padding: 9px 14px; font-size: .84rem; }
}

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

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