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

:root {
    --bg-page:    #f7f4f0;
    --bg-white:   #ffffff;
    --bg-warm:    #fff8f2;
    --bg-card:    #ffffff;
    --bg-card2:   #fdf6f0;

    --orange:     #f47920;
    --orange-dk:  #d96510;
    --orange-lt:  #f9954a;
    --orange-bg:  #fff3e8;
    --orange-bdr: #f9c89a;
    --amber:      #ffb830;
    --amber-dk:   #e09f20;
    --red-acc:    #f04e3e;

    --txt-hd:     #1a1208;
    --txt-main:   #2c2010;
    --txt-sub:    #5c4a2a;
    --txt-muted:  #b09070;
    --bdr:        #eeddd0;
    --bdr2:       #e0c8b0;

    --shade1: 0 1px 5px rgba(244,121,32,.08);
    --shade2: 0 3px 14px rgba(244,121,32,.13);
    --shade3: 0 6px 26px rgba(244,121,32,.18);

    --grad-hd:   linear-gradient(135deg, #ffffff 0%, #fff8f2 100%);
    --grad-btn:  linear-gradient(135deg, #f47920 0%, #f9954a 100%);
    --grad-btn2: linear-gradient(135deg, #ffb830 0%, #ffd060 100%);
    --grad-acc:  linear-gradient(135deg, #f04e3e 0%, #f47920 100%);

    --radius:    10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.ibao-hd {
    background: var(--bg-white);
    border-bottom: 2px solid var(--orange-bdr);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(244,121,32,.10);
}

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

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

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

.ibao-sitename {
    font-size: 1.38rem;
    font-weight: 900;
    color: var(--orange);
    font-style: normal;
    letter-spacing: -.3px;
    text-decoration: none;
}

.ibao-domain {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange-bg);
    border: 1.5px solid var(--orange-bdr);
    border-radius: 26px;
    padding: 4px 16px;
}

.ibao-domain .ibd-tag {
    font-size: 0.67rem;
    color: var(--txt-muted);
    white-space: nowrap;
}

.ibao-domain .ibd-url {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--orange);
    white-space: nowrap;
}

/* ===== BANNER ZONE ===== */
.ibao-bnr {
    margin: 5px 0 3px;
}
.ibao-bnr img { border-radius: var(--radius); width: 100%; }

/* ===== CATEGORY NAV ===== */
.ibao-nav {
    background: var(--bg-white);
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--shade1);
}

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

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

.ibao-zone-lbl {
    background: var(--grad-btn);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid var(--orange-bdr);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

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

.ibao-cat-links a:hover {
    background: var(--orange-bg);
    color: var(--orange);
    border-color: var(--orange-bdr);
}

.ibao-cat-links a.active {
    background: var(--grad-btn);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
}

/* ===== SEARCH BAR ===== */
.ibao-srch {
    background: var(--bg-white);
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--shade1);
}

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

.ibao-srch input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    font-size: .88rem;
    color: var(--txt-main);
    background: var(--bg-warm);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.ibao-srch input[type="text"]:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(244,121,32,.12);
    background: var(--bg-white);
}

.ibao-srch button {
    height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--txt-sub);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .18s;
    flex-shrink: 0;
}

.ibao-srch button:hover { background: var(--txt-hd); transform: translateY(-1px); }

.ibao-srch button[value="1"] {
    background: var(--grad-btn);
    color: #fff;
}
.ibao-srch button[value="1"]:hover { background: var(--orange-dk); }

.ibao-srch button[value="2"] {
    background: var(--grad-btn2);
    color: var(--txt-hd);
}
.ibao-srch button[value="2"]:hover { background: var(--amber-dk); color: #fff; }

/* ===== HOT TAGS ===== */
.ibao-tags {
    background: var(--bg-white);
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--shade1);
}

.ibao-tags h4 {
    font-size: .79rem;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 5px;
}

.ibao-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ibao-tag-list .ibao-tag {
    display: inline-block;
    background: var(--bg-warm);
    color: var(--txt-sub);
    border: 1px solid var(--bdr);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .18s;
}

.ibao-tag-list .ibao-tag:hover {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
}

/* ===== CONTENT SECTION ===== */
.ibao-sect {
    background: var(--bg-white);
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius-lg);
    padding: 13px 13px 10px;
    margin: 5px 0;
    box-shadow: var(--shade1);
}

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

.ibao-sect-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 48px;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
}

.ibao-sect-hd h3 {
    font-size: .98rem;
    font-weight: 800;
    color: var(--txt-hd);
}

.ibao-sect-hd h3 a { color: var(--txt-hd); }
.ibao-sect-hd h3 a:hover { color: var(--orange); }

