/* ============================================
   瑞昇大地（北京）工程科技有限公司 官网样式
   设计规范 V2：科技感 / 工业感 / 精密测量行业属性
   主色 #1A5276 · 亮蓝 #2E86C1 · 强调橙 #E67E22
   ============================================ */

/* ---------- 设计变量 ---------- */
:root {
  /* 品牌色：深蓝为唯一品牌色；电光青作精密高亮；navy 为深色锚点 */
  --primary:       #0A4D8C;          /* 唯一品牌色（导航/标题/主按钮）*/
  --primary-dark:  #073a6b;          /* 深蓝（按钮悬浮/深色区）*/
  --primary-light: #2975E4;          /* hover 蓝（链接/悬浮/次按钮）*/
  --navy:          #0B2E59;          /* 深色锚点（页脚/深色背景）*/
  --accent:        #1AA6E0;          /* 电光青（精密高亮：标尺刻度/精度数字/小标记）*/
  --accent-dark:   #1488c4;

  /* 画布与文字：冷灰画布 + 墨字 */
  --bg:            #F5F7FA;          /* 冷灰画布 */
  --bg-alt:        #FFFFFF;          /* 白色反白区/卡片 */
  --border:        #E5E9F0;          /* 冷调分割线 */
  --text:          #1A2230;          /* 墨字（正文）*/
  --text-muted:    #5A6678;          /* 次级文字 */
  --text-3:        #8A94A6;          /* 辅助/禁用 */

  /* 轻阴影 */
  --shadow-sm:     0 1px 3px rgba(16,32,64,.06);
  --shadow:        0 6px 24px rgba(16,32,64,.10);
  --shadow-2:      0 12px 32px rgba(16,32,64,.14);

  /* 圆角 6 / 10 / 16 */
  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     16px;

  /* 版心 1200 / 1440 */
  --container:     1200px;
  --container-wide:1440px;

  /* 180ms 克制过渡 */
  --transition:    .18s cubic-bezier(.4,0,.2,1);
  --header-h:      84px;

  /* 字体栈：系统中文无衬线 + 等宽（精密读数）*/
  --font-cn: "PingFang SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --font-en: "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  --font-mono: "SF Mono","Roboto Mono",Consolas,"Liberation Mono",Menlo,monospace;

  /* 字号层级（标题上限 56px）*/
  --h1: 40px;
  --h2: 30px;
  --h3: 24px;
  --h4: 20px;
  --display: 56px;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-cn), var(--font-en);
  font-size: 16px;
  line-height: 1.7;                 /* 正文 1.6–1.8 */
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

/* 锚点定位时避开固定头 */
section[id], [id].anchor { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- 通用容器 / 标题 ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }

.section__title {
  text-align: center;
  font-size: var(--h2); font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  position: relative;
  letter-spacing: .5px;
}
.section__title::after {
  content: ""; display: block;
  width: 56px; height: 3px; margin: 16px auto 0;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  border-radius: 2px;
}
.section__subtitle { text-align: center; color: var(--text-muted); margin-bottom: 52px; font-size: 16px; }

/* H1 标题（页面主标题） */
.page-hero h1 { font-size: var(--h1); }

/* H3 卡片标题 */
.card__title, .product-card__title, .advantage__title { font-size: var(--h3); }
/* H4 小标题 */
.footer h4, .contact-card h2, .cta-block h2 { font-size: var(--h4); }

