/* ==========================================================================
   地毯地垫企业官网 · 样式表
   风格：简洁实用、产品图片为主、中性底色 + 深蓝主色 + 暖棕强调色
   ========================================================================== */

:root {
  --primary: #12324f;
  --primary-dark: #0b2237;
  --accent: #c8814a;
  --accent-soft: #f3e7db;
  --ink: #1c2329;
  --muted: #6b7680;
  --line: #e3e7ea;
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(18, 50, 79, .06);
  --shadow: 0 6px 24px rgba(18, 50, 79, .09);
  --wrap: 1240px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans KR", "Noto Sans JP",
          "Hiragino Kaku Gothic ProN", Meiryo, Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
  /* clip 而非 hidden：裁掉移动端抽屉菜单推到屏外造成的横向溢出，
     又不创建滚动容器，页头 position:sticky 照常工作 */
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 11px 22px; border: 1px solid transparent; border-radius: var(--radius);
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
  white-space: nowrap; text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #b3713c; color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .10); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: #fff; color: var(--primary); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--line); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-soft); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }

/* ---------- 顶部工具条 + 语言切换 ---------- */
.topbar {
  background: var(--primary-dark); color: rgba(255, 255, 255, .82);
  font-size: 13px; line-height: 1.4;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 40px; flex-wrap: wrap;
}
.topbar-tag { margin: 0; letter-spacing: .02em; }
.topbar-right { display: flex; align-items: center; gap: 14px; margin-left: auto; flex-wrap: wrap; }
.topbar-link { color: rgba(255, 255, 255, .82); }
.topbar-link:hover { color: #fff; }

.langs { display: flex; align-items: center; gap: 2px; }
.lang {
  padding: 4px 9px; border-radius: 4px; font-size: 13px; font-weight: 500;
  color: rgba(255, 255, 255, .72); transition: background .16s, color .16s;
}
.lang:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.lang.is-active { background: var(--accent); color: #fff; }
.lg-short { display: none; }

/* ---------- 页头与导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .97); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 17px; letter-spacing: .04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 19px; font-weight: 700; color: var(--primary); letter-spacing: .01em; }
.brand-sub { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; }

.nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: block; padding: 10px 14px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.nav-link:hover, .nav-link.is-active { color: var(--primary); background: var(--bg-soft); }

.nav-toggle {
  display: none; width: 42px; height: 42px; padding: 10px; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle-bar { display: block; height: 2px; background: var(--primary); border-radius: 2px; }
.nav-toggle-bar + .nav-toggle-bar { margin-top: 5px; }

/* 产品大菜单 */
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: min(920px, 92vw); padding: 22px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.mega-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
}
.mega-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.mega-all { font-size: 14px; font-weight: 600; }
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.mega-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border-radius: var(--radius); font-size: 14.5px; color: var(--ink);
}
.mega-link:hover { background: var(--bg-soft); color: var(--primary); }
.mega-link em { font-style: normal; font-size: 12px; color: var(--muted); }

/* ---------- 首页 Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--primary-dark); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(11, 34, 55, .93) 0%, rgba(11, 34, 55, .78) 48%, rgba(11, 34, 55, .46) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 92px 24px 76px; max-width: var(--wrap); }
.hero-kicker {
  display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 100px;
  background: rgba(200, 129, 74, .22); border: 1px solid rgba(200, 129, 74, .5);
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
}
.hero-title { font-size: clamp(30px, 4.4vw, 54px); max-width: 18em; margin-bottom: 20px; }
.hero-sub { font-size: clamp(15px, 1.5vw, 17.5px); max-width: 62em; color: rgba(255, 255, 255, .86); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 52px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, .16); border-radius: var(--radius); overflow: hidden; max-width: 760px; }
.stat { padding: 18px 20px; background: rgba(11, 34, 55, .55); }
.stat-num { display: block; font-size: 26px; font-weight: 700; }
.stat-label { font-size: 13px; color: rgba(255, 255, 255, .74); }

/* ---------- 通用区块 ---------- */
.section { padding: 76px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 62em; margin-bottom: 40px; }
.section-title { font-size: clamp(23px, 2.4vw, 32px); margin-bottom: 12px; }
.section-title::after {
  content: ""; display: block; width: 46px; height: 3px; margin-top: 14px;
  background: var(--accent); border-radius: 2px;
}
.section-sub { color: var(--muted); font-size: 16px; margin: 0; }
.section-foot { margin: 36px 0 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 材质卡片 ---------- */
.mat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.mat-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d3dae0; }
.mat-card.is-hidden { display: none; }
.mat-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.mat-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.mat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.mat-card:hover .mat-card-img img { transform: scale(1.04); }
.mat-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.mat-card-title { font-size: 18.5px; margin: 0; color: var(--primary); }
.mat-card-intro {
  margin: 0; font-size: 14px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.mat-card-meta { margin: auto 0 0; padding-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--accent); letter-spacing: .01em; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-block; padding: 3px 9px; border-radius: 100px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 12px; color: var(--muted); white-space: nowrap;
}
.chip-link { color: var(--primary); font-weight: 600; }
.chip-link:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* ---------- 工艺卡片 ---------- */
.proc-grid { gap: 14px; }
.proc-card {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .18s, box-shadow .18s;
}
.proc-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.proc-name { font-weight: 700; font-size: 15.5px; color: var(--primary); }
.proc-desc {
  font-size: 13px; color: var(--muted); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 产品卡片 ---------- */
.prod-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.prod-card:hover { box-shadow: var(--shadow); border-color: #d3dae0; }
.prod-img { aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.prod-model { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.prod-name { margin: 0; font-size: 16.5px; color: var(--primary); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 9px; border-radius: 4px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.tag-accent { background: var(--accent-soft); border-color: #e6d2be; color: #9c5f2c; }
.spec-list { margin: 0; font-size: 13.5px; }
.spec-list li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.spec-list li:last-child { border-bottom: 0; }
.spec-list span { color: var(--muted); }
.spec-list b { font-weight: 600; text-align: right; }
.prod-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- 优势 / 流程 / 市场 / 认证 ---------- */
.why-grid { gap: 18px; }
.why-card { padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.why-ico {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px;
  border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 700;
}
.why-card h3 { font-size: 17px; margin-bottom: 8px; }
.why-card p { margin: 0; font-size: 14px; color: var(--muted); }

.flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; counter-reset: flow; }
.flow-step { position: relative; padding: 22px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.flow-num {
  display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px;
  border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700;
}
.flow-step h4 { font-size: 15.5px; margin-bottom: 6px; color: var(--primary); }
.flow-step p { margin: 0; font-size: 13px; color: var(--muted); }

.market-card { padding: 28px 26px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.market-name { font-size: 19px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.market-desc { margin: 0; font-size: 14px; color: var(--muted); }

.cert-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cert-badge {
  padding: 8px 16px; border-radius: 100px; background: #fff;
  border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--primary);
}

/* ---------- CTA 条 ---------- */
.cta-band { background: var(--primary); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 52px 24px; flex-wrap: wrap; }
.cta-title { font-size: clamp(21px, 2.2vw, 28px); margin-bottom: 8px; }
.cta-sub { margin: 0; color: rgba(255, 255, 255, .8); max-width: 46em; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 内页页头 ---------- */
.page-head { padding: 56px 0 44px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-title { font-size: clamp(26px, 3vw, 38px); margin-bottom: 12px; color: var(--primary); }
.page-sub { margin: 0; max-width: 62em; color: var(--muted); font-size: 16px; }

/* ---------- 筛选器 ---------- */
.filters { padding: 22px 24px; margin-bottom: 32px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.filter-group { display: flex; align-items: flex-start; gap: 14px; padding: 8px 0; }
.filter-group + .filter-group { border-top: 1px dashed var(--line); }
.filter-label { flex: 0 0 96px; padding-top: 6px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.filter-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-btn {
  padding: 6px 13px; background: #fff; border: 1px solid var(--line); border-radius: 100px;
  font-family: inherit; font-size: 13px; color: var(--ink); cursor: pointer; transition: all .16s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-foot { display: flex; align-items: center; gap: 16px; padding-top: 14px; margin-top: 8px; border-top: 1px dashed var(--line); }
.filter-clear { padding: 6px 13px; background: none; border: 1px solid var(--line); border-radius: 100px; font-family: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.filter-clear:hover { border-color: var(--accent); color: var(--accent); }
.filter-count { font-size: 13px; color: var(--muted); }
.filter-count b { color: var(--primary); }
.filter-empty { padding: 40px; text-align: center; color: var(--muted); background: var(--bg-soft); border-radius: var(--radius-lg); }

/* ---------- 材质 × 工艺 矩阵 ---------- */
.mx-legend { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.mx-key { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 4px; font-size: 13px; }
.mx-key-on { background: var(--primary); color: #fff; }
.mx-key-oem { background: var(--accent-soft); color: var(--accent); border: 1px solid #e6d2be; }
.mx-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.mx-table { width: 100%; min-width: 1000px; font-size: 14px; }
.mx-table th, .mx-table td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.mx-table thead th { padding: 14px 8px; background: var(--primary); color: #fff; font-size: 12.5px; font-weight: 600; vertical-align: bottom; }
.mx-table thead th span { display: inline-block; writing-mode: vertical-rl; text-orientation: mixed; white-space: nowrap; max-height: 130px; }
.mx-corner { text-align: left; padding-left: 18px !important; writing-mode: horizontal-tb; }
.mx-row-head { padding: 14px 18px; width: 240px; text-align: left; font-weight: 600; background: #fbfcfd; }
.mx-row-head a { color: var(--primary); }
.mx-row-head em { margin-left: 8px; font-style: normal; font-size: 12px; color: var(--muted); }
.mx-table td { width: 46px; height: 46px; text-align: center; padding: 0; }
.mx-on a { display: grid; place-items: center; width: 100%; height: 100%; color: var(--primary); font-size: 15px; font-weight: 700; }
.mx-on a:hover { background: var(--primary); color: #fff; }
.mx-oem a { display: grid; place-items: center; width: 100%; height: 100%; color: var(--accent); font-size: 12px; }
.mx-oem a:hover { background: var(--accent-soft); }
.mx-off { background: #fafbfc; }
.mx-note { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.craft-index { margin-top: 56px; display: grid; gap: 18px; }
.craft-block { padding: 24px 26px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); scroll-margin-top: 110px; }
.craft-block-title { font-size: 17px; margin-bottom: 8px; color: var(--primary); }
.craft-block-desc { font-size: 14px; color: var(--muted); margin-bottom: 14px; }

/* ---------- 面包屑 ---------- */
.breadcrumb { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.breadcrumb .container { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.breadcrumb span[aria-current] { color: var(--muted); }
.crumb-sep { color: #c3ccd3; }

/* ---------- 品类二级页 ---------- */
.cat-hero { padding: 44px 0 52px; border-bottom: 1px solid var(--line); }
.cat-hero-inner { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 48px; align-items: start; }
.cat-hero-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.cat-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cat-meta { margin: 0 0 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.cat-hero-text .chips { margin-bottom: 26px; }
.cat-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.craft-section { padding: 52px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.craft-head { display: flex; align-items: baseline; justify-content: flex-start; gap: 14px; flex-wrap: wrap; }
.craft-title { font-size: clamp(20px, 2.1vw, 26px); color: var(--primary); margin: 0 0 4px; }
.craft-count { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.craft-desc { max-width: 60em; color: var(--muted); font-size: 15px; margin: 0 0 28px; }

.cat-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.cat-summary-col h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.related { padding: 52px 0 64px; }
.related-title { font-size: 20px; color: var(--primary); }
.rel-card { display: block; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; color: var(--ink); transition: box-shadow .18s, border-color .18s; }
.rel-card:hover { box-shadow: var(--shadow); border-color: var(--accent); color: var(--primary); }
.rel-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rel-card span { display: block; padding: 14px 16px; font-size: 14.5px; font-weight: 600; }

/* ---------- 关于 / 联系 ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 52px; align-items: center; }
.about-text .lead { font-size: 18px; color: var(--primary); font-weight: 500; }
.about-text p { color: #3d474f; }
.about-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.caps { gap: 18px; }
.cap-card { padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.cap-card b { display: block; font-size: 28px; color: var(--primary); line-height: 1.2; }
.cap-card span { font-size: 13px; color: var(--muted); }
.block-grid { gap: 52px; padding: 0 24px; }
.block-title { font-size: 21px; color: var(--primary); }
.block p { color: var(--muted); font-size: 15px; }

.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.tl-year { font-size: 20px; color: var(--accent); }
.tl-item p { margin: 0; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 52px; align-items: start; }
.contact-line { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); margin: 0; }
.contact-line > span:first-child { flex: 0 0 120px; font-size: 13px; font-weight: 600; color: var(--muted); }
.map-ph { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); }
.map-hint { margin: 0; padding: 10px 14px; font-size: 12.5px; color: var(--muted); background: #fff; border-top: 1px solid var(--line); }

.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(18, 50, 79, .08); }
/* :user-invalid 只在用户交互之后生效，避免打开页面就一片红框 */
.field input:user-invalid, .field textarea:user-invalid, .field input.is-invalid { border-color: #cf8a8a; }
.form .btn { justify-self: start; }
.form-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.form-status { margin: 0; padding: 12px 16px; border-radius: var(--radius); background: var(--accent-soft); color: #8a5327; font-size: 14px; }
.form-status.is-ok { background: #e8f2e8; color: #2f6b3a; }

/* 蜜罐字段：真人看不见，机器人会填 */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 结构补充 ---------- */
.main { display: block; }
.mega-inner { min-width: 0; }
.contact-info, .contact-form, .footer-col { min-width: 0; }
.contact-form {
  padding: 30px 32px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.footer-meta { color: rgba(255, 255, 255, .38); }

/* ---------- 页脚 ---------- */
.footer { background: var(--primary-dark); color: rgba(255, 255, 255, .72); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; padding-top: 62px; padding-bottom: 46px; }
.footer-brand { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-desc { font-size: 13.5px; color: rgba(255, 255, 255, .62); }
.footer-legal { font-size: 12.5px; color: rgba(255, 255, 255, .45); margin: 0; }
.footer-title { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 16px; }
.footer-link { display: block; padding: 4px 0; color: rgba(255, 255, 255, .72); font-size: 13.5px; }
.footer-link:hover { color: var(--accent); }
.footer-line { margin: 0 0 8px; font-size: 13.5px; }
.footer-line a, .footer-line .copy-mail { color: rgba(255, 255, 255, .78); }
.footer-line a:hover, .footer-line .copy-mail:hover { color: var(--accent); }

/* ---------- 邮箱点击复制 ---------- */
/* 用了 .btn 的那个（CTA 区块）保持按钮外观，不加下面的重置 */
.copy-mail:not(.btn) {
  font: inherit; padding: 0; border: 0; background: none;
  color: inherit; cursor: copy; text-align: left;
  text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px;
}
.copy-mail:not(.btn):hover { text-decoration-style: solid; }
.copy-mail.is-copied { color: var(--accent); text-decoration: none; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 12.5px; color: rgba(255, 255, 255, .48);
}
.footer-bottom p { margin: 0; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  display: grid; place-items: center; width: 42px; height: 42px;
  background: var(--primary); color: #fff; border-radius: 50%;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.to-top.is-on { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--accent); color: #fff; }

/* ---------- 根入口 / 404 ---------- */
.root-page { display: grid; place-items: center; min-height: 100vh; background: var(--primary-dark); color: #fff; }
.root-box { max-width: 640px; padding: 48px 24px; text-align: center; }
.root-brand { font-size: 30px; font-weight: 700; margin: 0; letter-spacing: .02em; }
.root-brand-zh { font-size: 16px; color: rgba(255, 255, 255, .6); margin: 6px 0 26px; }
.root-title { font-size: 18px; font-weight: 600; color: rgba(255, 255, 255, .9); margin-bottom: 8px; }
.root-sub { font-size: 14px; color: rgba(255, 255, 255, .55); margin-bottom: 30px; }
.root-langs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.root-lang { padding: 10px 20px; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius); color: #fff; font-size: 14px; }
.root-lang:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); z-index: 70;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 84px 22px 32px;
    background: #fff; box-shadow: var(--shadow); overflow-y: auto;
    transform: translateX(102%); transition: transform .24s ease;
  }
  .nav.is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
  .mega { position: static; width: auto; padding: 8px 0 14px 12px; border: 0; border-bottom: 1px solid var(--line);
          box-shadow: none; opacity: 1; visibility: visible; transform: none; border-radius: 0; }
  .mega-head { display: none; }
  .mega-grid { grid-template-columns: minmax(0, 1fr); }
  .mega-link { padding: 8px 0; font-size: 14px; }
  .nav-contact { margin-top: 24px; }
  .nav-contact .btn { width: 100%; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cat-hero-media { max-width: 460px; }
  .about-grid, .contact-grid, .block-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-top: 46px; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .container { padding: 0 18px; }
  .section { padding: 52px 0; }
  .hero-inner { padding: 62px 18px 56px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .cat-summary { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tl-item { grid-template-columns: 74px minmax(0, 1fr); gap: 16px; }
  .topbar-inner { min-height: 0; padding-top: 8px; padding-bottom: 8px; gap: 8px; }
  .topbar-tag { display: none; }
  .topbar-right { margin-left: 0; }
  .lg-full { display: none; }
  .lg-short { display: inline; }
  .filter-label { flex: 0 0 100%; padding-top: 0; }
  .filter-group { flex-direction: column; gap: 8px; }
  .hide-sm { display: none; }
  .cta-inner { padding: 40px 18px; }
  .about-grid { gap: 28px; }
  .contact-form { padding: 22px 20px; }
  .craft-section { padding: 40px 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .mx-table { min-width: 840px; }
  .mx-row-head { width: 180px; padding: 12px; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .btn-lg { padding: 12px 20px; font-size: 15px; }
}

/* 打印 */
@media print {
  .topbar, .site-header, .to-top, .cta-band, .filters { display: none; }
  .section { padding: 20px 0; }
}
