/* ============================================================
   ZouIC Neon Cyber Theme v3.0
   Loaded after zouic-design-system.css / zouic-design-optimizations.css.
   Deep-space canvas + electric cyan / neon magenta / ultraviolet,
   glassmorphism panels and HUD details.
   ============================================================ */

/* --- 1. Tokens --- */
:root {
    --color-primary: #00e5ff;
    --color-primary-hover: #5cf0ff;
    --color-primary-muted: rgba(0, 229, 255, 0.12);
    --color-secondary: #ff006e;
    --color-secondary-hover: #ff4d94;
    --color-secondary-muted: rgba(255, 0, 110, 0.14);
    --color-accent: #a78bfa;
    --color-accent-hover: #c4b5fd;
    --color-accent-muted: rgba(167, 139, 250, 0.16);

    --color-bg-primary: #0a0a1f;
    --color-bg-secondary: #10102e;
    --color-bg-tertiary: #151538;
    --color-bg-elevated: #191940;
    --color-bg-overlay: rgba(10, 10, 31, 0.92);

    --color-text-primary: #eaf0ff;
    --color-text-secondary: #9ca3c4;
    --color-text-tertiary: #6b7294;
    --color-text-inverse: #050b18;

    --color-border-default: #23234a;
    --color-border-muted: #1b1b3d;
    --color-border-accent: rgba(0, 229, 255, 0.45);

    --color-success: #34d399;
    --color-success-muted: rgba(52, 211, 153, 0.14);
    --color-warning: #fbbf24;
    --color-warning-muted: rgba(251, 191, 36, 0.14);
    --color-danger: #fb7185;
    --color-danger-muted: rgba(251, 113, 133, 0.14);

    --font-family-display: 'Orbitron', 'HarmonyOS Sans SC', 'MiSans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-family-hud: 'Share Tech Mono', 'JetBrains Mono', 'SF Mono', Consolas, monospace;

    --radius-lg: 0.625rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-full: 999px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.38);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 28px 70px rgba(0, 0, 0, 0.55);
    --shadow-glow-primary: 0 0 28px rgba(0, 229, 255, 0.22);
    --shadow-glow-secondary: 0 0 28px rgba(255, 0, 110, 0.22);
    --shadow-glow-accent: 0 0 28px rgba(167, 139, 250, 0.22);

    --glass-fill: rgba(255, 255, 255, 0.045);
    --glass-fill-strong: rgba(255, 255, 255, 0.07);
    --glass-stroke: rgba(255, 255, 255, 0.1);
    --glass-stroke-hover: rgba(0, 229, 255, 0.45);
    --glass-blur: 16px;
    --hairline: rgba(255, 255, 255, 0.08);
}

/* --- Layout utilities referenced by legacy templates --- */
.block { display: block; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.h-full { height: 100%; }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-8 > * + * { margin-top: 2rem; }

main h1,
main h2 {
    font-family: var(--font-family-display);
}

/* Sizing, radius, color and tint utilities used by page templates. */
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-11 { width: 2.75rem; }
.h-11 { height: 2.75rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.w-32 { width: 8rem; }
.h-32 { height: 8rem; }
.h-48 { height: 12rem; }

.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

.text-primary { color: var(--color-primary) !important; }
.text-accent { color: var(--color-accent) !important; }

.bg-primary\/10 { background-color: rgba(0, 229, 255, 0.1) !important; }
.bg-primary\/20 { background-color: rgba(0, 229, 255, 0.2) !important; }
.bg-secondary\/10 { background-color: rgba(255, 0, 110, 0.1) !important; }
.bg-secondary\/20 { background-color: rgba(255, 0, 110, 0.2) !important; }
.bg-secondary\/30 { background-color: rgba(255, 0, 110, 0.3) !important; }
.bg-secondary\/50 { background-color: rgba(255, 0, 110, 0.5) !important; }
.bg-accent\/10 { background-color: rgba(167, 139, 250, 0.1) !important; }
.bg-accent\/20 { background-color: rgba(167, 139, 250, 0.2) !important; }

/* Spacing utilities beyond Bootstrap's 0-5 range, used across page templates. */
.p-6 { padding: var(--space-6) !important; }
.p-8 { padding: var(--space-8) !important; }
.px-6 { padding-left: var(--space-6) !important; padding-right: var(--space-6) !important; }
.py-8 { padding-top: var(--space-8) !important; padding-bottom: var(--space-8) !important; }
.py-16 { padding-top: var(--space-16) !important; padding-bottom: var(--space-16) !important; }
.pt-16 { padding-top: var(--space-16) !important; }
.pb-16 { padding-bottom: var(--space-16) !important; }
.pt-24 { padding-top: var(--space-24) !important; }
.pb-8 { padding-bottom: var(--space-8) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mb-12 { margin-bottom: var(--space-12) !important; }

/* --- 2. Base canvas --- */
html {
    color-scheme: dark;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

/* Fixed navbar clearance; the home hero keeps its own full-bleed top edge. */
main {
    padding-top: 64px;
}

.hero-zouic {
    margin-top: -64px;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    letter-spacing: 0.005em;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
}

main,
.footer-zouic {
    position: relative;
    z-index: 1;
}

::selection {
    background: rgba(0, 229, 255, 0.24);
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #08081a;
}

::-webkit-scrollbar-thumb {
    background: #1f3b5c;
    border-radius: 999px;
    border: 2px solid #08081a;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 255, 0.55);
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* --- 3. Typography --- */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.01em;
}

.font-mono,
code,
kbd,
pre,
samp {
    font-family: var(--font-family-mono);
}

a {
    color: var(--color-primary);
    text-decoration-color: rgba(0, 229, 255, 0.35);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-hover);
}

/* HUD helpers */
.hud-kicker,
.hud-label {
    font-family: var(--font-family-hud);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.hud-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.hud-kicker::before {
    content: '';
    width: 18px;
    height: 1px;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.hud-panel {
    background: var(--glass-fill);
    border: 1px solid var(--glass-stroke);
    border-radius: var(--radius-xl);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow-md);
}

.neon-text {
    color: var(--color-primary);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.55), 0 0 40px rgba(0, 229, 255, 0.25);
}

/* --- 4. Navbar --- */
.navbar-zouic {
    background: rgba(10, 10, 31, 0.78);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.navbar-zouic::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: rgba(0, 229, 255, 0.55);
    pointer-events: none;
}

.navbar-zouic.navbar-scrolled {
    background: rgba(8, 8, 26, 0.9);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
}

.navbar-zouic .navbar-brand {
    font-family: var(--font-family-display);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffffff;
    gap: 0.55rem;
}

.navbar-zouic .navbar-brand i {
    color: var(--color-primary);
    font-size: 1.15rem;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.8));
}

.navbar-zouic .navbar-brand:hover {
    color: var(--color-primary);
    text-shadow: 0 0 18px rgba(0, 229, 255, 0.5);
}

.navbar-zouic .nav-link {
    color: var(--color-text-secondary);
    font-size: 0.86rem;
    letter-spacing: 0.02em;
    border-radius: 8px;
}

.navbar-zouic button.nav-link {
    background: none;
    border: 0;
}

.navbar-zouic .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.navbar-zouic .nav-link.active {
    color: var(--color-primary);
    text-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
}

.navbar-zouic .nav-link.active::after {
    height: 2px;
    background: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
}

.navbar-toggler {
    border-color: var(--glass-stroke);
    color: var(--color-text-primary);
}

.navbar-toggler-icon {
    filter: invert(1) brightness(1.4);
}

.dropdown-menu-dark {
    background: rgba(16, 16, 46, 0.96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid var(--glass-stroke);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 0.45rem;
}

.dropdown-menu-dark .dropdown-item {
    border-radius: 8px;
    color: var(--color-text-secondary);
    font-size: 0.86rem;
    padding: 0.5rem 0.7rem;
}

.dropdown-menu-dark .dropdown-item:hover,
.dropdown-menu-dark .dropdown-item:focus {
    background: rgba(0, 229, 255, 0.1);
    color: #ffffff;
}

.dropdown-menu-dark .dropdown-divider {
    border-color: var(--hairline);
}

/* --- 5. Buttons --- */
.btn-zouic {
    border-radius: var(--radius-full);
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.btn-zouic-primary {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.25), 0 8px 24px rgba(0, 229, 255, 0.22);
}

.btn-zouic-primary:hover,
.btn-zouic-primary:focus {
    background: #ffffff;
    color: var(--color-text-inverse);
    box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.4), 0 10px 34px rgba(0, 229, 255, 0.38);
    transform: translateY(-1px);
}

.btn-zouic-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 229, 255, 0.32);
    color: var(--color-text-primary);
}

