:root {
            --accent: #06b6d4; --accent-glow: rgba(6,182,212,0.3);
            --font-body: 'Inter', system-ui, sans-serif;
            --font-mono: 'JetBrains Mono', monospace;
            --spacing-section: 6rem; --radius-card: 1rem;
            --text-hero-weight: 900; --text-heading-weight: 900;
        }
        [data-region="tw"] {
            --accent: #10b981; --accent-glow: rgba(16,185,129,0.35);
            --font-body: 'Noto Sans TC', 'Inter', system-ui, sans-serif;
            --spacing-section: 7rem; --radius-card: 1.25rem;
            --text-hero-weight: 900; --text-heading-weight: 800;
        }
        [data-region="de"] {
            --accent: #3b82f6; --accent-glow: rgba(59,130,246,0.3);
            --font-body: 'Inter', system-ui, -apple-system, sans-serif;
            --spacing-section: 5rem; --radius-card: 0.75rem;
            --text-hero-weight: 800; --text-heading-weight: 700;
        }
        [data-region="jp"] {
            --accent: #f59e0b; --accent-glow: rgba(245,158,11,0.25);
            --font-body: 'Noto Sans JP', 'Inter', system-ui, sans-serif;
            --spacing-section: 7rem; --radius-card: 0.875rem;
            --text-hero-weight: 900; --text-heading-weight: 800;
        }
        body { font-family: var(--font-body); }
        .font-mono, [class*="font-mono"] { font-family: var(--font-mono), monospace; }
        .accent-text { color: var(--accent); }
        .accent-bg { background-color: var(--accent); }
        .accent-border { border-color: var(--accent); }
        .accent-glow { box-shadow: 0 0 30px var(--accent-glow); }


