/* 全站颜色在此定义。旧页面由构建工具最后加载本文件。 */
:root {
  --ui-white: #ffffff;
  --ui-surface: #f5f7f5;
  --ui-green: #047857;
  --ui-green-hover: #065f46;
  --ui-tint: #eaf6ef;
  --ui-text: #242824;
  --ui-muted: #59615c;
  --ui-border: #dce3dd;
  --ui-radius-hero: 20px;
  --ui-radius-photo: 16px;
  --ui-radius-button: 8px;
  /* 可持续发展页已有的变量，同步使用全站颜色。 */
  --primary: var(--ui-green);
  --primary-dark: var(--ui-green-hover);
  --primary-light: var(--ui-tint);
  --slate-50: var(--ui-surface);
  --slate-100: var(--ui-border);
  --slate-200: var(--ui-border);
  --slate-400: var(--ui-muted);
  --slate-600: var(--ui-muted);
  --slate-800: var(--ui-text);
  --slate-900: var(--ui-text);
}

body, body.entry-page, .main-content {
  background: var(--ui-white);
  color: var(--ui-text);
}
a { color: var(--ui-green); }
a:hover { color: var(--ui-green-hover); }
::selection { color: var(--ui-text); background: var(--ui-tint); }
::-webkit-scrollbar-track { background: var(--ui-surface); }
::-webkit-scrollbar-thumb { background: var(--ui-green); }
::-webkit-scrollbar-thumb:hover { background: var(--ui-green-hover); }
:is(a, button, summary, input, textarea, select):focus-visible {
  outline: 3px solid var(--ui-green);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--ui-white);
}
.skip-link, .entry-page a { color: var(--ui-green); }

/* 导航、语言、证书标识和页脚。 */
.site-header, .brand-page .site-header, .mobile-menu-panel,
.product-mega-menu, .lang-dropdown-menu {
  background: var(--ui-white);
  border-color: var(--ui-border);
}
.site-header .badge, .tour-hero-badge {
  background: var(--ui-tint);
  color: var(--ui-green-hover);
  border-color: var(--ui-border);
}
.nav-links a, .product-dropdown-trigger, .mobile-menu-header, .mobile-menu-panel a {
  color: var(--ui-text);
}
.product-category :is(button, a), .lang-dropdown-trigger, .lang-dropdown-menu a,
.whatsapp-link, .mobile-menu-header i, .mobile-submenu .mobile-submenu-header,
.mobile-submenu .mobile-sub-submenu button, .mobile-submenu .mobile-sub-submenu-button {
  color: var(--ui-muted);
}
.product-category h3 { color: var(--ui-green); border-color: var(--ui-border); }
.nav-links a:is(:hover, .active), .product-dropdown-trigger:is(:hover, .active),
.product-dropdown[open] > summary, .lang-dropdown[open] > summary,
.product-category :is(a, button):hover, .lang-dropdown-trigger:hover, .whatsapp-link:hover,
.mobile-menu-panel a:hover, .mobile-menu-header:hover, .mobile-submenu .mobile-submenu-header:hover,
.mobile-submenu .mobile-sub-submenu button:hover {
  color: var(--ui-green);
}
.nav-links a::after, .product-dropdown-trigger::after { background: var(--ui-green); }
.lang-dropdown-menu a:is(:hover, .active, [aria-current]) {
  background: var(--ui-tint);
  color: var(--ui-green-hover);
}
.menu-toggle, .mobile-lang-list :is(button, a) { background: var(--ui-surface); color: var(--ui-text); }
.menu-toggle:hover { background: var(--ui-tint); }
.mobile-menu-item, .mobile-submenu .mobile-submenu-item, .mobile-menu-panel a { border-color: var(--ui-border); }
.mobile-lang-list a:is([aria-current], :hover), .mobile-lang-list button:is(.active, :hover),
.mobile-menu-panel .btn-mobile, .btn-quote, .brand-page .btn-quote {
  background: var(--ui-green);
  color: var(--ui-white);
  box-shadow: none;
}
.mobile-menu-panel .btn-mobile:hover, .btn-quote:hover, .brand-page .btn-quote:hover {
  background: var(--ui-green-hover);
  color: var(--ui-white);
}
.site-footer { background: var(--ui-surface); color: var(--ui-muted); border-color: var(--ui-border); }
.footer-grid div > h4 { color: var(--ui-text); border-color: var(--ui-green); }
.footer-grid div a, .social-icons i { color: var(--ui-muted); }
.footer-grid div a:hover, .social-icons i:hover { color: var(--ui-green-hover); }
.copyright { color: var(--ui-muted); border-color: var(--ui-border); }