/* ---------- 头部 / 导航 ---------- */
.header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 55%, var(--accent) 100%) 1;
  box-shadow: var(--shadow-sm);
}
.header__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 0px;
  height: var(--header-h);
  display: flex; align-items: center; gap: 12px;
}
.header__logo { margin-right: 0; flex: 0 0 auto; display: flex; align-items: center; }
.header__logo img { width: auto; max-width: 420px; height: 55px; object-fit: contain; object-position: left center; display: block; }
.header__nav { margin-left: auto; }
.header__tools { margin-left: 12px; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 16px; color: var(--text);
  font-weight: 500; white-space: nowrap;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.nav-list > li > a::after {
  content: ""; width: 0; height: 2px; margin-left: 2px;
  background: var(--accent); transition: width var(--transition);
}
.nav-list > li:hover > a,
.nav-list > li > a.active { background: var(--primary); color: #fff; }
.nav-list > li:hover > a::after { width: 14px; }

/* 二级下拉 */
.dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow);
  list-style: none;
  padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 50;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
  display: block; padding: 11px 22px;
  color: var(--text); font-size: 15px;
  border-left: 3px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.dropdown li a:hover { background: var(--bg-alt); color: var(--primary); border-left-color: var(--accent); }

/* 顶部工具：搜索 / 语言 / 电话 / 菜单 */
.header__icon-btn {
  width: 40px; height: 40px; border: none; background: transparent;
  border-radius: 50%; color: var(--primary); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.header__icon-btn:hover { background: var(--primary); color: #fff; }
.header__icon-btn svg { width: 20px; height: 20px; }
.header__lang {
  border: 1px solid var(--border); background: #fff; color: var(--primary);
  font-weight: 600; padding: 8px 12px; border-radius: var(--radius);
  cursor: pointer; transition: all var(--transition); font-size: 14px;
}
.header__lang:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap; text-decoration: none;
  padding: 9px 16px; background: var(--accent); color: #fff;
  border-radius: var(--radius); font-weight: 600; font-size: 14px;
}
.header__phone__icon { display: inline-flex; font-size: 16px; line-height: 1; }
.header__phone:hover { background: var(--accent-dark); color: #fff; }
.header__menu-btn {
  display: none; margin-left: 4px;
  background: none; border: none; font-size: 26px; color: var(--primary); cursor: pointer;
}

/* ---------- 搜索覆盖层 ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(11,46,89,.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: none; flex-direction: column; align-items: center;
  padding-top: 12vh;
}
.search-overlay.open { display: flex; }
.search-overlay__box {
  width: min(680px, 92vw); display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: var(--radius-lg); padding: 14px 18px;
  box-shadow: var(--shadow);
}
.search-overlay__box svg { width: 22px; height: 22px; color: var(--text-muted); flex: none; }
.search-overlay__box input {
  flex: 1; border: none; outline: none; font-size: 18px; color: var(--text);
}
.search-overlay__box button {
  border: none; background: var(--bg-alt); color: var(--text-muted);
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px;
}
.search-overlay__box button:hover { background: var(--border); color: var(--text); }
.search-overlay__results {
  list-style: none; width: min(680px, 92vw); margin-top: 14px;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  max-height: 56vh; overflow: auto; -webkit-overflow-scrolling: touch;
}
.search-overlay__results li a {
  display: block; padding: 14px 18px; border-bottom: 1px solid var(--border);
  color: var(--text);
}
.search-overlay__results li:last-child a { border-bottom: none; }
.search-overlay__results li a:hover { background: var(--bg-alt); }
.search-overlay__results .r-title { font-weight: 600; color: var(--primary); }
.search-overlay__results .r-cat { font-size: 12px; color: var(--text-muted); margin-left: 8px; }
.search-overlay__results .r-empty { padding: 18px; color: var(--text-muted); text-align: center; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: var(--radius);
  font-weight: 600; transition: all var(--transition); cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.btn-accent { background: var(--primary-light); color: #fff; }
.btn-accent:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }

/* ---------- 首页 Banner（全宽轮播图） ---------- */
.banner {
  position: relative; height: 560px; overflow: hidden;
  background: var(--primary); /* 兜底底色 */
}

/* 蓝图网格背景（科技感）+ 青色测量标尺刻度（精密测量行业属性）*/
.banner::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .5; mix-blend-mode: overlay;
}
.banner::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; z-index: 4; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--accent) 0 1px, transparent 1px 12px) bottom/100% 9px no-repeat,
    repeating-linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 60px) bottom/100% 18px no-repeat;
  opacity: .75;
}
.banner__slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility .9s ease;
  text-align: left;
}
.banner__slide.active { opacity: 1; visibility: visible; }
.banner__inner {
  width: 100%; max-width: var(--container-wide); margin: 0 auto; padding: 0 48px;
}
.banner__content { max-width: 760px; color: #fff; }
.banner__title {
  font-size: clamp(30px, 4.5vw, 56px); font-weight: 800; line-height: 1.15; margin: 0 0 20px;
  letter-spacing: 1px; text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.banner__subtitle {
  font-size: 19px; line-height: 1.75; margin: 0 0 32px; opacity: .95;
  text-shadow: 0 1px 8px rgba(0,0,0,.3); max-width: 660px;
}
.banner__cta { font-size: 17px; padding: 14px 34px; }
/* 无图时的主题渐变（兜底，让首屏即便没传图片也像全宽轮播） */
.banner__slide.theme-0 { background: linear-gradient(135deg, var(--primary) 0%, #073a6b 100%); }
.banner__slide.theme-1 { background: linear-gradient(135deg, var(--primary-light) 0%, var(--navy) 100%); }
.banner__slide.theme-2 { background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%); }
.banner__slide.theme-3 { background: linear-gradient(135deg, var(--navy) 0%, #06243f 100%); }

.banner__indicators { position: absolute; bottom: 26px; left: 48px; display: flex; gap: 10px; z-index: 3; }
.banner__indicators button {
  width: 40px; height: 5px; border: none; padding: 0;
  background: rgba(255,255,255,.4); border-radius: 3px; cursor: pointer;
  transition: width var(--transition), background var(--transition);
}
.banner__indicators button.active { background: #fff; width: 58px; }
.banner__arrows button {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; background: rgba(255,255,255,.16); color: #fff;
  border: none; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer;
  transition: background var(--transition); z-index: 3;
}
.banner__arrows button:hover { background: rgba(255,255,255,.4); }
.banner__arrows .prev { left: 20px; }
.banner__arrows .next { right: 20px; }

/* ---------- 通用图块 / 卡片 ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px 24px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__icon { width: 60px; height: 60px; margin: 0 auto 18px; background: #EAF2FB; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.card__icon svg { width: 30px; height: 30px; }
.card__desc { color: var(--text-muted); font-size: 15px; }
.card__link { display: inline-block; margin-top: 16px; color: var(--accent); font-weight: 600; }

/* 公司简介 */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.intro__text p { color: var(--text); margin-bottom: 16px; font-size: 16px; }
.intro__img {
  position: relative; overflow: hidden;
  height: 340px; border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.12) 0 8%, transparent 9%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,.08) 0 12%, transparent 13%),
    linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; font-weight: 500;
}
.intro__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--radius-lg); z-index: 0; }
.intro__img__fallback { position: relative; z-index: 1; }

/* 核心优势 */
.advantage {
  padding: 52px 28px; text-align: center; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--border); transition: all var(--transition);
}
.advantage__icon { width: 52px; height: 52px; margin: 0 auto 14px; color: var(--accent); }
.advantage__icon svg { width: 100%; height: 100%; }
.advantage__desc { font-size: 14px; color: var(--text-muted); margin-top: 8px; }
.advantage:hover { background: var(--primary); color: #fff; transform: translateY(-6px); border-color: var(--primary); }
.advantage:hover .advantage__title, .advantage:hover .advantage__desc { color: #fff; }
.advantage:hover .advantage__icon { color: #fff; }

/* 产品卡 */
.product-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: all var(--transition); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.product-card__media {
  flex-shrink: 0; /* 关键：防止 flex-column 容器把媒体区压成 0 高度（动态产品卡 img 无固有高度时会被压塌） */
  height: 190px; background:
    linear-gradient(135deg, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 34px; font-weight: 700;
  letter-spacing: 2px;
  overflow: hidden; /* 防止某些情况下图片溢出 */
}
.product-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-card__desc { color: var(--text-muted); font-size: 14px; flex: 1; margin-bottom: 16px; }
.product-card__more { color: var(--accent); font-weight: 600; align-self: flex-start; }

/* CTA 区 */
.cta-block { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; padding: 60px 24px; text-align: center; border-radius: var(--radius-lg); }
.cta-block h2 { font-weight: 700; margin-bottom: 16px; }
.cta-block p { opacity: .92; margin-bottom: 28px; max-width: 640px; margin-inline: auto; }
.cta-block__actions { display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* 面包屑 */
.breadcrumb { background: var(--bg-alt); padding: 14px 24px; font-size: 14px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }

/* 子页标题横幅 */
.page-hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(41,117,228,.28), transparent 42%),
    radial-gradient(circle at 88% 80%, rgba(26,166,224,.18), transparent 44%),
    linear-gradient(135deg, var(--primary) 0%, #073a6b 100%);
  color: #fff; padding: 84px 24px 64px; text-align: center;
  position: relative; overflow: hidden;
}
/* 蓝图网格背景 + 青色测量标尺刻度 */
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .6;
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; z-index: 2; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--accent) 0 1px, transparent 1px 12px) bottom/100% 9px no-repeat,
    repeating-linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 60px) bottom/100% 18px no-repeat;
  opacity: .8;
}
.page-hero h1 { font-weight: 700; margin-bottom: 12px; letter-spacing: 2px; }
.page-hero p { opacity: .92; max-width: 760px; margin: 0 auto; }

