/* Ctrip Portal — Sky Blue & Orange Clean Design */

:root {
    --sky: #0086F6;
    --sky-dk: #006DD4;
    --sky-lt: #E8F4FF;
    --sky-grad: linear-gradient(135deg, #1A9FFF 0%, #0060D0 100%);
    --coral: #FF6B35;
    --coral-dk: #E05520;
    --coral-lt: #FFF0EB;
    --ink: #1A1A2E;
    --ink-sub: #4A4A6A;
    --ink-muted: #AAAACC;
    --rule: #E8ECF2;
    --canvas: #F0F4FA;
    --surface: #FFFFFF;
    --lift-xs: 0 1px 5px rgba(0,134,246,0.07);
    --lift-sm: 0 2px 12px rgba(0,134,246,0.10);
    --lift-md: 0 6px 24px rgba(0,134,246,0.15);
    --curve: 10px;
    --curve-sm: 6px;
    --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 ===== */
.sitetop {
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    padding: 14px 0;
    box-shadow: var(--lift-xs);
}

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

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

.sitebrand:hover .brandname { color: var(--sky-dk); }

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

.newurl-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--sky-grad);
    color: #fff;
    padding: 5px 14px;
    border-radius: var(--curve-pill);
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0,134,246,0.3);
}

.newurl-lbl {
    font-weight: 600;
    font-size: 11px;
    opacity: 0.85;
    letter-spacing: 0.3px;
}

.newurl-val {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.4px;
}

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

.rowpad {
    padding: 10px 0;
}

/* ===== BANNER SLOT — no extra spacing ===== */
.bannerslot { /* intentionally bare */ }

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

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

.catline:last-child { border-bottom: none; }

.cattag {
    background: var(--sky-grad);
    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;
}

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

.catlinks 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) var(--curve-sm) 0 0;
}

.catlinks a:hover {
    color: var(--sky);
    border-bottom-color: var(--sky);
}

.catlinks a.active {
    color: var(--sky);
    font-weight: 700;
    border-bottom: 2px solid var(--sky);
    background: var(--sky-lt);
}

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

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

.querybar 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);
}

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

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

.querybar button {
    padding: 10px 20px;
    border: none;
    border-radius: var(--curve-pill);
    background: var(--sky-grad);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0,134,246,0.3);
}

.querybar button:hover {
    background: linear-gradient(135deg, #0099FF 0%, #0050C0 100%);
    box-shadow: 0 4px 14px rgba(0,134,246,0.4);
}

/* ===== HOT KEYWORDS ===== */
.hotkeys {
    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);
}

.hotkey-btn {
    padding: 4px 14px;
    background: var(--sky-lt);
    border-radius: var(--curve-pill);
    color: var(--sky);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid rgba(0,134,246,0.2);
    line-height: 1.6;
    font-weight: 500;
}

.hotkey-btn:hover {
    background: var(--sky);
    color: #fff;
    border-color: var(--sky);
    box-shadow: 0 2px 8px rgba(0,134,246,0.25);
}

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

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

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

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

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

.filmblock-title a:hover { color: var(--sky); }

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

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

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

.covergrid li:hover {
    box-shadow: var(--lift-md);
    transform: translateY(-3px);
    border-color: rgba(0,134,246,0.25);
}

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

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

.coverpic:hover img { transform: scale(1.07); }

.coverpic::after {
    content: '▶';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 20px;
    color: #fff;
    background: rgba(0,134,246,0.88);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    line-height: 46px;
    text-align: center;
    padding-left: 3px;
    opacity: 0;
    transition: all 0.28s ease;
}

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

.coverinfo {
    padding: 8px 10px;
}

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

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

.coverinfo h5 a:hover { color: var(--sky); }

/* ===== DETAIL TITLE ===== */
.detailhead {
    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(--sky-lt) 0%, #EEF6FF 100%);
    border-radius: var(--curve);
    border: 1px solid rgba(0,134,246,0.18);
    border-left: 4px solid var(--sky);
    box-shadow: var(--lift-xs);
}

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

/* ===== DETAIL META ===== */
.detailmeta {
    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);
}

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

/* ===== ACTION BUTTONS ===== */
.btnstrip {
    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;
}

.gobutton {
    display: inline-block;
    padding: 10px 28px;
    background: var(--coral);
    color: #fff;
    text-decoration: none;
    border-radius: var(--curve-pill);
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(255,107,53,0.3);
}

.gobutton:hover {
    background: var(--coral-dk);
    box-shadow: 0 4px 14px rgba(255,107,53,0.4);
    transform: translateY(-1px);
}

/* ===== SHARE ROW ===== */
.linkrow {
    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;
}

.linkrow-display {
    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;
}

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

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

.linkrow-copybtn {
    padding: 9px 18px;
    background: var(--sky-grad);
    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;
    box-shadow: 0 2px 8px rgba(0,134,246,0.25);
}

.linkrow-copybtn:hover {
    background: linear-gradient(135deg, #0099FF 0%, #0050C0 100%);
    box-shadow: var(--lift-sm);
}

.clipico { font-size: 16px; }

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

.pgbtn, .pgcur {
    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;
}

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

.pgbtn:hover {
    background: var(--sky);
    border-color: var(--sky);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,134,246,0.25);
}

.pgcur {
    background: var(--sky-grad);
    color: #fff;
    border: 1px solid var(--sky-dk);
    cursor: default;
    box-shadow: 0 2px 8px rgba(0,134,246,0.3);
}

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

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

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

.pgbase a:hover { color: var(--sky); }

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

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

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

.rellinks a:hover { color: var(--sky); }

/* ===== 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; }
.onlypc  { display: block; }
.onlymob { display: block; }

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .pgbox { padding: 0 8px; }
    .rowpad { padding: 7px 0; }
    .onlypc { display: none !important; }

    /* Topbar */
    .sitetop { padding: 9px 0; }
    .sitetop-inner { gap: 10px; }
    .brandname { font-size: 22px; }
    .newurl-val { font-size: 13px; }

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

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

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

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

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

    .coverinfo { padding: 6px 8px; }
    .coverinfo h5 { font-size: 12px; }
    .filmblock-title { font-size: 17px; }

    /* Tags */
    .hotkeys { padding: 10px; gap: 5px; }
    .hotkey-btn { padding: 3px 10px; font-size: 12px; }

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

    /* Share */
    .linkrow { padding: 10px 12px; gap: 8px; flex-wrap: nowrap; }
    .linkrow-display { padding: 8px 10px; }
    .linkrow-tag { font-size: 11px; }
    .linkrow-href { font-size: 10px; }
    .linkrow-copybtn { padding: 8px 12px; font-size: 12px; flex-shrink: 0; }
    .clipico { font-size: 14px; }

    /* Pager */
    .pgbar { gap: 4px; }
    .pgbtn, .pgcur { padding: 6px 11px; font-size: 12px; min-width: 32px; }

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

@media (max-width: 480px) {
    .brandname { font-size: 18px; }
    .newurl-badge { padding: 4px 10px; }
    .newurl-val { font-size: 12px; }

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

    .catlinks {
        width: 87%;
        gap: 4px;
        padding: 4px 4px;
    }

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

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

    .covergrid { gap: 8px; }
    .filmblock-title { font-size: 15px; }
    .gobutton { padding: 8px 14px; font-size: 12px; }
}