.btn-zouic-secondary:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.65);
    color: #ffffff;
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.2);
}

.btn-zouic-ghost {
    color: var(--color-text-secondary);
}

.btn-zouic-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-primary);
}

.btn-primary {
    --bs-btn-bg: var(--color-primary);
    --bs-btn-border-color: var(--color-primary);
    --bs-btn-color: var(--color-text-inverse);
    --bs-btn-hover-bg: #ffffff;
    --bs-btn-hover-border-color: #ffffff;
    --bs-btn-hover-color: var(--color-text-inverse);
    --bs-btn-active-bg: #8ff4ff;
    --bs-btn-active-border-color: #8ff4ff;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.btn-outline-light {
    border-radius: var(--radius-full);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text-primary);
}

.btn-outline-light:hover {
    background: rgba(0, 229, 255, 0.12);
    border-color: rgba(0, 229, 255, 0.6);
    color: #ffffff;
}

/* --- 6. Badges & chips --- */
.badge-zouic {
    border-radius: 999px;
    font-family: var(--font-family-hud);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    padding: 0.28rem 0.65rem;
}

.badge-zouic-primary {
    background: rgba(0, 229, 255, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(0, 229, 255, 0.35);
}

.badge-zouic-secondary {
    background: rgba(255, 0, 110, 0.1);
    color: #ff77b0;
    border: 1px solid rgba(255, 0, 110, 0.35);
}

.badge-zouic-accent {
    background: rgba(167, 139, 250, 0.12);
    color: var(--color-accent);
    border: 1px solid rgba(167, 139, 250, 0.35);
}

.badge-primary {
    background-color: rgba(0, 229, 255, 0.12);
    color: var(--color-primary);
    border: 1px solid rgba(0, 229, 255, 0.32);
}

.badge-secondary {
    background-color: rgba(255, 0, 110, 0.12);
    color: #ff77b0;
    border: 1px solid rgba(255, 0, 110, 0.3);
}

.badge-accent {
    background-color: rgba(167, 139, 250, 0.14);
    color: var(--color-accent);
    border: 1px solid rgba(167, 139, 250, 0.32);
}

.badge-zouic-soft {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-stroke);
    color: var(--color-text-secondary);
}

/* --- 7. Inputs --- */
.input-zouic,
.form-control,
.form-select,
.search-input {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--color-border-default);
    border-radius: 12px;
    color: var(--color-text-primary);
    min-height: 44px;
}

.input-zouic::placeholder,
.form-control::placeholder,
.search-input::placeholder {
    color: var(--color-text-tertiary);
}

.input-zouic:focus,
.form-control:focus,
.form-select:focus,
.search-input:focus {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(0, 229, 255, 0.7);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14), 0 0 24px rgba(0, 229, 255, 0.16);
    color: #ffffff;
}

.form-select option {
    background-color: #10102e;
    color: var(--color-text-primary);
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--color-border-default);
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.form-range::-webkit-slider-thumb {
    background: var(--color-primary);
}

/* --- 8. Hero --- */
.hero-zouic {
    background: #0a0a1f;
    padding: clamp(5.5rem, 8vw, 8rem) 0 clamp(4rem, 6vw, 6rem);
}

.hero-decoration-grid {
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.055) 1px, transparent 1px);
    background-size: 56px 56px;
}

.hero-decoration-circle {
    border-color: rgba(0, 229, 255, 0.14);
}

.hero-decoration-circle-2 {
    border-color: rgba(255, 0, 110, 0.14);
}

.hero-decoration-circle-3 {
    border-color: rgba(167, 139, 250, 0.16);
}

.hero-hud-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
    font-family: var(--font-family-hud);
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--color-text-tertiary);
}

.hero-hud-kicker::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.9);
}

.hero-hud-kicker strong {
    color: var(--color-secondary);
    font-weight: 400;
    text-shadow: 0 0 12px rgba(255, 0, 110, 0.6);
}

