/* Shared visual language: navy shell, light content, mint accents. */
body.site-theme {
    --theme-navy: #0b1420;
    --theme-text: #172b38;
    --theme-muted: #536674;
    --theme-line: #dce5e7;
    --theme-mint: #b5ead8;
    --theme-green: #246759;
    --primary-blue: #246759;
    --primary-purple: #397d6e;
    --accent-color: #246759;
    --electric-blue: #246759;
    --ice-blue: #172b38;
    --ice-blue-dim: #536674;
    background: #f5f7f8;
    color: var(--theme-text);
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-attachment: scroll;
}
body.site-theme::before { display: none; }
.site-theme .navbar, .site-theme .navbar.is-scrolled {
    --ice-blue: #d1dce7;
    --electric-blue: #b5ead8;
    background: #0b1420;
    border-bottom: 1px solid #ffffff17;
    box-shadow: none;
    backdrop-filter: none;
}
.site-theme .navbar .nav-link { color: #c6d3df; }
.site-theme .navbar .nav-link:hover, .site-theme .navbar .nav-link.active { color: #b5ead8; background: #b5ead812; }
.site-theme .nav-download .nav-link { color: #b5ead8; }
.site-theme .dropdown-menu, .site-theme .submenu-menu { background: #101e2b; border-color: #ffffff1c; box-shadow: 0 14px 32px #06101924; }
.site-theme .dropdown-menu a { color: #d1dce7; }
.site-theme .dropdown-menu a:hover, .site-theme .dropdown-menu a.active { color: #c7f4e6; background: #b5ead812; }
.site-theme .btn-contact, .site-theme .btn-primary, .site-theme .btn-search {
    background: #b5ead8; color: #153e35; border: 1px solid #b5ead8; border-radius: 6px;
    box-shadow: none; font-weight: 600; transform: none;
}
.site-theme .btn-contact:hover, .site-theme .btn-primary:hover, .site-theme .btn-search:hover { background: #c9f2e4; border-color: #c9f2e4; color: #153e35; box-shadow: none; transform: none; }
.site-theme :is(a,button,input,select,textarea):focus-visible { outline: 3px solid #397d6e; outline-offset: 3px; }
.site-theme .navbar :is(a,button):focus-visible { outline-color: #b5ead8; }
.site-theme .page-hero {
    background: #0b1420; color: #eef4f8; padding: 55px 24px 62px;
    min-height: 220px; height: auto; max-height: none; text-align: left;
}
.site-theme .page-hero-content { width: min(1160px,100%); margin: auto; }
.site-theme .page-hero-content h1 { color: #eef4f8; font-size: clamp(28px,3.2vw,44px); font-weight: 600; letter-spacing: -.025em; line-height: 1.4; text-shadow: none; margin-bottom: 16px; }
.site-theme .page-hero-content p { color: #aabcca; font-size: 15px; line-height: 1.8; opacity: 1; }
.site-theme .page-hero-content .page-eyebrow { color: #a5d8c8; font-size: 11px; letter-spacing: .18em; margin-bottom: 16px; }
.site-theme .footer-fade { display: none; }
.site-theme .footer { --ice-blue: #d1dce7; --electric-blue: #b5ead8; background: #0b1420; color: #c0cfdb; padding: 42px 0 20px; }
.site-theme .footer-section h3, .site-theme .footer-phone { color: #e2edf4; }
.site-theme .footer-section p, .site-theme .footer-section ul li a { color: #bacbd8; opacity: 1; }
.site-theme .footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid #ffffff18; color: #adbecc; opacity: 1; }
.site-theme .footer-bottom a { color: #b5ead8; }
.site-theme .qr-caption { color: #aebfcc; }

/* Detail-page layout and navigation */
.theme-inner :is(.products-container,.resources-wrapper) { grid-template-columns: 230px minmax(0,1fr); gap: 32px; padding-top: 48px; padding-bottom: 72px; }
.theme-inner :is(.product-sidebar,.resource-sidebar) { top: 94px; min-width: 0; }
.theme-inner :is(.product-nav,.filter-section) { background: #fff; border: 1px solid var(--theme-line); border-radius: 10px; padding: 22px 16px; }
.theme-inner :is(.nav-section h3,.filter-section h3) { color: #172b38; font-size: 16px; font-weight: 600; margin-bottom: 18px; }
.theme-inner .nav-section .nav-item { color: #536674; border-left: 2px solid transparent; font-size: 14px; padding: 11px 12px; }
.theme-inner .nav-section .nav-item:hover, .theme-inner .nav-section .nav-item.active { color: #20594c; background: #e5f3ee; border-left-color: #397d6e; padding-left: 12px; }
.theme-inner .product-content { min-width: 0; padding: 30px; background: #fff; border: 1px solid var(--theme-line); border-radius: 12px; }
.theme-inner .resource-content { min-width: 0; padding: 0; }
.theme-inner :is(.product-section,.about-section,.resource-section) { scroll-margin-top: 100px; margin-bottom: 0; }
.theme-inner :is(.product-section,.about-section,.resource-section) h2 { display: block; font-size: clamp(24px,2.3vw,32px); font-weight: 600; line-height: 1.5; color: #172b38; border-bottom: 1px solid #dce5e7; padding-bottom: 18px; }
.theme-inner :is(.product-content,.resource-content) :is(h3,h4) { color: #172b38; }
.theme-inner :is(.product-content,.resource-content) :is(p,li,figcaption), .theme-inner .intro-subtitle { color: #536674; }
.theme-inner :is(.product-content,.resource-content) :is(p,li) { line-height: 1.85; }
.theme-inner .intro-subtitle { font-style: normal; font-size: 16px; }
.theme-inner :is(.product-tabs,.resource-tabs) { border-bottom: 1px solid #dce5e7; margin-top: 0; gap: 8px; }
.theme-inner :is(.tab-btn,.resource-tab) { color: #536674; padding: 12px 16px; }
.theme-inner :is(.tab-btn,.resource-tab):hover, .theme-inner :is(.tab-btn,.resource-tab).active { color: #20594c; border-bottom-color: #397d6e; background: #edf6f2; }

/* Shared content surfaces */
.theme-inner :is(.media-card,.feature-item,.case-item,.app-item,.result-item,.company-intro,.team-section,.info-block,.contact-form,.privacy-content,.resource-card,.video-card,.news-feature-card,.promo-plan,.promo-part) {
    color: #172b38; background: #fff; border: 1px solid #dce5e7; border-radius: 10px; box-shadow: none;
}
.theme-inner :is(.feature-item,.case-item,.app-item,.result-item,.company-intro,.team-section,.info-block,.promo-plan,.promo-part) { background: #f7faf9; }
.theme-inner :is(.media-card,.feature-item,.case-item,.app-item,.resource-card,.video-card):hover { transform: none; box-shadow: none; border-color: #a3c9bc; }
.theme-inner :is(.highlight-box,.highlight-item,.placeholder-section,.contact-prompt,.info-box,.empty-result) { background: #edf6f2; border: 1px solid #d4e9df; border-left: 3px solid #78ad99; border-radius: 8px; color: #34594d; }
.theme-inner :is(.highlight-box,.highlight-item,.info-box) :is(p,li) { color: #34594d; }
.theme-inner .feature-item li::before { color: #397d6e; }
.theme-inner :is(.inline-figure,.promo-interface,.promo-showcase-card,.service-video-block,.news-inline-figure,.news-image-grid figure) { background: #f5f8f7; border: 1px solid #dce5e7; border-radius: 8px; }
.theme-inner :is(.media-card img,.inline-figure img,.promo-interface img,.promo-showcase-card img,.resource-card-thumb,.news-inline-figure img,.news-image-grid img) { background: #f0f4f3; }
.theme-inner .partner-brand-strip { display:flex; align-items:center; gap:1.5rem; margin:.5rem 0 1.5rem; flex-wrap:wrap; padding:18px; background:#132434; border-radius:8px; color:#c4d7e4; --text-secondary:#b5c8d7; }
.theme-inner .workflow { background: #f5f8f7; border: 1px solid #dce5e7; border-radius: 8px; }
.theme-inner .workflow-flat { width: 100%; margin-inline: 0; grid-template-columns: repeat(auto-fit,minmax(110px,1fr)); }
.theme-inner .workflow-flat .workflow-step { background: #fff; border-color: #dce5e7; }
.theme-inner .step-number { background: #e0f1e9; color: #20594c; }
.theme-inner .step-name { color: #172b38; }
.theme-inner .workflow-arrow { color: #397d6e; }
.theme-inner .table-section { max-width: 100%; overflow-x: auto; }
.theme-inner .service-table { background: #fff; border: 1px solid #dce5e7; border-radius: 8px; box-shadow: none; }
.theme-inner .service-table thead { background: #e5f1ed; color: #20594c; }
.theme-inner .service-table :is(td,th) { border-bottom: 1px solid #dce5e7; overflow-wrap: anywhere; }
.theme-inner .service-table td { color: #536674; }
.theme-inner .service-table tbody tr:hover { background: #f5faf7; }
.theme-inner :is(.doc-link,.card-link,.reset-link,.timeline-date) { color: #246759; }
.theme-inner .card-link:hover { background: #edf6f2; color: #174d41; }
.theme-inner .promo-kicker { background: #e5f3ee; color: #20594c; border-color: #c3e0d3; }
.theme-inner .prose-block { color: #536674; }

/* Resources, filters, contact forms */
.theme-inner :is(.card-header,.news-feature-hero) { background: #f5f8f7; border-bottom: 1px solid #dce5e7; }
.theme-inner :is(.card-meta,.card-desc,.card-tags) { border-color: #e3eaec; }
.theme-inner .journal { color: #536674; }
.theme-inner :is(.tag,.year-badge,.if-badge) { background: #e5f3ee; color: #20594c; border-color: #c3e0d3; }
.theme-inner .resource-grid { grid-template-columns: repeat(auto-fit,minmax(min(280px,100%),1fr)); }
.theme-inner .news-feature-hero { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.theme-inner .doi-links a { background: #e0f1e9; color: #20594c; }
.theme-inner :is(.filter-group,.form-group) :is(input,select,textarea) { background: #fff; color: #172b38; border: 1px solid #c9d6da; border-radius: 6px; box-shadow: none; }
.theme-inner :is(.filter-group,.form-group) :is(input,select,textarea):focus { border-color: #397d6e; }
.theme-inner :is(.filter-group,.form-group) label { color: #334b57; }
.theme-inner input::placeholder, .theme-inner textarea::placeholder { color: #6c7c85; }
.theme-inner .form-hint { color: #536674; }
.theme-inner .form-error { color: #a92f36; }
.theme-inner .news-timeline::before { background: #cadfd5; }
.theme-inner .timeline-item::before { background: #397d6e; box-shadow: 0 0 0 2px #c3e0d3; }

/* Lingmou uses the same light detail-page palette. */
.theme-inner .lab-section { --lab-mint: #246759; }
.theme-inner .lab-section .lab-intro h2 { border: 0; padding-bottom: 0; }
.theme-inner .lab-section .lab-eyebrow { color: #246759; }
.theme-inner .lab-section .intro-subtitle { color: #246759; }
.theme-inner .lab-figure { background: #f5f8f7; border-color: #dce5e7; }
.theme-inner .lab-capability { background: #f7faf9; border-color: #dce5e7; }
.theme-inner :is(.lab-workflow li,.lab-contact) { border-color: #dce5e7; }
.theme-inner .lab-contact-link { background: #b5ead8; color: #153e35; }
.theme-inner .lab-contact-link:hover { background: #c9f2e4; }

/* Download and editorial pages */
.theme-inner :is(.download-panel,.news-article) { width: min(100% - 40px,960px); margin: 48px auto 72px; padding: 42px; background: #fff; border: 1px solid #dce5e7; border-radius: 12px; color: #172b38; line-height: 1.9; }
.theme-inner .news-article { max-width: 860px; font-size: 16px; }
.theme-inner .download-badge { display: inline-block; padding: 4px 12px; color: #20594c; background: #e5f3ee; border-radius: 5px; font-size: 12px; letter-spacing: .08em; }
.theme-inner .download-panel > h2 { font-size: clamp(25px,3vw,34px); margin: 16px 0 8px; font-weight: 600; }
.theme-inner .download-description { color: #536674; font-size: 15px; }
.theme-inner .download-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 32px; }
.theme-inner .download-option { background: #f7faf9; border: 1px solid #dce5e7; border-radius: 8px; padding: 24px; }
.theme-inner .download-platform { color: #397d6e; font-size: 10px; letter-spacing: .15em; }
.theme-inner .download-option h3 { font-size: 22px; margin: 14px 0 6px; font-weight: 600; }
.theme-inner .download-option p { font-size: 14px; color: #536674; margin-bottom: 24px; }
.theme-inner .download-option .btn-primary { width: 100%; padding: 12px; font-size: 14px; }
.theme-inner .download-note { margin: 28px 0; color: #536674; font-size: 13px; }
.theme-inner .download-note a, .theme-inner .download-back { color: #246759; }
.theme-inner .download-back { font-size: 13px; text-decoration: none; }
.theme-inner .customer-panel { padding-block: 48px 72px; min-height: 300px; }

@media(max-width: 900px) {
    .theme-inner :is(.products-container,.resources-wrapper) { grid-template-columns: 200px minmax(0,1fr); gap: 22px; }
    .theme-inner .product-content { padding: 24px; }
    .theme-inner :is(.contact-form-container,.news-feature-hero) { grid-template-columns: 1fr; }
    .theme-inner .media-grid { grid-template-columns: repeat(auto-fit,minmax(min(220px,100%),1fr)); }
    .theme-inner .service-video-block { grid-template-columns: 1fr; }
}
@media(max-width: 768px) {
    .site-theme .page-hero { min-height: 190px; padding: 36px 20px 42px; }
    .site-theme .page-hero-content h1 { font-size: 28px; }
    .theme-inner :is(.products-container,.resources-wrapper) { grid-template-columns: minmax(0,1fr); padding-top: 26px; padding-bottom: 42px; gap: 22px; }
    .theme-inner :is(.product-sidebar,.resource-sidebar) { position: static; }
    .theme-inner .nav-section ul { display: flex; flex-wrap: wrap; gap: 6px; }
    .theme-inner .nav-section ul li { margin: 0; }
    .theme-inner .nav-section .nav-item { font-size: 13px; padding: 9px 10px; }
    .theme-inner .product-content { padding: 22px; }
    .theme-inner .download-options { grid-template-columns: 1fr; }
    .theme-inner :is(.download-panel,.news-article) { padding: 24px; margin-block: 28px 42px; }
    .theme-inner .contact-form { padding: 20px; }
    .theme-inner :is(.tab-btn,.resource-tab) { padding: 10px 12px; font-size: 13px; }
    .theme-inner .result-showcase, .theme-inner .video-grid { grid-template-columns: minmax(0,1fr); }
}
@media(prefers-reduced-motion:reduce) {
    .site-theme *, .site-theme *::before, .site-theme *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Temporary desktop-only download presentation. */
.theme-inner .download-options.download-options-single { grid-template-columns: minmax(0, 1fr); }