.ibao-sect-hd h4 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--txt-hd);
}

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

.ibao-vlist li {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--bdr);
    background: var(--bg-card2);
    transition: box-shadow .2s, transform .2s;
}

.ibao-vlist li:hover {
    box-shadow: var(--shade3);
    transform: translateY(-2px);
    border-color: var(--orange-bdr);
}

.ibao-vthumb {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--bg-warm);
}

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

.ibao-vthumb:hover img { transform: scale(1.06); }

.ibao-vinfo {
    padding: 5px 7px 7px;
}

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

.ibao-vinfo h5 a { color: var(--txt-main); }
.ibao-vinfo h5 a:hover { color: var(--orange); }

/* ===== PAGINATION ===== */
.ibao-pager {
    margin: 14px 0 6px;
    display: flex;
    justify-content: center;
}

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

.ibao-pg-inner a.pgb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg-white);
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius-sm);
    font-size: .84rem;
    color: var(--txt-sub);
    text-decoration: none;
    transition: all .18s;
}

.ibao-pg-inner a.pgb:hover {
    background: var(--orange-bg);
    border-color: var(--orange);
    color: var(--orange);
}

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

/* ===== FOOTER ===== */
.ibao-ftr {
    background: var(--bg-white);
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius);
    padding: 9px 13px;
    margin: 5px 0;
    box-shadow: var(--shade1);
}

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

.ibao-flinks dd { display: inline; }

.ibao-flinks a {
    display: inline-block;
    font-size: .77rem;
    color: var(--txt-muted);
    padding: 2px 9px;
    border-radius: 4px;
    border: 1px solid var(--bdr);
    background: var(--bg-warm);
    text-decoration: none;
    transition: all .18s;
}

.ibao-flinks a:hover { color: var(--orange); border-color: var(--orange-bdr); }

.ibao-cr {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--txt-muted);
    font-size: .76rem;
}

/* ===== DETAIL PAGES ===== */
.ibao-dtl-title {
    line-height: 1.8;
    text-align: center;
    padding: 13px 15px;
    font-size: .98rem;
    margin: 5px 0;
    word-break: break-all;
    background: var(--bg-white);
    border: 1.5px solid var(--bdr);
    border-left: 4px solid var(--orange);
    border-radius: var(--radius);
    box-shadow: var(--shade1);
}

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

.ibao-dtl-meta {
    font-size: .9rem;
    line-height: 1.95;
    padding: 15px 18px;
    background: var(--bg-white);
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius);
    box-shadow: var(--shade1);
    margin: 5px 0;
}

.ibao-prev {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.ibao-prev picture,
.ibao-prev img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
}

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

.ibao-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 22px;
    background: var(--grad-btn);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(244,121,32,.22);
}

.ibao-dl-btn:hover {
    background: var(--orange-dk);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(244,121,32,.30);
}

.ibao-cli-hint {
    text-align: center;
    padding: 7px;
    font-size: .82rem;
}

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

/* ===== SHARE BAR ===== */
.ibao-shr {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-warm);
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius);
    padding: 8px 13px;
    margin: 5px 0;
    flex-wrap: wrap;
}

.ibao-shr .shr-lbl { font-size: .77rem; color: var(--txt-muted); white-space: nowrap; }
.ibao-shr .shr-url { font-size: .79rem; color: var(--txt-sub); flex: 1; min-width: 0; word-break: break-all; }

.ibao-shr .shr-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--grad-btn);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
    flex-shrink: 0;
}

.ibao-shr .shr-btn:hover { background: var(--orange-dk); transform: translateY(-1px); }

/* ===== VISIBILITY HELPERS ===== */
.ibao-pc { display: block; }
.ibao-mb { display: none; }

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

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

    .ibao-sitename { font-size: 1.06rem; }
    .ibao-domain .ibd-url { font-size: .92rem; }

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

    .ibao-zone-lbl {
        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;
    }

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

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

    /* Search: single row no wrap */
    .ibao-srch form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .ibao-srch input[type="text"] {
        height: 34px;
        font-size: .79rem;
        padding: 0 7px;
    }

    .ibao-srch button {
        height: 34px;
        padding: 0 7px;
        font-size: .74rem;
    }

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

    .ibao-vthumb { aspect-ratio: 600 / 350; }
    .ibao-vinfo h5 { font-size: .72rem; }
    .ibao-sect { padding: 9px 9px 7px; }
    .ibao-dl-btn { padding: 9px 14px; font-size: .84rem; }
}

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

@media (max-width: 380px) {
    .ibao-zone-lbl { font-size: 10px; }
    .ibao-cat-links a { font-size: 12px; }
    .ibao-srch button { padding: 0 5px; font-size: .68rem; }
}