.hero-visual-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.24rem 0.55rem;
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 4px;
    background: rgba(8, 8, 26, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-family: var(--font-family-hud);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    color: var(--color-primary);
    animation: hudTagFlicker 6s steps(1, end) infinite;
}

@keyframes hudTagFlicker {
    0%, 92%, 100% { opacity: 1; }
    94% { opacity: 0.45; }
    96% { opacity: 1; }
    97% { opacity: 0.6; }
}

.hero-badge {
    background: rgba(0, 229, 255, 0.07);
    border: 1px solid rgba(0, 229, 255, 0.38);
    border-radius: 6px;
    color: var(--color-primary);
    font-family: var(--font-family-hud);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.12);
}

.hero-badge-dot {
    background: var(--color-success);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
    animation: hudDotPulse 2.4s ease-in-out infinite;
}

@keyframes hudDotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5), 0 0 10px rgba(52, 211, 153, 0.9); }
    50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0), 0 0 12px rgba(52, 211, 153, 0.9); }
}

.hero-zouic-title {
    font-size: clamp(2.2rem, 4.6vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: #e9fbff;
    filter: drop-shadow(0 0 28px rgba(0, 229, 255, 0.28));
}

.hero-zouic-subtitle {
    color: var(--color-text-secondary);
    font-size: 1.06rem;
    line-height: 1.8;
}

.hero-search-group {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 14px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 40px rgba(0, 0, 0, 0.35);
}

.hero-search-group:focus-within {
    border-color: rgba(0, 229, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14), 0 0 44px rgba(0, 229, 255, 0.2);
}

.hero-search-icon {
    color: var(--color-primary);
}

.hero-search-btn {
    border-radius: 0 12px 12px 0 !important;
    padding-inline: 1.5rem;
}

#pageSearchForm .input-group {
    flex-wrap: nowrap;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 14px;
    overflow: hidden;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

#pageSearchForm .input-group:focus-within {
    border-color: rgba(0, 229, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14), 0 0 44px rgba(0, 229, 255, 0.2);
}

#pageSearchForm .form-control,
#pageSearchForm .form-select {
    border: 0;
    background: transparent;
}

#pageSearchForm .form-select {
    flex: 0 0 auto;
    width: auto;
    border-left: 1px solid var(--hairline) !important;
    border-radius: 0;
}

#pageSearchForm .btn-zouic {
    border-radius: 0;
    padding-inline: 1.4rem;
}

.hero-tags-label {
    font-family: var(--font-family-hud);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--color-text-tertiary);
}

.hero-visual {
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: var(--radius-2xl);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 60px rgba(0, 229, 255, 0.18),
        0 30px 70px rgba(0, 0, 0, 0.55);
    isolation: isolate;
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border-radius: var(--radius-2xl);
    background:
        linear-gradient(var(--color-primary), var(--color-primary)) left top / 26px 2px no-repeat,
        linear-gradient(var(--color-primary), var(--color-primary)) left top / 2px 26px no-repeat,
        linear-gradient(var(--color-primary), var(--color-primary)) right top / 26px 2px no-repeat,
        linear-gradient(var(--color-primary), var(--color-primary)) right top / 2px 26px no-repeat,
        linear-gradient(var(--color-primary), var(--color-primary)) left bottom / 26px 2px no-repeat,
        linear-gradient(var(--color-primary), var(--color-primary)) left bottom / 2px 26px no-repeat,
        linear-gradient(var(--color-primary), var(--color-primary)) right bottom / 26px 2px no-repeat,
        linear-gradient(var(--color-primary), var(--color-primary)) right bottom / 2px 26px no-repeat;
    opacity: 0.85;
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.8));
}

.hero-visual::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 22%;
    z-index: 2;
    pointer-events: none;
    background: rgba(0, 229, 255, 0.14);
    mix-blend-mode: screen;
    animation: hudScan 7s linear infinite;
}

