/* ============================================================
   鼎达信官网 — 全站共享样式
   设计语言：精密工业 / 品牌红 / 炭黑基底 / 技术图纸感
   ============================================================ */

:root {
  --brand-red: #C8102E;
  --brand-red-dark: #9E0B23;
  --brand-red-light: #E8384F;
  --brand-orange: #FF6A00;
  --brand-orange-dark: #E55A00;
  --ink: #14171C;
  --ink-soft: #232830;
  --steel: #3D4550;
  --gray: #6B7280;
  --gray-light: #D1D5DB;
  --bg: #FFFFFF;
  --bg-soft: #F5F6F8;
  --bg-dark: #14171C;
  --bg-dark-2: #1C2027;
  --accent-teal: #0E8C7F;
  --accent-blue: #1B3A5C;
  --line: rgba(0,0,0,0.08);
  --line-dark: rgba(255,255,255,0.1);
  --radius: 2px;
  --max-w: 1280px;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* ---------- 工业网格背景图案 ---------- */
.grid-bg {
  background-image:
    linear-gradient(rgba(200,16,46,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,16,46,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.grid-bg-dark {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---------- 通用容器 ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- 章节标题 ---------- */
.section-head { margin-bottom: 56px; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 16px;
}

.section-label::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--brand-red);
}

.section-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.section-title .en {
  display: block;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--gray);
  margin-top: 8px;
  text-transform: uppercase;
}

.section-desc {
  margin-top: 20px;
  font-size: 16px;
  color: var(--steel);
  max-width: 640px;
  line-height: 1.8;
}

/* ============================================================
   导航栏
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.35s ease;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.nav-topbar {
  background: #F5F5F5;
  border-bottom: 1px solid #E8E8E8;
  height: 36px;
}

.nav-topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
}

.nav-topbar-left { display: flex; align-items: center; gap: 6px; }
.nav-topbar-right { display: flex; align-items: center; gap: 20px; }

.nav-topbar-right a {
  color: #888;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-topbar-right a:hover { color: var(--brand-red); }

.nav-main { height: 72px; background: #fff; }

.nav-main-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img { height: 42px; width: auto; display: block; }

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  margin-left: 40px;
}

.nav-menu-row { display: flex; align-items: center; gap: 28px; }
.nav-menu-row:first-child { font-size: 13px; }
.nav-menu-row:first-child a { color: #999; font-weight: 400; }
.nav-menu-row:last-child { font-size: 15px; }
.nav-menu-row:last-child a { color: var(--ink); font-weight: 600; }

.nav-menu a {
  position: relative;
  transition: color 0.2s;
  padding: 2px 0;
  white-space: nowrap;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-red);
  transition: width 0.25s ease;
}

.nav-menu a:hover, .nav-menu a.active { color: var(--brand-red); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 24px;
}

.nav-phone-icon {
  width: 36px;
  height: 36px;
  background: var(--brand-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.nav-phone-text { display: flex; flex-direction: column; line-height: 1.3; }
.nav-phone-label { font-size: 11px; color: #999; }
.nav-phone-num { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: 0.5px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: all 0.3s; }

/* 内页占位：把导航高度让出来 */
.page-top-pad { height: 108px; }

/* ============================================================
   内页页头 Banner
   ============================================================ */
.page-banner {
  position: relative;
  background: var(--bg-dark);
  padding: 88px 0 72px;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-banner::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(200,16,46,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.page-banner-inner { position: relative; z-index: 2; }

.page-banner .crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}
.page-banner .crumb a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.page-banner .crumb a:hover { color: var(--brand-red-light); }
.page-banner .crumb .sep { color: rgba(255,255,255,0.25); }
.page-banner .crumb .cur { color: var(--brand-red-light); }

.page-banner h1 {
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-banner h1 .en {
  display: block;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.4);
  margin-top: 10px;
  text-transform: uppercase;
}

.page-banner .banner-desc {
  margin-top: 16px;
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  max-width: 620px;
  line-height: 1.8;
}

/* ============================================================
   按钮
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-orange);
  color: #fff;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 1px;
}
.btn-primary:hover {
  background: var(--brand-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,106,0,0.35);
}

.btn-red {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-red);
  color: #fff;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 1px;
}
.btn-red:hover { background: var(--brand-red-dark); box-shadow: 0 6px 20px rgba(200,16,46,0.3); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: rgba(255,255,255,0.8);
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 1px;
}
.btn-outline:hover { border-color: var(--brand-red); color: #fff; background: rgba(200,16,46,0.1); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
  border: 1px solid var(--gray-light);
  cursor: pointer;
  transition: all 0.25s;
}
.btn-ghost:hover { border-color: var(--brand-red); color: var(--brand-red); }

/* ============================================================
   徽章 / 标签
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 2px;
}
.tag--red { background: var(--brand-red); color: #fff; }
.tag--orange { background: var(--brand-orange); color: #fff; }
.tag--dark { background: var(--ink); color: #fff; }
.tag--line { background: #fff; color: var(--steel); border: 1px solid var(--gray-light); }

/* ============================================================
   分页
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
}

.pagination a, .pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--steel);
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
}

.pagination a:hover { border-color: var(--brand-red); color: var(--brand-red); }
.pagination .cur {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}
.pagination .disabled { opacity: 0.35; pointer-events: none; }

/* ============================================================
   CTA 区
   ============================================================ */
.cta-section {
  padding: 100px 0;
  background: var(--brand-red);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

.cta-inner h2 { font-size: 36px; font-weight: 900; color: #fff; margin-bottom: 16px; line-height: 1.3; }
.cta-inner p { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 36px; line-height: 1.8; }
.cta-inner .btn-primary { background: #fff; color: var(--brand-orange); }
.cta-inner .btn-primary:hover { background: var(--ink); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ============================================================
   页脚
   ============================================================ */
.footer {
  background: #F7F7F7;
  color: #666;
  padding: 60px 0 0;
  border-top: 1px solid #E8E8E8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid #E0E0E0;
}

.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand-img { height: 34px; width: auto; max-width: none; flex-shrink: 0; display: block; object-fit: contain; }
.footer-brand .slogan { font-size: 13px; color: var(--brand-red); font-weight: 600; letter-spacing: 1px; }
.footer-brand p { font-size: 13px; line-height: 1.8; color: #888; max-width: 280px; }

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--brand-red);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: #888; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--brand-red); }

.footer-company-info { font-size: 13px; line-height: 2; color: #777; }
.footer-company-info .company-name { font-size: 15px; font-weight: 700; color: #333; margin-bottom: 8px; }
.footer-company-info .info-row { display: flex; gap: 6px; align-items: flex-start; }
.footer-company-info .info-row svg { flex-shrink: 0; margin-top: 5px; color: #aaa; width: 14px; height: 14px; }

.footer-social { display: flex; flex-direction: column; gap: 16px; }
.footer-social-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social-icons a,
.footer-social-icons span {
  width: 32px;
  height: 32px;
  background: #E8E8E8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: all 0.25s;
}
.footer-social-icons a:hover { background: var(--brand-red); color: #fff; }
.footer-social-icons span { cursor: default; }
.footer-social-icons span:hover { background: #E8E8E8; color: #888; }

.footer-qrcode {
  width: 90px;
  height: 90px;
  background: #fff;
  border: 1px solid #E0E0E0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 11px;
  text-align: center;
  overflow: hidden;
}
.footer-qrcode img { display: block; width: 100%; height: 100%; object-fit: contain; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: #999; }
.footer-bottom a:hover { color: var(--brand-red); }

/* ============================================================
   表单控件（全站统一）
   ============================================================ */
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.08);
}
.form-textarea { resize: vertical; min-height: 110px; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ============================================================
   滚动动画
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   资料在线预览
   ------------------------------------------------------------
   按钮 + 灯箱都放这里：灯箱标记由 _layout.php 在每个页面渲染一份，
   4 处资料列表（资料中心 / 产品详情 / 搜索 / 会员中心）共用同一套。
   ============================================================ */

/* 预览按钮：刻意做成「描边中性色」，与品牌红的「下载」有明显的
   主次关系 —— 客户一眼就知道哪个是主要动作（取走文件）。 */
.pv-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--steel);
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s;
}
.pv-btn:hover {
  color: var(--ink);
  background: var(--bg-soft);
  border-color: var(--steel);
}
/* 灯箱关闭时会把焦点还给触发它的按钮（键盘用户不会丢失位置），
   这时按钮上会留一个浏览器的默认焦点框 —— 样式统一成品牌红，看着是"有意的" */
.pv-btn:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 1px;
}

.pv-lb {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  background: rgba(15, 18, 22, 0.94);
  padding: 0;
}
.pv-lb[hidden] { display: none; }

.pv-lb-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  /* 实色（不是透明）：中间舞台保留半透明让页面透出来做背景，
     但顶栏/底栏压着文字，半透明会把底下的导航 logo、按钮都显影出来，
     看起来像错位。 */
  background: #0F1216;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.pv-lb-title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pv-lb-acts { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pv-lb-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--brand-red);
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s;
}
.pv-lb-dl:hover { background: var(--brand-red-dark); }
.pv-lb-x {
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}
.pv-lb-x:hover { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }

/* 舞台：flex 居中；内容超出时滚动（PDF 内嵌阅读器自己也有滚动条） */
.pv-lb-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: auto;
}
.pv-lb-load {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  text-align: center;
  max-width: 420px;
  line-height: 1.8;
}
.pv-lb-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.pv-lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #fff;
}
.pv-lb-pre {
  width: 100%;
  max-width: 1000px;
  max-height: 100%;
  margin: 0;
  padding: 22px 24px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink);
  background: #fff;
  white-space: pre-wrap;
  word-break: break-word;
}
.pv-lb-tip {
  flex-shrink: 0;
  padding: 10px 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
  background: #0F1216;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .nav-menu { gap: 20px; margin-left: 24px; }
  .nav-menu-row { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .nav-phone { display: none; }
}

@media (max-width: 768px) {
  .nav-topbar { display: none; }
  .nav-main { height: 64px; }
  .nav-logo-img { height: 34px; }
  .page-top-pad { height: 64px; }
  .page-banner { padding: 56px 0 48px; }
  .page-banner h1 { font-size: 30px; }
  .section-title { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .container { padding: 0 20px; }
  .cta-inner h2 { font-size: 26px; }
  .pv-lb-bar { padding: 10px 12px; gap: 10px; }
  .pv-lb-title { font-size: 13.5px; }
  .pv-lb-dl { padding: 7px 12px; font-size: 12.5px; }
  .pv-lb-stage { padding: 10px; }
  .pv-lb-pre { padding: 14px 16px; font-size: 12.5px; }
  .pv-lb-tip { padding: 8px 12px; font-size: 11.5px; }
}
