/* Fliggy Portal — Clean Light / Yellow & Purple */

:root {
    --sun: #FFD000;
    --sun-dk: #E6B800;
    --sun-lt: #FFFBE6;
    --plum: #6C4EE0;
    --plum-dk: #5438C4;
    --plum-lt: #F0EDFF;
    --ink: #1A1A2E;
    --ink-sub: #555566;
    --ink-muted: #AAAABC;
    --rule: #EBEBF0;
    --canvas: #F7F7FB;
    --surface: #FFFFFF;
    --lift-xs: 0 1px 4px rgba(108,78,224,0.06);
    --lift-sm: 0 2px 10px rgba(108,78,224,0.10);
    --lift-md: 0 6px 22px rgba(108,78,224,0.14);
    --curve: 8px;
    --curve-sm: 5px;
    --curve-pill: 50px;
    --ease: all 0.22s cubic-bezier(.4,0,.2,1);
    --cover-ratio: calc(350 / 600 * 100%);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: var(--canvas);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.65;
    overflow-x: hidden;
}

/* ===== TOPBAR — white, NOT sticky, scrolls with page ===== */
.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    padding: 13px 0;
}

.topbar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.brand-anchor {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: var(--ease);
}

.brand-anchor:hover .brand-name { color: var(--plum-dk); }

.brand-name {
    font-size: 27px;
    font-weight: 900;
    color: var(--plum);
    letter-spacing: 0.5px;
    line-height: 1;
    transition: var(--ease);
}

.domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--sun);
    color: var(--ink);
    padding: 5px 14px;
    border-radius: var(--curve-pill);
    font-size: 13px;
}

.domain-pill-lbl {
    font-weight: 700;
    font-size: 11px;
    opacity: 0.75;
    letter-spacing: 0.3px;
}

.domain-pill-val {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.3px;
    color: var(--ink);
}

/* ===== LAYOUT ===== */
.box {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 15px;
}

.gap {
    padding: 10px 0;
}

/* ===== PROMO SLOT — no extra spacing ===== */
.promo-slot { /* intentionally bare */ }

/* ===== CATEGORY NAV ===== */
.zone-nav {
    background: var(--surface);
    border-radius: var(--curve);
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: var(--lift-sm);
    border: 1px solid var(--rule);
}

.zone-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--rule);
}

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

.zone-chip {
    background: var(--plum);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    width: 9%;
    min-width: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 3px;
    text-align: center;
    flex-shrink: 0;
    border-right: 2px solid rgba(255,255,255,0.15);
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.zone-items {
    width: 91%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding: 7px 12px;
    gap: 5px;
}

.zone-items a {
    display: inline-block;
    color: var(--ink-sub);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 0;
    transition: var(--ease);
    white-space: nowrap;
    text-align: center;
    flex-shrink: 0;
    flex-grow: 1;
    border-bottom: 2px solid transparent;
    border-radius: var(--curve-sm);
}

.zone-items a:hover {
    color: var(--plum);
    border-bottom-color: var(--plum);
}

.zone-items a.active {
    color: var(--plum);
    font-weight: 700;
    border-bottom: 2px solid var(--plum);
    background: var(--plum-lt);
    border-radius: var(--curve-sm) var(--curve-sm) 0 0;
}

/* ===== SEARCH BAR ===== */
.lookup-bar {
    background: var(--surface);
    border-radius: var(--curve);
    padding: 12px 16px;
    margin-bottom: 10px;
    box-shadow: var(--lift-sm);
    border: 1px solid var(--rule);
}

.lookup-bar form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.lookup-bar input[type="text"] {
    flex: 1;
    min-width: 160px;
    padding: 10px 16px;
    border: 1.5px solid var(--rule);
    border-radius: var(--curve-pill);
    background: var(--canvas);
    color: var(--ink);
    font-size: 14px;
    outline: none;
    transition: var(--ease);
}

.lookup-bar input[type="text"]:focus {
    border-color: var(--plum);
    background: #fff;
    box-shadow: 0 0 0 3px var(--plum-lt);
}

.lookup-bar input[type="text"]::placeholder { color: var(--ink-muted); }

.lookup-bar button {
    padding: 10px 20px;
    border: none;
    border-radius: var(--curve-pill);
    background: var(--sun);
    color: var(--ink);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.lookup-bar button:hover {
    background: var(--sun-dk);
    box-shadow: 0 3px 10px rgba(255,208,0,0.45);
}

/* ===== HOT TAGS ===== */
.hotword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 12px 14px;
    background: var(--surface);
    border-radius: var(--curve);
    border: 1px solid var(--rule);
    margin-bottom: 10px;
    box-shadow: var(--lift-xs);
}

.hotword-item {
    padding: 4px 14px;
    background: var(--plum-lt);
    border-radius: var(--curve-pill);
    color: var(--plum);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid rgba(108,78,224,0.18);
    line-height: 1.6;
    font-weight: 500;
}

.hotword-item:hover {
    background: var(--plum);
    color: #fff;
    border-color: var(--plum);
}

/* ===== CONTENT SECTION ===== */
.module {
    margin-bottom: 18px;
}

.module-top {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--rule);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.module-top::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--sun);
    border-radius: 2px;
}

