:root {
            --bg-dark: #04140e;
            --text-light: #f8fafc;
            --text-muted: #94a3b8;
            --primary: #34d399;
            --primary-hover: #10b981;
            --secondary: #fbbf24;
            --secondary-hover: #f59e0b;
            --font-heading: 'Montserrat', sans-serif;
            --font-body: 'Lora', serif;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: var(--bg-dark);
            color: var(--text-light);
            font-family: var(--font-body);
            line-height: 1.6;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        a {
            text-decoration: none;
            color: inherit;
            transition: color 0.3s ease;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        /* --- HEADER STYLES --- */
        header {
            background-color: rgba(4, 20, 14, 0.98);
            border-bottom: 1px solid rgba(52, 211, 153, 0.15);
            position: sticky;
            top: 0;
            z-index: 100;
            padding: 1rem 0;
        }
        .header-inner {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }
        .logo img {
            display: block;
            height: auto;
        }
        .nav-links {
            display: none;
            width: 100%;
            flex-direction: column;
            gap: 1rem;
            padding: 1rem 0;
            font-family: var(--font-heading);
            font-weight: 600;
            font-size: 0.9rem;
        }
        .nav-links a:hover {
            color: var(--primary);
        }
        .header-ctas {
            display: none;
            width: 100%;
            flex-direction: column;
            gap: 0.75rem;
            padding-bottom: 1rem;
        }
        .btn {
            display: inline-block;
            padding: 0.75rem 1.5rem;
            border-radius: 4px;
            font-family: var(--font-heading);
            font-weight: 700;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
        }
        .btn-primary {
            background-color: var(--primary);
            color: #000;
        }
        .btn-primary:hover {
            background-color: var(--primary-hover);
        }
        .btn-secondary {
            background-color: transparent;
            color: var(--secondary);
            border: 1px solid var(--secondary);
        }
        .btn-secondary:hover {
            background-color: var(--secondary);
            color: #000;
        }
        .mobile-toggle {
            display: block;
            background: none;
            border: none;
            color: var(--primary);
            font-size: 1.5rem;
            cursor: pointer;
        }
        .header-inner.active .nav-links,
        .header-inner.active .header-ctas {
            display: flex;
        }

        /* --- 404 MAIN CONTENT --- */
        main {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 4rem 1rem;
            text-align: center;
        }
        .error-container {
            max-width: 500px;
        }
        .error-code {
            font-family: var(--font-heading);
            font-size: 6rem;
            font-weight: 800;
            line-height: 1;
            margin-bottom: 0.5rem;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 10px 30px rgba(52, 211, 153, 0.15);
        }
        .error-title {
            font-family: var(--font-heading);
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--text-light);
        }
        .error-desc {
            color: var(--text-muted);
            margin-bottom: 2.5rem;
            font-size: 1rem;
        }
        .btn-home {
            background-color: var(--primary);
            color: #000;
            padding: 0.875rem 2rem;
            border-radius: 50px;
            font-family: var(--font-heading);
            font-weight: 700;
            font-size: 1rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .btn-home:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(52, 211, 153, 0.25);
            background-color: var(--primary-hover);
        }

        /* --- FOOTER STYLES --- */
        footer {
            background-color: #020a07;
            padding: 3rem 0 1.5rem;
            border-top: 1px solid rgba(255,255,255,0.05);
            font-size: 0.875rem;
        }
        .footer-top {
            text-align: center;
            margin-bottom: 2rem;
        }
        .footer-brand {
            font-family: var(--font-heading);
            color: var(--primary);
            font-size: 1.5rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
            text-transform: uppercase;
        }
        .footer-tagline {
            color: var(--text-muted);
        }
        .footer-links {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 2rem;
            font-family: var(--font-heading);
        }
        .footer-links a {
            color: var(--text-light);
            font-weight: 600;
        }
        .footer-links a:hover {
            color: var(--secondary);
        }
        .footer-bottom {
            text-align: center;
            color: var(--text-muted);
            border-top: 1px solid rgba(255,255,255,0.05);
            padding-top: 1.5rem;
            font-size: 0.75rem;
        }

        /* --- DESKTOP (768px+) --- */
        @media (min-width: 768px) {
            .header-inner { flex-wrap: nowrap; }
            .mobile-toggle { display: none; }
            .nav-links {
                display: flex;
                flex-direction: row;
                width: auto;
                padding: 0;
                gap: 1.5rem;
            }
            .header-ctas {
                display: flex;
                flex-direction: row;
                width: auto;
                padding: 0;
            }
            .error-code { font-size: 9rem; }
            .error-title { font-size: 2rem; }
            .error-desc { font-size: 1.125rem; }
        }


/* pipeline image & layout guards */
html, body { overflow-x: clip; }
img { max-width: 100%; height: auto; }
img.site-logo { height: 40px; width: auto; max-width: 240px; object-fit: contain; flex: none; }
header .logo a { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
img.hero-visual { width: 100%; max-width: 560px; height: auto; object-fit: cover; border-radius: 16px; display: block; margin-inline: auto; }
img[class^="strip-"], img[class*=" strip-"] { width: 100%; height: auto; display: block; border-radius: 12px; object-fit: cover; }
/* 合规声明块（zb-disclaimer，全站 footer） */
.zb-disclaimer { margin-top: 18px !important; padding: 14px 0 0 0 !important; border-top: 1px solid rgba(128,128,128,.25) !important; font-size: .72rem !important; line-height: 1.7 !important; opacity: .85 !important; display: block !important; text-align: left !important; width: 100% !important; clear: both !important; }
.zb-disclaimer .zb-18 { display: inline-block !important; padding: 2px 10px !important; border: 1.5px solid currentColor !important; border-radius: 6px !important; font-weight: 800 !important; letter-spacing: 1px !important; margin: 0 0 10px 0 !important; font-size: .78rem !important; }
.zb-disclaimer p { display: block !important; margin: 5px 0 !important; padding: 0 !important; color: inherit !important; font-size: .72rem !important; line-height: 1.7 !important; }
.zb-disclaimer p:last-child { margin-bottom: 0 !important; }