@keyframes hudScan {
    0% { transform: translateY(-110%); opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { transform: translateY(460%); opacity: 0; }
}

.hero-visual-overlay {
    background: rgba(10, 10, 31, 0.28);
}

.hero-floating-icon {
    background: rgba(16, 16, 46, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--color-primary);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 229, 255, 0.18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Hero stat cards */
.stat-card {
    background: var(--glass-fill);
    border: 1px solid var(--glass-stroke);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.stat-card:hover {
    border-color: var(--glass-stroke-hover);
    background: var(--glass-fill-strong);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 26px rgba(0, 229, 255, 0.16);
}

.stat-card-icon-wrapper {
    background: rgba(0, 229, 255, 0.08);
}

.stat-card-value,
.stats-bar-number,
.counter,
.metric-value {
    font-family: var(--font-family-display);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.stat-card-value {
    color: #ffffff;
}

.stat-card-label {
    color: var(--color-text-tertiary);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

/* --- 9. Stats bar --- */
.stats-bar {
    background: rgba(16, 16, 46, 0.66);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.stats-bar-number {
    font-size: 1.75rem;
    color: var(--color-primary);
    text-shadow: 0 0 22px rgba(0, 229, 255, 0.35);
}

.stats-bar-label {
    font-family: var(--font-family-hud);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.68rem;
    color: var(--color-text-tertiary);
}

.stats-bar-divider {
    background: rgba(0, 229, 255, 0.4);
}

/* --- 10. Sections --- */
.section-zouic-alt {
    background-color: rgba(16, 16, 46, 0.5);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.section-bg-gradient-1 {
    background: #0c1430;
}

.section-bg-gradient-2 {
    background: #180a26;
}

.section-bg-gradient-3 {
    background: #081c24;
}

.section-grid-overlay::after {
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
}

.section-zouic-badge {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.24);
    border-radius: 6px;
    color: var(--color-primary);
    font-family: var(--font-family-hud);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.32rem 0.7rem;
}

main {
    counter-reset: secindex;
}

.section-zouic {
    counter-increment: secindex;
}

.section-zouic-badge::before {
    content: counter(secindex, decimal-leading-zero) " //";
    margin-right: 0.1rem;
    opacity: 0.55;
    font-family: var(--font-family-hud);
}

.section-zouic-title {
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #ffffff;
}

.section-zouic-title::after {
    content: '';
    display: block;
    width: 44px;
    height: 2px;
    margin-top: 0.7rem;
    background: var(--color-primary);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

.section-zouic-header {
    margin-bottom: var(--space-8);
}

.section-title {
    color: #ffffff;
}

.section-title::after {
    background: var(--color-primary);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.55);
}

/* --- 11. Cards --- */
.card-zouic,
.card-dark,
.feature-card-enhanced,
.platform-tile,
.ext-card,
.board-card,
.newsletter-card,
.cta-card,
.author-card,
.chat-widget-container,
.hw-toolbox-item,
.feature-card {
    background: var(--glass-fill);
    border: 1px solid var(--glass-stroke);
    border-radius: var(--radius-2xl);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 30px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
}

.card-zouic:hover,
.card-dark:hover,
.feature-card-enhanced:hover,
.platform-tile:hover,
.ext-card:hover,
.board-card:hover,
.hw-toolbox-item:hover,
.feature-card:hover {
    background: var(--glass-fill-strong);
    border-color: var(--glass-stroke-hover);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 32px rgba(0, 229, 255, 0.16), 0 20px 44px rgba(0, 0, 0, 0.4);
}

.card-zouic-primary:hover,
.card-zouic-accent:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 32px rgba(0, 229, 255, 0.18);
}

.card-zouic-hw,
.board-card,
.ext-card {
    border-radius: var(--radius-2xl);
}

.card-zouic-hw-chip,
.board-spec-chip,
.ext-chip,
.ext-card-tag {
    font-family: var(--font-family-hud);
    letter-spacing: 0.06em;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.28);
    color: var(--color-primary);
    border-radius: 6px;
}

.card-zouic-hw:hover {
    border-color: var(--glass-stroke-hover);
    box-shadow: 0 0 34px rgba(0, 229, 255, 0.18), 0 24px 50px rgba(0, 0, 0, 0.45);
}

.card-zouic-hw-specs .hw-spec-value,
.hw-spec-value {
    font-family: var(--font-family-hud);
    letter-spacing: 0.02em;
}

.feature-card-enhanced-icon {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 22px rgba(0, 229, 255, 0.08);
    border-radius: 14px;
}

.feature-card-enhanced-title {
    color: #ffffff;
}

.feature-card-enhanced-desc {
    color: var(--color-text-secondary);
}

.platform-tile-count {
    font-family: var(--font-family-display);
    color: var(--color-primary);
}

.platform-tile-icon {
    color: var(--color-primary);
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.4));
}

.newsletter-card,
.cta-card {
    background: rgba(16, 16, 46, 0.72);
    border: 1px solid rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 60px rgba(0, 229, 255, 0.08), 0 30px 60px rgba(0, 0, 0, 0.4);
}

.author-card {
    background: rgba(16, 16, 46, 0.55);
    border: 1px solid var(--hairline);
}

.author-card-avatar {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.35);
    color: var(--color-primary);
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.18);
}

.author-card-planet {
    border: 1px solid rgba(255, 0, 110, 0.4);
    color: #ff77b0;
    background: rgba(255, 0, 110, 0.1);
    border-radius: var(--radius-full);
    padding: 0.35rem 0.85rem;
}

.author-card-planet:hover {
    background: rgba(255, 0, 110, 0.2);
    color: #ffffff;
}

/* --- 12. Sub-page hero & section backgrounds --- */
.page-hero::before {
    background: rgba(10, 10, 31, 0.9);
}

.page-hero h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 0 34px rgba(0, 229, 255, 0.22);
}

.why-zouic-bg,
.cta-section-bg,
.topic-section-bg {
    background-color: #0a0a1f;
}

.why-zouic-bg {
    background-image:
        rgba(10, 10, 31, 0.88),
        url('/static/images/sections/why-zouic-bg.jpg');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-attachment: fixed, fixed, fixed;
}

.cta-section-bg {
    background-image:
        rgba(10, 10, 31, 0.85),
        url('/static/images/sections/cta-bg.jpg');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-attachment: fixed, fixed, fixed;
}

.topic-card,
.topic-card-bg {
    border-radius: var(--radius-2xl);
}

.topic-card {
    border: 1px solid var(--glass-stroke);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 40px rgba(0, 0, 0, 0.35);
}

.topic-card:hover {
    border-color: var(--glass-stroke-hover);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 36px rgba(0, 229, 255, 0.16);
}

/* --- 13. Tables, lists, pagination --- */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--color-text-secondary);
    --bs-table-border-color: var(--color-border-muted);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-hover-bg: rgba(0, 229, 255, 0.06);
    --bs-table-hover-color: #ffffff;
}

.table thead th {
    font-family: var(--font-family-hud);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    border-bottom: 1px solid var(--hairline);
}

.list-group-item,
.dropdown-item {
    color: var(--color-text-secondary);
}

.list-group-item {
    background: transparent;
    border-color: var(--color-border-muted);
}

.pagination {
    --bs-pagination-bg: transparent;
    --bs-pagination-border-color: var(--color-border-default);
    --bs-pagination-color: var(--color-text-secondary);
    --bs-pagination-hover-bg: rgba(0, 229, 255, 0.1);
    --bs-pagination-hover-color: #ffffff;
    --bs-pagination-hover-border-color: rgba(0, 229, 255, 0.45);
    --bs-pagination-active-bg: var(--color-primary);
    --bs-pagination-active-border-color: var(--color-primary);
    --bs-pagination-active-color: var(--color-text-inverse);
    --bs-pagination-disabled-bg: transparent;
    --bs-pagination-disabled-border-color: var(--color-border-muted);
}

.pagination .page-link {
    border-radius: 10px;
    margin: 0 3px;
}

/* 静态分页（/source/<platform>/page/N/、/all-projects/page/N/）：
   直接以 <a class="page-link"> 排列，不套 .page-item 包裹。 */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 2rem 0 0.75rem;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.75rem;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1;
    color: var(--color-text-secondary);
    background: transparent;
    border: 1px solid var(--color-border-default);
    border-radius: 10px;
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.pagination .page-link:hover {
    color: #ffffff;
    border-color: rgba(0, 229, 255, 0.45);
    background: rgba(0, 229, 255, 0.1);
}

.pagination .page-link.is-current {
    color: var(--color-text-inverse);
    background: var(--color-primary);
    border-color: var(--color-primary);
    font-weight: 600;
}