.module-heading {
    font-size: 19px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: 0.2px;
}

.module-heading a {
    color: var(--ink);
    text-decoration: none;
    transition: var(--ease);
}

.module-heading a:hover { color: var(--plum); }

.module-heading span {
    font-size: 13px;
    font-weight: 400;
    color: var(--ink-muted);
    margin-left: 8px;
}

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

.tile-list li {
    background: var(--surface);
    border-radius: var(--curve);
    overflow: hidden;
    border: 1px solid var(--rule);
    box-shadow: var(--lift-xs);
    transition: var(--ease);
}

.tile-list li:hover {
    box-shadow: var(--lift-md);
    transform: translateY(-3px);
    border-color: rgba(108,78,224,0.25);
}

.tile-img {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--plum-lt);
    padding-top: var(--cover-ratio);
}

.tile-img img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.42s ease;
    display: block;
}

.tile-img:hover img { transform: scale(1.08); }

.tile-img::after {
    content: '▶';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 20px;
    color: var(--ink);
    background: var(--sun);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    line-height: 44px;
    text-align: center;
    padding-left: 3px;
    opacity: 0;
    transition: all 0.28s ease;
    font-weight: 900;
}

.tile-img:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.tile-text {
    padding: 8px 10px;
}

.tile-text h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.tile-text h5 a {
    color: var(--ink);
    text-decoration: none;
    transition: var(--ease);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tile-text h5 a:hover { color: var(--plum); }

/* ===== DETAIL TITLE ===== */
.item-banner {
    line-height: 1.8;
    text-align: center;
    padding: 16px 22px;
    font-size: 17px;
    margin: 14px 0;
    word-break: break-all;
    background: linear-gradient(135deg, var(--plum-lt) 0%, var(--sun-lt) 100%);
    border-radius: var(--curve);
    border: 1px solid rgba(108,78,224,0.15);
    box-shadow: var(--lift-xs);
}

.item-banner a {
    color: var(--plum);
    text-decoration: none;
    font-weight: 700;
    margin-right: 8px;
}

/* ===== DETAIL META ===== */
.item-details {
    font-size: 14px;
    line-height: 1.95;
    padding: 20px 24px;
    background: var(--surface);
    border-radius: var(--curve);
    margin: 12px 0;
    border: 1px solid var(--rule);
    box-shadow: var(--lift-xs);
    color: var(--ink-sub);
}

.snap-holder picture,
.snap-holder img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--curve-sm);
    border: 1px solid var(--rule);
    margin-top: 10px;
}

/* ===== ACTION BUTTONS ===== */
.cta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 15px;
    background: var(--surface);
    border-radius: var(--curve);
    margin: 12px 0;
    border: 1px solid var(--rule);
    box-shadow: var(--lift-xs);
    text-align: center;
}

.cta-btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--sun);
    color: var(--ink);
    text-decoration: none;
    border-radius: var(--curve-pill);
    font-weight: 800;
    font-size: 14px;
    transition: var(--ease);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.cta-btn:hover {
    background: var(--sun-dk);
    box-shadow: 0 4px 14px rgba(255,208,0,0.45);
    transform: translateY(-1px);
}

/* ===== SHARE ROW ===== */
.spread-row {
    background: var(--surface);
    border-radius: var(--curve);
    padding: 13px 16px;
    margin: 12px 0;
    border: 1px solid var(--rule);
    box-shadow: var(--lift-xs);
    display: flex;
    align-items: center;
    gap: 10px;
}