/* 产品及博客列表的层级、按钮和翻页。 */
.breadcrumb, .breadcrumb a, .breadcrumb i, .category-sub-header .category-sub-title,
.category-header p, .product-desc, .pagination-info, .pagination-ellipsis, .page-ellipsis,
.article-excerpt, .expert-card p, .expert-card .quote, .no-articles, .author-info,
.image-caption, .update-date, .filter-tabs a, .hero-meta { color: var(--ui-muted); }
.breadcrumb span, .product-info h1, .category-header h1, .category-sub-header h2,
.product-title, .article-title, .author-name { color: var(--ui-text); }
.product-title > a { color: inherit; }
.breadcrumb a:hover, .filter-tabs a:hover, .article-card:hover .article-title,
.product-card:hover .product-title, .product-card:hover .product-title > a,
.tags-card h4 { color: var(--ui-green); }
.category-sub-header, .product-card, .filter-tabs, .article-card, .tags-card, .expert-card,
.expert-avatar { border-color: var(--ui-border); }
.product-card:hover, .expert-avatar { border-color: var(--ui-green); }
.card-img-container, .article-image, .hero-image, .expert-card, .author-avatar { background-color: var(--ui-surface); }
.filter-tabs a.active { color: var(--ui-green); border-bottom-color: var(--ui-green); }
.btn-outline, .pagination-link, .page-link {
  color: var(--ui-muted);
  background: var(--ui-white);
  border-color: var(--ui-border);
}
.btn-outline:hover, .pagination-link:hover, .page-link:hover:not(.active):not(.disabled) {
  color: var(--ui-green-hover);
  background: var(--ui-tint);
  border-color: var(--ui-green);
}
.btn-primary-sm, .hero-btn, a.submit-btn, .quote-card button, .btn-partner, .home-btn,
.page-link.active, .pagination-link.active {
  color: var(--ui-white);
  background: var(--ui-green);
  border-color: var(--ui-green);
}
.btn-primary-sm:hover, .hero-btn:hover, a.submit-btn:hover, .quote-card button:hover,
.btn-partner:hover, .home-btn:hover {
  color: var(--ui-white);
  background: var(--ui-green-hover);
}
.pagination-link.disabled, .page-link.disabled { color: var(--ui-muted); background: var(--ui-surface); }
.category-badge, .insight-box, .category-badge a, .trust-badge i {
  color: var(--ui-green-hover);
  background: var(--ui-tint);
  border-color: var(--ui-green);
}
.tag-list a { background: var(--ui-surface); color: var(--ui-muted); }
.tag-list a:hover { background: var(--ui-green); color: var(--ui-white); }