.pagination .page-link.is-disabled {
    color: var(--color-text-tertiary);
    border-color: var(--color-border-muted);
    opacity: 0.55;
    pointer-events: none;
}

.pagination .page-ellipsis {
    padding: 0 0.25rem;
    color: var(--color-text-tertiary);
}

.source-page-hint {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    color: var(--color-text-tertiary);
}

.breadcrumb {
    --bs-breadcrumb-divider-color: var(--color-text-tertiary);
    --bs-breadcrumb-item-active-color: var(--color-text-secondary);
}

.breadcrumb-item a {
    color: var(--color-text-tertiary);
}

.breadcrumb-item a:hover {
    color: var(--color-primary);
}

/* --- 14. Footer --- */
.footer-zouic {
    background: #08081a;
    border-top: 1px solid var(--hairline);
    position: relative;
}

.footer-zouic::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 229, 255, 0.5);
}

.footer-zouic h5 {
    font-family: var(--font-family-hud);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-primary);
}

.footer-brand {
    font-family: var(--font-family-display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
}

.footer-brand i {
    color: var(--color-primary);
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.7));
}

.footer-zouic a {
    color: var(--color-text-secondary);
}

.footer-zouic a:hover {
    color: var(--color-primary);
}

.footer-social-link {
    border: 1px solid var(--glass-stroke);
    background: rgba(255, 255, 255, 0.03);
}

.footer-social-link:hover {
    border-color: rgba(0, 229, 255, 0.5);
    color: var(--color-primary);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.2);
}

.footer-bottom {
    border-top: 1px solid var(--color-border-muted);
    color: var(--color-text-tertiary);
}

.footer-producer-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    padding: 14px 18px;
    border: 1px solid rgba(167, 139, 250, 0.28);
    border-radius: 12px;
    background: rgba(167, 139, 250, 0.06);
}

@media (max-width: 576px) {
    .footer-producer-bar {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

.footer-slash-tag {
    border: 1px solid var(--glass-stroke);
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-secondary);
}

.footer-slash-tag--highlight {
    border-color: rgba(0, 229, 255, 0.35);
    color: var(--color-primary);
}

/* --- 15. Auxiliary widgets --- */
.nav-hud-status {
    align-items: center;
    gap: 0.45rem;
    margin-left: 0.9rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(52, 211, 153, 0.28);
    border-radius: 4px;
    background: rgba(52, 211, 153, 0.07);
    color: #6ee7b7;
    font-family: var(--font-family-hud);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-hud-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.9);
    animation: hudDotPulse 2.4s ease-in-out infinite;
}

.footer-hud-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-family-hud);
    font-size: 0.66rem !important;
    letter-spacing: 0.16em;
    color: #6b7294;
}

.chat-widget-toggle {
    background: var(--color-primary);
    color: #05101f;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45), 0 0 26px rgba(0, 229, 255, 0.35);
}

.chat-widget-container {
    background: rgba(13, 13, 38, 0.94);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 229, 255, 0.12);
}

.chat-widget-header {
    border-bottom: 1px solid var(--hairline);
    background: rgba(0, 229, 255, 0.06);
}

.back-to-top {
    background: rgba(16, 16, 46, 0.9);
    border: 1px solid rgba(0, 229, 255, 0.35);
    color: var(--color-primary);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.18);
}

.back-to-top:hover {
    background: rgba(0, 229, 255, 0.14);
    color: #ffffff;
}

.toast-zouic {
    background: rgba(13, 13, 38, 0.96);
    border: 1px solid rgba(0, 229, 255, 0.35);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
}

.skip-link {
    background: var(--color-primary);
    color: var(--color-text-inverse);
}

/* --- 16. Navbar density --- */
.navbar-zouic .nav-link,
.navbar-zouic .navbar-brand,
.navbar-zouic .btn-zouic {
    white-space: nowrap;
}

.navbar-zouic .nav-link {
    padding-inline: 0.6rem;
}

@media (max-width: 1499.98px) {
    .navbar-zouic .nav-hud-status {
        display: none !important;
    }

    .navbar-zouic .navbar-brand {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }

    .navbar-zouic .nav-link {
        font-size: 0.82rem;
        padding-inline: 0.5rem;
    }

    #searchForm .form-control {
        width: 150px !important;
        text-overflow: ellipsis;
    }
}

@media (max-width: 1199.98px) {
    #searchForm {
        display: none !important;
    }
}

/* --- 17. Responsive & motion --- */
@media (max-width: 991.98px) {
    .navbar-zouic .navbar-collapse {
        background: rgba(10, 10, 31, 0.98);
        border: 1px solid var(--hairline);
        border-radius: 16px;
        padding: 0.75rem;
        margin-top: 0.5rem;
        box-shadow: var(--shadow-lg);
    }

    .hero-zouic {
        padding: 6rem 0 4rem;
    }

    .hero-visual::after {
        animation: none;
        opacity: 0.5;
    }

    .why-zouic-bg,
    .cta-section-bg {
        background-attachment: scroll, scroll, scroll;
    }
}

