/* ============================================================
   沛烨智能 — 子页面（点击导航/卡片弹出的新页面）共享样式
   设计语言与画布主页一致：#000 底 / #0070F3 蓝 / #0D0D0D 卡面
   / Barlow + Noto Sans SC。复用 style.css 的 :root tokens。
   ============================================================ */
:root { --pad: 80px; }

/* ---- 子页顶部条（常规流，随 #app 缩放；尺寸对齐首页 nav） ---- */
.subnav {
  width: 100%; height: 76px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hairline);
  position: relative; z-index: 10;
}
.subnav-logo { display: flex; align-items: center; gap: 14px; font-size: 24px; font-weight: 600; color: #fff; }
.subnav-logo .mk {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
}
.subnav-logo .mk img {
  width: 100%; height: 100%; object-fit: contain;
  display: block;
}
.subnav-links { display: flex; align-items: center; gap: 36px; }
.subnav-links a { font-size: 15px; font-weight: 400; color: var(--muted); }
.subnav-links a:hover { color: #fff; }
.subnav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 26px; background: var(--accent); color: #fff;
  border-radius: 6px; font-size: 15px; font-weight: 500;
}

/* ---- 文档 Hero ---- */
.doc-hero { padding: 110px var(--pad) 48px; background: var(--bg); }
.doc-hero .kicker { display: block; margin-bottom: 16px; }
.doc-title { font-size: 56px; font-weight: 700; line-height: 1.1; color: #fff; max-width: 900px; }
.doc-sub { font-size: 18px; color: var(--muted); line-height: 1.7; max-width: 720px; margin-top: 20px; }

/* ---- 主内容区 ---- */
.doc-main { padding: 24px var(--pad) 120px; background: var(--bg); }
.doc-sec { margin-bottom: 96px; }
.doc-sec:last-child { margin-bottom: 0; }
.doc-sec-head { margin-bottom: 40px; max-width: 780px; }
.doc-sec-head .kicker { display: block; margin-bottom: 14px; }
.doc-sec-title { font-size: 36px; font-weight: 700; color: #fff; line-height: 1.2; }
.doc-sec-desc { font-size: 16px; color: var(--muted); line-height: 1.7; margin-top: 14px; }

/* ---- 关于我们 ---- */
.abt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.abt-text p { font-size: 16px; color: var(--muted); line-height: 1.85; margin-bottom: 16px; }
.abt-text p strong { color: #fff; }
.abt-img { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); border: 1px solid var(--card-border); }
.abt-img img { width: 100%; height: 100%; object-fit: cover; }
.abt-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag { padding: 8px 16px; background: rgba(0, 112, 243, .1); color: var(--accent); border: 1px solid rgba(0, 112, 243, .2); border-radius: 999px; font-size: 13px; font-weight: 600; }
.tag.gold { background: rgba(200, 160, 0, .1); color: #E0C030; border-color: rgba(200, 160, 0, .2); }

.timeline { margin-top: 32px; border-left: 2px solid var(--strong-border); padding-left: 26px; }
.tl-item { position: relative; padding-bottom: 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: -33px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(0, 112, 243, .2); }
.tl-year { font-family: var(--font-en); font-weight: 600; font-size: 14px; color: var(--accent); }
.tl-text { font-size: 14px; color: var(--muted); margin-top: 2px; }

.qual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.qual-card { background: var(--surface); border: 1px solid var(--card-border); border-radius: 8px; padding: 22px; text-align: center; }
.qual-card .qnum { font-family: var(--font-en); font-weight: 700; font-size: 28px; color: var(--accent); display: block; margin-bottom: 6px; }
.qual-card h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.qual-card p { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ---- 公司环境网格 ---- */
.env-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.env-card { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); border: 1px solid var(--card-border); }
.env-card img { width: 100%; height: 100%; object-fit: cover; }
.env-card .ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .82), transparent 60%); }
.env-card .lb { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 20px; }
.env-card .lb h4 { font-size: 15px; font-weight: 700; color: #fff; }
.env-card .lb p { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---- 成功案例网格 ---- */
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case-card { background: var(--surface); border: 1px solid var(--card-border); border-radius: 16px; overflow: hidden; }
.case-card .ci { aspect-ratio: 16 / 9; overflow: hidden; background: #111; display: flex; align-items: center; justify-content: center; padding: 10px; }
.case-card .ci img { width: 100%; height: 100%; object-fit: contain; }
.case-card .cb { padding: 24px; }
.case-card .client { font-family: var(--font-en); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.case-card h3 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.case-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---- 产品中心 ---- */
.prd-line { margin-bottom: 64px; }
.prd-line:last-child { margin-bottom: 0; }
.prd-line-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.prd-line-bar { width: 4px; height: 26px; background: var(--accent); border-radius: 2px; }
.prd-line-name { font-size: 24px; font-weight: 700; color: #fff; }
.prd-line-en { font-family: var(--font-en); font-size: 12px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }
.prd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.prd-card { display: block; background: var(--surface); border: 1px solid var(--card-border); border-radius: 16px; overflow: hidden; transition: all .3s; }
.prd-card:hover { border-color: var(--strong-border); transform: translateY(-4px); }
.prd-card .pi { aspect-ratio: 16 / 10; overflow: hidden; background: #111; display: flex; align-items: center; justify-content: center; padding: 10px; }
.prd-card .pi img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s; }
.prd-card:hover .pi img { transform: scale(1.04); }
.prd-card .pb { padding: 24px; }
.prd-card .ptag { font-family: var(--font-en); font-size: 22px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.prd-card h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; line-height: 1.35; }
.prd-card .pdesc { font-size: 14px; color: var(--muted); line-height: 1.65; }
.prd-card .pspec { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--card-border); font-size: 12.5px; color: rgba(255, 255, 255, .4); line-height: 1.7; }
.prd-card .plink { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--accent); }

/* ---- 资质证书：三张图等高、宽度按比例自适应（不留白）、无白底 ---- */
.cert-gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}
.cert-card {
  flex: 0 0 auto;
  width: auto;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  transition: all .3s;
  text-decoration: none;
  color: inherit;
}
.cert-card:hover {
  border-color: var(--strong-border);
  transform: translateY(-4px);
}
.cert-card .cert-frame {
  background: none;
  padding: 0;
  line-height: 0;
}
.cert-card .cert-frame img {
  display: block;
  height: 300px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.cert-name {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
  text-align: center;
}
.cert-meta {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .02em;
}
@media (max-width: 1024px) {
  .cert-card .cert-frame img { height: 240px; }
}
@media (max-width: 640px) {
  .cert-card .cert-frame img { height: 200px; }
}

/* ---- 技术实力 ---- */
.tch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tch-card { background: var(--surface); border: 1px solid var(--card-border); border-radius: 16px; padding: 32px 28px; transition: all .3s; }
.tch-card:hover { border-color: var(--accent); box-shadow: 0 0 30px rgba(0, 112, 243, .08); }
.tch-ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(0, 112, 243, .1); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.tch-card h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.tch-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---- 应用领域 ---- */
.fld-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.fld-card { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); border: 1px solid var(--card-border); }
.fld-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.fld-card .fov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .88), rgba(0, 0, 0, .3) 55%, transparent); }
.fld-card .fb { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px; }
.fld-card h3 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.fld-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---- 新闻动态 ---- */
.nws-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.nws-card { background: var(--surface); border: 1px solid var(--card-border); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; }
.nws-card .date { font-family: var(--font-en); font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.nws-card h3 { font-size: 17px; font-weight: 700; color: #fff; line-height: 1.45; margin-bottom: 10px; }
.nws-card p { font-size: 14px; color: var(--muted); line-height: 1.6; flex: 1; }
.nws-card .nlink { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--accent); }

/* ---- 子页页脚 ---- */
.subfoot { width: 100%; border-top: 1px solid var(--hairline); padding: 48px var(--pad) 40px; background: var(--bg); }
.subfoot-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.subfoot-brand { max-width: 320px; }
.subfoot-brand .bn { font-size: 22px; font-weight: 700; color: #fff; }
.subfoot-brand .be { font-family: var(--font-en); font-size: 12px; color: rgba(255, 255, 255, .4); font-weight: 700; letter-spacing: .08em; margin: 6px 0 12px; }
.subfoot-brand p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.subfoot-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.subfoot-col ul { list-style: none; }
.subfoot-col li { margin-bottom: 10px; }
.subfoot-col a { font-size: 13px; color: var(--muted); }
.subfoot-col a:hover { color: var(--accent); }
.subfoot-bottom { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 13px; color: rgba(255, 255, 255, .4); }

/* ---- 子页联系 CTA ---- */
.contact-cta { background: var(--surface); border: 1px solid var(--card-border); border-radius: 24px; padding: 48px; text-align: center; }
.contact-cta .ck { font-family: var(--font-en); font-size: 26px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.contact-cta h2 { font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.contact-cta p { font-size: 15px; color: var(--muted); max-width: 640px; margin: 0 auto 8px; line-height: 1.7; }
.contact-cta .btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 32px; margin-top: 20px; background: var(--accent); color: #fff; border-radius: 8px; font-size: 15px; font-weight: 600; }

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
  :root { --pad: 48px; }
  .abt-grid { grid-template-columns: 1fr; gap: 40px; }
  .abt-img { order: -1; }
  .env-grid { grid-template-columns: repeat(2, 1fr); }
  .qual-grid { grid-template-columns: 1fr 1fr; }
  .tch-grid { grid-template-columns: 1fr 1fr; }
  .fld-grid { grid-template-columns: 1fr; }
  .nws-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --pad: 24px; }
  .doc-title { font-size: 38px; }
  .subnav-links { display: none; }
  .cases-grid { grid-template-columns: 1fr; }
  .qual-grid { grid-template-columns: 1fr; }
  .tch-grid { grid-template-columns: 1fr; }
}
