/* Vedantu-inspired Vibrant Template — Colorful Modern UI */

:root {
    /* Brand */
    --orange:         #f5520c;
    --orange-deep:    #d94309;
    --orange-light:   #fff3ee;
    --orange-mid:     rgba(245, 82, 12, 0.12);

    /* Crimson accent (banner/highlight) */
    --crimson:        #8b0038;
    --crimson-deep:   #6a0029;

    /* Text */
    --ink:            #1a1a2e;
    --ink-mid:        #3d3d5c;
    --ink-soft:       #6b6b8a;
    --ink-faint:      #a0a0bc;

    /* Surfaces */
    --bg:             #f7f7fb;
    --surface:        #ffffff;
    --rule:           #e8e8f0;
    --rule-dark:      #d0d0e0;

    /* Category card palette (pastel) */
    --card-a:         #eeeaff;   /* lavender */
    --card-b:         #fff6dc;   /* butter */
    --card-c:         #d9f8f0;   /* mint */
    --card-d:         #ffe8ec;   /* blush */
    --card-e:         #e0f0ff;   /* sky */
    --card-f:         #fdf0e0;   /* peach */

    /* Radii */
    --r-xs:           4px;
    --r-sm:           8px;
    --r-md:           12px;
    --r-lg:           16px;
    --r-pill:         999px;

    /* Motion */
    --ease:           cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --trans:          all 0.22s var(--ease);

    /* Shadows */
    --sh-xs:          0 1px 4px rgba(26,26,46,0.07);
    --sh-sm:          0 3px 10px rgba(26,26,46,0.10);
    --sh-md:          0 6px 20px rgba(26,26,46,0.13);
    --sh-hover:       0 8px 28px rgba(245,82,12,0.18);

    --maxw:           1080px;
    --gap:            8px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════
   TOPBAR / MASTHEAD
   ══════════════════════════ */
.topbar {
    background: var(--surface);
    border-bottom: 2px solid var(--rule);
    padding: 9px 0;
    box-shadow: var(--sh-xs);
}

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

.brand-anchor {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-wordmark {
    font-size: 26px;
    font-weight: 800;
    color: var(--orange);
    letter-spacing: -0.5px;
    line-height: 1;
    border-bottom: none;
    font-style: italic;
}

.topbar-sep {
    width: 1px;
    height: 26px;
    background: var(--rule-dark);
    flex-shrink: 0;
}

.domain-cluster {
    display: flex;
    align-items: center;
    gap: 8px;
}

.domain-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    color: var(--surface);
    background: var(--orange);
    padding: 3px 9px;
    border-radius: var(--r-pill);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    white-space: nowrap;
}

.domain-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.1px;
    white-space: nowrap;
}

/* ══════════════════════════
   CONTAINER
   ══════════════════════════ */
.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 16px;
}

.content { padding: 7px 0; }

/* ══════════════════════════
   BANNER SLOT
   ══════════════════════════ */
.bnr-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: var(--r-md);
    margin: 4px 0;
    box-shadow: var(--sh-sm);
}
.bnr-wrap img { display:block; width:100%; }

/* ══════════════════════════
   NAV MODULE
   ══════════════════════════ */
.nv-module {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: var(--gap);
    box-shadow: var(--sh-xs);
}

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

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

.nv-zone-tag {
    background: linear-gradient(135deg, var(--orange) 0%, #ff8c42 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    width: 10%;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 5px;
    flex-shrink: 0;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

.nv-zone-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 9px 10px;
    align-items: center;
    background: var(--surface);
}

.nv-zone-links a {
    display: inline-block;
    color: var(--ink-mid);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--r-xs);
    transition: var(--trans);
    background: var(--bg);
    border: 1px solid var(--rule);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.nv-zone-links a:hover {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    box-shadow: var(--sh-xs);
}

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

/* ══════════════════════════
   SEARCH BAR
   ══════════════════════════ */
.qsearch {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    padding: 10px 14px;
    margin-bottom: var(--gap);
    box-shadow: var(--sh-xs);
}

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

.qsearch input[type="text"] {
    flex: 1;
    min-width: 150px;
    padding: 9px 14px;
    border: 2px solid var(--rule-dark);
    border-radius: var(--r-pill);
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    outline: none;
    transition: var(--trans);
}

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

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

.qsearch button {
    padding: 9px 16px;
    border: none;
    border-radius: var(--r-pill);
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.qsearch button:hover {
    background: var(--orange-deep);
    box-shadow: var(--sh-sm);
}

/* ══════════════════════════
   HOT TAG CLOUD
   ══════════════════════════ */
.hotcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    margin-bottom: var(--gap);
    box-shadow: var(--sh-xs);
}

.hotcloud-tag {
    padding: 5px 13px;
    background: var(--orange-light);
    border-radius: var(--r-pill);
    color: var(--orange);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: var(--trans);
    border: 1px solid rgba(245,82,12,0.2);
}

.hotcloud-tag:hover {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    box-shadow: var(--sh-xs);
}

/* ══════════════════════════
   SECTION BLOCK
   ══════════════════════════ */
.sblock { margin-bottom: var(--gap); }

.sblock-head {
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--rule);
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.sblock-head::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 44px;
    height: 2px;
    background: var(--orange);
    border-radius: var(--r-pill);
}