@media (max-width: 575.98px) {
    .hero-zouic-title {
        font-size: 2rem;
    }

    .hero-hud-kicker {
        gap: 0.4rem;
        font-size: 0.58rem;
        letter-spacing: 0.08em;
    }

    .hero-hud-kicker::before {
        width: 12px;
    }

    .stats-bar-number {
        font-size: 1.35rem;
    }

    .card-zouic,
    .card-dark,
    .feature-card-enhanced,
    .ext-card,
    .board-card {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-visual::after,
    .hero-badge-dot,
    .hero-decoration-glow,
    .hero-decoration-circle {
        animation: none !important;
    }

    .reveal,
    .animate-fade-in-up,
    .animate-fade-in {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* ============================================================
   18. Full-site audit polish (2026-10-28)
   Targeted fixes from the visual/code review: mobile section
   alignment, card controls, empty states, article typography.
   ============================================================ */

/* Chinese hero headline: break after the comma instead of leaving
   "聚合" alone on the second line. */
/* Break the Chinese hero title after the comma so the phrase
   "一站聚合" is never split across lines. */
.hero-title-line {
    display: block;
}

/* Headings balance their lines; body copy avoids orphan words. */
.section-zouic-title,
.hero-zouic-title,
.page-hero h1,
.compare-empty-title {
    text-wrap: balance;
}

.section-zouic-desc,
.hero-zouic-subtitle,
.page-hero p,
.compare-empty-steps {
    text-wrap: pretty;
}

/* Mobile section headers: the desktop layer aligns the header to
   flex-end, which right-shifts the copy once the header becomes a
   column on small screens. Keep the copy flush left. */
@media (max-width: 767.98px) {
    .section-zouic-header {
        align-items: flex-start;
    }

    .section-zouic-header > .btn-zouic {
        align-self: flex-start;
        margin-top: 0.25rem;
    }
}

/* The legal disclaimer used to sit flush against the card grid. */
.source-disclaimer {
    margin: 1.25rem 0 0;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(0, 229, 255, 0.28);
    border-radius: 10px;
    background: rgba(0, 229, 255, 0.045);
    color: var(--color-text-tertiary);
    font-size: 0.82rem;
    line-height: 1.7;
}

/* Compare control: a compact HUD pill in the card corner instead of a
   bare checkbox that fell outside the card (top-3/right-3 are not
   Bootstrap utilities). */
.board-card {
    position: relative;
}

.compare-checkbox-label {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.28rem 0.62rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(8, 8, 26, 0.62);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: rgba(234, 240, 255, 0.86);
    font-family: var(--font-family-hud);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.compare-checkbox-label:hover {
    border-color: rgba(0, 229, 255, 0.6);
    color: var(--color-primary);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.18);
}

.compare-checkbox-label input {
    position: relative;
    width: 14px;
    height: 14px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 3px;
    background: rgba(8, 8, 26, 0.7);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.compare-checkbox-label input:checked {
    border-color: var(--color-primary);
    background: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
}

.compare-checkbox-label input:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #04121c;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.compare-checkbox-label:has(input:checked) {
    border-color: rgba(0, 229, 255, 0.75);
    background: rgba(0, 229, 255, 0.16);
    color: var(--color-primary);
}

#compareBtn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Mobile board filters collapse behind one clear control. */
.filter-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--glass-stroke);
    border-radius: var(--radius-xl);
    background: var(--glass-fill);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: var(--color-text-primary);
    font-weight: 600;
}

.filter-toggle .fa-chevron-down {
    transition: transform 0.2s ease;
}

.filter-toggle[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

@media (max-width: 991.98px) {
    #boardFilterCollapse {
        margin-bottom: 0.5rem;
    }
}

/* Compare empty state: explain the flow instead of a lone sentence. */
.compare-empty {
    max-width: 680px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
    border: 1px solid var(--glass-stroke);
    border-radius: var(--radius-2xl);
    background: var(--glass-fill);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 46px rgba(0, 0, 0, 0.28);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
}

.compare-empty-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border: 1px solid rgba(0, 229, 255, 0.28);
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.08);
    box-shadow: 0 0 32px rgba(0, 229, 255, 0.14);
    color: var(--color-primary);
    font-size: 1.45rem;
}

.compare-empty-title {
    margin-bottom: 0.65rem;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.compare-empty-steps {
    max-width: 30rem;
    margin: 0 auto 1.25rem;
    color: var(--color-text-tertiary);
    font-size: 0.86rem;
    line-height: 1.8;
}

.compare-empty-suggest {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hairline);
    color: var(--color-text-tertiary);
    font-size: 0.8rem;
}

.compare-empty-suggest a {
    padding: 0.24rem 0.65rem;
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 999px;
    background: rgba(0, 229, 255, 0.06);
    font-family: var(--font-family-hud);
    text-decoration: none;
}

/* Article heroes: darken the busy illustration behind the title,
   subtitle and byline; use a calmer title scale on phones. */
.page-hero-articles::before {
    background: rgba(10, 10, 31, 0.88);
}

.page-hero-articles .lead,
.page-hero-articles .text-secondary {
    text-shadow: 0 1px 14px rgba(10, 10, 31, 0.85);
}

.article-hero h1 {
    font-size: clamp(2rem, 3.1vw + 1.1rem, 3.4rem);
    line-height: 1.2;
}

@media (max-width: 575.98px) {
    .article-hero h1 {
        font-size: 1.95rem;
        line-height: 1.3;
    }
}

/* A two-column table of contents fills the card on desktop. */
.article-toc {
    columns: 2;
    column-gap: 2.5rem;
}

.article-toc li {
    break-inside: avoid;
}

@media (max-width: 767.98px) {
    .article-toc {
        columns: 1;
    }
}

/* Keep price ranges on one line with tabular digits. */
.board-card-price,
.card-zouic-hw-price {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Mobile footer: left-aligned stacks read faster than centred rows,
   and the extra bottom room keeps the back-to-top button clear of
   the legal copy. */
@media (max-width: 767.98px) {
    .footer-zouic {
        padding-bottom: 6rem;
    }

    .footer-zouic .col-md-2,
    .footer-zouic .col-md-3,
    .footer-zouic h5 {
        text-align: left;
    }

    .footer-zouic ul {
        display: block;
        text-align: left;
    }

    .footer-zouic li {
        margin-bottom: 0.45rem;
    }

    .footer-zouic li:last-child {
        margin-bottom: 0;
    }

    .footer-bottom {
        text-align: left;
    }
}

/* 404: a compact search row turns a dead end into a next step. */
.error-search {
    display: flex;
    gap: 0.5rem;
    max-width: 540px;
}

.error-search .input-zouic {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 575.98px) {
    .error-search {
        flex-direction: column;
    }

    .error-search .btn-zouic {
        width: 100%;
        justify-content: center;
    }
}

/* Long-tail articles now share the current shell; these rules replace the
   small inline stylesheet the old standalone generator used. */
.legacy-article p {
    color: var(--color-text-secondary);
    line-height: 1.95;
    margin-bottom: 1.05rem;
}

.legacy-article .card-dark p:last-child {
    margin-bottom: 0;
}

.legacy-article h2.section-title {
    font-size: 1.4rem;
}

.legacy-article ul,
.legacy-article ol {
    color: var(--color-text-secondary);
    line-height: 1.95;
    padding-left: 1.3rem;
    margin-bottom: 1.05rem;
}

.legacy-article li {
    margin-bottom: 0.4rem;
}

.legacy-article strong {
    color: #fff;
    font-weight: 700;
}

.legacy-article a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px dashed rgba(0, 229, 255, 0.4);
}

