.nav-links{order:2;margin-left:auto}
.nav-controls{order:3;display:flex;align-items:center;gap:10px;margin-left:14px}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);padding:8px 14px;font:inherit;font-size:14px;font-weight:800;cursor:pointer;box-shadow:0 8px 22px rgba(10,66,140,.08)}
.theme-toggle-icon{font-size:18px;line-height:1}
body,.site-header,.hero-card,.glass-card,.feature-list article,.advantage-card,.product-card,.news-card,.case-card,.solution-card,.stats-band article,.metric-grid article,.timeline article,.chart,.process,.lang,.secondary,.trust-row span,.tabs span,.nav-links,.theme-toggle{transition:background-color .22s ease,border-color .22s ease,color .22s ease,box-shadow .22s ease}

html[data-theme="dark"]{color-scheme:dark;--bg:#06121f;--surface:#0c1e31;--surface-soft:#112b43;--ink:#edf6ff;--muted:#96aabd;--line:#1e3b54;--blue:#45a7ff;--blue-dark:#8dceff;--cyan:#2bd2ef;--navy:#020b14;--shadow:0 22px 70px rgba(0,0,0,.34)}
html[data-theme="dark"] body{background:radial-gradient(circle at 12% 0%,#0d3150 0,#081a2a 38%,#06121f 100%)}
html[data-theme="dark"] .site-header{background:rgba(5,18,31,.86);border-bottom-color:rgba(39,78,107,.75)}
html[data-theme="dark"] .brand small{color:#9db2c6}
html[data-theme="dark"] .nav-links a{color:#bfd0df}
html[data-theme="dark"] .nav-links a:hover,html[data-theme="dark"] .nav-links a.active{color:#64c4ff}
html[data-theme="dark"] .lang,html[data-theme="dark"] .nav-toggle,html[data-theme="dark"] .theme-toggle{background:#0c2135;border-color:#24465f;color:#eaf6ff}
html[data-theme="dark"] .theme-toggle{box-shadow:0 10px 26px rgba(0,0,0,.24)}
html[data-theme="dark"] .theme-toggle:hover{background:#12304a;border-color:#3b7397}
html[data-theme="dark"] .hero-card,html[data-theme="dark"] .glass-card{background:linear-gradient(180deg,rgba(15,38,60,.96),rgba(8,28,46,.94));border-color:#23445e}
html[data-theme="dark"] .feature-list article,html[data-theme="dark"] .advantage-card,html[data-theme="dark"] .product-card,html[data-theme="dark"] .news-card,html[data-theme="dark"] .case-card,html[data-theme="dark"] .solution-card,html[data-theme="dark"] .stats-band article,html[data-theme="dark"] .timeline article{background:#0c1e31;border-color:#1f405a;box-shadow:0 14px 38px rgba(0,0,0,.2)}
html[data-theme="dark"] .metric-grid article{background:#102840;border-color:#28506b}
html[data-theme="dark"] .chart{background:linear-gradient(180deg,#0d253b,#091a2b);border-color:#23455e}
html[data-theme="dark"] .insight-card{background:#020b14;color:white}html[data-theme="dark"] .insight-card p{color:#c8d9ee}
html[data-theme="dark"] .secondary{background:#0c2135;border-color:#28506b;color:#8dceff}
html[data-theme="dark"] .trust-row span,html[data-theme="dark"] .tabs span{background:#0d2439;border-color:#264b65;color:#b9d9ee}
html[data-theme="dark"] .feature-icon,html[data-theme="dark"] .number-badge,html[data-theme="dark"] .tag-row span{background:#112f49;color:#7ac9ff}
html[data-theme="dark"] .process{background:#081a2b}
html[data-theme="dark"] .platform-band{background:linear-gradient(135deg,#020b14,#073b74)}
html[data-theme="dark"] .page-hero-inner{background:linear-gradient(135deg,#031321,#0b4f93)}
html[data-theme="dark"] .cta-card{background:linear-gradient(135deg,#031321,#0b56a3)}
html[data-theme="dark"] .case-map{background:radial-gradient(circle at 30% 30%,#198cb5,transparent 20%),linear-gradient(135deg,#0c263d,#123b60)}
html[data-theme="dark"] .footer{border-top-color:#1e3b54}

@media(max-width:900px){.nav-controls{margin-left:auto}.nav-links{order:2;margin-left:0}html[data-theme="dark"] .nav-links{background:#0b2033;border-color:#24465f}}
@media(max-width:420px){.theme-toggle{width:42px;padding:8px}.theme-toggle-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}}
@media(prefers-reduced-motion:reduce){body,.site-header,.hero-card,.glass-card,.feature-list article,.advantage-card,.product-card,.news-card,.case-card,.solution-card,.stats-band article,.metric-grid article,.timeline article,.chart,.process,.lang,.secondary,.trust-row span,.tabs span,.nav-links,.theme-toggle{transition:none}}

html[data-theme="dark"] .demo-form button{background:#edf6ff;color:#073b8e}
html:not([data-theme="dark"]) .theme-toggle:hover{border-color:#9ac4e8;color:var(--blue)}

html[data-theme="dark"] .footer-brand img{transform:translateX(-4px);position:relative;z-index:1;flex-shrink:0}
html[data-theme="light"] .case-metrics .data-card{background:#f7fbff;border-color:var(--line)}
html[data-theme="light"] .case-metrics .data-card strong,html[data-theme="light"] .case-metrics .data-card p{color:var(--ink)}