body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #020202; overflow-x: hidden; }
        .font-mono { font-family: 'JetBrains Mono', 'Roboto Mono', monospace; }
        .font-sans { font-family: 'Inter', sans-serif; }

        .neon-glow-card { position: relative; border-radius: 1.5rem; background: #0a0a0a; padding: 1.5px; overflow: hidden; z-index: 1; }
        .neon-glow-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(#06b6d4, #3b82f6, #8b5cf6, #06b6d4); opacity: 0.3; transition: opacity 0.5s; z-index: 0; }
        .neon-glow-card:hover::before { opacity: 1; animation: rotateNeonGlow 3s linear infinite; }
        .neon-glow-inner { position: relative; background: #0a0a0a; border-radius: calc(1.5rem - 1.5px); z-index: 1; height: 100%; width: 100%; }
        @keyframes rotateNeonGlow { 100% { transform: rotate(360deg); } }

        .cyber-border { border: 1px solid rgba(6,182,212,0.3); box-shadow: inset 0 0 30px rgba(6,182,212,0.03), 0 0 20px rgba(6,182,212,0.08); }
        .text-shadow-glow { text-shadow: 0 0 20px rgba(6,182,212,0.7); }

        .scanline { background: linear-gradient(to bottom, transparent 50%, rgba(6,182,212,0.02) 51%); background-size: 100% 6px; pointer-events: none; }
        @keyframes scan { 0% { background-position: 0 0; } 100% { background-position: 0 100%; } }

        .progress-gradient { background: linear-gradient(90deg, #06b6d4, #3b82f6, #8b5cf6, #06b6d4); background-size: 300% 100%; animation: slide 2s linear infinite; }
        @keyframes slide { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

        #three-container {
            cursor: grab;
            background:
                radial-gradient(circle at 48% 38%, rgba(56, 189, 248, 0.16), transparent 34%),
                radial-gradient(circle at 18% 18%, rgba(20, 184, 166, 0.12), transparent 25%),
                radial-gradient(circle at 82% 80%, rgba(34, 197, 94, 0.08), transparent 27%),
                linear-gradient(145deg, #1a1a1a 0%, #151a1d 48%, #101418 100%);
            border: 1px solid rgba(45, 212, 191, 0.32);
            box-shadow:
                inset 0 0 42px rgba(6, 182, 212, 0.06),
                0 0 26px rgba(20, 184, 166, 0.16);
        }
        #three-container:active { cursor: grabbing; }
        #three-container canvas {
            filter: drop-shadow(0 0 18px rgba(103, 232, 249, 0.12));
        }
        .dfm-viewer-shell {
            background:
                radial-gradient(circle at 50% 0%, rgba(103, 232, 249, 0.12), transparent 34%),
                radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.10), transparent 30%),
                linear-gradient(145deg, #1a1a1a 0%, #0f1417 55%, #070b0d 100%);
            border-color: rgba(45, 212, 191, 0.32);
            box-shadow:
                inset 0 0 0 1px rgba(255, 255, 255, 0.035),
                inset 0 0 55px rgba(6, 182, 212, 0.045),
                0 0 0 1px rgba(20, 184, 166, 0.08),
                0 0 34px rgba(6, 182, 212, 0.16),
                0 30px 90px rgba(0, 0, 0, 0.42);
        }
        .dfm-viewer-shell::before {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
            background:
                linear-gradient(rgba(103, 232, 249, 0.045) 1px, transparent 1px),
                linear-gradient(90deg, rgba(103, 232, 249, 0.035) 1px, transparent 1px);
            background-size: 46px 46px;
            mask-image: radial-gradient(circle at center, black 0%, transparent 78%);
            opacity: 0.5;
            z-index: 1;
        }
        .dfm-viewer-shell::after {
            content: '';
            position: absolute;
            inset: 10px;
            pointer-events: none;
            border-radius: 1.35rem;
            border: 1px solid rgba(103, 232, 249, 0.18);
            box-shadow: inset 0 0 22px rgba(45, 212, 191, 0.08);
            z-index: 3;
        }
        .nda-trust-strip {
            border: 1px solid rgba(16, 185, 129, 0.32);
            background:
                linear-gradient(90deg, rgba(6, 78, 59, 0.42), rgba(8, 47, 73, 0.34)),
                radial-gradient(circle at 0% 50%, rgba(45, 212, 191, 0.16), transparent 35%);
            color: #a7f3d0;
            box-shadow: 0 0 26px rgba(16, 185, 129, 0.12), inset 0 0 18px rgba(6, 182, 212, 0.04);
            text-transform: none;
            letter-spacing: 0.04em;
        }
        #cad-canvas.dfm-empty-stage {
            isolation: isolate;
            background:
                radial-gradient(circle at 50% 46%, rgba(6, 182, 212, 0.24), transparent 30%),
                radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.16), transparent 24%),
                radial-gradient(circle at 80% 75%, rgba(15, 23, 42, 0.85), transparent 32%),
                linear-gradient(135deg, #020617 0%, #050505 46%, #0f172a 100%);
        }
        #cad-canvas.dfm-empty-stage::before {
            content: '';
            position: absolute;
            inset: 0;
            background:
                linear-gradient(rgba(6, 182, 212, 0.08) 1px, transparent 1px),
                linear-gradient(90deg, rgba(6, 182, 212, 0.08) 1px, transparent 1px);
            background-size: 42px 42px;
            mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
            opacity: 0.65;
            z-index: -2;
        }
        #cad-canvas.dfm-empty-stage::after {
            content: '';
            position: absolute;
            left: -20%;
            right: -20%;
            top: 10%;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.8), transparent);
            box-shadow: 0 0 30px rgba(6, 182, 212, 0.7);
            animation: dfmScanSweep 4.2s ease-in-out infinite;
            opacity: 0.75;
            z-index: -1;
        }
        .dfm-empty-title {
            background: linear-gradient(90deg, #e0faff 0%, #67e8f9 32%, #ffffff 50%, #22d3ee 72%, #e0faff 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 0 22px rgba(103, 232, 249, 0.95), 0 0 70px rgba(6, 182, 212, 0.58);
            animation: dfmTitleBreathe 2.6s ease-in-out infinite;
        }
        .dfm-empty-orbit {
            animation: dfmOrbitFloat 3.4s ease-in-out infinite;
            box-shadow: 0 0 35px rgba(6, 182, 212, 0.35), inset 0 0 35px rgba(6, 182, 212, 0.15);
        }
        @keyframes dfmTitleBreathe {
            0%, 100% { transform: translateY(0) scale(1); opacity: 0.92; }
            50% { transform: translateY(-5px) scale(1.025); opacity: 1; }
        }
        @keyframes dfmOrbitFloat {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-8px) rotate(2deg); }
        }
        @keyframes dfmScanSweep {
            0% { transform: translateY(0); opacity: 0; }
            15%, 80% { opacity: 0.7; }
            100% { transform: translateY(430px); opacity: 0; }
        }

        .custom-scrollbar::-webkit-scrollbar { width: 4px; }
        .custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
        .custom-scrollbar::-webkit-scrollbar-thumb { background: #06b6d4; border-radius: 4px; }
        .dfm-report-panel {
            background:
                radial-gradient(circle at 14% 0%, rgba(6, 182, 212, 0.12), transparent 34%),
                radial-gradient(circle at 92% 12%, rgba(16, 185, 129, 0.08), transparent 30%),
                linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(5, 8, 14, 0.98));
            border-color: rgba(103, 232, 249, 0.18);
            box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38), 0 0 38px rgba(6, 182, 212, 0.08);
        }
        .dfm-risk-card {
            background:
                linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.96)),
                radial-gradient(circle at 0% 0%, rgba(6, 182, 212, 0.12), transparent 32%);
            border: 1px solid rgba(148, 163, 184, 0.16);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 18px 40px rgba(0,0,0,0.24);
        }
        .dfm-risk-card:hover {
            border-color: rgba(103, 232, 249, 0.32);
            transform: translateY(-1px);
        }
        .dfm-body-text {
            font-size: 1rem;
            line-height: 1.85;
            letter-spacing: 0.01em;
        }
        @media (min-width: 768px) {
            .dfm-body-text { font-size: 1.06rem; }
        }

        @keyframes toastIn { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
        @keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(50px); } }
        .toast-enter { animation: toastIn 0.3s ease-out forwards; }
        .toast-leave { animation: toastOut 0.3s ease-in forwards; }

        .dark-map { filter: invert(85%) hue-rotate(180deg) brightness(95%) contrast(110%); }

        /* Quantity selector button */
        .qty-btn { transition: all 0.2s ease; }
        .qty-btn.active { background: #06b6d4; color: #000; border-color: #06b6d4; box-shadow: 0 0 20px rgba(6,182,212,0.4); }

        /* Section number styling */
        .section-number { font-family: 'JetBrains Mono', monospace; }

        /* Subtle card hover lift */
        .card-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
        .card-lift:hover { transform: translateY(-4px); box-shadow: 0 8px 40px rgba(6,182,212,0.15); }

        /* 鍥剧墖鍔犺浇鍗犱綅 */
        .img-skeleton { background: linear-gradient(90deg, #0a0a0a 25%, #151515 50%, #0a0a0a 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
        @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Readability pass: larger body/report text for engineering buyers */
body { font-size: 16.5px; line-height: 1.72; }
@media (min-width: 768px) { body { font-size: 17px; } }
#dfm-dashboard, #active-terminal-console, #contact-guide, #chat-section { font-size: 1.05rem; }
.dfm-body-text { font-size: 1.08rem; line-height: 1.95; }
@media (min-width: 768px) { .dfm-body-text { font-size: 1.15rem; } }
#dfm-dashboard .text-sm { font-size: 0.98rem; }
#dfm-dashboard .text-xs { font-size: 0.86rem; }
#active-terminal-console { line-height: 1.85; }
#active-terminal-console .text-sm { font-size: 1rem; }
input, select, textarea, button { font-size: 1rem; }
#file-name-display { font-size: 1.05rem; line-height: 1.8; }
.dfm-risk-card { padding: 1.85rem; }
@media (min-width: 768px) { .dfm-risk-card { padding: 2.1rem; } }


/* Multilingual readability pass: make customer-facing copy easier to read */
html { -webkit-text-size-adjust: 100%; }
body { font-size: 16.5px; line-height: 1.75; }
@media (min-width: 768px) { body { font-size: 17px; } }
nav a { font-size: 0.82rem !important; letter-spacing: 0.12em !important; line-height: 1.35 !important; }
#global-region-selector { font-size: 0.88rem !important; }
section span.font-mono.uppercase.font-bold, header span.font-mono.uppercase.font-bold { font-size: 0.95rem !important; letter-spacing: 0.13em !important; line-height: 1.45 !important; }
section p, section li, section div[data-trust-i18n], section div[data-i18n] { line-height: 1.82; }
#01-cluster p, #02-dfm p, #trust-evidence p, #delivery-process p, #04-articles p, #contact-section p { font-size: 1rem !important; }
@media (min-width: 768px) { #01-cluster p, #02-dfm p, #trust-evidence p, #delivery-process p, #04-articles p, #contact-section p { font-size: 1.05rem !important; } }
label, #02-dfm label, #02-dfm input, #02-dfm select, #02-dfm button, #02-dfm .nda-trust-strip, #02-dfm .text-xs, #02-dfm .text-\[10px\] { font-size: 0.92rem !important; line-height: 1.55 !important; }
#02-dfm input, #02-dfm select { font-size: 1rem !important; }
#action-trigger-btn { font-size: 1rem !important; }
#trust-evidence .text-\[10px\], #trust-evidence .text-xs, #delivery-process .text-xs, #delivery-process .text-sm, #04-articles .text-xs, #04-articles .text-sm, #contact-section .text-xs, footer .text-\[10px\], footer .text-\[11px\], footer .text-xs { font-size: 0.86rem !important; line-height: 1.55 !important; }
#trust-evidence .text-sm, #delivery-process .text-sm, #contact-section .text-sm, #active-terminal-console .text-sm { font-size: 1rem !important; line-height: 1.75 !important; }
#file-name-display { font-size: 1.08rem !important; line-height: 1.7 !important; }
#chat-input { font-size: 1rem !important; }
