/* inglés.com-Inspired Template — White · Royal Blue · Soft Card UI */

:root {
    /* Brand blue */
    --blue:           #1a6bfa;
    --blue-deep:      #0d55d4;
    --blue-mid:       #4a8ffb;
    --blue-light:     #e8f0ff;
    --blue-xlight:    #f0f5ff;

    /* Text */
    --ink:            #1a1a2e;
    --ink-mid:        #3c3c5c;
    --ink-soft:       #6b7280;
    --ink-faint:      #aab0bd;

    /* Surfaces */
    --bg:             #f3f6fb;      /* ingles.com light blue-gray bg */
    --bg-warm:        #eef2f9;
    --surface:        #ffffff;
    --rule:           #e2e8f4;
    --rule-dark:      #c8d3e8;

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

    /* Motion */
    --ease:           cubic-bezier(0.22, 1, 0.36, 1);
    --trans:          all 0.2s var(--ease);

    /* Shadows */
    --sh-xs:          0 1px 4px rgba(26,107,250,0.06);
    --sh-sm:          0 3px 12px rgba(26,107,250,0.10);
    --sh-md:          0 6px 24px rgba(26,107,250,0.13);
    --sh-blue:        0 4px 18px rgba(26,107,250,0.28);

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

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

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

/* ══════════════════════════════
   MASTHEAD  (白色顶栏)
   ══════════════════════════════ */
.masthead {
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    padding: 10px 0;
    box-shadow: 0 1px 6px rgba(26,107,250,0.06);
}

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

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

.mh-brand-txt {
    font-size: 24px;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: -0.5px;
    line-height: 1;
    border-bottom: none;
    font-style: italic;
}

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

.mh-domain-grp {
    display: flex;
    align-items: center;
    gap: 9px;
}

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

.mh-domain-val {
    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; }

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

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

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

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

.navmod-tag {
    background: var(--blue);
    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;
}

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

.navmod-links a {
    display: inline-block;
    color: var(--ink-mid);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--r-sm);
    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;
}

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

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

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

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

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

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

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

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

.srchbar button:hover {
    background: var(--blue-deep);
    box-shadow: 0 6px 22px rgba(26,107,250,0.36);
    transform: translateY(-1px);
}

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

.tagchip {
    padding: 5px 13px;
    background: var(--blue-xlight);
    border-radius: var(--r-pill);
    color: var(--blue);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: var(--trans);
    border: 1px solid var(--blue-light);
}

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

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

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

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

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

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

.secunit-title a:hover { color: var(--blue); }

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

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

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

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

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

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

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

.medialinka::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: rgba(255,255,255,0.95);
    background: rgba(26,107,250,0.35);
    opacity: 0;
    transition: opacity 0.2s;
}

.medialinka:hover::after { opacity: 1; }

.mediainfo { padding: 7px 2px 0; }

.mediainfo 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;
}

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

.mediainfo h5 a:hover { color: var(--blue); }

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

.entrybar a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-right: 10px;
    background: var(--blue-light);
    padding: 2px 9px;
    border-radius: var(--r-pill);
}

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

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

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

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

.dlbtn {
    display: inline-block;
    padding: 11px 26px;
    background: var(--blue);
    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: var(--sh-blue);
}

.dlbtn:hover {
    background: var(--blue-deep);
    box-shadow: 0 6px 22px rgba(26,107,250,0.36);
    transform: translateY(-1px);
}

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

.shareurl-box {
    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;
}

.shareurl-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--blue);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

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

.sharecopy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 16px;
    background: var(--blue);
    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: var(--sh-blue);
}

.sharecopy-btn:hover { background: var(--blue-deep); }
.sharecopy-sym { font-size: 14px; line-height: 1; }

/* ══════════════════════════════
   BT CLIENT HINTS
   ══════════════════════════════ */
.bthint-d, .bthint-m {
    text-align: center;
    padding: 10px;
}

.bthint-d a, .bthint-m a {
    color: var(--blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--trans);
}

.bthint-d a:hover, .bthint-m a:hover {
    color: var(--blue-deep);
    text-decoration: underline;
}

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

.pagelnk, .pagecur {
    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);
}

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

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

.pagecur {
    background: var(--blue);
    color: #fff;
    border: 1.5px solid var(--blue);
    cursor: default;
    box-shadow: var(--sh-blue);
}

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

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

.siteftend a { color: var(--ink-soft); text-decoration: none; transition: var(--trans); }
.siteftend a:hover { color: var(--blue); }

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

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

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

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

/* ══════════════════════════════
   VISIBILITY
   ══════════════════════════════ */
.pcvis  { display:block; }
.mobvis { display:block; }

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

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

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

    /* masthead */
    .mh-inner    { gap: 10px; }
    .mh-brand-txt { font-size: 20px; }
    .mh-sep      { height: 20px; }
    .mh-domain-val  { font-size: 15px; }
    .mh-domain-pill { font-size: 9px; }

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

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

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

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

    .secunit-title { font-size: 16px; }

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

    .entrybar { font-size: 14px; padding: 11px 14px; }
    .speccard { padding: 13px 16px; font-size: 13px; }

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

    .shareunit    { padding: 9px 10px; gap: 7px; }
    .sharecopy-btn{ padding: 8px 12px; font-size: 11px; }

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

    .pagerow { padding: 12px 0; gap: 5px; }
    .pagelnk, .pagecur { padding: 5px 10px; font-size: 12px; min-width: 32px; }

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

/* ══════════════════════════════════
   PHONE  ≤480px
   ══════════════════════════════════ */
@media (max-width: 480px) {
    .mh-brand-txt  { font-size: 18px; }
    .mh-domain-val { font-size: 14px; }

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

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

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

    .mediagrid { gap: 7px; }
    .mediainfo h5 { font-size: 12px; }

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

    .shareunit     { padding: 7px 8px; gap: 5px; }
    .shareurl-box  { padding: 7px 10px; }
    .shareurl-label{ font-size: 9px; }
    .shareurl-text { font-size: 10px; }
    .sharecopy-btn { padding: 7px 10px; font-size: 11px; }
    .sharecopy-sym { font-size: 12px; }
}

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