/* ========================================================================
   subpage-v2.css · 子页深色统一层
   目的：让所有浅色子页（about/contact/products/faq/media/blog-*）
        与首页 V2「深色工业蓝图风」保持一致的观感。
   原则：
   1) 只做「外观覆盖」，不改任何 HTML 结构与内容、不碰 JSON-LD；
   2) 首页 index.html 不链接本文件（它已用 redesign-v2.css + style-v2.css）；
   3) 页面加载顺序固定：style.css → redesign-v2.css → subpage-v2.css，
      本文件全部用高优先级（!important / 后置覆盖）确保生效；
   4) 内联安全网：子页大量使用「内联浅底 + 深色文字」，直接把正文文字改浅色
      会让浅字落在浅底上不可见 —— 这里按全站实测的内联取值全集
      （背景 12 种 / 文字 8 种，见 tools/geo_v2_contrast_check.py 校验）
      用属性选择器 + !important 一并压成深色面板与浅色文字。
   ======================================================================== */

:root{
  --v2bg:#0a0e17; --v2bg2:#0f1626; --v2panel:#121b2e; --v2panel2:#16223a;
  --v2line:rgba(120,165,215,.20); --v2line-soft:rgba(120,165,215,.10);
  --v2cyan:#2ad4ee; --v2orange:#ff7a18;
  --v2text:#e8eef6; --v2muted:#9fb0c6; --v2muted2:#6c7d96;
}

