/* ==========================================================================
   Hongchi International — design system
   Corporate logistics style: deep navy, generous whitespace, square edges.
   ========================================================================== */

:root {
    --navy: #002664;
    --navy-deep: #001a48;
    --navy-soft: #0a3a7d;
    --blue: #005eb8;
    --blue-2: #0072ce;
    --sky: #cfe3f7;
    --sky-2: #eaf3fb;
    --ink: #12202f;
    --muted: #5d6c7e;
    --line: #dfe5ec;
    --line-2: #eef2f6;
    --bg: #f4f6f9;
    --white: #fff;
    --radius: 3px;
    --radius-lg: 4px;
    --shadow: 0 18px 48px rgba(0, 38, 100, .12);
    --shadow-sm: 0 6px 20px rgba(0, 38, 100, .08);
    --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Helvetica Neue", "Segoe UI", Roboto, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 16px; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(34px, 4.2vw, 58px); letter-spacing: -.028em; }
h2 { font-size: clamp(26px, 2.8vw, 38px); letter-spacing: -.022em; }
h3 { font-size: 19px; letter-spacing: -.01em; }
h4 { font-size: 16px; }
p { margin: 0 0 14px; }
ul { margin: 0 0 16px; padding-left: 20px; }
.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 16px; z-index: 9999; }
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 26px; border-radius: var(--radius); border: 1px solid transparent;
    font-weight: 600; font-size: 14.5px; line-height: 1; cursor: pointer;
    letter-spacing: .01em; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
    white-space: nowrap; font-family: inherit;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-soft); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--sky-2); color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); background: var(--sky-2); }
.btn-sm { padding: 11px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-deep); color: rgba(255, 255, 255, .72); font-size: 12.5px; letter-spacing: .02em; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.topbar a { color: rgba(255, 255, 255, .72); }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 12px; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, .35); display: inline-block; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff; border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand img { width: auto; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 17px; letter-spacing: -.015em; font-weight: 700; }
.brand-text small { color: var(--muted); font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }

.nav-desktop { display: flex; align-items: stretch; gap: 2px; align-self: stretch; }
.nav-item { position: relative; display: flex; align-items: stretch; align-self: stretch; }
.nav-link .caret { width: 12px; height: 12px; margin-left: 5px; opacity: .5; transition: transform .18s ease, opacity .18s ease; }
.nav-item:hover > .nav-link .caret, .nav-item:focus-within > .nav-link .caret { transform: rotate(180deg); opacity: .9; }
.nav-link {
    position: relative; display: flex; align-items: center; padding: 0 13px;
    color: #26374a; font-weight: 600; font-size: 14.5px; letter-spacing: -.005em;
}