.legacy-article a:hover {
    color: var(--color-secondary);
}

.legacy-article code {
    background: rgba(0, 229, 255, 0.1);
    color: var(--color-primary);
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
    font-family: 'Share Tech Mono', monospace;
}

.legacy-article table {
    display: block;
    width: 100%;
    overflow-x: auto;
    margin: 1rem 0 0.75rem;
    font-size: 0.94rem;
}

.legacy-article th,
.legacy-article td {
    border: 1px solid var(--color-border-default);
    padding: 0.65rem 0.8rem;
    text-align: left;
    vertical-align: top;
}

.legacy-article th {
    background: var(--color-bg-tertiary);
    color: var(--color-primary);
    font-weight: 600;
    white-space: nowrap;
}

.legacy-article .text-green-500 { color: #34d399; }
.legacy-article .text-yellow-500 { color: #fbbf24; }
.legacy-article .text-gray-400 { color: var(--color-text-tertiary); }

.legacy-article pre {
    background: rgba(4, 8, 24, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    overflow-x: auto;
    margin: 0.9rem 0;
}

.legacy-article pre code {
    background: transparent;
    color: #9be7f2;
    padding: 0;
    line-height: 1.75;
    font-size: 0.86rem;
    white-space: pre;
}

@media (max-width: 575.98px) {
    .legacy-article th,
    .legacy-article td {
        padding: 0.55rem 0.65rem;
        font-size: 0.85rem;
    }

    .legacy-article th:first-child,
    .legacy-article td:first-child {
        white-space: nowrap;
    }
}

.legacy-faq .faq-item {
    border-bottom: 1px solid var(--color-border-default);
    padding: 1rem 0;
}

.legacy-faq .faq-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.legacy-faq .faq-q {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.4rem;
}

.legacy-faq .faq-a {
    color: var(--color-text-secondary);
    line-height: 1.85;
    margin: 0;
}

/* License & data provenance cards */
.license-mini {
    background: rgba(8, 14, 32, 0.72);
    border: 1px solid var(--color-border-default);
    border-radius: 12px;
    padding: 1.15rem 1.2rem;
}

.license-mini h3 {
    font-size: 1.02rem;
    line-height: 1.45;
}

.license-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--color-primary);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed rgba(0, 229, 255, 0.45);
    padding-bottom: 0.1rem;
}

.license-link:hover {
    color: #fff;
    border-bottom-color: var(--color-primary);
}

.license-link i {
    font-size: 0.72rem;
}

.license-callout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.24);
    border-radius: 12px;
    padding: 1rem 1.15rem;
}

@media (max-width: 575.98px) {
    .license-callout {
        align-items: flex-start;
    }
}

/* Board data provenance */
.board-source-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(0, 229, 255, 0.05);
    border: 1px dashed rgba(0, 229, 255, 0.28);
    border-radius: 12px;
    padding: 0.95rem 1.1rem;
}

.board-source-note .text-secondary {
    line-height: 1.8;
}

.license-mini i {
    font-size: 1.15rem;
}

@media (max-width: 575.98px) {
    .board-source-note {
        align-items: flex-start;
    }
}

/* Compare differences filter */
.compare-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.2rem;
    margin-bottom: 0.9rem;
}

.compare-diff-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(0, 229, 255, 0.32);
    border-radius: 999px;
    background: rgba(0, 229, 255, 0.06);
    color: var(--color-text-secondary);
    font-size: 0.86rem;
    cursor: pointer;
    user-select: none;
}

.compare-diff-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-text-primary);
}

.compare-diff-toggle input {
    appearance: none;
    width: 15px;
    height: 15px;
    border: 1px solid rgba(0, 229, 255, 0.55);
    border-radius: 4px;
    background: transparent;
    display: inline-grid;
    place-content: center;
    margin: 0;
    cursor: pointer;
}

.compare-diff-toggle input::before {
    content: "";
    width: 8px;
    height: 5px;
    border-left: 2px solid #04101f;
    border-bottom: 2px solid #04101f;
    transform: rotate(-45deg) scale(0);
    transition: transform 0.12s ease;
}

.compare-diff-toggle input:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.compare-diff-toggle input:checked::before {
    transform: rotate(-45deg) scale(1);
}

.compare-diff-count {
    color: var(--color-text-tertiary);
    font-size: 0.82rem;
}

.compare-source-note {
    color: var(--color-text-tertiary);
    font-size: 0.8rem;
    line-height: 1.7;
    margin: 0.95rem 0 0;
}

/* Board architecture quick nav */
.arch-quicknav {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
    padding: 0.7rem 0.85rem;
    background: rgba(8, 14, 32, 0.66);
    border: 1px solid var(--color-border-default);
    border-radius: 14px;
}

.arch-quicknav-label {
    flex: none;
    color: var(--color-text-tertiary);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-left: 0.2rem;
}

.arch-quicknav-track {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
}

.arch-quick {
    flex: none;
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.6);
    color: var(--color-text-secondary);
    font-size: 0.84rem;
    line-height: 1.2;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.arch-quick em {
    font-style: normal;
    font-size: 0.72rem;
    color: var(--color-text-tertiary);
    font-variant-numeric: tabular-nums;
}

.arch-quick:hover {
    border-color: rgba(0, 229, 255, 0.55);
    color: var(--color-text-primary);
}

.arch-quick.is-active {
    background: rgba(0, 229, 255, 0.14);
    border-color: var(--color-primary);
    color: var(--color-text-primary);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.12);
}

.arch-quick.is-active em {
    color: var(--color-primary);
}

@media (max-width: 767.98px) {
    .arch-quicknav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
    }

    .arch-quicknav-track {
        width: 100%;
    }
}

/* ---------- Vendor zone header + series chips (board list) ---------- */
.vendor-spotlight[hidden],
.series-chip-group[hidden] {
    display: none !important;
}

.filter-chip em {
    font-style: normal;
    margin-left: 0.28rem;
    font-size: 0.74em;
    opacity: 0.62;
}

.vendor-spotlight {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.15rem 1.35rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: 18px;
    background: rgba(0, 229, 255, 0.06);
    overflow: hidden;
}

.vendor-spotlight-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.vendor-spotlight-kicker {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.3rem;
}

.vendor-spotlight-name {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-text-primary);
}

