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

:root {
    --cf-orange:    #f48120;
    --cf-orange-dk: #d4680a;
    --cf-orange-lt: #fff6ee;
    --cf-orange-mid:#fde8cc;
    --cf-orange-bg: rgba(244,129,32,.1);
    --cf-orange-glow: rgba(244,129,32,.25);
    --cf-red:       #e53e00;
    --cf-red-dk:    #c03300;
    --bg:           #ffffff;
    --bg-soft:      #f8f9fa;
    --bg-muted:     #f1f3f5;
    --ink:          #1d1d1f;
    --ink2:         #3a3a3c;
    --ink3:         #6e6e73;
    --ink4:         #aeaeb2;
    --rule:         #e5e7eb;
    --rule2:        #d1d5db;
    --sh1: 0 1px 4px rgba(0,0,0,.06);
    --sh2: 0 4px 16px rgba(0,0,0,.09);
    --sh3: 0 8px 30px rgba(244,129,32,.18);
    --rd:   8px;
    --rd-sm: 4px;
    --rd-lg: 12px;
    --rd-xl: 16px;
    --rd-pill: 40px;
}

html { font-size: 15px; }

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

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

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

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

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

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

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

.cf-sitename {
    font-size: 1.38rem;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -.4px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
}

.cf-sitename em {
    color: var(--cf-orange);
    font-style: normal;
}

.cf-domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--cf-orange);
    border-radius: var(--rd-pill);
    padding: 5px 17px;
    box-shadow: 0 4px 14px var(--cf-orange-glow);
}

.cf-domain-pill .cdp-hint {
    font-size: 0.61rem;
    color: rgba(255,255,255,.72);
    white-space: nowrap;
    font-weight: 600;
}

.cf-domain-pill .cdp-url {
    font-size: 1.07rem;
    font-weight: 900;
    color: #fff;
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.cf-nav-grid {
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-top: 3px solid var(--cf-orange);
    border-radius: 0 0 var(--rd-xl) var(--rd-xl);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

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

.cf-nav-zone {
    background: var(--cf-orange);
    color: rgba(255,255,255,.92);
    font-size: .67rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid rgba(255,255,255,.2);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .4px;
    flex-shrink: 0;
}

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

.cf-nav-links a {
    font-size: .81rem;
    color: var(--ink2);
    padding: 4px 5px;
    border-radius: var(--rd-sm);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.cf-nav-links a:hover {
    background: var(--cf-orange-lt);
    color: var(--cf-orange-dk);
    border-color: var(--cf-orange-mid);
}

.cf-nav-links a.active {
    background: var(--cf-orange);
    color: #fff;
    border-color: var(--cf-orange);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.cf-searchbox {
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-xl);
    padding: 9px 16px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

.cf-searchbox input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: 1.5px solid var(--rule2);
    border-radius: var(--rd-pill);
    padding: 0 16px;
    font-size: .87rem;
    color: var(--ink);
    background: var(--bg-soft);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.cf-searchbox input[type="text"]::placeholder { color: var(--ink4); }

.cf-searchbox input[type="text"]:focus {
    border-color: var(--cf-orange);
    box-shadow: 0 0 0 3px var(--cf-orange-bg);
    background: var(--bg);
}

.cf-searchbox button {
    height: 38px;
    padding: 0 14px;
    border: 1.5px solid var(--rule2);
    border-radius: var(--rd-pill);
    background: var(--bg-muted);
    color: var(--ink2);
    font-size: .81rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
    flex-shrink: 0;
}

.cf-searchbox button:hover {
    background: var(--bg-soft);
    border-color: var(--rule2);
    color: var(--ink);
}

.cf-searchbox button[value="1"] {
    background: var(--cf-orange);
    color: #fff;
    border-color: var(--cf-orange);
    font-weight: 800;
    box-shadow: 0 2px 10px var(--cf-orange-glow);
}

.cf-searchbox button[value="1"]:hover {
    background: var(--cf-orange-dk);
    border-color: var(--cf-orange-dk);
    box-shadow: 0 4px 16px var(--cf-orange-glow);
}

.cf-searchbox button[value="2"] {
    background: var(--cf-red);
    color: #fff;
    border-color: var(--cf-red);
}

.cf-searchbox button[value="2"]:hover {
    background: var(--cf-red-dk);
    border-color: var(--cf-red-dk);
}

/* ===== HOT TAGS ===== */
.cf-hotbar {
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-lg);
    padding: 8px 14px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.cf-hotbar h4 {
    font-size: .76rem;
    font-weight: 700;
    color: var(--ink2);
    margin-bottom: 6px;
}

.cf-hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.cf-hot-tags .cht {
    display: inline-block;
    background: var(--cf-orange-lt);
    color: var(--cf-orange-dk);
    border: 1.5px solid var(--cf-orange-mid);
    border-radius: var(--rd-pill);
    padding: 2px 11px;
    font-size: .74rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}

.cf-hot-tags .cht:hover {
    background: var(--cf-orange);
    color: #fff;
    border-color: var(--cf-orange);
}

/* ===== CONTENT SECTION ===== */
.cf-section {
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-xl);
    padding: 13px 15px 11px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.cf-sect-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--bg-muted);
    position: relative;
}

.cf-sect-hd::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--cf-orange);
    border-radius: 2px;
    left: -15px;
}

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

.cf-sect-hd h3 {
    font-size: .98rem;
    font-weight: 900;
    color: var(--ink);
}

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

.cf-sect-hd h4 {
    font-size: .95rem;
    font-weight: 900;
    color: var(--ink);
}

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