/* 产品详情。仅修改主图占位底色，保留缩略图上的真实背景图片。 */
.main-image { background-color: var(--ui-surface); }
.main-image:not([style*="url("]) { background-image: none; }
.thumbnail { border-color: var(--ui-border); color: var(--ui-muted); }
.thumbnail:hover, .gallery-thumbnail[aria-current] { border-color: var(--ui-green); outline-color: var(--ui-green); }
.product-info h1, .quote-card h3, .error-code, .tour-hero h1 span {
  background-image: none;
  color: var(--ui-text);
  -webkit-text-fill-color: currentColor;
}
.product-meta, .trust-section h4, .static-contact-note, .faq-answer { color: var(--ui-muted); }
.product-meta, .spec-row, .trust-section, .quote-card, .faq-answer { border-color: var(--ui-border); }
.spec-card, .engineer-note, .value-prop, .formula-block, .executive-summary {
  background: var(--ui-surface);
  border-color: var(--ui-border);
  color: var(--ui-text);
}
.value-prop:hover, .engineer-avatar { background: var(--ui-tint); }
.engineer-avatar { border-color: var(--ui-green); }
.logistics-card, .hero-featured, .hero-pledge, .hero-guarantee, .hero-quality,
.hero-global, .hero-banner, .tour-hero {
  background: var(--ui-surface);
  color: var(--ui-text);
  border-color: var(--ui-border);
}
.logistics-card::before, .logistics-card::after, .hero-featured::before, .hero-pledge::before,
.hero-guarantee::before, .hero-quality::before, .hero-global::before, .hero-banner::before,
.tour-hero::before { background: none; }
.logistics-card:hover, .shipping-stats h4, .shipping-stats li { border-color: var(--ui-border); }
.shipping-stats > div { background: var(--ui-white); border-color: var(--ui-border); }
.shipping-stats > div:hover { background: var(--ui-tint); }
.shipping-stats h4, .shipping-stats li span:first-child { color: var(--ui-muted); }
.shipping-stats li span:last-child, .shipping-stats .text-white { color: var(--ui-text); }
.logistics-card h2 i, .logistics-card h3 i { color: var(--ui-green); filter: none; }
.tech-table :is(th, td), .spec-table :is(th, td), .logistics-table :is(th, td),
.comparison-table :is(th,td) { border-color: var(--ui-border); }
.tech-table th, .spec-table th, .logistics-table th, .comparison-table th {
  color: var(--ui-text);
  background: var(--ui-surface);
}
.tech-table th i, .spec-table td::before, .logistics-table td::before { color: var(--ui-green); }
.tech-table td { color: var(--ui-text); background: var(--ui-white); }
.tech-table tr:nth-child(even) td { background-color: var(--ui-surface); }
.tech-table tr:hover td, .logistics-table tr:hover td { background-color: var(--ui-tint); }
.faq-item { border-color: var(--ui-border); }
.faq-item:is(:hover, .open, [open]) { border-color: var(--ui-green); }
.faq-question { background: var(--ui-surface); color: var(--ui-text); }
.faq-question:hover, .faq-item:is(.open, [open]) .faq-question {
  background: var(--ui-tint);
  color: var(--ui-green-hover);
}
.quote-card :is(input, select), textarea { border-color: var(--ui-border); background: var(--ui-white); }
.quote-card :is(input, select):focus, textarea:focus { border-color: var(--ui-green); }
.static-contact-panel :is(input, textarea, select):disabled, textarea:disabled {
  color: var(--ui-muted);
  background: var(--ui-surface);
}
textarea::placeholder { color: var(--ui-muted); }

/* 政策、全球业务、可持续发展、全景入口与文章目录。红色警示保留原义。 */
.content-area, .toc-nav, .update-card, .effective-date, .download-card, .quality-card,
.safety-card, .physical-item, .contact-card, .standard-header, .expert-card, .tour-info-card,
.logistics-table, .logistics-table tr, .shipping-card, .region-card, .expo-item,
.standard-box, .compliance-card, .ethics-card, .security-card, .download-box,
.steps-list, .claim-steps, .page-header, .legal-heading, .section-title { border-color: var(--ui-border); }
.update-card, .effective-date, .download-card, .quality-card, .safety-card, .physical-item,
.contact-card, .standard-header, .section-light, .tour-info-card, .case-study-box,
.reference-card-image, .insert-img, .whitepaper-card { background: var(--ui-surface); }
.toc-nav :is(.nav-title, .nav-header), .legal-heading i, .legal-list li::before,
.legal-list.decimal li::before, .card-title.teal, .section-title i, .stat-number,
.help-links a, .error-code, .error-icon, .tour-hero h1 span { color: var(--ui-green); }
.toc-nav a, .legal-text, .legal-list, .legal-list li, .standard-body, .partner-logo,
.security-icon, .tour-hero p, .tour-stat-label, .section-subtitle, .tour-info-card p,
.reference-card-body p, .error-message, .stat-item p { color: var(--ui-muted); }
.toc-nav a:is(:hover, .active) { background: var(--ui-tint); color: var(--ui-green-hover); border-left-color: var(--ui-green); }
.toc-nav a.active { box-shadow: none; }
.page-header h1, .section-title, .legal-heading, .tour-hero h1,
.reference-card-body h4, .tour-info-card h3, .tour-stat, .whitepaper-card { color: var(--ui-text); }
.section-title::after, .claim-number, .case-tag, .step-item:last-child .step-dot,
.expo-date, .eco-badge-card, .tour-info-icon, .tour-cta {
  background: var(--ui-green);
  color: var(--ui-white);
}
.tour-cta p, .tour-info-icon i, .eco-badge-card :is(p, span) { color: var(--ui-white); }
.whitepaper-card :is(a, button), .ip-card h4 { color: var(--ui-green-hover); }
.whitepaper-card button { background: var(--ui-white); }
.hero-pledge h3, .hero-guarantee h3, .hero-quality h3, .tour-stat-value,
.stat-item h4 { color: var(--ui-green); }
.tour-hero-badge, .step-dot, .tour-cta-btn:hover, .physical-item:hover {
  background: var(--ui-tint);
  color: var(--ui-green-hover);
}
.hero-stats, .tour-hero-badge { border-color: var(--ui-border); }
.tour-cta-btn, .resolution-badge { color: var(--ui-green); background: var(--ui-white); border-color: var(--ui-border); }
.ip-card, .mold-card, .audit-status, .audit-focus, .environment-card, .support-card,
.export-badge, .compliance-card.green, .partner-card, .ddp-badge {
  background: var(--ui-tint);
  border-color: var(--ui-border);
  color: var(--ui-green-hover);
}
.audit-focus { border-left-color: var(--ui-green); }
:is(.compliance-card, .safety-card, .security-card, .shipping-card, .region-card, .expo-item):hover { border-color: var(--ui-green); }
.map-dot { background: var(--ui-green); box-shadow: none; animation: none; }
.hero-guarantee .guarantee-item i { color: var(--ui-green); }
.hero-banner .bg-emerald-500\/20, .from-blue-50 { background: var(--ui-tint); }
.hero-featured .bg-green-500 { background: var(--ui-green); color: var(--ui-white); }
:is(.text-green-500, .text-green-600, .text-green-700, .text-green-800, .text-green-900,
    .text-emerald-400, .text-emerald-500, .text-emerald-600, .text-blue-300, .text-blue-600) { color: var(--ui-green); }