.vendor-spotlight-meta {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    color: var(--color-text-secondary);
}

.vendor-spotlight-series {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.8rem;
}

.vendor-series-chip {
    border: 1px solid rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.06);
    color: var(--color-text-secondary);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.78rem;
    line-height: 1.3;
    cursor: pointer;
    transition: all 0.18s ease;
}

.vendor-series-chip em {
    font-style: normal;
    margin-left: 0.3rem;
    opacity: 0.6;
    font-size: 0.85em;
}

.vendor-series-chip:hover,
.vendor-series-chip.is-active {
    color: var(--color-text-primary);
    border-color: var(--color-primary);
    background: rgba(0, 229, 255, 0.16);
}

.vendor-spotlight-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
    flex-shrink: 0;
}

.vendor-spotlight-reset {
    border: 0;
    background: transparent;
    color: var(--color-text-tertiary);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
}

.vendor-spotlight-reset:hover {
    color: var(--color-primary);
}

@media (max-width: 767.98px) {
    .vendor-spotlight {
        flex-direction: column;
        padding: 1rem 1.1rem;
    }

    .vendor-spotlight-actions {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }

    .vendor-spotlight-name {
        font-size: 1.2rem;
    }
}

/* ===== 极客微栋 · 履历时间线（首页 / 关于 / 撮合页通用） ===== */
.cm-timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.cm-timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: rgba(167, 139, 250, 0.55); }
.cm-timeline li { position: relative; padding-left: 38px; }
.cm-timeline li:last-child { padding-bottom: 0; }
.cm-tl-dot { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--color-bg-secondary); border: 2px solid var(--color-primary); color: var(--color-primary); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.cm-tl-phase { font-size: 12px; font-weight: 700; letter-spacing: .5px; }

/* ===== AI 选型助手（/api/ai/chat 前端） ===== */
.ai-bubble { border-radius: var(--radius-lg, 14px); padding: 12px 14px; }
.ai-bubble-user { background: rgba(0, 229, 255, .10); border: 1px solid rgba(0, 229, 255, .35); }
.ai-bubble-bot { background: var(--color-bg-secondary, #0f172a); border: 1px solid rgba(167, 139, 250, .30); }
.ai-bubble-followup { border-style: dashed; }
#ai-assistant .badge-zouic { cursor: pointer; border: none; }
/* Status chip sits on its own line inside a bubble, so it never runs into the answer text. */
.ai-bubble .badge-zouic { display: table; margin: 0 0 6px; cursor: default; }
#aiChips .badge-zouic { display: inline-block; }

/* 可见校验表：把「站内这个字段有没有值、链接核对过没有」摊开给访客看 */
.ai-checks {
    border: 1px solid rgba(0, 229, 255, .22);
    border-radius: var(--radius-lg, 14px);
    background: rgba(0, 229, 255, .04);
    padding: 12px 14px;
}
.ai-check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ai-check-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.ai-check-mark {
    width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; line-height: 1;
}
.ai-check-ok { background: rgba(74, 222, 128, .16); color: #4ade80; }
.ai-check-partial { background: rgba(250, 204, 21, .16); color: #facc15; }
.ai-check-absent { background: rgba(148, 163, 184, .18); color: #94a3b8; }
.ai-check-other { background: rgba(148, 163, 184, .18); color: #94a3b8; }
.ai-check-label { color: var(--color-text-primary, #e2e8f0); }
.ai-check-confirm { gap: 4px; }
.ai-check-confirm li { color: var(--color-text-secondary, #94a3b8); font-size: 12px; padding-left: 18px; }
#ai-assistant .ai-checks .badge-zouic { cursor: default; }
@media (max-width: 575.98px) {
    #ai-assistant .card-dark.p-4 { padding: 12px !important; }
}

/* ── 页脚分类内链带：全站可见的分类枢纽入口 ───────────────── */
.footer-category-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0 0.25rem;
    margin-bottom: 1rem;
    border-top: 1px solid var(--color-border-muted);
}

.footer-category-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
}

.footer-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-category-links a {
    padding: 0.2rem 0.6rem;
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border-muted);
    border-radius: 999px;
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.footer-category-links a:hover {
    color: #fff;
    border-color: rgba(0, 229, 255, 0.45);
    background: rgba(0, 229, 255, 0.1);
}

/* ── 分类聚合页 ──────────────────────────────────────────── */
.hub-platform-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0 0.5rem;
}

.hub-platform-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-right: 0.25rem;
}

.hub-platform-chip {
    padding: 0.2rem 0.65rem;
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border-muted);
    border-radius: 999px;
    text-decoration: none;
}

.hub-platform-chip b { color: var(--color-primary); font-weight: 600; margin-left: 0.2rem; }

.hub-platform-chip:hover { color: #fff; border-color: rgba(0, 229, 255, 0.45); }

.hub-cross { margin: 2.5rem 0 1.5rem; }

.hub-cross-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.85rem;
}

.hub-cross-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.6rem;
}

.hub-cross-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    color: var(--color-text-secondary);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-default);
    border-radius: 12px;
    text-decoration: none;
}

.hub-cross-item:hover { color: #fff; border-color: var(--color-primary); }

.hub-cross-count { font-size: 0.8rem; color: var(--color-text-tertiary); }

/* 分类索引页 */
.hub-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 3rem;
}

.hub-index-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.25rem 1.25rem 1.5rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease;
}

.hub-index-card:hover { transform: translateY(-3px); border-color: var(--color-primary); }

.hub-index-count {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: var(--color-primary);
}

.hub-index-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.hub-index-desc {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--color-text-tertiary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hub-index-arrow {
    position: absolute;
    right: 1.1rem;
    bottom: 1.1rem;
    color: var(--color-text-tertiary);
}

/* 开发板对比页的说明区：给工具页补一段可读正文 */
.compare-intro {
    max-width: 72ch;
    margin-bottom: 0.5rem;
}

.compare-intro p {
    margin-bottom: 0.85rem;
    font-size: 0.9375rem;
    line-height: 1.85;
    color: var(--color-text-secondary);
}

.compare-intro-list {
    margin: 1.25rem 0 0;
    padding-left: 1.1rem;
    list-style: disc;
}

.compare-intro-list li {
    margin-bottom: 0.55rem;
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
}

.compare-intro-list strong { color: var(--color-text-primary); }