.sblock-heading {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.3px;
}

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

.sblock-heading a:hover { color: var(--orange); }

/* ══════════════════════════
   FILM GRID  (600:350 ratio)
   ══════════════════════════ */
.vgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
}

.vgrid li { animation: vslide 0.42s var(--ease) backwards; }
.vgrid li:nth-child(1){animation-delay:.04s}
.vgrid li:nth-child(2){animation-delay:.08s}
.vgrid li:nth-child(3){animation-delay:.12s}
.vgrid li:nth-child(4){animation-delay:.16s}
.vgrid li:nth-child(5){animation-delay:.20s}
.vgrid li:nth-child(6){animation-delay:.24s}
.vgrid li:nth-child(7){animation-delay:.28s}
.vgrid li:nth-child(8){animation-delay:.32s}

@keyframes vslide {
    from { opacity:0; transform:translateY(16px); }
    to   { opacity:1; transform:translateY(0); }
}

/* 封面宽高比 600:350 */
.thumb-lnk {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-sm);
    aspect-ratio: 600 / 350;
    background: var(--rule);
    box-shadow: var(--sh-xs);
    transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.thumb-lnk img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
    display: block;
}

.thumb-lnk:hover {
    box-shadow: var(--sh-hover);
    transform: translateY(-2px);
}

.thumb-lnk:hover img { transform: scale(1.07); }

.thumb-lnk::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: rgba(255,255,255,0.92);
    background: rgba(245,82,12,0.3);
    opacity: 0;
    transition: opacity 0.22s;
}

.thumb-lnk:hover::after { opacity: 1; }

.vtitle-wrap { padding: 7px 2px 0; }

.vtitle-wrap h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.vtitle-wrap h5 a {
    color: inherit;
    text-decoration: none;
    transition: var(--trans);
}

.vtitle-wrap h5 a:hover { color: var(--orange); }

/* ══════════════════════════
   ENTRY TITLE BAR
   ══════════════════════════ */
.entry-header {
    line-height: 1.7;
    text-align: left;
    padding: 14px 18px;
    font-size: 16px;
    margin: 7px 0;
    word-break: break-all;
    background: var(--surface);
    border-left: 4px solid var(--orange);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    border-right: 1px solid var(--rule);
    box-shadow: var(--sh-xs);
}

.entry-header a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-right: 10px;
    background: var(--orange-light);
    padding: 2px 8px;
    border-radius: var(--r-pill);
    border: 1px solid rgba(245,82,12,0.2);
}

/* ══════════════════════════
   DETAIL SPEC PANEL
   ══════════════════════════ */
.spec-box {
    font-size: 14px;
    line-height: 1.9;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    margin: 7px 0;
    box-shadow: var(--sh-xs);
}

/* ══════════════════════════
   CAPTURE PREVIEW
   ══════════════════════════ */
.capview { margin-top: 12px; }

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

/* ══════════════════════════
   DOWNLOAD BUTTONS
   ══════════════════════════ */
.dl-zone {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px;
    margin: 7px 0;
    flex-wrap: wrap;
}

.dl-cta {
    display: inline-block;
    padding: 11px 24px;
    background: var(--orange);
    color: #fff;
    text-decoration: none;
    border-radius: var(--r-pill);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--trans);
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(245,82,12,0.3);
}

.dl-cta:hover {
    background: var(--orange-deep);
    box-shadow: 0 6px 20px rgba(245,82,12,0.4);
    transform: translateY(-1px);
}

/* ══════════════════════════
   SHARE STRIP
   ══════════════════════════ */
.share-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    margin: 7px 0;
    box-shadow: var(--sh-xs);
    flex-wrap: nowrap;
}

.share-url-frame {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--r-pill);
    padding: 8px 14px;
    overflow: hidden;
}

.share-url-badge {
    font-size: 10px;
    font-weight: 800;
    color: var(--orange);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.share-url-str {
    font-size: 11px;
    color: var(--ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
}

.share-copy-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 16px;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(245,82,12,0.25);
}

.share-copy-cta:hover { background: var(--orange-deep); }
.share-icon-sym { font-size: 14px; line-height: 1; }

/* ══════════════════════════
   BT CLIENT HINTS
   ══════════════════════════ */
.btclient-desk, .btclient-mob {
    text-align: center;
    padding: 10px;
}

.btclient-desk a, .btclient-mob a {
    color: var(--orange);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--trans);
}

.btclient-desk a:hover, .btclient-mob a:hover {
    color: var(--orange-deep);
    text-decoration: underline;
}

/* ══════════════════════════
   PAGINATION
   ══════════════════════════ */
.pgbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    padding: 16px 0;
    align-items: center;
}

.pga, .pgn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: var(--r-pill);
    font-size: 13px;
    font-weight: 600;
    min-width: 38px;
    text-align: center;
    transition: var(--trans);
}

.pga {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--rule-dark);
    text-decoration: none;
}

.pga:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    box-shadow: var(--sh-xs);
}

