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

:root {
    --bg-root: #f5f4fb;
    --bg-white: #ffffff;
    --bg-light: #f0eef9;
    --bg-muted: #e8e4f5;
    --violet: #7b2ff7;
    --violet-dk: #6320d4;
    --violet-lt: #9b5ff9;
    --violet-pale: #f0ebff;
    --violet-glow: rgba(123,47,247,0.12);
    --magenta: #c9409a;
    --magenta-dk: #a83280;
    --grad-main: linear-gradient(135deg, #c9409a 0%, #7b2ff7 60%, #4b6fe8 100%);
    --blue-acc: #4b6fe8;
    --txt: #1a1530;
    --txt2: #4a4468;
    --txt3: #9590b0;
    --line: #e4e0f0;
    --line2: #cec8e8;
    --sh1: 0 1px 5px rgba(100,60,200,.07);
    --sh2: 0 4px 16px rgba(100,60,200,.12);
    --sh3: 0 8px 28px rgba(100,60,200,.18);
    --rd: 10px;
    --rd-sm: 6px;
    --rd-lg: 14px;
    --rd-pill: 50px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.ix-topbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--line);
    padding: 9px 0;
    box-shadow: var(--sh1);
}

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

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

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

.ix-sitename {
    font-size: 1.38rem;
    font-weight: 900;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: normal;
    letter-spacing: -.5px;
    border-bottom: none;
    text-decoration: none;
}

.ix-domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--grad-main);
    border-radius: var(--rd-pill);
    padding: 4px 14px;
}

.ix-domain-tag .dt-label {
    font-size: 0.67rem;
    color: rgba(255,255,255,.75);
    white-space: nowrap;
}

.ix-domain-tag .dt-url {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    letter-spacing: .3px;
}

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

/* ===== CATEGORY NAV ===== */
.ix-nav-box {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--rd);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

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

.ix-zone-tag {
    background: var(--grad-main);
    color: rgba(255,255,255,.9);
    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,.15);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

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

.ix-zone-links a:hover {
    background: var(--violet-pale);
    color: var(--violet);
    border-color: rgba(123,47,247,.25);
}

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

/* ===== SEARCH ===== */
.ix-search-bar {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--rd);
    padding: 8px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

.ix-search-bar input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1.5px solid var(--line2);
    border-radius: var(--rd-pill);
    padding: 0 14px;
    font-size: .88rem;
    color: var(--txt);
    background: var(--bg-light);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.ix-search-bar input[type="text"]:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px var(--violet-glow);
    background: var(--bg-white);
}

.ix-search-bar button {
    height: 36px;
    padding: 0 13px;
    border: 1px solid var(--line2);
    border-radius: var(--rd-pill);
    background: var(--bg-light);
    color: var(--txt2);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s, color .18s;
    flex-shrink: 0;
}

.ix-search-bar button:hover { background: var(--bg-muted); color: var(--violet); }

.ix-search-bar button[value="1"] {
    background: var(--grad-main);
    color: #fff;
    border-color: transparent;
}
.ix-search-bar button[value="1"]:hover { opacity: .88; }

.ix-search-bar button[value="2"] {
    background: var(--blue-acc);
    color: #fff;
    border-color: transparent;
}
.ix-search-bar button[value="2"]:hover { background: #3a5dd0; }

/* ===== HOT TAGS ===== */
.ix-hotbox {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--rd);
    padding: 7px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.ix-hotbox h4 {
    font-size: .79rem;
    font-weight: 700;
    color: var(--txt2);
    margin-bottom: 5px;
}

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

.ix-tag-row .tk {
    display: inline-block;
    background: var(--bg-light);
    color: var(--txt2);
    border: 1px solid var(--line);
    border-radius: var(--rd-pill);
    padding: 2px 11px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .18s;
}

.ix-tag-row .tk:hover {
    background: var(--violet-pale);
    color: var(--violet);
    border-color: rgba(123,47,247,.3);
}

/* ===== CONTENT SECTION ===== */
.ix-section {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--rd-lg);
    padding: 13px 13px 10px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

.ix-sect-head::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 36px;
    height: 2px;
    background: var(--grad-main);
    border-radius: 2px;
}

.ix-sect-head h3 {
    font-size: .97rem;
    font-weight: 800;
    color: var(--txt);
}