.spread-url {
    background: var(--canvas);
    border: 1px solid var(--rule);
    border-radius: var(--curve-pill);
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.spread-caption {
    font-weight: 700;
    font-size: 12px;
    color: var(--plum);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.spread-href {
    font-size: 12px;
    color: var(--ink-sub);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spread-btn {
    padding: 9px 18px;
    background: var(--plum);
    color: #fff;
    border: none;
    border-radius: var(--curve-pill);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.spread-btn:hover {
    background: var(--plum-dk);
    box-shadow: var(--lift-sm);
}

.ico-copy { font-size: 16px; }

/* ===== PAGINATION ===== */
.pg-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.pg-num, .pg-on {
    display: inline-block;
    padding: 7px 14px;
    border-radius: var(--curve-pill);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
}

.pg-num {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--rule);
}

.pg-num:hover {
    background: var(--plum);
    border-color: var(--plum);
    color: #fff;
}

.pg-on {
    background: var(--sun);
    color: var(--ink);
    border: 1px solid var(--sun-dk);
    cursor: default;
    font-weight: 800;
}

/* ===== FOOTER ===== */
.basefoot {
    padding: 22px 0;
    text-align: center;
    border-top: 1px solid var(--rule);
    margin-top: 24px;
    background: var(--surface);
}

.basefoot p {
    margin: 6px 0;
    color: var(--ink-muted);
    font-size: 12px;
}

.basefoot a {
    color: var(--ink-muted);
    text-decoration: none;
    transition: var(--ease);
}

.basefoot a:hover { color: var(--plum); }

/* ===== FRIEND LINKS ===== */
.peer-links {
    padding: 12px 14px;
    background: var(--surface);
    border-radius: var(--curve);
    border: 1px solid var(--rule);
    box-shadow: var(--lift-xs);
}

.peer-links dl { margin: 0; padding: 0; }
.peer-links dd { display: inline-block; margin: 3px; }

.peer-links a {
    color: var(--ink-sub);
    text-decoration: none;
    transition: var(--ease);
    font-size: 13px;
}

.peer-links a:hover { color: var(--plum); }

/* ===== PLAYER ===== */
.MacPlayer {
    background: #000;
    border-radius: var(--curve);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: var(--lift-md);
}

/* ===== UTILITIES ===== */
.clearfix::after { content: ""; display: table; clear: both; }
.show-desk { display: block; }
.show-mob  { display: block; }

@media (min-width: 769px) { .show-mob { display: none !important; } }

img[data-original] { background: var(--canvas); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .box { padding: 0 8px; }
    .gap { padding: 7px 0; }
    .show-desk { display: none !important; }

    /* Topbar */
    .topbar { padding: 9px 0; }
    .topbar-inner { gap: 10px; }
    .brand-name { font-size: 22px; }
    .domain-pill-val { font-size: 13px; }

    /* Nav — 缩小区域标签，放大栏目字号 */
    .zone-chip {
        width: 13%;
        min-width: 36px;
        font-size: 11px;
        padding: 4px 2px;
        line-height: 1.2;
    }

    .zone-items {
        width: 87%;
        flex-wrap: wrap;
        padding: 5px 6px;
        gap: 5px;
    }

    .zone-items a {
        font-size: 15px;
        font-weight: 600;
        padding: 6px 2px;
        width: calc((100% - 15px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    /* Search */
    .lookup-bar { padding: 9px 10px; }
    .lookup-bar input[type="text"] {
        min-width: 100px;
        padding: 8px 12px;
        font-size: 13px;
    }
    .lookup-bar button { padding: 8px 12px; font-size: 12px; }

    /* Grid: 2 cols */
    .tile-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tile-text { padding: 6px 8px; }
    .tile-text h5 { font-size: 12px; }
    .module-heading { font-size: 17px; }

    /* Tags */
    .hotword-list { padding: 10px; gap: 5px; }
    .hotword-item { padding: 3px 10px; font-size: 12px; }

    /* Buttons */
    .cta-row { padding: 12px 10px; gap: 8px; }
    .cta-btn { padding: 9px 18px; font-size: 13px; }

    /* Share */
    .spread-row { padding: 10px 12px; gap: 8px; flex-wrap: nowrap; }
    .spread-url { padding: 8px 10px; }
    .spread-caption { font-size: 11px; }
    .spread-href { font-size: 10px; }
    .spread-btn { padding: 8px 12px; font-size: 12px; flex-shrink: 0; }
    .ico-copy { font-size: 14px; }

    /* Pager */
    .pg-strip { gap: 4px; }
    .pg-num, .pg-on { padding: 6px 11px; font-size: 12px; min-width: 32px; }

    /* Footer */
    .basefoot { padding: 16px 0; margin-top: 16px; }
}

@media (max-width: 480px) {
    .brand-name { font-size: 18px; }
    .domain-pill { padding: 4px 10px; }
    .domain-pill-val { font-size: 12px; }

    .zone-chip {
        width: 13%;
        min-width: 32px;
        font-size: 10px;
        padding: 3px 1px;
    }

    .zone-items {
        width: 87%;
        gap: 4px;
        padding: 4px 4px;
    }

    .zone-items a {
        font-size: 14px;
        font-weight: 600;
        padding: 5px 1px;
        width: calc((100% - 12px) / 4);
    }

    .lookup-bar input[type="text"] {
        min-width: 80px;
        padding: 7px 10px;
        font-size: 12px;
    }
    .lookup-bar button { padding: 7px 10px; font-size: 11px; }

    .tile-list { gap: 8px; }
    .module-heading { font-size: 15px; }
    .cta-btn { padding: 8px 14px; font-size: 12px; }
}
