/* ==========================================================================
   前程电脑 · 企业官网样式表
   设计：深海军蓝 + 品牌橙，无外部字体/图片依赖
   ========================================================================== */

:root {
  --navy: #7c2d12;
  --navy-2: #9a3412;
  --navy-3: #c2410c;
  --ink: #3d2b1f;
  --muted: #8a7362;
  --line: #f0e2d3;
  --bg: #fdf9f4;
  --white: #ffffff;
  --brand: #ef8a24;
  --brand-2: #d9741a;
  --brand-soft: #fdf3e6;
  --blue: #ea580c;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(124, 45, 18, .06), 0 4px 14px rgba(124, 45, 18, .05);
  --shadow-md: 0 10px 30px rgba(124, 45, 18, .10);
  --wrap: 1160px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB",
          "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #3d2b1f;
  background: #fdf9f4;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #ea580c; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.3; font-weight: 700; letter-spacing: .2px; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .4em; }

:focus-visible {
  outline: 3px solid #7fb3e0;
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: #7c2d12;
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部公告 / 页头 ---------- */

.topbar {
  background: #7c2d12;
  color: #c9d8e8;
  font-size: 13px;
  line-height: 36px;
}
.topbar .wrap { display: -ms-flexbox; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #c9d8e8; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar strong { color: #ef8a24; font-weight: 600; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #f0e2d3;
  backdrop-filter: saturate(140%) blur(8px);
}
.site-header.is-stuck { box-shadow: 0 1px 2px rgba(124, 45, 18, .06), 0 4px 14px rgba(124, 45, 18, .05); }

.header-inner {
  display: -ms-flexbox; display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand { display: -ms-flexbox; display: flex; align-items: center; gap: 11px; text-decoration: none; color: #3d2b1f; }
.brand:hover { text-decoration: none; }
.brand-mark { flex: none; }
.brand-logo { flex: none; width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.brand-text { display: -ms-flexbox; display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: 1px; color: #7c2d12; }
.brand-sub { font-size: 11px; color: #8a7362; letter-spacing: .6px; }

.nav { display: -ms-flexbox; display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-block;
  padding: 9px 13px;
  font-size: 15px;
  color: #24384f;
  border-radius: 8px;
  text-decoration: none;
  /* 中文菜单绝不能折行：IE10/11 的 flex 压缩比 Chromium 更激进，
     少个 nowrap 就会把"关于我们"拆成两行，整条导航参差不齐 */
  white-space: nowrap;
}
.nav a:hover { background: #eef3f9; color: #7c2d12; text-decoration: none; }
.nav a[aria-current="page"] { color: #d9741a; font-weight: 700; background: #fdf3e6; }

.nav-group { position: relative; }
.nav-group > a::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.nav-menu {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 6px;
  min-width: 210px;
  padding: 8px;
  background: #fff;
  border: 1px solid #f0e2d3;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(124, 45, 18, .10);
  display: block;
  z-index: 120;
  /* 不用 display:none 切换：改用 visibility + opacity，离开时留 0.24s 缓冲，
     鼠标从文字斜向下拉时不会瞬间消失，容错更高 */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease, visibility 0s linear .24s;
}
/* 透明桥接区：填平触发文字与面板之间 6px 的空隙，
   并左右各外扩 14px，鼠标经过空隙时 :hover 不会丢失 */
.nav-menu::before {
  content: "";
  position: absolute;
  left: -14px;
  right: -14px;
  top: -14px;
  height: 14px;
  background: transparent;
}
/* 警告：:focus-within 绝不能和 :hover 写在同一个选择器列表里。
   IE10/11 不认识 :focus-within，按 CSS 规范整条选择器列表判为无效，
   连 :hover 一起失效——v31 就是因此在 IE 里下拉菜单点不开。两者必须分开写。 */
.nav-group:hover .nav-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .12s ease, transform .12s ease, visibility 0s;
}
.nav-group:focus-within .nav-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .12s ease, transform .12s ease, visibility 0s;
}
.nav-menu a { display: block; padding: 8px 12px; font-size: 14px; }
.nav-cta {
  margin-left: 8px;
  background: #c2410c;
  color: #fff !important;
  font-weight: 700;
  padding: 10px 18px !important;
  border-radius: 999px !important;
}
.nav-cta:hover { background: #a83a0b !important; }
.nav a.nav-cta[aria-current="page"] { background: #a83a0b; color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid #f0e2d3;
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #7c2d12; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: #7c2d12;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 420px at 82% 8%, rgba(239, 138, 36, .30), transparent 62%),
    radial-gradient(700px 400px at 8% 92%, rgba(194, 65, 12, .45), transparent 60%),
    linear-gradient(160deg, #7c2d12 0%, #9a3412 58%, #c2410c 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  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: 46px 46px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  padding: 78px 0 72px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  font-size: 13px;
  color: #dbe8f5;
  background: rgba(255, 255, 255, .07);
}
.hero-badge b { color: #ef8a24; font-weight: 700; }
.hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.22;
  letter-spacing: .5px;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: #ffb765; }
.hero-lead { font-size: 17px; color: #d5e3f0; max-width: 40em; margin-bottom: 28px; }
.hero-actions { display: -ms-flexbox; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, #e2600c, #c2410c); color: #fff; box-shadow: 0 8px 22px rgba(194, 65, 12, .28); }
.btn-primary:hover { background: linear-gradient(180deg, #d1550a, #a83a0b); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-outline { border-color: #f0e2d3; background: #fff; color: #7c2d12; }
.btn-outline:hover { border-color: #7c2d12; color: #7c2d12; }

.hero-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 18px;
  padding: 26px 26px 20px;
  backdrop-filter: blur(6px);
}
.hero-card h2 { font-size: 15px; font-weight: 600; color: #cfe0ef; margin-bottom: 16px; letter-spacing: 1px; }
.hero-list { list-style: none; margin: 0; padding: 0; }
.hero-list li {
  display: -ms-flexbox; display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14.5px;
  color: #e3edf6;
  margin: 0;
}
.hero-list li:first-child { border-top: 0; padding-top: 0; }
.hero-list .ico { flex: none; width: 26px; height: 26px; color: #ffb765; }

/* ---------- 数据条 ---------- */

.stats {
  background: #fff;
  border-bottom: 1px solid #f0e2d3;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #f0e2d3;
}
.stat { background: #fff; padding: 26px 20px; text-align: center; }
.stat b { display: block; font-size: 32px; line-height: 1.1; color: #7c2d12; font-weight: 800; }
.stat b span { font-size: 16px; color: #ef8a24; margin-left: 2px; }
.stat p { margin: 6px 0 0; font-size: 13.5px; color: #8a7362; }

/* ---------- 通用区块 ---------- */

.section { padding: 74px 0; }
.section--tight { padding: 54px 0; }
.section--white { background: #fff; }
.section--soft { background: #fdf9f4; }
.section--navy { background: #7c2d12; color: #e6eef6; }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #d9741a;
  background: #fdf3e6;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section--navy .eyebrow { background: rgba(239, 138, 36, .18); color: #ffbf7a; }
.section-head h2 { font-size: clamp(24px, 2.6vw, 32px); color: #7c2d12; }
.section-head p { color: #8a7362; font-size: 16px; margin-bottom: 0; }
.section--navy .section-head p { color: #b9cddf; }

/* ---------- 卡片网格 ---------- */

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid #f0e2d3;
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: 0 1px 2px rgba(124, 45, 18, .06), 0 4px 14px rgba(124, 45, 18, .05);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(124, 45, 18, .10); border-color: #d3ddec; }
.card h3 { font-size: 18px; color: #7c2d12; margin-bottom: 8px; }
.card p { color: #8a7362; font-size: 14.5px; margin-bottom: 14px; }
.card .more { font-size: 14px; font-weight: 700; color: #d9741a; }
.card .more::after { content: " →"; }
.card .more:hover { text-decoration: none; color: #ef8a24; }

.icon-box {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: #fdf3e6;
  color: #d9741a;
  margin-bottom: 16px;
}
.icon-box svg { width: 24px; height: 24px; }

.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { text-decoration: none; }

/* ---------- 服务页通用 ---------- */

.page-hero {
  background: linear-gradient(150deg, #7c2d12, #c2410c);
  color: #fff;
  padding: 56px 0 50px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.crumbs { font-size: 13.5px; color: #a9c2d6; margin-bottom: 14px; }
.crumbs a { color: #cfe0ef; }
.crumbs span { margin: 0 8px; color: #7d9bb4; }
.page-hero h1 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 12px; }
.page-hero p { color: #cfe0ef; max-width: 60em; margin: 0; font-size: 16px; }

.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }
.prose h2 { font-size: 24px; color: #7c2d12; margin-top: 34px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; color: #9a3412; margin-top: 24px; }
.prose ul, .prose ol { color: #5f4a37; }
.prose p { color: #5f4a37; }
.prose strong { color: #7c2d12; }
/* 正文内嵌媒体：后台「单页内容」可直接插入图片 / 视频 / 平台播放器 */
.prose img { border-radius: 10px; margin: 18px 0; }
.prose figure { margin: 22px 0; }
.prose figcaption { font-size: 13.5px; color: #8a7362; margin-top: 8px; text-align: center; }
.prose video { display: block; width: 100%; max-width: 100%; height: auto; max-height: 72vh; border-radius: 10px; background: #000; margin: 18px 0; }
.prose iframe { display: block; width: 100%; max-width: 100%; height: 360px; border: 0; border-radius: 10px; margin: 18px 0; }
/* 现代浏览器按 16:9 自适应；IE / 老内核不认 @supports，继续用上面的 360px 固定高度 */
@supports (aspect-ratio: 16 / 9) {
  .prose iframe { height: auto; aspect-ratio: 16 / 9; }
}

.note {
  background: #fdf3e6;
  border-left: 4px solid #ef8a24;
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  color: #6b4a20;
  font-size: 14.5px;
  margin: 22px 0;
}

.sidebar { display: grid; gap: 20px; position: sticky; top: 92px; }
.side-card {
  background: #fff;
  border: 1px solid #f0e2d3;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(124, 45, 18, .06), 0 4px 14px rgba(124, 45, 18, .05);
}
.side-card h3 { font-size: 16px; color: #7c2d12; margin-bottom: 12px; }
.side-card ul { list-style: none; margin: 0; padding: 0; }
.side-card li { margin: 0; border-bottom: 1px dashed #f0e2d3; }
.side-card li:last-child { border-bottom: 0; }
.side-card li a { display: block; padding: 9px 0; font-size: 14.5px; color: #33475e; }
.side-card li a[aria-current="page"] { color: #d9741a; font-weight: 700; }
.side-cta { background: #7c2d12; color: #d7e5f1; border-color: #7c2d12; }
.side-cta h3 { color: #fff; }
.side-cta p { font-size: 14px; color: #b9cddf; margin-bottom: 14px; }
.side-cta .tel { font-size: 22px; font-weight: 800; color: #ef8a24; display: block; margin-bottom: 4px; }

/* ---------- 特点列表 ---------- */

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li {
  display: -ms-flexbox; display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  font-size: 15px;
  color: #33475e;
}
.feature-list .tick {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 3px;
  color: #ef8a24;
}

/* ---------- 流程 ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid #f0e2d3;
  border-radius: 14px;
  padding: 26px 22px 22px;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 16px; right: 18px;
  font-size: 30px;
  font-weight: 800;
  color: #eaf0f7;
  line-height: 1;
}
.step h3 { font-size: 16.5px; color: #7c2d12; margin-bottom: 6px; }
.step p { font-size: 14px; color: #8a7362; margin: 0; }

/* ---------- 时间轴 ---------- */

.timeline { position: relative; margin: 0; padding: 8px 0 8px 0; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: 118px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #dbe6f1, #eef3f9);
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  padding: 0 0 28px;
  margin: 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 112px;
  top: 9px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #ef8a24;
}
.timeline .year { text-align: right; font-weight: 800; color: #7c2d12; font-size: 17px; }
.timeline .year small { display: block; font-size: 12px; color: #8a7362; font-weight: 500; }
.timeline .what { padding-left: 10px; }
.timeline .what h3 { font-size: 16.5px; margin-bottom: 4px; color: #7c2d12; }
.timeline .what p { margin: 0; color: #8a7362; font-size: 14.5px; }

/* ---------- 案例 ---------- */

.case-card {
  background: #fff;
  border: 1px solid #f0e2d3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(124, 45, 18, .06), 0 4px 14px rgba(124, 45, 18, .05);
  display: -ms-flexbox; display: flex;
  flex-direction: column;
}
.case-thumb { aspect-ratio: 16 / 10; background: #e9eef5; overflow: hidden; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 20px 22px 22px; flex: 1; display: -ms-flexbox; display: flex; flex-direction: column; }
.case-body h3 { font-size: 17px; color: #7c2d12; margin-bottom: 8px; }
.case-body p { font-size: 14px; color: #8a7362; margin-bottom: 12px; }
.tags { display: -ms-flexbox; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tag {
  font-size: 12.5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f0f4f9;
  color: #4b6076;
}

/* ---------- 新闻 ---------- */

.news-list { display: grid; gap: 14px; }
.news-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: start;
  background: #fff;
  border: 1px solid #f0e2d3;
  border-radius: 14px;
  padding: 20px 22px;
  transition: border-color .18s, box-shadow .18s;
}
.news-item:hover { border-color: #cfdbea; box-shadow: 0 1px 2px rgba(124, 45, 18, .06), 0 4px 14px rgba(124, 45, 18, .05); }
.news-date {
  text-align: center;
  border-right: 1px solid #f0e2d3;
  padding-right: 12px;
}
.news-date b { display: block; font-size: 26px; line-height: 1.1; color: #7c2d12; }
.news-date span { font-size: 12.5px; color: #8a7362; }
.news-item h3 { font-size: 17px; margin-bottom: 6px; }
.news-item h3 a { color: #7c2d12; }
.news-item p { margin: 0; font-size: 14px; color: #8a7362; }

/* ---------- CTA 横幅 ---------- */

.cta-band {
  background:
    radial-gradient(600px 300px at 88% 20%, rgba(239, 138, 36, .30), transparent 65%),
    linear-gradient(120deg, #7c2d12, #c2410c);
  color: #fff;
  border-radius: 20px;
  padding: 42px 44px;
  display: -ms-flexbox; display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 26px; margin-bottom: 8px; color: #fff; }
.cta-band p { margin: 0; color: #c9dbeb; font-size: 15px; }
.cta-band .actions { display: -ms-flexbox; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 联系 ---------- */

.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: -ms-flexbox; display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #f0e2d3;
  border-radius: 14px;
  padding: 20px 22px;
}
.contact-card .icon-box { margin-bottom: 0; flex: none; }
.contact-card h3 { font-size: 15px; color: #8a7362; font-weight: 600; margin-bottom: 2px; }
.contact-card p { margin: 0; font-size: 16.5px; color: #7c2d12; font-weight: 700; }
.contact-card p small { display: block; font-size: 13px; color: #8a7362; font-weight: 400; margin-top: 2px; }
.contact-card a { color: #7c2d12; }

.map-card {
  background: #fff;
  border: 1px solid #f0e2d3;
  border-radius: 14px;
  padding: 22px;
}
.map-card h3 { font-size: 16px; color: #7c2d12; }
.map-visual {
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef3f9;
  border: 1px solid #f0e2d3;
}

/* ---------- 页脚 ---------- */

.site-footer { background: #7c2d12; color: #f1dcc8; font-size: 14px; padding: 54px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 34px; padding-bottom: 38px; }
.site-footer h3 { color: #fff; font-size: 15px; letter-spacing: 1px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #f1dcc8; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: -ms-flexbox; display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand b { color: #fff; font-size: 18px; letter-spacing: 1px; }
.footer-brand span { display: block; font-size: 11.5px; color: #e3c6a8; letter-spacing: .5px; }
.footer-about { color: #ecd5bf; font-size: 13.5px; line-height: 1.8; margin: 0; }
.footer-note {
  margin: 0 0 14px; color: #d9c3ad; font-size: 13px; line-height: 1.7;
  padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 0 22px;
  font-size: 13px;
  color: #e3c6a8;
  display: -ms-flexbox; display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-bottom a { color: #ecd5bf; }

/* ---------- 移动端 ---------- */

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; padding: 56px 0 54px; }
  /* minmax(0,1fr) 而非 1fr：grid 项默认 min-width:auto，
     一旦子内容不可换行（如横滑分类栏、长 URL、长按钮），整列会被撑破并横向溢出。 */
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  /* 联系方式页同样是两列 grid，平板/手机必须一起落单列。
     grid 项默认 min-width:auto，右栏的长按钮会把列撑破并溢出屏幕。 */
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-grid > * { min-width: 0; }
  .sidebar { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* 导航宽度安全线：9 个菜单项横排约需 1019px（品牌 174 + 菜单 825 + 间距 20），
   一旦容器不够 flex 会压缩菜单项，中文随即折行、每项高度从 44px 涨到 73px，
   看上去就是"菜单错位"。所以 1100px 以下提前切汉堡，别让它硬挤。 */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 18px;
    background: #fff;
    border-bottom: 1px solid #f0e2d3;
    box-shadow: 0 10px 30px rgba(124, 45, 18, .10);
  }
  /* 菜单比屏幕高时必须能滚：上限=视口高-页头高(72px+1px 边框)，
     否则吸附页头下的下拉层永远滚不到底，最后的菜单项点不到 */
  .nav.is-open {
    display: -ms-flexbox; display: flex;
    max-height: calc(100vh - 73px);
    max-height: calc(100dvh - 73px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .nav a { padding: 12px 10px; font-size: 16px; white-space: normal; }
  .nav-menu {
    position: static;
    display: block;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 12px;
    min-width: 0;
  }
  /* 移动端导航为展开式，二级菜单需始终可见 */
  .nav-menu,
  .nav-group:hover .nav-menu { visibility: visible; opacity: 1; transform: none; transition: none; }
  .nav-menu::before { display: none; }
  .nav-cta { margin: 10px 0 0; text-align: center; }
}

@media (max-width: 860px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 54px 0; }
  .cta-band { padding: 30px 24px; }
  .page-hero { padding: 40px 0 36px; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .topbar .wrap { justify-content: center; font-size: 12px; }
  .topbar .topbar-right { display: none; }
  .hero h1 { font-size: 28px; }
  .brand-name { font-size: 17px; }
  .brand-sub { display: none; }
  .steps { grid-template-columns: 1fr; }
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 30px; }
  .timeline li::before { left: 1px; }
  .timeline .year { text-align: left; }
  .timeline .what { padding-left: 0; }
  .news-item { grid-template-columns: 1fr; }
  .news-date { text-align: left; border-right: 0; border-bottom: 1px solid #f0e2d3; padding: 0 0 8px; }
  .news-date b, .news-date span { display: inline; font-size: 14px; }
  .news-date b { margin-right: 6px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  /* 联系我们 · 手机端：卡片与地图收紧，长按钮允许换行，底部 CTA 两键平分 */
  .contact-card { padding: 16px; gap: 12px; }
  .contact-card .icon-box { width: 40px; height: 40px; line-height: 40px; }
  .contact-card .icon-box svg { width: 21px; height: 21px; }
  .contact-card h3 { font-size: 14.5px; }
  .contact-card p { font-size: 16px; }
  .map-card { padding: 16px; }
  .map-card .btn { width: 100%; justify-content: center; text-align: center; white-space: normal; }
  .cta-band { padding: 26px 20px; }
  .cta-band h2 { font-size: 22px; }
  .cta-band .actions { width: 100%; }
  .cta-band .actions .btn { flex: 1 1 0; justify-content: center; padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .topbar, .nav, .cta-band, .site-footer .footer-grid { display: none; }
  body { background: #fff; }
  .hero, .page-hero { background: #fff !important; color: #000; }
  .hero h1, .page-hero h1, .hero-lead, .page-hero p { color: #000 !important; }
}

/* ---------- 工具类（替代内联样式，保持 CSP 严格） ---------- */

.u-gap-lg { gap: 44px; }
.u-center { text-align: center; }
.u-mt-16 { margin-top: 16px; }
.u-mt-28 { margin-top: 28px; }
.u-mt-32 { margin-top: 32px; }
.u-mb-0 { margin-bottom: 0; }
.u-card-pad { padding: 30px; }
.u-head-row {
  display: -ms-flexbox; display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  max-width: none;
}
.u-head-row h2 { margin-bottom: 6px; }
.case-thumb--graphic {
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #7c2d12, #c2410c);
}
.case-thumb--graphic svg { width: 110px; height: 110px; }
.u-lead { color: #8a7362; }
.u-align-center { align-items: center; }
.u-mb-16 { margin-bottom: 16px; }
.u-ol-clean { margin: 0; padding-left: 20px; color: #5f4a37; }

/* ---------- 表格 ---------- */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: #fff;
  border: 1px solid #f0e2d3;
  border-radius: 10px;
  overflow: hidden;
  margin: 8px 0 18px;
}
.table th, .table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid #f0e2d3;
  vertical-align: top;
  color: #5f4a37;
}
.table th { background: #faf1e7; color: #7c2d12; font-weight: 700; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }

/* ---------- 折叠面板（原生 details，无需脚本） ---------- */

details.card { padding: 0; }
details.card > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 16px;
  color: #7c2d12;
  display: -ms-flexbox; display: flex;
  align-items: center;
  gap: 10px;
}
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before {
  content: "+";
  flex: none;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: #fdf3e6;
  color: #d9741a;
  font-weight: 700;
  line-height: 1;
}
details.card[open] > summary::before { content: "−"; }
details.card[open] > summary { border-bottom: 1px solid #f0e2d3; }
.faq-body { padding: 16px 22px 6px; color: #5f4a37; font-size: 14.8px; }
.faq-body p:last-child { margin-bottom: 0; }
details.card > p { padding: 0 22px 18px; }

@media (max-width: 620px) {
  .topbar-area { display: none; }
  .topbar .wrap { justify-content: center; }
}

/* ---------- 前台动态页补充样式 ---------- */

.cat-filter { display: -ms-flexbox; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tag--on { background: #d9741a; color: #fff; border-color: #d9741a; }
/* 搜索结果的“清空关键词”小尾巴 */
.dl-clear { margin-left: 6px; color: #a08c78; }
.dl-clear a { color: #b45309; text-decoration: underline; }

.news-list--page .news-item { padding: 20px 0; border-bottom: 1px solid #f0e2d3; }
.news-meta { color: #8a7362; font-size: 13px; margin-top: 6px; }

.pager { display: -ms-flexbox; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pager a, .pager-current, .pager-dots {
  padding: 8px 14px; border: 1px solid #f0e2d3; border-radius: 8px;
  font-size: 14px; color: #7c2d12; text-decoration: none; background: #fff;
}
.pager a:hover { border-color: #d9741a; color: #d9741a; }
.pager-current { background: #7c2d12; color: #fff; border-color: #7c2d12; }

.article-body { font-size: 16px; line-height: 1.9; color: #4a382a; }
.article-body p { margin: 0 0 14px; }
.article-body h2, .article-body h3, .article-body h4 { color: #7c2d12; margin: 26px 0 10px; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 22px; }
.article-body li { margin: 6px 0; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; }
.article-body video { max-width: 100%; height: auto; border-radius: 10px; background: #000; }
.article-body iframe { max-width: 100%; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.article-body th, .article-body td { border: 1px solid #f0e2d3; padding: 8px 12px; }

/* 报修表单 */
.form { max-width: 720px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.field { display: -ms-flexbox; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: #7c2d12; margin-bottom: 14px; font-weight: 600; }
.field em { color: #d33; font-style: normal; }
.field--captcha { max-width: 320px; }
.captcha-q { font-weight: 700; color: #7c2d12; }
.input {
  width: 100%; padding: 10px 12px; font-size: 15px; color: #43301f;
  border: 1px solid #f0e2d3; border-radius: 8px; background: #fff;
  font-family: inherit; box-sizing: border-box;
}
.input:focus { outline: 2px solid rgba(239, 138, 36, .35); border-color: #d9741a; }
textarea.input { resize: vertical; line-height: 1.6; font-weight: 400; }
.form-tip { color: #8a7362; font-size: 13px; margin-top: 10px; }
.form-msg { font-size: 14px; margin-top: 10px; }
.form-msg--err { color: #c0392b; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-size: 14.5px; }
.alert--ok { background: #eef9f0; border: 1px solid #bfe5c8; color: #1e6b34; }
.alert--err { background: #fdf1f1; border: 1px solid #edc4c4; color: #a53232; }
.alert ul { margin: 6px 0 0 18px; }
.repair-code { font-size: 20px; letter-spacing: 1px; }

.track-result { background: #fbf5ee; border: 1px solid #f0e2d3; border-radius: 10px; padding: 12px 14px; margin-top: 12px; font-size: 14px; }
.track-result p { margin: 4px 0; }

.status-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; background: #f7efe4; color: #5f4a37;
}
.status--new   { background: #fff2e2; color: #a85c00; }
.status--doing { background: #e7f0fd; color: #1d5bc2; }
.status--done  { background: #e7f7ec; color: #1e7a3c; }
.status--cancel{ background: #f1f1f3; color: #6b7280; }

.side-card--cta { background: linear-gradient(150deg, #7c2d12, #c2410c); color: #f6e3d0; }
.side-card--cta h3 { color: #fff; }
.side-card--cta .btn { margin-top: 10px; width: 100%; text-align: center; }
.side-card--cta .btn-outline { border-color: rgba(255,255,255,.4); background: transparent; color: #fff; }
.side-card--cta .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.12); color: #fff; }

.price { color: #c2410c; font-weight: 700; font-size: 17px; margin: 8px 0; }
.price--big { font-size: 26px; margin: 0 0 10px; }
.product-hero { margin-bottom: 18px; }
.card-pad { padding: 22px; }
.card-link-wrap { display: -ms-flexbox; display: flex; flex-direction: column; }

@media (max-width: 620px) {
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .article-body { font-size: 15.5px; }
  .price--big { font-size: 22px; }
}

/* 标签与输入框：改为块级，避免「*」被 flex 挤到下一行 */
.field { display: block; }
.field .input { display: block; margin-top: 6px; }
.field em { margin-left: 2px; }
.field--captcha .captcha-q { display: inline-block; margin: 6px 0 0; }

/* ---------- 下载中心 ---------- */

.dl-list { display: -ms-flexbox; display: flex; flex-direction: column; gap: 14px; }
.dl-item {
  display: -ms-flexbox; display: flex; align-items: center; gap: 16px;
  flex-direction: row;
}
.dl-item h3 { margin: 0 0 4px; font-size: 16.5px; }
.dl-item h3 .tag { vertical-align: 2px; margin-left: 4px; }
.dl-item p { margin: 0 0 2px; font-size: 14px; }
.dl-icon {
  flex: none; width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: #fdf3e6;
  color: #d9741a;
}
.dl-main { flex: 1; min-width: 0; }
.dl-btn { flex: none; }
.center-404 { padding: 80px 0; text-align: center; }
.center-404 .btn { margin-top: 10px; }

/* 下载中心：搜索框 */
.dl-search { display: -ms-flexbox; display: flex; gap: 8px; margin-bottom: 18px; }
.dl-search input[type="search"] {
  flex: 1; min-width: 0;
  padding: 10px 14px;
  border: 1px solid #e2d5c3; border-radius: 8px;
  font-size: 15px; color: #33475e; background: #fff;
  -webkit-appearance: none; appearance: none;
}
.dl-search input[type="search"]:focus { border-color: #d9741a; outline: 2px solid #d9741a; outline-offset: -1px; }
.dl-search .btn { flex: none; white-space: nowrap; }

/* 下载中心：热门下载推荐 */
.hot-dl { list-style: none; margin: 0; padding: 0; counter-reset: hotdl; }
.hot-dl li {
  display: -ms-flexbox; display: flex; align-items: center; gap: 8px;
  border-bottom: 1px dashed #f0e2d3;
}
.hot-dl li:last-child { border-bottom: 0; }
.hot-rank {
  flex: none; width: 20px; height: 20px;
  display: -ms-flexbox; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; background: #f0e2d3; color: #7c2d12;
  font-size: 12px; font-weight: 700; line-height: 1;
}
.hot-rank--top { background: #7c2d12; color: #fff; }
.hot-dl li a {
  display: inline; flex: 1 1 auto; min-width: 0; padding: 9px 0;
  font-size: 14.5px; color: #33475e;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hot-dl li a:hover { color: #d9741a; }
.hot-hits { flex: none; font-size: 12px; color: #a9836a; }
.hot-empty { margin: 0; padding: 9px 0; font-size: 14px; color: #8899a6; }

@media (max-width: 620px) {
  /* 下载中心 · 手机端紧凑布局
     真实数据里简介常有一两百字，上一版让按钮换行到卡片底部，
     375px 下首卡 323px / 长简介卡 397px，按钮离标题 250px+，整页被拉得又长又散。
     这里改成「图标 + 正文 + 右侧按钮」三项同排（与桌面一致），
     简介限 3 行（DOM 内仍是全文，桌面不截断），按钮始终在首屏可见。 */
  .dl-item {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 14px;
  }
  .dl-icon { width: 38px; height: 38px; line-height: 38px; margin-top: 0; }
  .dl-icon svg { width: 20px; height: 20px; }
  .dl-main { flex: 1 1 auto; min-width: 0; }
  .dl-item h3 { font-size: 15px; line-height: 1.45; }
  .dl-item h3 .tag { font-size: 11px; padding: 2px 7px; vertical-align: 1px; }
  .dl-item p { font-size: 13px; line-height: 1.6; }
  .dl-item p:not(.news-meta) {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
    overflow: hidden;
  }
  .dl-item .news-meta {
    font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .dl-btn {
    flex: 0 0 auto; width: auto; min-width: 0; min-height: 40px;
    margin: 0; padding: 9px 15px; font-size: 14px; line-height: 1.4;
    justify-content: center;
  }
  .dl-search .btn { padding: 10px 16px; }
  .side-card { padding: 18px; }
  .hot-dl li a { padding: 7px 0; font-size: 14px; }
  .side-card--cta .btn { font-size: 15px; }

  /* 分类有 12+ 个，原本换行占 4 行 136px，把列表挤到首屏之外。
     改为单行横向滑动，右侧留白到屏幕边缘，隐藏滚动条。 */
  .cat-filter {
    min-width: 0; max-width: 100%;
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    gap: 6px; margin-right: -20px; margin-bottom: 18px;
    padding-right: 20px; padding-bottom: 2px;
    scrollbar-width: none;
    /* 右缘渐隐，提示后面还有分类可以横滑；滚到末尾只是尾部略淡，不挡点击 */
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 26px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 26px), transparent 100%);
  }
  .cat-filter::-webkit-scrollbar { display: none; }
  .cat-filter .tag { flex: none; white-space: nowrap; padding: 7px 12px; }
}

/* ==========================================================================
   IE10 / IE11 回退（原生写在本文件里，不依赖脚本注入）
   为什么不另开 ie11.css：那张表由脚本插入、URL 没有版本号，IE 会一直吃旧缓存，
   改了也不生效。本文件带 ?v=N，随页面刷新必然更新。
   钩子 -ms-high-contrast 只有 IE10/11 命中，Chrome / Edge / 微信一律忽略。
   IE 不支持：CSS Grid、flex 的 gap、clamp()、aspect-ratio、backdrop-filter。
   ========================================================================== */
@media (-ms-high-contrast: none), (-ms-high-contrast: active) {

/* ---------- A. 容器：干掉 grid，改块级 + 清浮动 ---------- */
.grid, .stats-grid, .steps, .footer-grid, .form-grid,
.content-grid, .contact-grid, .hero-inner,
.sidebar, .news-list, .contact-cards, .feature-list { display: block; zoom: 1; }
.grid:after, .stats-grid:after, .steps:after, .footer-grid:after, .form-grid:after,
.content-grid:after, .contact-grid:after, .hero-inner:after,
.side-footer:after { content: ""; display: block; clear: both; }

/* ---------- B. 卡片网格 ---------- */
.grid { font-size: 0; margin-bottom: -22px; }
.grid > * { display: inline-block; vertical-align: top; font-size: 15.5px; margin: 0 2.2% 22px 0; }
.grid-2 > * { width: 48.6%; }
.grid-2 > *:nth-child(2n) { margin-right: 0; }
.grid-3 > * { width: 31.4%; margin-right: 2.8%; }
.grid-3 > *:nth-child(3n) { margin-right: 0; }
.grid-4 > * { width: 23.2%; margin-right: 2.2%; }
.grid-4 > *:nth-child(4n) { margin-right: 0; }

/* ---------- C. 首屏 ---------- */
.hero-inner > div:first-child { float: left; width: 55%; }
.hero-inner > .hero-card { float: right; width: 40%; }
.hero-actions > * + * { margin-left: 12px; }
.hero h1 { font-size: 40px; line-height: 1.15; }

/* ---------- D. 数据条 ---------- */
.stats-grid { font-size: 0; }
.stats-grid .stat { float: left; width: 25%; border-left: 1px solid #f0e2d3; }
.stats-grid .stat:first-child { border-left: 0; }

/* ---------- E. 正文 + 侧栏（aside 与 .sidebar 都要认，漏一个整栏就掉下来压字） ---------- */
.content-grid > .prose { float: left; width: 67%; }
.content-grid > .sidebar,
.content-grid > aside { float: right; width: 29%; }
.sidebar { position: static; display: block; }
.sidebar > * { margin-bottom: 20px; }
.sidebar > *:last-child { margin-bottom: 0; }

/* ---------- F. 流程步骤 ---------- */
.steps { font-size: 0; }
.steps > * { display: inline-block; vertical-align: top; font-size: 15.5px; width: 23.2%; margin: 0 2.2% 20px 0; }
.steps > *:nth-child(4n) { margin-right: 0; }

/* ---------- G. 时间轴 ---------- */
.timeline li { display: block; position: relative; padding: 0 0 28px 140px; }
.timeline .year { float: left; width: 100px; margin-left: -140px; text-align: right; }
.timeline .what { padding-left: 0; }
.timeline::before { display: none; }

/* ---------- H. 新闻列表 ---------- */
.news-list .news-item { display: block; zoom: 1; margin-bottom: 14px; }
.news-item:after { content: ""; display: block; clear: both; }
.news-item .news-date { float: left; width: 96px; margin-right: 18px; }
.news-item > div:last-child { overflow: hidden; zoom: 1; }

/* ---------- I. 联系页两栏（首个子元素是隐藏 meta，必须按类名匹配） ---------- */
.contact-grid > .contact-cards { float: left; width: 52%; }
.contact-grid > .contact-cards + * { float: right; width: 44%; }
.contact-cards .contact-card { margin-bottom: 14px; }
.contact-cards .contact-card:last-child { margin-bottom: 0; }
.contact-card > * + * { margin-left: 14px; }

/* ---------- J. 页脚四栏：左右对称 margin，合计 99.2%，绝不允许挤到第二行 ---------- */
.footer-grid { display: block; font-size: 0; margin: 0 -1.4%; padding-bottom: 24px; }
.footer-grid > * { display: inline-block; vertical-align: top; width: 22%; margin: 0 1.4% 24px; font-size: 14.5px; }
.footer-bottom { display: block; zoom: 1; }
.footer-bottom:after { content: ""; display: block; clear: both; }
.footer-bottom > * { float: left; }
.footer-bottom > * + * { float: right; margin-left: 14px; }
.footer-brand { display: block; zoom: 1; margin-bottom: 14px; }
.footer-brand:after { content: ""; display: block; clear: both; }
.footer-brand > * { float: left; }
.footer-brand > * + * { margin-left: 12px; }

/* ---------- K. 表单两栏 / 三栏 ---------- */
.form-grid { font-size: 0; }
.form-grid > * { display: inline-block; vertical-align: top; font-size: 14.5px; width: 48.4%; margin: 0 2.6% 14px 0; }
.form-grid > *:nth-child(2n) { margin-right: 0; }
.form-grid-3 > * { width: 31.2%; margin-right: 2.8%; }
.form-grid-3 > *:nth-child(3n) { margin-right: 0; }
.form-grid > .field-full, .form-grid .field--full { width: 100%; margin-right: 0; }

/* ---------- L. 勾选列表 ---------- */
.feature-list li { display: block; zoom: 1; margin-bottom: 14px; }
.feature-list li:after { content: ""; display: block; clear: both; }
.feature-list .tick { float: left; margin-right: 12px; }
.feature-list li:last-child { margin-bottom: 0; }

/* ---------- M. 居中图标块 ---------- */
.icon-box { display: block; text-align: center; line-height: 48px; }
.icon-box svg { vertical-align: middle; }
.dl-icon { display: block; text-align: center; line-height: 52px; }
.dl-icon svg { vertical-align: middle; }
.case-thumb--graphic { display: block; text-align: center; padding: 24px 0; }
.case-thumb { height: 0; padding-top: 62.5%; position: relative; overflow: hidden; }
.case-thumb > img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.article-body iframe { height: 400px; }

/* ---------- N. flex gap 逐个补 margin ---------- */
.topbar .wrap > * + * { margin-left: 16px; }
.header-inner > * + * { margin-left: 20px; }
.brand > * + * { margin-left: 11px; }
.nav > * + * { margin-left: 4px; }
.cta-band .actions > * + * { margin-left: 12px; }
.u-head-row > * + * { margin-left: 20px; }
.field > * + * { margin-top: 6px; }
.dl-item > * + * { margin-left: 16px; }
.dl-search > * + * { margin-left: 8px; }
.tags > *, .pager > *, .cat-filter > * { margin: 0 8px 8px 0; }
.tags .tag, .cat-filter .tag { display: inline-block; }
.hero-actions a, .cta-band .actions a { display: inline-block; margin: 0 8px 8px 0; }

/* ---------- O. clamp() 字号回退 ---------- */
.section-head h2 { font-size: 29px; }
.page-hero h1 { font-size: 32px; }

/* ---------- P. 导航加固：页头必须实底、必须建立层级 ---------- */
/* IE 无 backdrop-filter，rgba(.96) 会透出正文像叠字；IE 无 sticky，
   声明失效后变 static，而 static 的 z-index 不生效，下拉会被 section 盖住。 */
.site-header { position: relative; z-index: 1000; background: #fff; }
.site-header.is-stuck { box-shadow: none; }
.header-inner { display: block; zoom: 1; min-height: 72px; }
.header-inner:after { content: ""; display: block; clear: both; }
.brand { float: left; display: block; zoom: 1; }
.brand:after { content: ""; display: block; clear: both; }
.brand-mark, .brand-logo, .brand-text { float: left; }
.brand-text { display: inline-block; vertical-align: middle; }
.nav { float: right; display: block; }
.nav a { display: inline-block; white-space: nowrap; line-height: 1.25; }
.nav-group { display: inline-block; position: relative; z-index: 5; }
.nav-menu { top: 100%; margin-top: 0; display: none; visibility: hidden; opacity: 0; transition: none; transform: none; }
/* :hover 必须独立成条：与 :focus-within 同列会让 IE 丢弃整条规则，下拉打不开 */
.nav-group:hover .nav-menu { display: block; visibility: visible; opacity: 1; }
.nav-group:focus-within .nav-menu { display: block; visibility: visible; opacity: 1; }
/* 上面 .nav a 的 inline-block 会盖过前面的 .nav-menu a，必须在此重申竖排 */
.nav-menu a { display: block; float: none; width: auto; }
.nav-cta { margin-left: 8px; }
.topbar-left { float: left; }
.topbar-right { float: right; }
.topbar .wrap { zoom: 1; }
.topbar .wrap:after { content: ""; display: block; clear: both; }

/* ---------- Q. 折叠面板与正文两栏 ---------- */
/* IE 无 <details> 折叠语义：由 main.js 补 data-open 开关（默认收起），
   这里只负责让未知元素表现成正常块级卡片，并同步 +/− 图标。 */
details.card { display: block; }
details.card > summary { cursor: pointer; }
/* flex 的 gap 在 IE 无效，改用 ::before 的右边距撑开间距 */
details.card > summary::before {
  display: inline-block;
  text-align: center;
  line-height: 22px;
  margin-right: 10px;
  vertical-align: middle;
}
details.card[data-open="1"] > summary::before { content: "−"; }
details.card[data-open="1"] > summary { border-bottom: 1px solid #f0e2d3; }
/* 内容区主栏兜底：个别页面主栏是裸 <div>（无 prose 类），
   没这条的话 IE 下主栏占满全宽、侧栏掉到正文下方 */
.content-grid > div:first-child { float: left; width: 67%; }

}

/* ---------- IE 窄屏断点（与上面的钩子组合） ---------- */
@media (-ms-high-contrast: none) and (max-width: 1100px),
       (-ms-high-contrast: active) and (max-width: 1100px) {
  .nav-toggle { display: inline-block; float: right; width: 44px; height: 44px; margin-top: 14px; }
  .nav {
    float: none; clear: both;
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 12px 20px 18px;
    background: #fff;
    border-bottom: 1px solid #f0e2d3;
    box-shadow: 0 10px 30px rgba(124, 45, 18, .10);
  }
  .nav.is-open {
    display: block;
    max-height: 560px;
    overflow-y: auto;
  }
  .nav a { display: block; padding: 12px 10px; font-size: 16px; white-space: normal; }
  .nav-group { display: block; }
  .nav-menu { position: static; display: block; visibility: visible; opacity: 1; float: none; border: 0; box-shadow: none; padding: 0 0 0 12px; min-width: 0; }
  .nav-cta { display: block; margin: 10px 0 0; text-align: center; }
}

@media (-ms-high-contrast: none) and (max-width: 1000px),
       (-ms-high-contrast: active) and (max-width: 1000px) {
  .hero-inner > div:first-child,
  .hero-inner > .hero-card { float: none; width: 100%; }
  .hero-inner > .hero-card { margin-top: 34px; }
  .content-grid > .prose,
  .content-grid > div:first-child,
  .content-grid > .sidebar,
  .content-grid > aside { float: none; width: 100%; }
  .content-grid > .sidebar,
  .content-grid > aside { margin-top: 36px; }
  .grid-4 > * { width: 48.6%; margin-right: 2.2%; }
  .grid-4 > *:nth-child(2n) { margin-right: 0; }
  .footer-grid > * { width: 47%; }
}

@media (-ms-high-contrast: none) and (max-width: 860px),
       (-ms-high-contrast: active) and (max-width: 860px) {
  .grid-2 > *, .grid-3 > *, .grid-4 > * { float: none; width: 100%; margin-right: 0; }
  .steps > * { width: 48.4%; margin-right: 3.2%; }
  .steps > *:nth-child(2n) { margin-right: 0; }
  .contact-grid > .contact-cards,
  .contact-grid > .contact-cards + * { float: none; width: 100%; }
  .form-grid > *, .form-grid-3 > * { width: 48.4%; margin-right: 3.2%; }
  .form-grid > *:nth-child(2n),
  .form-grid-3 > *:nth-child(2n) { margin-right: 0; }
}

@media (-ms-high-contrast: none) and (max-width: 620px),
       (-ms-high-contrast: active) and (max-width: 620px) {
  .steps > * { width: 100%; margin-right: 0; }
  .footer-grid { margin: 0; }
  .footer-grid > * { width: 100%; margin: 0 0 24px; }
  .footer-bottom > *, .footer-bottom > * + * { float: none; margin-left: 0; }
  .form-grid > *, .form-grid-3 > * { width: 100%; margin-right: 0; }
  .timeline li { padding-left: 30px; }
  .timeline .year { float: none; width: auto; margin-left: 0; text-align: left; }
  .news-item .news-date { float: none; width: auto; margin: 0 0 8px; }
  .hero h1 { font-size: 26px; }
  .section-head h2 { font-size: 23px; }
  .page-hero h1 { font-size: 26px; }
  /* 与上面的手机端规则对齐：IE 不认 line-clamp / flex gap，
     简介照常全文显示，按钮靠右、图标按行高居中；分类标签继续换行排版。 */
  .dl-icon { line-height: 38px; }
  .dl-main { flex: 1; min-width: 0; }
  .dl-item p:not(.news-meta) { display: block; overflow: visible; }
  .dl-item .dl-btn { margin-left: 16px; margin-top: 0; }
  .cat-filter {
    flex-wrap: wrap; overflow: visible; margin-right: 0; padding-right: 0;
    -webkit-mask-image: none; mask-image: none;
  }
  .contact-card .icon-box { line-height: 40px; }
}