.ix-sect-head h3 a { color: var(--txt); }
.ix-sect-head h3 a:hover { color: var(--violet); }

.ix-sect-head h4 {
    font-size: .94rem;
    font-weight: 800;
    color: var(--txt);
}

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

.ix-grid li {
    border-radius: var(--rd);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-light);
    transition: box-shadow .2s, transform .2s;
}

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

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

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

.ix-cover-lnk:hover img { transform: scale(1.04); }

.ix-card-foot {
    padding: 5px 7px 7px;
}

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

.ix-card-foot h5 a { color: var(--txt2); }
.ix-card-foot h5 a:hover { color: var(--violet); }

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

.ix-pg-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.ix-pg-list a.ix-pgn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg-white);
    border: 1px solid var(--line2);
    border-radius: var(--rd-sm);
    font-size: .84rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .18s;
}

.ix-pg-list a.ix-pgn:hover {
    background: var(--violet-pale);
    border-color: var(--violet);
    color: var(--violet);
}

.ix-pg-list a.ix-pgn-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--grad-main);
    border: 1px solid transparent;
    border-radius: var(--rd-sm);
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.ix-flinks-wrap {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--rd);
    padding: 9px 13px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

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

.ix-flink-list a {
    display: inline-block;
    font-size: .77rem;
    color: var(--txt3);
    padding: 2px 9px;
    border-radius: var(--rd-sm);
    border: 1px solid var(--line);
    background: var(--bg-light);
    text-decoration: none;
    transition: all .18s;
}

.ix-flink-list a:hover {
    color: var(--violet);
    border-color: rgba(123,47,247,.35);
    background: var(--violet-pale);
}

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

/* ===== DETAIL PAGES ===== */
.ix-dtl-head {
    line-height: 1.8;
    text-align: center;
    padding: 12px 15px;
    font-size: .97rem;
    margin: 3px 0;
    word-break: break-all;
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--violet);
    border-radius: var(--rd);
    box-shadow: var(--sh1);
}

.ix-dtl-head a {
    color: var(--violet);
    font-weight: 700;
    margin-right: 6px;
}

.ix-dtl-meta {
    font-size: .9rem;
    line-height: 2;
    padding: 14px 18px;
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--rd);
    box-shadow: var(--sh1);
    margin: 3px 0;
    color: var(--txt2);
}

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

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

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

.ix-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 22px;
    background: var(--grad-main);
    color: #fff;
    border: none;
    border-radius: var(--rd-pill);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    text-decoration: none;
}

.ix-dl-btn:hover {
    opacity: .88;
    color: #fff;
    transform: translateY(-1px);
}

.ix-cli-note {
    text-align: center;
    padding: 6px;
    font-size: .82rem;
}

.ix-cli-note a { color: var(--violet); font-weight: 600; }
.ix-cli-note a:hover { color: var(--violet-dk); }

/* ===== SHARE ===== */
.ix-share-strip {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-light);
    border: 1px solid var(--line);
    border-radius: var(--rd);
    padding: 8px 13px;
    margin: 3px 0;
    flex-wrap: wrap;
}

.ix-share-strip .ss-label { font-size: .77rem; color: var(--txt3); white-space: nowrap; }
.ix-share-strip .ss-url { font-size: .79rem; color: var(--txt2); flex: 1; min-width: 0; word-break: break-all; }

.ix-share-strip .ss-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--grad-main);
    color: #fff;
    border: none;
    border-radius: var(--rd-pill);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .18s;
    flex-shrink: 0;
}

.ix-share-strip .ss-copy:hover { opacity: .85; }

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

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

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

    .ix-sitename { font-size: 1.08rem; }
    .ix-domain-tag .dt-url { font-size: .9rem; }

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

    .ix-zone-tag {
        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;
    }

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

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

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

    .ix-search-bar input[type="text"] {
        height: 34px;
        font-size: .79rem;
        padding: 0 9px;
    }

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

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

    .ix-cover-lnk { aspect-ratio: 600 / 350; }
    .ix-card-foot h5 { font-size: .72rem; }
    .ix-section { padding: 9px 9px 7px; }
    .ix-dl-btn { padding: 9px 16px; font-size: .84rem; }
}

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

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