.pgn {
    background: var(--orange);
    color: #fff;
    border: 1px solid var(--orange);
    cursor: default;
}

/* ══════════════════════════
   FOOTER
   ══════════════════════════ */
.site-end {
    padding: 18px 0;
    text-align: center;
    border-top: 3px solid var(--orange);
    margin-top: 14px;
    background: var(--surface);
}

.site-end p {
    margin: 5px 0;
    color: var(--ink-soft);
    font-size: 12px;
}

.site-end a {
    color: var(--ink-soft);
    text-decoration: none;
    transition: var(--trans);
}

.site-end a:hover { color: var(--orange); }

/* ══════════════════════════
   FRIENDLY LINKS
   ══════════════════════════ */
.flinks-box {
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
}

.flinks-box dl  { margin:0; }
.flinks-box dd  { display:inline-block; margin:3px 4px; }

.flinks-box a {
    color: var(--orange);
    text-decoration: none;
    font-size: 12px;
    transition: var(--trans);
}

.flinks-box a:hover { color: var(--orange-deep); text-decoration: underline; }
.flinks-box a.pd5  { padding: 2px 4px; }

/* ══════════════════════════
   VISIBILITY
   ══════════════════════════ */
.pconly  { display:block; }
.mobonly { display:block; }

@media (max-width: 768px) { .pconly  { display:none !important; } }
@media (min-width: 769px) { .mobonly { display:none !important; } }

/* ══════════════════════════
   CLEARFIX / LAZY
   ══════════════════════════ */
.clearfix::after { content:""; display:table; clear:both; }
img[data-original] { background: var(--rule); }

/* ══════════════════════════════════════
   RESPONSIVE — TABLET  ≤768px
   ══════════════════════════════════════ */
@media (max-width: 768px) {
    .container { padding: 0 10px; }
    .content   { padding: 5px 0; }

    /* Masthead */
    .topbar-inner    { gap: 10px; }
    .brand-wordmark  { font-size: 20px; }
    .topbar-sep      { height: 22px; }
    .domain-value    { font-size: 15px; }
    .domain-pill     { font-size: 9px; }

    /* Nav: 15% label / 85% links, 4-per-row, 14px */
    .nv-zone-tag {
        width: 15%;
        min-width: 0;
        font-size: 10px;
        padding: 8px 3px;
        letter-spacing: 0;
        word-break: break-all;
        line-height: 1.25;
    }

    .nv-zone-links {
        width: 85%;
        gap: 4px;
        padding: 7px 5px;
    }

    .nv-zone-links a {
        font-size: 14px;
        padding: 5px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    /* Grid: 2-per-row */
    .vgrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
    }

    .sblock-heading { font-size: 16px; }

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

    .entry-header { font-size: 14px; padding: 11px 13px; }
    .spec-box     { padding: 13px 15px; font-size: 13px; }

    .dl-zone { gap: 8px; padding: 10px 6px; flex-wrap: nowrap; }
    .dl-cta  { padding: 9px 16px; font-size: 12px; }

    .share-row      { padding: 9px 10px; gap: 7px; }
    .share-copy-cta { padding: 8px 12px; font-size: 11px; }

    .hotcloud     { gap: 5px; padding: 9px 10px; }
    .hotcloud-tag { font-size: 11px; padding: 4px 10px; }

    .pgbar { padding: 12px 0; gap: 5px; }
    .pga, .pgn { padding: 5px 10px; font-size: 12px; min-width: 32px; }

    .sblock { margin-bottom: 6px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — PHONE  ≤480px
   ══════════════════════════════════════ */
@media (max-width: 480px) {
    .brand-wordmark { font-size: 18px; }
    .domain-value   { font-size: 14px; }

    /* Still 15%/85%, 4-per-row, 12px */
    .nv-zone-tag {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
    }

    .nv-zone-links {
        width: 85%;
        gap: 3px;
        padding: 6px 3px;
    }

    .nv-zone-links a {
        font-size: 12px;
        padding: 4px 1px;
        width: calc((100% - 9px) / 4);
    }

    .vgrid { gap: 7px; }
    .vtitle-wrap h5 { font-size: 12px; }

    .dl-zone { gap: 5px; padding: 9px 3px; flex-wrap: nowrap; }
    .dl-cta  { padding: 8px 12px; font-size: 11px; }

    .share-row       { padding: 7px 8px; gap: 5px; }
    .share-url-frame { padding: 7px 10px; }
    .share-url-badge { font-size: 9px; }
    .share-url-str   { font-size: 10px; }
    .share-copy-cta  { padding: 7px 10px; font-size: 11px; }
    .share-icon-sym  { font-size: 12px; }
}

/* ══════════════════════════════════════
   PC OVERRIDES  ≥769px
   ══════════════════════════════════════ */
@media (min-width: 769px) {
    .nv-zone-tag   { width: 10%; font-size: 13px; }
    .nv-zone-links { width: 90%; }
    .nv-zone-links a { width: calc((100% - 35px) / 8); font-size: 13px; }
    .vgrid { grid-template-columns: repeat(4, 1fr); }
}