/* Dropdowns */
.dropdown {
    position: absolute; top: 100%; left: 50%; min-width: 234px; padding: 8px;
    background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(8, 28, 60, .14);
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
    z-index: 130;
}
.nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown-right { left: auto; right: 0; transform: translateY(8px); }
.nav-item:hover > .dropdown-right, .nav-item:focus-within > .dropdown-right { transform: none; }
.drop-link { display: block; padding: 9px 12px; border-radius: 6px; font-size: 13.5px; font-weight: 500; color: #2b3c52; }
.drop-link:hover { background: var(--sky-2); color: var(--navy); }
.drop-sep { height: 1px; background: var(--line-2); margin: 6px 4px; }
.drop-label { padding: 6px 12px 4px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; }

/* Mega menu */
.mega-panel {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    border-top: 1px solid var(--line); box-shadow: 0 34px 60px rgba(8, 28, 60, .14);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 120;
}
.site-header.mega-open .mega-panel { opacity: 1; visibility: visible; transform: none; }
.mega-inner { display: grid; grid-template-columns: 1.05fr .95fr 1.05fr 1fr; gap: 38px; padding: 30px 0 34px; }
.mega-title { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8a99ab; margin-bottom: 10px; }
.mega-link { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin-left: -8px; border-radius: 6px; color: #26374a; font-size: 14px; font-weight: 500; }
.mega-link:hover { background: var(--sky-2); color: var(--navy); }
.mega-ico { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: var(--sky-2); color: var(--navy); flex-shrink: 0; }
.mega-ico svg { width: 15px; height: 15px; }
.mega-promo { background: #f4f8fd; border-left: 3px solid var(--navy); padding: 22px; }
.mega-promo strong { display: block; font-size: 15px; margin-bottom: 8px; color: var(--ink); }
.mega-promo p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 16px; }
.mega-all { display: inline-block; margin-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.mega-all:hover { color: var(--blue); }

/* Mobile accordion */
.m-nav-group { border-bottom: 1px solid var(--line-2); }
.m-nav-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
    padding: 13px 2px; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 600;
    color: var(--ink); cursor: pointer; text-align: left;
}
.m-nav-toggle .caret { width: 15px; height: 15px; opacity: .5; transition: transform .2s ease; }
.m-nav-group.open .m-nav-toggle .caret { transform: rotate(180deg); }
.m-sub { display: none; padding: 0 0 12px 12px; }
.m-nav-group.open .m-sub { display: block; }
.m-sub-title { padding: 10px 0 4px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; }
.nav-mobile .m-sub a { display: block; padding: 9px 2px; font-size: 14px; font-weight: 500; color: #39506b; border-bottom: 0; }
.nav-mobile .m-sub a:hover { color: var(--navy); }
.nav-mobile .m-sub-all { font-weight: 700; color: var(--navy); }
.nav-link::after {
    content: ""; position: absolute; left: 13px; right: 13px; bottom: -1px; height: 2px;
    background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-btn {
    padding: 9px 11px; border-radius: var(--radius); font-weight: 700; font-size: 12px;
    color: #39506b; border: 1px solid var(--line); letter-spacing: .06em; text-transform: uppercase;
}
.lang-btn:hover { border-color: var(--navy); color: var(--navy); }
.icon-btn {
    width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: var(--radius); color: #39506b;
}
.icon-btn:hover { border-color: var(--navy); color: var(--navy); }
.icon-btn svg { width: 17px; height: 17px; }
.header-cta { padding: 13px 20px; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--navy); margin: 4px 0; border-radius: 1px; }
.nav-mobile { display: none; padding: 8px 24px 22px; border-top: 1px solid var(--line); background: #fff; }
.nav-mobile a { display: block; padding: 13px 2px; color: var(--ink); font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--line-2); }
.nav-mobile .btn { margin-top: 16px; color: #fff; }
.nav-mobile.open { display: block; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: var(--navy-deep);
    display: flex; align-items: center;
    padding: 84px 0 124px;
    min-height: 600px;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(90deg, rgba(0, 20, 48, .96) 0%, rgba(0, 26, 60, .82) 42%, rgba(0, 30, 70, .38) 100%),
        var(--hero-image, none);
    background-size: auto, cover;
    background-position: 0 0, center right;
    background-repeat: no-repeat;
}
.hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px;
    background: linear-gradient(180deg, rgba(0, 20, 48, 0), rgba(0, 16, 40, .55));
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 0; }
.hero-content { max-width: 720px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 12px; margin: 0 0 24px; padding: 0;
    background: none; border: 0; border-radius: 0;
    color: var(--sky); font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.hero-badge::before { content: ""; width: 30px; height: 2px; background: var(--sky); border-radius: 0; box-shadow: none; }
.hero h1 { color: #fff; margin-bottom: 22px; max-width: 700px; }
.hero p.lead { font-size: 18.5px; line-height: 1.62; color: rgba(255, 255, 255, .82); max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 0; }
.hero-trust {
    display: flex; flex-wrap: wrap; margin-top: 38px; padding-top: 22px; gap: 0;
    border-top: 1px solid rgba(255, 255, 255, .16); max-width: 660px;
    color: rgba(255, 255, 255, .75); font-size: 13.5px;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 9px; padding-right: 22px; margin-right: 22px; border-right: 1px solid rgba(255, 255, 255, .18); }
.hero-trust span:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7fb2e5; flex-shrink: 0; }

/* legacy hero panel (kept for compatibility) */
.hero-panel { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 24px; }
.hero-panel h3 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.hero-panel .mini-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: 14px; }
.hero-panel .mini-row:last-child { border-bottom: 0; }
.hero-panel .mini-row strong { color: #fff; }
.hero-panel .mini-row span { color: rgba(255, 255, 255, .75); }
.hero-art { display: none; }

/* ---------- Quick access bar ---------- */
.quick-wrap { position: relative; z-index: 5; margin-top: -72px; }
.quick-bar {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #fff; border: 1px solid var(--line);
    box-shadow: 0 22px 60px rgba(0, 28, 70, .14);
}
.quick-item {
    position: relative; display: flex; align-items: center; gap: 15px;
    padding: 24px 44px 24px 26px; border-left: 1px solid var(--line); color: var(--ink);
    transition: background .18s ease;
}
.quick-item:first-child { border-left: 0; }
.quick-item::before {
    content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
    background: var(--navy); transition: width .22s ease;
}
.quick-item:hover { background: var(--sky-2); color: var(--ink); }
.quick-item:hover::before { width: 100%; }
.qi-icon {
    width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    background: var(--sky-2); color: var(--navy); border-radius: var(--radius);
}
.qi-icon svg { width: 21px; height: 21px; }
.qi-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.qi-text strong { font-size: 15px; font-weight: 700; }
.qi-text small { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.quick-item::after {
    content: "→"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
    color: var(--navy); opacity: 0; transition: opacity .18s ease, transform .18s ease;
}
.quick-item:hover::after { opacity: 1; transform: translate(4px, -50%); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg); }
.section.tight { padding: 64px 0; }
.section-head { max-width: 820px; margin: 0 0 44px; text-align: left; }
.section-head.center { margin: 0 auto 44px; text-align: center; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 16.5px; line-height: 1.66; margin: 0; }
.section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.section-top .section-head { margin-bottom: 44px; }
.section-top > .text-link { margin-bottom: 48px; flex-shrink: 0; }
.eyebrow {
    display: block; color: var(--blue); font-weight: 700; font-size: 11.5px;
    letter-spacing: .18em; text-transform: uppercase; margin-bottom: 12px;
}
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Service cards ---------- */
.service-card {
    position: relative; display: flex; flex-direction: column; height: 100%;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 0; color: var(--ink); overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.service-card::before {
    content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; z-index: 2;
    background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.service-card:hover { border-color: #c3d2e2; box-shadow: var(--shadow-sm); transform: translateY(-2px); color: var(--ink); }
.service-card:hover::before { transform: scaleX(1); }
.service-media {
    position: relative; aspect-ratio: 16 / 9; background: var(--sky-2); overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.service-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-media img { transform: scale(1.04); }
.service-icon {
    width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
    background: var(--sky-2); color: var(--navy); margin-bottom: 0; transition: background .18s ease, color .18s ease;
}
.service-media .service-icon svg { width: 24px; height: 24px; }
.service-media.has-img .service-icon {
    position: absolute; top: 16px; left: 16px; z-index: 1; width: 40px; height: 40px;
    background: rgba(255, 255, 255, .95); color: var(--navy); box-shadow: 0 3px 12px rgba(0, 18, 45, .18);
}
.service-media.has-img .service-icon svg { width: 20px; height: 20px; }
.service-card:hover .service-icon { background: var(--navy); color: #fff; }
.service-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.service-card h3 { margin-bottom: 10px; font-size: 19px; }
.service-card p { color: var(--muted); font-size: 14.5px; line-height: 1.62; flex: 1; margin-bottom: 20px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; color: var(--navy); letter-spacing: .01em; }
.text-link::after { content: "→"; transition: transform .18s ease; }
.text-link:hover { color: var(--blue); }
.text-link:hover::after { transform: translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; color: var(--navy); }
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Service group (listing) ---------- */
.service-group.spaced { margin-top: 60px; }
.service-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.service-group-head h2 { margin: 0; font-size: clamp(22px, 2vw, 27px); }
.service-group-head span { color: var(--muted); font-size: 12.5px; letter-spacing: .04em; white-space: nowrap; }

/* ---------- Lanes ---------- */
.lane-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.lane-card {
    position: relative; display: block; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 26px 24px; color: var(--ink);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.lane-card:hover { border-color: #c3d2e2; box-shadow: var(--shadow-sm); color: var(--ink); }
.lane-mode {
    display: inline-flex; padding: 4px 9px; border-radius: 2px; background: var(--sky-2);
    color: var(--navy); font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px;
}
.lane-route { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; margin-bottom: 14px; letter-spacing: -.01em; }
.lane-route .arrow { color: var(--blue); font-weight: 400; }
.lane-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 12.5px; }
.lane-meta strong { color: var(--ink); display: block; font-size: 14.5px; margin-top: 3px; font-weight: 700; }
.lane-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.lane-table th, .lane-table td { padding: 16px; text-align: left; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.lane-table th { background: #fff; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; border-bottom: 1px solid var(--line); }
.lane-table tr:last-child td { border-bottom: 0; }
.lane-table tr:hover td { background: #fafcff; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
    display: inline-flex; padding: 9px 16px; border-radius: 2px; border: 1px solid var(--line);
    background: #fff; color: #40536a; font-weight: 600; font-size: 13px; transition: .18s ease;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Stats band ---------- */
.stats-band {
    background: var(--navy); color: #fff; padding: 56px 48px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    box-shadow: 0 0 0 100vmax var(--navy);
    clip-path: inset(0 -100vmax);
}
.stat-item { padding: 0 28px; border-left: 1px solid rgba(255, 255, 255, .18); }
.stat-item:first-child { border-left: 0; padding-left: 0; }
.stat-item:last-child { padding-right: 0; }
.stat-item strong { display: block; font-size: clamp(34px, 3.6vw, 48px); line-height: 1; letter-spacing: -.03em; font-weight: 700; }
.stat-item span { display: block; margin-top: 10px; color: rgba(255, 255, 255, .68); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Why ---------- */
.why-card { background: transparent; border: 0; border-top: 2px solid var(--navy); border-radius: 0; padding: 24px 0 0; }
.why-card .num { color: var(--blue); font-weight: 800; font-size: 12px; letter-spacing: .14em; }
.why-card h3 { margin: 10px 0 8px; font-size: 18px; }
.why-card p { color: var(--muted); font-size: 14.5px; line-height: 1.62; margin: 0; }

/* ---------- Coverage ---------- */
.coverage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.coverage-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.coverage-card {
    display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
    min-height: 132px; padding: 26px; background: #fff; color: var(--ink);
    transition: background .18s ease, color .18s ease;
}
.coverage-card strong { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.coverage-card span { color: var(--muted); font-size: 12.5px; display: inline-flex; align-items: center; gap: 8px; transition: color .18s ease; }
.coverage-card span::after { content: "→"; }
.coverage-card:hover { background: var(--navy); color: #fff; }
.coverage-card:hover span { color: var(--sky); }

/* ---------- Articles ---------- */
.article-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.article-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; color: var(--ink);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.article-card:hover { border-color: #c3d2e2; box-shadow: var(--shadow-sm); transform: translateY(-2px); color: var(--ink); }
.article-cover { aspect-ratio: 16 / 9; background: var(--sky-2); position: relative; overflow: hidden; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.article-card:hover .article-cover img { transform: scale(1.03); }
.article-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 12px; }
.article-meta span + span::before { content: "·"; margin-right: 10px; color: #b3c0ce; }
.article-card h3 { font-size: 18px; line-height: 1.35; margin-bottom: 10px; }
.article-card p { color: var(--muted); font-size: 14px; line-height: 1.62; flex: 1; margin-bottom: 18px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 920px; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 2px; }
.faq-item summary {
    cursor: pointer; padding: 22px 40px 22px 0; font-weight: 700; font-size: 16.5px;
    list-style: none; position: relative; color: var(--ink); transition: color .18s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    color: var(--navy); font-size: 22px; font-weight: 400; line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { color: var(--navy); }
.faq-item p { color: var(--muted); padding: 0 48px 24px 0; margin: 0; font-size: 15px; line-height: 1.7; }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 40px;
    background: var(--navy); color: #fff; border-radius: 0; padding: 56px 56px;
    box-shadow: 0 0 0 100vmax var(--navy);
    clip-path: inset(0 -100vmax);
}
.cta-band::before {
    content: ""; position: absolute; right: -80px; top: -140px; width: 460px; height: 460px; border-radius: 50%;
    background: radial-gradient(circle, rgba(90, 160, 220, .24), transparent 68%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .76); margin: 0; max-width: 620px; font-size: 15.5px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.cta-actions .btn-primary { background: #fff; color: var(--navy); }
.cta-actions .btn-primary:hover { background: var(--sky); color: var(--navy); }
/* CTA 作为页面最后一块时紧贴 footer，避免底部出现白色留白 */
.section.cta-section { padding-bottom: 0; }

/* ---------- Page hero ---------- */
.page-hero {
    position: relative; overflow: hidden; color: #fff; padding: 62px 0 56px;
    background-color: var(--navy);
    background-image: linear-gradient(90deg, rgba(0, 24, 58, .96) 0%, rgba(0, 32, 78, .9) 58%, rgba(0, 42, 96, .78) 100%), var(--page-hero-image, url('/static/img/hero-1.svg'));
    background-size: auto, cover;
    background-position: 0 0, center 42%;
    background-repeat: no-repeat;
}
.page-hero::after {
    content: ""; position: absolute; right: -120px; top: -180px; width: 620px; height: 620px; border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 166, 226, .22), transparent 65%); pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 900px; font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 14px; }
.page-hero p { color: rgba(255, 255, 255, .78); max-width: 760px; font-size: 17px; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12.5px; margin-bottom: 18px; letter-spacing: .02em; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { color: #a3b1c0; }
.page-hero .breadcrumb { color: rgba(255, 255, 255, .62); }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .62); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb span { color: rgba(255, 255, 255, .45); }
.page-hero .breadcrumb span:last-child { color: rgba(255, 255, 255, .9); }

/* ---------- Panels / certificates ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin-top: 44px; }
.panel h2 { font-size: 24px; margin-bottom: 22px; }
.cert-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.cert-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 2px; margin-bottom: 16px; background: #f7f9fc; border: 1px solid var(--line-2); padding: 8px; }
.cert-card h3 { font-size: 14.5px; margin-bottom: 5px; }
.cert-card p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.55; }
.cert-card .cert-issuer { font-size: 11.5px; color: #94a3b8; margin-top: 6px; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Search ---------- */
.search-form { display: flex; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.search-form input {
    flex: 1; min-width: 220px; padding: 13px 14px; border: 1px solid #cdd8e4; border-radius: 2px;
    font: inherit; font-size: 15px; color: var(--ink); outline: none; transition: border-color .18s ease, box-shadow .18s ease;
}
.search-form input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 38, 100, .09); }
.contact-note { margin-top: 28px; padding: 24px; background: var(--sky-2); border-left: 3px solid var(--navy); }
.contact-note strong { display: block; margin-bottom: 6px; font-size: 15px; }
.contact-note p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }

/* ---------- Detail / prose ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 56px; align-items: start; }
.prose { color: #2c3b4c; font-size: 16.5px; line-height: 1.78; }
.prose > p:first-child { font-size: 18px; color: #3b4b5e; }
.prose h2 { font-size: 26px; margin: 44px 0 16px; padding-top: 6px; }
.prose h3 { font-size: 20px; margin: 32px 0 12px; }
.prose ul, .prose ol { margin: 14px 0 20px; padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.prose img { border-radius: 2px; margin: 22px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; }
.prose th { background: var(--bg); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.prose blockquote { margin: 24px 0; padding: 18px 22px; background: var(--sky-2); border-left: 3px solid var(--navy); color: #3b4b5e; }

.sidebar-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; margin-bottom: 20px; position: sticky; top: 100px;
}
.sidebar-card h3 { font-size: 16px; margin-bottom: 14px; letter-spacing: -.01em; }
.sidebar-card .kv { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; line-height: 1.5; }
.sidebar-card .kv:last-child { border-bottom: 0; }
.sidebar-card .kv span { color: var(--muted); }
.sidebar-card .kv strong { text-align: right; font-weight: 600; flex-shrink: 0; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.form-card h2 { font-size: 24px; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 11.5px; font-weight: 700; color: #40536a; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 14px; border: 1px solid #cdd8e4; border-radius: 2px;
    font: inherit; font-size: 15px; color: var(--ink); background: #fff; outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 38, 100, .09); }
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { color: var(--muted); font-size: 12px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.alert { padding: 14px 16px; border-radius: 2px; margin-bottom: 20px; font-size: 14px; }
.alert-error { background: #fdf2f2; color: #a51f1f; border: 1px solid #f3c9c9; }
.alert-success { background: #eef8f1; color: #1e6b3c; border: 1px solid #bfe3cd; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Track ---------- */
.track-result { margin-top: 32px; }
.timeline { position: relative; margin: 24px 0 0; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline-item { position: relative; padding: 0 0 24px 14px; }
.timeline-item::before {
    content: ""; position: absolute; left: -26px; top: 6px; width: 13px; height: 13px; border-radius: 50%;
    background: #fff; border: 3px solid var(--navy);
}
.timeline-item h4 { margin: 0 0 4px; font-size: 15px; }
.timeline-item .time { color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.timeline-item p { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.status-pill { display: inline-flex; padding: 6px 12px; border-radius: 2px; background: var(--sky-2); color: var(--navy); font-weight: 700; font-size: 12px; letter-spacing: .04em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.contact-grid h2 { font-size: 26px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line-2); color: var(--muted); font-size: 15px; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list strong { display: block; color: var(--ink); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; font-weight: 700; }

/* ---------- Legal / article detail ---------- */
.legal-wrap, .article-wrap { max-width: 880px; margin: 0 auto; }
.article-header { margin-bottom: 30px; }
.article-header h1 { font-size: clamp(30px, 3.8vw, 46px); }
.article-header .meta { color: var(--muted); font-size: 12px; display: flex; flex-wrap: wrap; gap: 12px; letter-spacing: .05em; text-transform: uppercase; }
.article-cover-large { border-radius: 2px; overflow: hidden; margin: 26px 0; background: var(--sky-2); }
.article-cover-large img { width: 100%; max-height: 460px; object-fit: cover; }

/* ---------- Download / search ---------- */
.download-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.download-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.download-item h3 { margin: 0 0 5px; font-size: 17px; }
.download-item p { margin: 0; color: var(--muted); font-size: 14px; }
.search-result { padding: 22px 0; border-bottom: 1px solid var(--line); }
.search-result .type { display: inline-block; font-size: 10.5px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px; }
.search-result h3 { font-size: 19px; margin-bottom: 6px; }
.search-result p { color: var(--muted); margin: 0; font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .7); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.15fr; gap: 48px; padding: 68px 0 48px; }
.footer-col h3 { color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 11px 0; font-size: 14px; line-height: 1.5; }
.footer-col a { color: rgba(255, 255, 255, .7); }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.brand-footer { color: #fff; margin-bottom: 18px; }
.brand-footer strong { color: #fff; font-size: 17px; }
.brand-footer img { width: auto; height: 38px; background: #fff; border-radius: 3px; padding: 4px; }
.footer-about p { color: rgba(255, 255, 255, .6); font-size: 14px; line-height: 1.65; max-width: 340px; }
.social-links { display: flex; gap: 18px; margin-top: 20px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.social-links a { color: rgba(255, 255, 255, .66); }
.social-links a:hover { color: #fff; }
.contact-list li span { color: rgba(255, 255, 255, .45); display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 3px; }
.site-footer .contact-list li { border-bottom-color: rgba(255, 255, 255, .09); padding: 11px 0; font-size: 13.5px; }
.site-footer .contact-list li:first-child { padding-top: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0; font-size: 12.5px; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; color: rgba(255, 255, 255, .5); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255, 255, 255, .6); }
.footer-legal a:hover { color: #fff; }

/* ---------- Cookie / float ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: var(--navy-deep); color: #fff; padding: 18px 24px; border-top: 3px solid var(--blue); }
.cookie-inner { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cookie-inner h4, .cookie-inner strong { color: #fff; margin: 0; font-size: 15px; }
.cookie-inner p { margin: 4px 0 0; color: rgba(255, 255, 255, .66); font-size: 13px; }
.cookie-actions .btn-primary { background: #fff; color: var(--navy); }
.cookie-actions .btn-primary:hover { background: var(--sky); color: var(--navy); }
.cookie-actions .btn-ghost { border-color: rgba(255, 255, 255, .45); }
.cookie-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cookie-link { color: rgba(255, 255, 255, .7); font-size: 13px; text-decoration: underline; }
.wa-float {
    position: fixed; right: 22px; bottom: 86px; z-index: 90; width: 52px; height: 52px; border-radius: 50%;
    background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 28px rgba(37, 211, 102, .32); transition: transform .18s ease;
}
.wa-float:hover { color: #fff; transform: translateY(-2px); }

/* Back to top */
.to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 91;
    width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--navy); color: #fff; border: 0; border-radius: var(--radius);
    box-shadow: 0 10px 24px rgba(0, 28, 70, .22); cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s, background .18s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy-soft); }
.to-top:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 110px 0; }
.error-code { font-size: 96px; font-weight: 800; line-height: 1; color: var(--navy); letter-spacing: -.05em; }
.error-page p { color: var(--muted); max-width: 560px; margin: 16px auto 28px; }

/* ==========================================================================
   Admin
   ========================================================================== */
/* ==========================================================================
   Admin
   ========================================================================== */
.admin-body { background: #f3f6fa; min-height: 100vh; color: #16202e; }
.admin-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
    position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
    padding: 18px 14px 14px; overflow-y: auto; overscroll-behavior: contain; z-index: 80;
    background: linear-gradient(180deg, #00205a 0%, #001845 62%, #001336 100%);
    color: rgba(255, 255, 255, .72);
}
.admin-sidebar::-webkit-scrollbar { width: 6px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 3px; }
.admin-brand {
    display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 700; font-size: 14.5px;
    padding: 2px 8px 18px; margin-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.admin-brand img { height: 32px; width: auto; background: #fff; border-radius: 6px; padding: 3px; }
.admin-brand small { display: block; font-size: 10px; color: rgba(255, 255, 255, .45); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav .group { color: rgba(255, 255, 255, .36); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 18px 10px 7px; }
.admin-nav a {
    display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
    color: rgba(255, 255, 255, .72); font-size: 13.5px; position: relative;
    transition: background .16s ease, color .16s ease;
}
.admin-nav a svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .72; transition: opacity .16s ease, color .16s ease; }
.admin-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-nav a:hover svg { opacity: 1; }
.admin-nav a.active { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; }
.admin-nav a.active svg { opacity: 1; color: #8fc2ee; }
.admin-nav a.active::before { content: ""; position: absolute; left: -14px; top: 7px; bottom: 7px; width: 3px; background: #5aa9ff; border-radius: 0 3px 3px 0; }
.admin-nav-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
.admin-user-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 9px; background: rgba(255, 255, 255, .06); }
.admin-avatar {
    width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
    background: linear-gradient(135deg, #4f9df8, #2f6fd0); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .02em;
}
.admin-user-card strong { display: block; color: #fff; font-size: 12.5px; line-height: 1.25; }
.admin-user-card span { font-size: 10.5px; color: rgba(255, 255, 255, .48); }

/* Main */
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
    position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 14px;
    padding: 13px 28px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px);
    border-bottom: 1px solid #e7ecf3;
}
.admin-topbar h1 { font-size: 18px; margin: 0; letter-spacing: -.015em; }
.admin-topbar .sub { display: block; color: #8a99ab; font-size: 11.5px; margin-top: 1px; font-weight: 400; }
.admin-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.admin-topbar-right .who { display: flex; align-items: center; gap: 8px; color: #4a5d74; font-size: 12.5px; }
.admin-topbar-right .who .admin-avatar { width: 28px; height: 28px; font-size: 11px; }
.admin-content { padding: 24px 28px 56px; max-width: 1500px; width: 100%; }
.admin-sidebar-toggle {
    display: none; width: 38px; height: 38px; align-items: center; justify-content: center;
    border: 1px solid #e2e9f2; background: #fff; border-radius: 9px; color: #33475f; cursor: pointer;
}
.admin-sidebar-toggle svg { width: 18px; height: 18px; }
.admin-overlay { display: none; }

/* Cards */
.admin-card {
    background: #fff; border: 1px solid #e8edf4; border-radius: 12px; padding: 22px;
    margin-bottom: 18px; box-shadow: 0 1px 2px rgba(16, 35, 63, .04);
}
.admin-card.bare { padding: 0; overflow: hidden; }
.admin-card h2 { font-size: 15.5px; margin: 0 0 16px; letter-spacing: -.01em; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-card-head h2 { margin: 0; }

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card {
    display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e8edf4;
    border-radius: 12px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(16, 35, 63, .04);
    transition: box-shadow .2s ease, transform .2s ease;
}
.stat-card:hover { box-shadow: 0 12px 26px rgba(16, 35, 63, .08); transform: translateY(-1px); }
.stat-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.stat-icon svg { width: 20px; height: 20px; }
.stat-icon.blue { background: #e8f1fe; color: #2563eb; }
.stat-icon.amber { background: #fff4e5; color: #d97706; }
.stat-icon.green { background: #e7f7ef; color: #059669; }
.stat-icon.violet { background: #f0ecfe; color: #7c3aed; }
.stat-meta { min-width: 0; }
.stat-meta strong { display: block; font-size: 26px; line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
.stat-meta span { display: block; color: #7b8a9d; font-size: 12px; margin-top: 3px; }
.stat-link { margin-left: auto; color: #a8b6c7; font-size: 16px; transition: transform .16s ease, color .16s ease; }
.stat-card:hover .stat-link { color: var(--navy); transform: translateX(3px); }

/* Page head / toolbar */
.admin-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-page-head h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-page-head .sub { color: #8a99ab; font-size: 12.5px; margin-top: 3px; }
.admin-page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.toolbar .field { margin: 0; }
.toolbar .grow { flex: 1; min-width: 220px; }

/* Tables */
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th {
    background: #f8fafd; color: #6b7c92; font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; padding: 12px 16px; text-align: left; border-bottom: 1px solid #e8edf4; white-space: nowrap;
}
.admin-table td { padding: 14px 16px; border-bottom: 1px solid #eff3f9; vertical-align: middle; }
.admin-table tbody tr { transition: background .14s ease; }
.admin-table tbody tr:hover td { background: #f7fbff; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.cell-strong { display: block; font-weight: 600; color: #16202e; }
.cell-sub { color: #93a1b3; font-size: 11.5px; }
.row-actions { display: flex; gap: 6px; align-items: center; }
.admin-link {
    display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 6px;
    color: #2563eb; font-size: 12.5px; font-weight: 600; background: none; border: 0; cursor: pointer;
    font-family: inherit; transition: background .15s ease, color .15s ease;
}
.admin-link:hover { background: #eef4ff; color: #1d4ed8; }
.admin-link.danger { color: #c2382f; }
.admin-link.danger:hover { background: #fdeeee; color: #a52a22; }
.admin-body .btn.danger { color: #c2382f; border-color: #f3cfcc; }
.admin-body .btn.danger:hover { background: #fdeeee; border-color: #f0bdb8; color: #a52a22; }

/* Badges */
.admin-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px;
    font-size: 11px; font-weight: 600; background: #eef2f7; color: #5a6b80; line-height: 1.2;
}
.admin-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; }
.admin-badge.green { background: #e7f7ef; color: #0b7a4b; }
.admin-badge.red { background: #fdeeee; color: #b3382f; }
.admin-badge.blue { background: #e8f1fe; color: #2563eb; }

/* Pager */
.pager-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.pager-info { color: #7b8a9d; font-size: 13px; }
.pager-info strong { color: #26374a; font-weight: 600; }
.pager-size { display: inline-flex; align-items: center; gap: 6px; color: #8a99ab; font-size: 12px; }
.pager-size a { padding: 4px 9px; border: 1px solid #e2e9f2; border-radius: 6px; background: #fff; color: #5a6b80; font-size: 12px; }
.pager-size a:hover { border-color: #b9cbe0; color: #1c3a63; }
.pager-size a.active { background: #eef4fb; border-color: #b9cbe0; color: var(--navy); font-weight: 600; }
.pager { display: flex; gap: 6px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.pager a {
    min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #e2e9f2; border-radius: 8px; background: #fff; color: #495d75; font-size: 13px;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.pager a:hover { border-color: #b9cbe0; color: #1c3a63; }
.pager a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager a.disabled { opacity: .35; pointer-events: none; }
.pager-dots { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #9aa8b8; }
.filter-links { display: inline-flex; align-items: center; gap: 6px; }
.filter-links a { padding: 6px 12px; border: 1px solid #e2e9f2; border-radius: 8px; background: #fff; color: #5a6b80; font-size: 12.5px; }
.filter-links a:hover { border-color: #b9cbe0; color: #1c3a63; }
.filter-links a.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Forms */
.admin-body .field label { font-size: 11px; letter-spacing: .07em; }
.admin-body .field input, .admin-body .field select, .admin-body .field textarea {
    border-radius: 9px; border-color: #dbe3ee; background: #fbfcff; padding: 10px 12px; font-size: 14px;
}
.admin-body .field input:hover, .admin-body .field select:hover, .admin-body .field textarea:hover { border-color: #c6d3e2; }
.admin-body .field input:focus, .admin-body .field select:focus, .admin-body .field textarea:focus {
    background: #fff; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 38, 100, .1);
}
.admin-form .field { margin-bottom: 14px; }
.admin-form .form-grid { gap: 16px; }
.admin-form textarea { min-height: 96px; }
.admin-form textarea.code { min-height: 320px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.55; }
.form-section { padding-top: 22px; margin-top: 22px; border-top: 1px solid #eef2f8; }
.form-section:first-of-type { padding-top: 0; margin-top: 0; border-top: 0; }
.form-section-title { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8a99ab; margin-bottom: 14px; }
.form-actions {
    position: sticky; bottom: 0; z-index: 20; display: flex; gap: 10px; flex-wrap: wrap;
    margin: 22px -22px -22px; padding: 14px 22px; border-radius: 0 0 12px 12px;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-top: 1px solid #eef2f8;
}
.char-count { font-size: 11px; color: #93a1b3; align-self: flex-end; margin-top: -2px; }
.char-count.over { color: #c2382f; }

/* Tabs */
.admin-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #eef2f8; border-radius: 10px; border: 0; margin-bottom: 18px; }
.admin-tab {
    padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #5d6f85;
    background: none; border: 0; cursor: pointer; transition: background .16s ease, color .16s ease;
}
.admin-tab:hover { color: #1c3a63; }
.admin-tab.active { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(16, 35, 63, .14); }
.tab-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-left: 7px; vertical-align: middle; }
.tab-ok { background: #22a06b; }
.tab-todo { background: #cfd9e5; }
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; animation: adminFade .22s ease; }

/* Key-value rows */
.admin-kv { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #eff3f9; font-size: 13.5px; }
.admin-kv:last-child { border-bottom: 0; }
.admin-kv > span { color: #7b8a9d; }
.admin-kv > strong { text-align: right; font-weight: 600; word-break: break-word; }

/* Notes timeline */
.note-list { position: relative; margin: 0; padding: 0; list-style: none; }
.note-item { position: relative; padding: 0 0 20px 22px; border-left: 1px solid #e5ecf5; margin-left: 5px; }
.note-item::before { content: ""; position: absolute; left: -5px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid #9db4cc; }
.note-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.note-item time { display: block; color: #93a1b3; font-size: 11px; margin-bottom: 3px; }

/* Quick actions */
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-link {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #e8edf4;
    border-radius: 10px; font-size: 13px; color: #33475f; transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.quick-link:hover { border-color: #c9d9ea; background: #f8fbff; color: #16202e; }
.quick-link svg { width: 16px; height: 16px; color: #5a86bd; flex-shrink: 0; }
.admin-cols { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }

/* Media library */
.upload-zone {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 22px; border: 1px dashed #cfdaea; border-radius: 10px; background: #fafcff;
}
.upload-zone input[type="file"] { font-size: 13px; color: #5d6f85; max-width: 340px; }
.upload-zone input[type="file"]::file-selector-button {
    margin-right: 12px; padding: 8px 14px; border: 1px solid #dbe3ee; border-radius: 8px;
    background: #fff; color: #33475f; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.upload-zone input[type="file"]::file-selector-button:hover { border-color: #b9cbe0; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.media-item {
    background: #fff; border: 1px solid #e8edf4; border-radius: 10px; overflow: hidden;
    transition: box-shadow .18s ease, transform .18s ease;
}
.media-item:hover { box-shadow: 0 12px 26px rgba(16, 35, 63, .08); transform: translateY(-1px); }
.media-thumb { aspect-ratio: 16 / 10; background: #f3f6fa; display: grid; place-items: center; overflow: hidden; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.media-item:hover .media-thumb img { transform: scale(1.03); }
.media-file { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #7b8a9d; }
.media-body { padding: 12px 14px 14px; }
.media-url { display: block; font-size: 11.5px; color: #5d6f85; word-break: break-all; line-height: 1.5; height: 34px; overflow: hidden; }

/* Alerts */
.admin-content > .alert-success {
    position: fixed; top: 78px; right: 28px; z-index: 200; max-width: 360px; width: auto;
    padding: 13px 18px 13px 16px; border-radius: 10px; background: #fff; border: 1px solid #cfe9da;
    border-left: 4px solid #22a06b; color: #146c43; font-size: 13px; font-weight: 600;
    box-shadow: 0 18px 44px rgba(16, 35, 63, .16);
    animation: toastIn .32s cubic-bezier(.2, .8, .2, 1);
}
.admin-content > .alert-success::before { content: "✓"; margin-right: 8px; color: #22a06b; font-weight: 800; }
.admin-content > .alert-success.is-hide { opacity: 0; transform: translateX(14px); transition: opacity .28s ease, transform .28s ease; }

/* Empty state */
.admin-empty { padding: 44px 20px; text-align: center; color: #93a1b3; font-size: 13px; border: 0; border-radius: 0; }
.admin-empty::before {
    content: ""; display: block; width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 12px;
    background: #f1f5fa; border: 1px dashed #cfdaea;
}

/* Login */
.admin-login {
    min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; padding: 0;
    background: #f4f7fb;
}
.login-visual {
    position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
    padding: 52px; color: #fff;
    background: linear-gradient(155deg, rgba(0, 22, 54, .9) 0%, rgba(0, 40, 88, .82) 60%, rgba(0, 48, 104, .72) 100%),
        url('/static/img/admin-login-bg.jpg') center / cover no-repeat;
}
.login-visual .login-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; }
.login-visual .login-brand img { height: 40px; width: auto; background: #fff; border-radius: 7px; padding: 4px; }
.login-visual h2 { color: #fff; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.22; max-width: 520px; margin: 0; letter-spacing: -.02em; }
.login-visual p { color: rgba(255, 255, 255, .68); font-size: 14px; max-width: 460px; margin: 14px 0 0; }
.login-visual .login-points { display: flex; gap: 26px; flex-wrap: wrap; color: rgba(255, 255, 255, .62); font-size: 12px; }
.login-visual .login-points span { display: inline-flex; align-items: center; gap: 7px; }
.login-visual .login-points span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8fc2ee; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.admin-login-box { width: min(400px, 100%); background: transparent; border-radius: 0; padding: 0; box-shadow: none; }
.admin-login-box .login-title { font-size: 24px; margin: 0 0 6px; letter-spacing: -.02em; }
.admin-login-box .login-sub { color: #7b8a9d; font-size: 13px; margin: 0 0 26px; }
.admin-login-box .field { margin-bottom: 16px; }
.admin-login-box .field input { padding: 12px 14px; }
.admin-login-box .btn { width: 100%; margin-top: 6px; padding: 13px; }
.admin-login-hint { margin-top: 20px; padding: 13px; background: #f6f9fd; border: 1px dashed #d3dfec; border-radius: 9px; color: #7b8a9d; font-size: 12px; line-height: 1.6; }
.login-back { display: block; text-align: center; margin-top: 22px; color: #8a99ab; font-size: 12px; }
.login-back:hover { color: var(--navy); }

@keyframes toastIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes adminFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .nav-desktop { display: none; }
    .menu-toggle { display: block; }
    .header-cta { display: none; }
    .mega-panel { display: none !important; }
    .hero-inner { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; gap: 36px; }
    .sidebar-card { position: static; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: fixed; left: 0; top: 0; bottom: 0; width: 272px; height: 100vh;
        transform: translateX(-100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); z-index: 90;
    }
    .admin-body.sidebar-open .admin-sidebar { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .45); }
    .admin-body.sidebar-open .admin-overlay { display: block; position: fixed; inset: 0; background: rgba(8, 18, 38, .45); z-index: 85; }
    .admin-sidebar-toggle { display: inline-flex; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-cols { grid-template-columns: 1fr; }
    .admin-topbar { padding: 11px 18px; }
    .admin-content { padding: 18px 18px 44px; }
    .login-visual { padding: 40px; }
    .quick-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-item:nth-child(3) { border-left: 0; }
    .quick-item:nth-child(n+3) { border-top: 1px solid var(--line); }
    .grid-3, .lane-grid, .article-list, .coverage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .coverage-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .container { width: calc(100% - 32px); }
    .topbar-left .dot, .topbar-left a:first-child { display: none; }
    .topbar-inner { justify-content: center; }
    .topbar-right { gap: 8px; }
    .header-inner { min-height: 64px; }
    .brand-text small { display: none; }
    .brand img { height: 34px; width: auto; }
    .icon-btn { display: none; }
    .hero { padding: 64px 0 116px; min-height: 0; }
    .hero::before { background-position: 60% center; }
    .hero h1 { font-size: clamp(30px, 8vw, 42px); }
    .hero p.lead { font-size: 16px; }
    .hero-trust { flex-direction: column; gap: 10px; }
    .hero-trust span { border-right: 0; margin-right: 0; padding-right: 0; }
    .quick-wrap { margin-top: -52px; }
    .quick-bar { grid-template-columns: 1fr; }
    .quick-item { border-left: 0; }
    .quick-item + .quick-item { border-top: 1px solid var(--line); }
    .quick-item::after { display: none; }
    .section { padding: 56px 0; }
    .section-head { margin-bottom: 32px; }
    .section-head p { font-size: 15px; }
    .section-top { flex-direction: column; align-items: flex-start; gap: 0; }
    .section-top > .text-link { margin-bottom: 28px; }
    .grid-2, .grid-3, .grid-4, .lane-grid, .article-list, .coverage-grid { grid-template-columns: 1fr; }
    .coverage-grid { gap: 1px; }
    .stats-band { grid-template-columns: repeat(2, 1fr); padding: 36px 24px; gap: 28px 0; }
    .stat-item { padding: 0 0 0 20px; }
    .stat-item:nth-child(odd) { border-left: 0; padding-left: 0; }
    .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 26px; gap: 26px; }
    .cta-actions { width: 100%; }
    .cta-actions .btn { flex: 1; }
    .page-hero { padding: 42px 0 38px; }
    .footer-grid { grid-template-columns: 1fr; padding: 46px 0 30px; gap: 30px; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
    .form-grid { grid-template-columns: 1fr; }
    .form-card { padding: 24px 20px; }
    .contact-grid { grid-template-columns: 1fr; gap: 34px; }
    .cookie-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
    .cookie-actions { flex-wrap: wrap; }
    .wa-float { bottom: 120px; right: 14px; }
    .to-top { bottom: 14px; right: 14px; width: 44px; height: 44px; }
    .download-item { flex-direction: column; align-items: flex-start; }
    .prose { font-size: 16px; }
    .admin-content { padding: 14px 14px 40px; }
    .stat-grid { grid-template-columns: 1fr; }
    .admin-page-head { flex-direction: column; align-items: flex-start; }
    .admin-topbar { padding: 10px 14px; }
    .admin-topbar h1 { font-size: 16px; }
    .admin-topbar-right .who span { display: none; }
    .admin-topbar-right .who { gap: 6px; }
    .quick-grid { grid-template-columns: 1fr; }
    .admin-card { padding: 18px 16px; }
    .form-actions { margin: 20px -16px -18px; padding: 12px 16px; }
    .admin-tabs { display: flex; width: 100%; }
    .admin-tab { flex: 1; text-align: center; }
    .table-wrap { margin: 0 -16px; padding: 0 16px; }
    .admin-login { grid-template-columns: 1fr; }
    .login-visual { display: none; }
    .login-panel { min-height: 100vh; }
    .admin-topbar-right .btn { display: none; }
    .admin-content > .alert-success { left: 14px; right: 14px; top: 70px; max-width: none; }
}