:is(.text-slate-200, .text-slate-300, .text-slate-400, .text-slate-500, .text-slate-600, .text-slate-700) { color: var(--ui-muted); }
:is(.text-slate-800, .text-slate-900) { color: var(--ui-text); }
:is(.border-slate-100, .border-slate-200, .border-emerald-50) { border-color: var(--ui-border); }
.border-green-500 { border-color: var(--ui-green); }
.bg-slate-50 { background-color: var(--ui-surface); }
.bg-emerald-50 { background-color: var(--ui-tint); }

/* 独立联系页沿用旧表单布局，在组件内对齐颜色。 */
body[data-page-type="utility"] { background-color: var(--ui-white); }
.mobile-container {
  --emerald-50: var(--ui-tint);
  --emerald-100: var(--ui-border);
  --emerald-200: var(--ui-border);
  --emerald-500: var(--ui-green);
  --emerald-600: var(--ui-green-hover);
  --emerald-700: var(--ui-green-hover);
  --gray-50: var(--ui-surface);
  --gray-700: var(--ui-text);
}
.mobile-container .header { background: var(--ui-green); color: var(--ui-white); }
.mobile-container .header p { color: var(--ui-white); }
.mobile-container .website-guide { background: var(--ui-tint); }
.mobile-container .website-guide p, .mobile-container .form-group label { color: var(--ui-text); }
.mobile-container .form-input { color: var(--ui-text); }
.mobile-container .form-input::placeholder { color: var(--ui-muted); }
.mobile-container .form-input:focus-visible { outline: 2px solid var(--ui-green); }

/* 只柔化展示照片及其画框，保留标志、图注、表格和全景画布的原有形状。 */
.brand-cover img, .main-image, .hero-image, .hero-image > img {
  border-radius: var(--ui-radius-hero);
}
.brand-tile img, .brand-study figure img, .brand-details img, .brand-legacy-text > img,
.card-img-container, .gallery-thumbnail, .article-image, .reference-card-image {
  border-radius: var(--ui-radius-photo);
}
.main-image, .hero-image { box-shadow: none; }
.brand-button, .btn-quote, .mobile-menu-panel .btn-mobile, .hero-btn,
.btn-primary-sm, .btn-outline, a.submit-btn, .btn-partner, .tour-cta-btn,
.home-btn, .mobile-container .btn-primary { border-radius: var(--ui-radius-button); }

/* 让照片和正文之间的留白分隔内容，卡片不再重复描边。 */
.product-card, .product-card:hover, .article-card, .expert-card, .engineer-note {
  border: 0;
  box-shadow: none;
}
.product-card { overflow: visible; }
.product-card:hover { transform: none; }
.quote-card, .tags-card { border-color: var(--ui-surface); box-shadow: none; }
.reference-card, .reference-card:hover { border: 0; box-shadow: none; }

@media (max-width: 760px) {
  :root {
    --ui-radius-hero: 14px;
    --ui-radius-photo: 12px;
  }
}