/* 表格 */
.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.spec-table th, .spec-table td { border: 1px solid var(--border); padding: 12px 16px; text-align: left; }
.spec-table th { background: var(--primary); color: #fff; font-weight: 500; }
.spec-table tr:nth-child(even) td { background: var(--bg-alt); }

/* 等宽精度数字（精密测量：±0.5μm 这类读数用等宽字体突出）*/
.spec-table td,
.pd-quick-specs__v,
.product-card__model,
.pd-model__val,
.timeline-h .tl-dot,
.precision, .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* 时间轴（纵向，备用） */
.timeline { position: relative; padding: 20px 0; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--primary-light); transform: translateX(-50%); }
.timeline__item { position: relative; width: 50%; padding: 20px 40px; }
.timeline__item:nth-child(odd) { left: 0; text-align: right; }
.timeline__item:nth-child(even) { left: 50%; text-align: left; }
.timeline__item::before { content: ""; position: absolute; top: 32px; width: 14px; height: 14px; background: var(--accent); border-radius: 50%; z-index: 1; }
.timeline__item:nth-child(odd)::before { right: -7px; }
.timeline__item:nth-child(even)::before { left: -7px; }
.timeline__year { font-size: 22px; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.timeline__text { color: var(--text-muted); font-size: 15px; }

/* 时间轴（横向，发展历程使用） */
.timeline-h { position: relative; margin-top: 36px; }
.timeline-h .tl-track {
  position: absolute; top: 17px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  border-radius: 2px; z-index: 0;
}
.timeline-h .tl-row { display: flex; gap: 16px; }
.timeline-h .tl-node { flex: 1; position: relative; z-index: 1; text-align: center; }
.timeline-h .tl-dot {
  position: relative; z-index: 1; display: inline-block;
  width: 36px; height: 36px; line-height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; font-family: var(--font-mono);
  box-shadow: 0 0 0 5px #fff; font-size: 15px;
}
.timeline-h .tl-card {
  margin-top: 18px; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 14px; min-height: 132px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.timeline-h .tl-node:hover .tl-card { transform: translateY(-4px); box-shadow: var(--shadow); }
.timeline-h .tl-phase { color: var(--accent); font-weight: 700; margin-bottom: 6px; font-size: 17px; }
.timeline-h .tl-text { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* 资质墙 */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.cert-card { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--bg-alt); border-radius: var(--radius); border: 2px dashed var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 14px; text-align: center; padding: 12px; }
.cert-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--radius); z-index: 0; }
.cert-card__fallback { position: relative; z-index: 1; }