/* ---------- 全局底色与文字 ---------- */
html{background:var(--v2bg);}
body{background:var(--v2bg)!important;color:var(--v2text)!important;}
body a{color:var(--v2cyan);}
body a:hover{color:#5be0f4;}

/* ---------- 顶部导航：固定白 → 吸顶深色 ---------- */
.navbar{position:sticky!important;top:0!important;height:66px!important;
  background:rgba(10,14,23,.92)!important;backdrop-filter:blur(14px);
  border-bottom:1px solid var(--v2line)!important;box-shadow:none!important;}
.navbar .logo-img{background:#fff;border-radius:6px;padding:3px;height:44px!important;}
.navbar .logo-text .logo-name{color:#fff!important;}
.navbar .logo-text .tagline{color:var(--v2muted2)!important;}
.nav-menu a{color:var(--v2muted)!important;}
.nav-menu a:hover,.nav-menu a:focus{color:var(--v2cyan)!important;background:rgba(42,212,238,.08)!important;}
.nav-sub{background:var(--v2panel)!important;box-shadow:0 20px 60px rgba(0,0,0,.5)!important;}
.nav-sub a{color:var(--v2muted)!important;}
.nav-sub a:hover{color:var(--v2cyan)!important;background:rgba(42,212,238,.08)!important;}
.menu-toggle span{background:var(--v2text)!important;}
@media(max-width:768px){
  .navbar{height:56px!important;min-height:56px;}
  .navbar .logo-img{height:36px!important;}
  /* 移动端抽屉由 mobile.css 统一处理（右侧滑入），此处不覆盖 top/background */
  .nav-sub{background:transparent!important;box-shadow:none!important;}
  .nav-sub a{color:var(--v2muted)!important;}
}

/* ---------- 页脚：向 V2 页脚对齐 ---------- */
.footer{background:#080c14!important;border-top:1px solid var(--v2line)!important;}
.footer-logo{background:#fff;border-radius:6px;padding:3px;height:44px!important;}
.footer-brand h3,.footer-links h4,.footer-contact h4{color:#fff!important;}
.footer-links h4::after,.footer-contact h4::after{background:var(--v2cyan)!important;}
.footer-brand p,.footer-links ul li a,.footer-contact p{color:var(--v2muted)!important;}
.footer-links ul li a:hover{color:var(--v2cyan)!important;}
.footer-bottom p{color:var(--v2muted2)!important;}

/* ---------- 页头横幅与面包屑 ---------- */
.page-header{background:linear-gradient(180deg,#0c1322,#0a0e17)!important;
  border-bottom:1px solid var(--v2line-soft)!important;padding:64px 0 44px!important;}
.page-header h1,.page-header-content h1{color:#fff!important;}
.page-header p,.page-header-content p{color:var(--v2muted)!important;}
.breadcrumb,.breadcrumb a{color:var(--v2muted2)!important;}
.breadcrumb a:hover{color:var(--v2cyan)!important;}

/* ---------- 区块标题 ---------- */
.section-header{text-align:center;margin-bottom:50px;}
.section-title,.section-header h1,.section-header h2{color:#fff!important;}
.section-title::after{background:var(--v2cyan)!important;}
.section-subtitle{color:var(--v2muted)!important;}

/* ---------- 区块底色：浅 → 深 ---------- */
section{background:transparent;}
.products,.features,.specs,.contact,.contact-section,.knowledge-section,
.articles-section,.applications,.products-service,.products-intro,
.company-intro,.company-values,.company-timeline,.faq-section,.media-section{background:transparent!important;}
.applications .section-title,.applications .section-subtitle{color:#fff!important;}
.knowledge-section{border-color:var(--v2line-soft)!important;}

/* ---------- 通用卡片：白 → 深色面板 ---------- */
.product-card,.feature-item,.app-item,.contact-item,.device-card,
.company-values .value-card,.stat-item{background:var(--v2panel)!important;
  border:1px solid var(--v2line)!important;color:var(--v2text)!important;}
.product-card:hover,.feature-item:hover,.app-item:hover{border-color:var(--v2cyan)!important;}
.feature-item h3,.app-item h3,.product-name,.contact-details h4{color:#fff!important;}
.feature-item p,.app-item p,.product-desc,.contact-details p{color:var(--v2muted)!important;}
.product-features li{color:var(--v2muted)!important;border-bottom-color:var(--v2line-soft)!important;}
.product-features li::before{color:var(--v2cyan)!important;}
.product-badge{background:var(--v2cyan)!important;color:#04121c!important;}
.product-badge.hot,.product-badge.pro{background:var(--v2orange)!important;color:#fff!important;}
.product-specs{background:var(--v2bg2)!important;border:1px solid var(--v2line-soft)!important;}
.spec-item{color:var(--v2text)!important;}
.spec-label{color:var(--v2muted2)!important;}
.spec-value{color:var(--v2text)!important;}
.stat-item .stat-number{color:var(--v2text)!important;}
.stat-item .stat-label{color:var(--v2muted)!important;}
.btn-product,.btn-primary{background:var(--v2orange)!important;color:#fff!important;}
.btn-product:hover,.btn-primary:hover{background:#e8650a!important;}

/* ---------- 参数表 ---------- */
.specs-table,.specs-table-detail{background:var(--v2panel)!important;}
.specs-table thead,.specs-table-detail thead{background:var(--v2panel2)!important;}
.specs-table thead th,.specs-table-detail thead th{color:var(--v2cyan)!important;}
.specs-table td,.specs-table-detail td{border-bottom-color:var(--v2line-soft)!important;color:var(--v2text)!important;}
.specs-table tbody tr:hover{background:var(--v2panel2)!important;}

/* ---------- 联系表单 ---------- */
.contact-form{background:var(--v2panel)!important;border:1px solid var(--v2line)!important;}
.form-group input,.form-group select,.form-group textarea{background:var(--v2bg2)!important;
  border:1px solid var(--v2line)!important;color:var(--v2text)!important;}
.form-group input::placeholder,.form-group textarea::placeholder{color:var(--v2muted2)!important;}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{
  border-color:var(--v2cyan)!important;box-shadow:0 0 0 3px rgba(42,212,238,.12)!important;}
.contact-form .btn-primary{background:var(--v2orange)!important;color:#fff!important;}
.contact-icon{background:rgba(42,212,238,.10)!important;}
.contact-details .mobile{color:var(--v2cyan)!important;}
.form-success{color:#3ddc97!important;}

/* ========================================================================
   内联安全网（核心！）
   全站子页内联浅底取值全集（grep 实测 2026-10-20）：
   #fff #ffffff #fdfdfd #eef2f9 #f0f5fb #eef6ff #eefaf2 #f0f6ff
   #fff2e8 #f7f9fc #f4f6fa #f0f4fa #f8fafc #f5f7fa
   内联样式优先级高于普通选择器，必须 !important 压制；
   其内文字原为继承或内联深色（#0066cc/#4a5568/#2b3547/#6b7686/#8a93a3/
   #33405a/#12233d/#5a6b82/#444），逐一映射为深色主题对应色。
   ======================================================================== */
body [style*="background:#fff"],body [style*="background: #fff"],
body [style*="background:#ffffff"],body [style*="background: #ffffff"],
body [style*="background:#fdfdfd"],body [style*="background:#eef2f9"],
body [style*="background: #eef2f9"],body [style*="background:#f0f5fb"],
body [style*="background: #f0f5fb"],body [style*="background:#eef6ff"],
body [style*="background: #eef6ff"],body [style*="background:#eefaf2"],
body [style*="background: #eefaf2"],body [style*="background:#f0f6ff"],
body [style*="background: #f0f6ff"],body [style*="background:#fff2e8"],
body [style*="background: #fff2e8"],body [style*="background:#f7f9fc"],
body [style*="background:#f4f6fa"],body [style*="background:#f0f4fa"],
body [style*="background:#f8fafc"],body [style*="background:#f5f7fa"]{
  background:var(--v2panel)!important;color:var(--v2text)!important;}

/* 「直接回答 / 一句话答案」引导块：橙色左边线保留品牌感 */
body p[style*="background:#eef6ff"],body p[style*="background:#eef2f9"],
body p[style*="background:#f0f6ff"]{border-left-color:var(--v2orange)!important;}

/* 内联深色文字 → 深色主题对应色 */
body [style*="color:#0066cc"]{color:var(--v2cyan)!important;}
body [style*="color:#4a5568"],body [style*="color:#2b3547"],
body [style*="color:#33405a"],body [style*="color:#12233d"],
body [style*="color:#444"]{color:var(--v2text)!important;}
body [style*="color:#6b7686"],body [style*="color:#8a93a3"],
body [style*="color:#5a6b82"]{color:var(--v2muted)!important;}

/* 表格统一：文字浅色、边框深色线、表头深底青字 */
body table th,body table td{color:var(--v2text)!important;
  border-color:var(--v2line)!important;}
body thead,body thead tr{background:var(--v2panel2)!important;}
body thead th{color:var(--v2cyan)!important;}

/* 行内 code */
body code{background:var(--v2bg2)!important;color:var(--v2cyan)!important;
  border:1px solid var(--v2line-soft)!important;border-radius:4px!important;
  padding:1px 6px!important;font-family:"SF Mono","JetBrains Mono",Consolas,monospace;}

/* ---------- 文章正文通用（无卡片包裹的裸元素） ---------- */
section h1,section h2,section h3,section h4{color:#fff;}
section p,section li{color:var(--v2text);}
section figcaption,section .img-caption{color:var(--v2muted2)!important;}

/* ---------- 产品页细节 ---------- */
.product-detail{background:var(--v2panel)!important;border:1px solid var(--v2line)!important;
  border-radius:12px!important;}
.product-detail h2,.product-detail h3{color:#fff!important;}
.product-detail p,.product-detail li{color:var(--v2text)!important;}
.detail-img{border-radius:10px;border:1px solid var(--v2line);background:#fff;padding:12px;object-fit:contain;}
/* 产品详情图容器：白底 3D 图需固定比例 + contain 适配，否则原图会撑满整屏 */
.product-detail-image{background:#fff;border:1px solid var(--v2line);border-radius:10px;
  padding:14px;margin-bottom:18px;overflow:hidden;}
.product-detail-image .detail-img{width:100%;height:auto;max-height:420px;display:block;
  border:0;border-radius:6px;padding:0;object-fit:contain;}
.product-features-list li{color:var(--v2text)!important;}
.products-intro,.products-showcase{color:var(--v2text)!important;}

/* ---------- 全局响应式兜底（改版后必查项） ---------- */
/* 图片未设 width:100% 时会按原始像素宽渲染，375 断点下必然横向溢出
   （实测 about.html 的 banner2.png 撑到 791px，溢出 440px）。此处统一兜底。 */
img{max-width:100%;height:auto;}
/* 宽表格（多列参数表/对比表）在窄屏必然溢出，用横向滚动容器兜住，
   而不是让它把整页撑宽。 */
@media (max-width:768px){
  table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;}
}
/* ---------- 媒体中心 / 时间线 ---------- */
.timeline-item,.media-card,.article-card{background:var(--v2panel)!important;
  border:1px solid var(--v2line)!important;}
.timeline-item h3,.media-card h3,.article-card h3{color:#fff!important;}
.timeline-item p,.media-card p,.article-card p{color:var(--v2muted)!important;}

/* ---------- 关于页 ---------- */
.intro-wrapper,.intro-content{color:var(--v2text)!important;}
.intro-content h2{color:#fff!important;}
.company-description{color:var(--v2muted)!important;}
.value-item,.milestone-item,.cert-item{background:var(--v2panel)!important;
  border:1px solid var(--v2line)!important;}
.value-item h3,.milestone-item h3,.cert-item h3{color:#fff!important;}
.value-item p,.milestone-item p,.cert-item p{color:var(--v2muted)!important;}
/* icon 位已从 emoji 改为可着色字符（emoji 是彩色字形，CSS color 管不到，深色底上不可见） */
.cert-icon,.team-icon,.team-avatar,.value-icon,.partner-icon,.timeline-icon,
.contact-info-icon,.feature-icon,.adv-icon,.value-icon,.milestone-icon,
.application-icon,.industry-icon,.scenario-icon{
  color:var(--v2cyan,#2ad4ee)!important;font-size:22px;line-height:1.2;
  width:44px;height:44px;border-radius:8px;display:flex;align-items:center;justify-content:center;
  background:rgba(42,212,238,.1);border:1px solid rgba(42,212,238,.25);margin-bottom:12px;}

/* ---------- 响应式兜底 ---------- */
@media(max-width:768px){
  .page-header{padding:44px 0 32px!important;}
}