.cf-grid li {
    border-radius: var(--rd-lg);
    overflow: hidden;
    border: 1.5px solid var(--rule);
    background: var(--bg-soft);
    transition: box-shadow .2s, transform .2s;
}

.cf-grid li:hover {
    box-shadow: var(--sh3);
    transform: translateY(-2px);
    border-color: var(--cf-orange-mid);
}

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

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

.cf-frame:hover img { transform: scale(1.05); }

.cf-caption {
    padding: 6px 8px 9px;
    border-top: 1px solid var(--rule);
}

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

.cf-caption h5 a { color: var(--ink2); }
.cf-caption h5 a:hover { color: var(--cf-orange); }

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

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

.cf-paginator-row a.cfpb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg);
    border: 1.5px solid var(--rule2);
    border-radius: var(--rd-sm);
    font-size: .83rem;
    color: var(--ink2);
    text-decoration: none;
    transition: all .15s;
}

.cf-paginator-row a.cfpb:hover {
    background: var(--cf-orange-lt);
    border-color: var(--cf-orange);
    color: var(--cf-orange-dk);
}

.cf-paginator-row a.cfpb-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--cf-orange);
    border: 1.5px solid var(--cf-orange);
    border-radius: var(--rd-sm);
    font-size: .83rem;
    font-weight: 800;
    color: #fff;
    cursor: default;
    box-shadow: 0 2px 10px var(--cf-orange-glow);
}

/* ===== FOOTER ===== */
.cf-ftr {
    background: var(--ink);
    border-radius: var(--rd-lg);
    padding: 10px 15px;
    margin: 4px 0;
}

.cf-ftr .cf-sect-hd { border-bottom-color: rgba(255,255,255,.1); }
.cf-ftr .cf-sect-hd::before { background: var(--cf-orange); }
.cf-ftr .cf-sect-hd::after { background: var(--cf-orange); }
.cf-ftr .cf-sect-hd h4 { color: rgba(255,255,255,.5); }

.cf-ftr-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.cf-ftr-links dd { display: inline; }

.cf-ftr-links a {
    display: inline-block;
    font-size: .75rem;
    color: rgba(255,255,255,.4);
    padding: 2px 9px;
    border-radius: var(--rd-sm);
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    text-decoration: none;
    transition: all .15s;
}

.cf-ftr-links a:hover {
    color: var(--cf-orange);
    border-color: rgba(244,129,32,.4);
    background: rgba(244,129,32,.1);
}

.cf-copyright {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--ink4);
    font-size: .74rem;
}

/* ===== DETAIL PAGES ===== */
.cf-entry-title {
    line-height: 1.8;
    padding: 12px 18px;
    font-size: .97rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-left: 4px solid var(--cf-orange);
    border-radius: var(--rd-lg);
    box-shadow: var(--sh1);
}

.cf-entry-title a {
    color: var(--cf-orange);
    font-weight: 700;
    margin-right: 8px;
    font-size: .77rem;
}

.cf-entry-title b { color: var(--ink); }

.cf-entry-body {
    font-size: .9rem;
    line-height: 1.9;
    padding: 14px 18px;
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-lg);
    box-shadow: var(--sh1);
    margin: 4px 0;
    color: var(--ink2);
}

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

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

/* ===== ACTION BUTTONS ===== */
.cf-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.cf-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 26px;
    background: var(--cf-orange);
    color: #fff;
    border: none;
    border-radius: var(--rd-sm);
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s, transform .15s, box-shadow .18s;
    text-decoration: none;
    box-shadow: 0 4px 14px var(--cf-orange-glow);
}

.cf-btn:hover {
    background: var(--cf-orange-dk);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(244,129,32,.3);
}

.cf-dl-tip {
    text-align: center;
    padding: 6px;
    font-size: .81rem;
}

.cf-dl-tip a { color: var(--ink3); font-weight: 600; }
.cf-dl-tip a:hover { color: var(--cf-orange); }

/* ===== SHARE BAR ===== */
.cf-share-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--cf-orange-lt);
    border: 1.5px solid var(--cf-orange-mid);
    border-radius: var(--rd-lg);
    padding: 9px 15px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.cf-share-bar .csb-lbl { font-size: .73rem; color: var(--ink3); white-space: nowrap; font-weight: 600; }
.cf-share-bar .csb-url { font-size: .78rem; color: var(--ink2); flex: 1; min-width: 0; word-break: break-all; }

.cf-share-bar .csb-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 15px;
    background: var(--cf-orange);
    color: #fff;
    border: none;
    border-radius: var(--rd-sm);
    font-size: .79rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px var(--cf-orange-glow);
}

.cf-share-bar .csb-btn:hover { background: var(--cf-orange-dk); }

/* ===== VISIBILITY ===== */
.cf-dsk { display: block; }
.cf-mob { display: none; }

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

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

    .cf-sitename { font-size: 1.08rem; }
    .cf-domain-pill .cdp-url { font-size: .9rem; }

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

    .cf-nav-zone {
        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;
    }

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

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

    .cf-searchbox form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .cf-searchbox input[type="text"] {
        height: 34px;
        font-size: .78rem;
        padding: 0 10px;
    }

    .cf-searchbox button {
        height: 34px;
        padding: 0 9px;
        font-size: .73rem;
    }

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

    .cf-frame { aspect-ratio: 600 / 350; }
    .cf-caption h5 { font-size: .71rem; }
    .cf-section { padding: 10px 10px 8px; }
    .cf-btn { padding: 9px 18px; font-size: .83rem; }
}

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

@media (max-width: 380px) {
    .cf-nav-zone { font-size: 10px; }
    .cf-nav-links a { font-size: 12px; }
    .cf-searchbox button { padding: 0 6px; font-size: .67rem; }
}