/* 表单 */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-row.full { grid-template-columns: 1fr; }
.form-field label { display: block; font-weight: 500; margin-bottom: 8px; color: var(--text); }
.form-field label .req { color: #C0392B; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  transition: border-color var(--transition); color: var(--text);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(46,134,193,.18); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field .help { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.form-error { color: #C0392B; font-size: 13px; margin-top: 4px; display: none; }
.form-field.has-error input, .form-field.has-error textarea, .form-field.has-error select { border-color: #C0392B; }
.form-field.has-error .form-error { display: block; }
.form-submit { text-align: center; margin-top: 24px; }
.form-success { display: none; padding: 16px; margin-top: 20px; background: #D5F5E3; color: #1E8449; border-radius: var(--radius); text-align: center; }

/* 联系信息块 */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
.contact-card { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 32px; }
.contact-card h2 { color: var(--primary); margin-bottom: 20px; font-weight: 700; }
.contact-item { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.contact-item__icon { width: 36px; height: 36px; flex: none; background: #EAF2FB; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.contact-item__icon svg { width: 18px; height: 18px; }
.contact-item__label { color: var(--text-muted); font-size: 13px; }
.contact-item__value { color: var(--text); font-weight: 500; margin-top: 2px; }
.map-block { border-radius: var(--radius-lg); background: var(--bg-alt);
  border: 1px solid var(--border); padding: 16px; }
.map-block strong { display: block; color: var(--primary); margin-bottom: 10px; font-size: 16px; }
#gaodeMap { width: 100%; height: 300px; border-radius: var(--radius-lg); overflow: hidden; background: #eef2f6; }
#gaodeMap .map-tip { display: flex; height: 100%; align-items: center; justify-content: center;
  color: var(--text-muted); text-align: center; padding: 20px; line-height: 1.7; }
.map-image { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; border-radius: var(--radius-lg); background: #eef2f6; }
.map-actions { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; padding: 20px 0; background: none; border: none; text-align: left; font-size: 16px; font-weight: 600; color: var(--primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: "+"; font-size: 22px; color: var(--accent); transition: transform var(--transition); }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--transition); color: var(--text-muted); font-size: 15px; }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 20px; }

/* 页脚 */
.footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 56px 24px 24px; }
.footer__inner { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; margin-bottom: 18px; font-weight: 600; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; font-size: 14px; }
.footer a { color: rgba(255,255,255,.78); }
.footer a:hover { color: #fff; }
.footer__brand { font-size: 18px; color: #fff; font-weight: 700; margin-bottom: 12px; display: block; }
.footer__bottom { max-width: var(--container); margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: 13px; color: rgba(255,255,255,.55); }

/* 回到顶部 */
.to-top { position: fixed; right: 24px; bottom: 24px; width: 44px; height: 44px; background: var(--primary); color: #fff; border: none; border-radius: 50%; cursor: pointer; font-size: 18px; display: none; align-items: center; justify-content: center; box-shadow: var(--shadow); transition: background var(--transition); z-index: 150; }
.to-top:hover { background: var(--primary-dark); }
.to-top.show { display: flex; }

/* 滚动渐入 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 响应式（5 档断点：1280 / 1080 / 920 / 768 / 640）---------- */
@media (max-width: 1280px) {
  .container { padding: 0 32px; }
  .banner__inner { padding: 0 40px; }
}

/* ============ 平板 768–1199px：适度调整列数与间距，导航简化（保持横向） ============ */
@media (max-width: 1199px) {
  .container { padding: 0 28px; }
  .header__inner { padding: 0 20px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  /* 导航简化：隐藏搜索按钮节省空间，缩小 logo / 字号 / 间距，保留横向导航（不折叠汉堡） */
  .header__icon-btn#searchToggle { display: none; }
  .header__logo img { height: 40px; width: auto; max-width: 180px; object-fit: contain; object-position: left center; }
  .nav-list { gap: 0; }
  .nav-list > li > a { padding: 8px 8px; font-size: 13px; }
  .header__lang { padding: 6px 10px; font-size: 13px; }
}

/* ============ 手机 ≤767px：单列布局，汉堡菜单导航，触摸友好 ============ */
@media (max-width: 767px) {
  body { font-size: 14px; line-height: 1.65; }
  .section { padding: 56px 0; }
  .section__title { font-size: 22px; }
  .page-hero { padding: 60px 20px 44px; }
  .page-hero h1 { font-size: 26px; }
  .banner { height: 420px; }
  .banner__inner { padding: 0 22px; }
  .banner__title { font-size: 28px; margin-bottom: 14px; }
  .banner__subtitle { font-size: 15px; margin-bottom: 22px; }
  .banner__cta { font-size: 15px; padding: 11px 24px; }
  .banner__indicators { left: 22px; bottom: 18px; }
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .intro, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .timeline-h .tl-track { display: none; }
  .timeline-h .tl-row { flex-direction: column; gap: 14px; }
  .timeline-h .tl-node { text-align: left; display: flex; align-items: flex-start; gap: 12px; }
  .timeline-h .tl-dot { flex: 0 0 auto; }
  .timeline-h .tl-card { margin-top: 0; min-height: 0; flex: 1; }
  /* 汉堡菜单 */
  .header__logo img { height: 44px; width: auto; max-width: 180px; object-fit: contain; object-position: left center; }
  .header__menu-btn { display: block; font-size: 28px; padding: 4px 6px; }
  .header__lang { display: none; }
  .header__tools { gap: 6px; }
  .nav-list { display: none; }
  .header__nav.open { display: block; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; box-shadow: var(--shadow); border-top: 1px solid var(--border); padding: 8px 0; max-height: 80vh; overflow: auto; -webkit-overflow-scrolling: touch; }
  .header__nav.open .nav-list { display: block; }
  .header__nav.open .nav-list > li { position: static; }
  .header__nav.open .nav-list > li > a { display: block; border-radius: 0; padding: 14px 24px; }
  /* 移动端下拉直接展开 */
  .header__nav.open .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-left: 3px solid var(--accent); border-radius: 0; padding: 0 0 6px 12px; }
  .header__nav.open .dropdown li a { padding: 12px 16px; font-size: 15px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section__title { font-size: 20px; }
  .banner { height: 360px; }
  .banner__inner { padding: 0 22px; }
  .banner__title { font-size: 26px; }
  .banner__subtitle { font-size: 14px; }
  .grid--4, .grid--3 { gap: 16px; }
  .footer__inner { gap: 24px; }
}

/* ============================================
   产品详情页 product.html
   ============================================ */
.pd-state { max-width: 680px; margin: 80px auto; text-align: center; color: var(--text-muted); }
.pd-spinner { width: 44px; height: 44px; margin: 0 auto 18px; border: 4px solid var(--border); border-top-color: var(--primary-light); border-radius: 50%; animation: pd-spin 1s linear infinite; }
@keyframes pd-spin { to { transform: rotate(360deg); } }
.pd-state--error h2 { color: var(--text); font-size: 22px; margin-bottom: 12px; }
.pd-state--error .btn { margin-top: 16px; }

.pd-hero { padding: 48px 0 8px; background: linear-gradient(180deg, var(--bg-alt) 0%, #fff 100%); }
.pd-hero__inner { display: grid; grid-template-columns: 480px 1fr; gap: 48px; align-items: start; }

/* 画廊 */
.pd-gallery__main { position: relative; width: 100%; aspect-ratio: 1/1; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pd-gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.pd-gallery__placeholder { color: var(--text-muted); font-size: 15px; }
.pd-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-gallery__thumbs img { width: 76px; height: 76px; object-fit: cover; border: 2px solid transparent; border-radius: var(--radius); cursor: pointer; background: var(--bg-alt); transition: border-color var(--transition); }
.pd-gallery__thumbs img:hover { border-color: var(--primary-light); }

/* 概要 */
.pd-cat { display: inline-block; padding: 4px 12px; background: #EAF2F8; color: var(--primary); border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.pd-name { font-size: 30px; font-weight: 700; color: var(--text); line-height: 1.3; }
.pd-model { margin: 10px 0 18px; color: var(--text-muted); }
.pd-model__label { margin-right: 8px; }
.pd-model__val { color: var(--primary); font-weight: 600; font-family: var(--font-mono); }

/* 关键参数快览 */
.pd-quick-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.pd-quick-specs__item { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; }
.pd-quick-specs__k { display: block; font-size: 12px; color: var(--text-muted); }
.pd-quick-specs__v { display: block; font-size: 15px; font-weight: 600; color: var(--text); margin-top: 2px; }

/* CTA 高优先级按钮 */
.pd-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.pd-cta .btn { padding: 14px 26px; font-size: 16px; }

.pd-meta { margin-top: 18px; display: flex; gap: 18px; align-items: center; font-size: 13px; color: var(--text-muted); }
.pd-meta__link { color: var(--primary-light); cursor: pointer; }

/* Tab 导航 */
.pd-tabs-wrap { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: -webkit-sticky; position: sticky; top: var(--header-h); z-index: 100; }
.pd-tabs { display: flex; gap: 6px; }
.pd-tab { background: none; border: none; padding: 18px 22px; font-size: 16px; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 3px solid transparent; transition: color var(--transition), border-color var(--transition); }
.pd-tab:hover { color: var(--primary); }
.pd-tab.active { color: var(--primary); border-bottom-color: var(--accent); }

.pd-content { padding: 48px 0 64px; }
.pd-panel { display: none; }
.pd-panel.active { display: block; animation: pd-fade .3s ease; }
@keyframes pd-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pd-panel__title { font-size: var(--h3); color: var(--primary); margin-bottom: 20px; }

/* 富文本（特点 / 应用 / 方案 / 新闻正文） */
.pd-rich, .nd-body { font-size: 16px; line-height: 1.8; color: var(--text); }
.pd-rich p, .nd-body p { margin-bottom: 14px; }
.pd-rich h1, .pd-rich h2, .pd-rich h3, .pd-rich h4, .nd-body h1, .nd-body h2, .nd-body h3, .nd-body h4 { color: var(--primary); margin: 22px 0 12px; font-weight: 700; line-height: 1.4; }
.pd-rich h1, .nd-body h1 { font-size: 24px; } .pd-rich h2, .nd-body h2 { font-size: 21px; } .pd-rich h3, .nd-body h3 { font-size: 18px; }
.pd-rich ul, .pd-rich ol, .nd-body ul, .nd-body ol { margin: 0 0 14px 22px; }
.pd-rich li, .nd-body li { margin-bottom: 6px; }
.pd-rich img, .nd-body img { max-width: 100%; border-radius: var(--radius); margin: 8px 0; border: 1px solid var(--border); }
.pd-rich a, .nd-body a { color: var(--primary-light); text-decoration: underline; }
.pd-rich blockquote, .nd-body blockquote { border-left: 4px solid var(--accent); padding: 8px 16px; margin: 0 0 14px; background: var(--bg-alt); color: var(--text-muted); }
.pd-rich table, .nd-body table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.pd-rich th, .pd-rich td, .nd-body th, .nd-body td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.pd-rich th, .nd-body th { background: var(--bg-alt); }
.pd-rich pre, .nd-body pre { background: var(--navy); color: #E6EDF3; padding: 14px; border-radius: var(--radius); overflow: auto; font-family: var(--font-mono); font-size: 13px; margin-bottom: 14px; }
.pd-empty { color: var(--text-muted); text-align: center; padding: 24px; }
.empty { text-align: center; color: var(--text-muted); padding: 30px 0; }

/* 浮动咨询条（移动端友好） */
.pd-fab { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 150; }
.pd-fab__btn { padding: 14px 20px; border-radius: 30px; font-weight: 700; font-size: 15px; box-shadow: var(--shadow); color: #fff; text-align: center; }
.pd-fab__btn--primary { background: var(--primary); }
.pd-fab__btn--accent { background: var(--accent); }
.pd-fab__btn:hover { transform: translateY(-2px); }

/* 产品卡：型号（详情页/列表复用） */
.product-card__model { color: var(--text-muted); font-size: 13px; margin-bottom: 8px; font-family: var(--font-mono); }

/* ============================================
   新闻详情页 news.html
   ============================================ */
.nd-article { padding: 48px 0 64px; }
.nd-meta { display: flex; gap: 16px; align-items: center; font-size: 14px; color: var(--text-muted); margin-bottom: 14px; flex-wrap: wrap; }
.nd-meta__cat { background: #EAF2F8; color: var(--primary); padding: 3px 12px; border-radius: 20px; font-weight: 600; font-size: 13px; }
.nd-title { font-size: 32px; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: 16px; }
.nd-summary { font-size: 17px; color: var(--text-muted); background: var(--bg-alt); border-left: 4px solid var(--primary-light); padding: 14px 18px; border-radius: var(--radius); margin-bottom: 24px; }
.nd-cover { margin: 0 0 24px; }
.nd-cover img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.nd-share { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 14px; color: var(--text-muted); }
.nd-share a { color: var(--primary-light); }

/* ============================================
   首页新闻卡片 news-card（覆盖 .card 居中） */
   ============================================ */
.news-card { display: flex !important; flex-direction: column; text-align: left; color: var(--text); overflow: hidden; }
.news-card__cover { width: 100%; aspect-ratio: 16/9; overflow: hidden; margin: -32px -24px 18px; }
.news-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.news-card__meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.news-card__cat { color: var(--accent); font-weight: 600; }
.news-card__more { margin-top: auto; padding-top: 12px; color: var(--accent); font-weight: 600; }

/* ============================================
   详情页响应式
   ============================================ */
@media (max-width: 1199px) {
  .pd-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pd-tab { padding: 16px 16px; white-space: nowrap; }
}
@media (max-width: 767px) {
  .pd-hero__inner { grid-template-columns: 1fr; }
  .pd-gallery__main { max-width: 460px; margin: 0 auto; }
  .pd-name { font-size: 24px; }
  .pd-quick-specs { grid-template-columns: 1fr; }
  .pd-fab { right: 14px; bottom: 14px; }
  .pd-fab__btn { padding: 12px 16px; font-size: 14px; }
  .nd-title { font-size: 26px; }
}

/* 打印 */
@media print {
  .header, .footer, .banner, .to-top, .search-overlay, .header__tools { display: none !important; }
}
