/* ==========================================================================
   qcarbide.com — native CSS (no frameworks)
   ========================================================================== */

:root {
  --navy: #0d2b45;
  --navy-dark: #091f33;
  --blue: #1668b3;
  --blue-dark: #0f4f88;
  --accent: #e8752f;
  --accent-dark: #c65d20;
  --ink: #1c2b36;
  --muted: #5f7180;
  --line: #dce4ea;
  --bg: #ffffff;
  --bg-alt: #f4f7f9;
  --bg-soft: #eaf1f6;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 4px 24px rgba(13, 43, 69, .08);
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 18px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin: 0 0 14px; }
h3 { font-size: 1.12rem; margin: 0 0 10px; }
p { margin: 0 0 1em; }

.container { width: min(100% - 40px, var(--max)); margin: 0 auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--accent); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 26px; border-radius: var(--radius);
  font-size: .95rem; font-weight: 700; line-height: 1.2; cursor: pointer;
  border: 2px solid transparent; transition: all .18s ease;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .85rem; }

.text-link { font-weight: 700; font-size: .9rem; color: var(--blue); }
.text-link span { transition: transform .15s ease; display: inline-block; }
.text-link:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 6px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.35rem; letter-spacing: -.4px; }
.brand-text small { font-size: .64rem; color: #a9c3d6; letter-spacing: .3px; }

.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav a {
  color: #e3ecf3; display: block; padding: 10px 13px;
  font-size: .92rem; font-weight: 600; border-radius: 4px;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.caret { display: inline-block; margin-left: 4px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; border-radius: 0 0 6px 6px; box-shadow: var(--shadow);
  list-style: none; margin: 0; padding: 8px 0; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .18s ease; z-index: 20;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a { color: var(--ink); padding: 8px 18px; font-size: .88rem; }
.dropdown a:hover { background: var(--bg-soft); color: var(--blue); }
.header-cta {
  background: var(--accent); color: #fff; padding: 10px 20px;
  border-radius: var(--radius); font-size: .88rem; font-weight: 700;
  white-space: nowrap;
}
.header-cta:hover { background: var(--accent-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

/* ---------- Hero ---------- */
/* Banner photo as a full-bleed background, darkened on the copy side so the
   white headline stays legible while the product line-up shows on the right. */
.hero {
  position: relative; isolation: isolate;
  background: #0b2438 url('/assets/images/banner-hero.jpg') no-repeat left center / cover;
  color: #fff; padding: 62px 0 66px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(96deg, rgba(8,28,46,.97) 0%, rgba(8,28,46,.94) 32%, rgba(8,28,46,.72) 50%, rgba(8,28,46,.34) 72%, rgba(8,28,46,.12) 100%);
}
.hero-copy { max-width: 640px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; font-weight: 700; color: #8fc0e6; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: clamp(1.75rem, 2.5vw, 2.35rem); line-height: 1.2; letter-spacing: -.3px; margin: 0 0 16px; }
.hero h1 em { color: #f7b285; font-style: normal; }
.hero-lead { font-size: 1.02rem; color: #d5e4ef; max-width: 570px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
/* 深色 hero 上的次要按钮需要浅色描边，否则深蓝字几乎不可见 */
.hero-actions .btn-outline { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }
.hero-actions .btn-outline:hover { background: #fff; border-color: #fff; color: var(--navy); }
/* 桌面端已用整幅背景图，图片元素只在窄屏出现 */
.hero-media { display: none; }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { padding: 54px 0; background: #fff; border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 34px; }
.section-head p { color: var(--muted); max-width: 720px; margin: 0; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.result-count { color: var(--muted); font-size: .9rem; }

/* ---------- Cards / grids ---------- */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  position: relative; transition: all .2s ease; overflow: hidden;
  display: flex; flex-direction: column; color: inherit;
}
.category-card:hover { border-color: var(--blue); box-shadow: 0 10px 30px rgba(13,43,69,.12); transform: translateY(-3px); }
.category-thumb {
  display: block; aspect-ratio: 4 / 3; overflow: hidden;
  background: #fff;
}
.category-thumb img {
  width: 100%; height: 100%; object-fit: contain; padding: 14px;
  transition: transform .35s ease;
}
.category-card:hover .category-thumb img { transform: scale(1.07); }
.category-body {
  display: flex; align-items: center; gap: 8px; flex: 1;
  min-height: 62px; padding: 12px 16px; border-top: 1px solid var(--line);
}
.category-card h3 { font-size: .96rem; margin: 0; line-height: 1.35; color: var(--navy); }
.section[id] { scroll-margin-top: 90px; }
.category-card a { color: inherit; }
.card-arrow {
  margin-left: auto; color: var(--accent); display: inline-flex; align-items: center;
  flex-shrink: 0; transition: transform .22s ease;
}
.card-arrow svg { width: 17px; height: 17px; display: block; }
.category-card:hover .card-arrow { transform: translateX(4px); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .2s ease; display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow); border-color: #b9cbda; }
.product-thumb {
  display: block; aspect-ratio: 4/3; background: #fff; overflow: hidden;
  border-bottom: 1px solid var(--line); padding: 10px;
}
.product-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; color: var(--accent); font-weight: 700; }
.product-body h3 { font-size: .98rem; margin: 0; line-height: 1.45; }
.product-body h3 a { color: var(--navy); }
.product-body h3 a:hover { color: var(--blue); }
.product-spec { font-size: .82rem; color: var(--muted); margin: 0; }
.product-body .text-link { margin-top: auto; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: all .2s ease;
}
.news-card:hover { box-shadow: var(--shadow); border-color: #b9cbda; }
.news-card h3 { font-size: 1.05rem; }
.news-card h3 a { color: var(--navy); }
.news-card p { color: var(--muted); font-size: .92rem; }
.news-meta { font-size: .78rem; color: var(--muted); margin-bottom: 8px; }

/* ---------- Page hero / breadcrumb ---------- */
.page-hero { background: var(--bg-soft); padding: 44px 0 38px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 10px 0 8px; font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.page-hero p { color: var(--muted); max-width: 760px; margin: 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; font-size: .8rem; color: var(--muted); }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 8px; color: #aab8c2; }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--navy); font-weight: 600; }

/* ---------- Prose / content ---------- */
.prose { max-width: 900px; }
.prose h2 { margin-top: 32px; }
.prose h3 { margin-top: 24px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--bg-alt); }
.prose img { border-radius: 4px; margin: 10px 0; }

/* ---------- Product detail ---------- */
.product-hero { padding: 34px 0 30px; }
.product-hero .cat-eyebrow a { color: #8fc0e6; }
.product-hero .cat-eyebrow a:hover { color: #fff; }
.cat-hero-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.product-hero h1 { max-width: 980px; margin-bottom: 0; }

.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 396px; gap: 44px; align-items: start; }
.pd-media { min-width: 0; }
.gallery-main {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  aspect-ratio: 1 / 1; padding: 24px; overflow: hidden;
}
/* 用 width/height 100% + contain 保证整张图完整可见（grid + max-height 百分比在部分浏览器会失效导致裁切） */
.gallery-main img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.thumb {
  width: 74px; height: 74px; padding: 4px; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.thumb:hover { border-color: #b9cbda; transform: translateY(-2px); }
.thumb.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(232, 117, 47, .14); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }

.pd-assure { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.pd-assure li { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); }
.pd-assure svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }

.pd-panel {
  position: sticky; top: 100px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 26px 26px 22px; box-shadow: 0 8px 28px rgba(13, 43, 69, .06);
}
.pd-panel-head { margin-bottom: 14px; }
.pd-panel-head h2 { margin: 0; font-size: 1.22rem; letter-spacing: -.1px; }
.pd-spec-list { margin: 0; padding: 0; }
.pd-spec-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 10px 0; border-bottom: 1px dashed #e4ecf2; font-size: .87rem;
}
.pd-spec-row:last-child { border-bottom: 0; }
.pd-spec-row dt { margin: 0; flex: 0 0 auto; max-width: 55%; color: var(--muted); }
.pd-spec-row dd { margin: 0; flex: 1 1 auto; min-width: 0; color: var(--navy); font-weight: 600; text-align: right; word-break: break-word; }
.pd-empty { margin: 0; font-size: .88rem; color: var(--muted); }

.pd-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.pd-cta .btn { width: 100%; }
.pd-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: #128c7e; font-size: .9rem; font-weight: 700;
}
.pd-wa:hover { border-color: #25d366; background: #f2fdf6; color: #0f7a6d; }
.pd-note {
  margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: .78rem; line-height: 1.6; color: var(--muted);
}

.pd-desc { margin-top: 60px; padding-top: 44px; border-top: 1px solid var(--line); }
.pd-desc-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.pd-desc-aside h2 { margin: 0 0 8px; font-size: 1.35rem; }
.pd-desc-aside p { margin: 0; font-size: .86rem; line-height: 1.7; color: var(--muted); }
.pd-desc-body { min-width: 0; }
.pd-desc-body.prose { max-width: 760px; }
/* 抓取内容里的内联 font-family / font-size 会破坏版面，统一继承站点排版 */
.pd-desc-body.prose span,
.pd-desc-body.prose font { font-family: inherit !important; font-size: inherit !important; line-height: inherit !important; }
.pd-desc-body.prose p:last-child { margin-bottom: 0; }
.pd-desc-body.prose img { border-radius: 6px; }
/* 规格表在窄屏内部横向滚动，不撑破页面 */
.table-scroll { margin: 18px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { margin: 0; min-width: 540px; }
.table-scroll th, .table-scroll td { font-size: .86rem; white-space: nowrap; }
.pd-cat-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--blue); }
.pd-cat-link:hover { color: var(--accent); }

/* ---------- Article ---------- */
.article-meta { display: flex; gap: 18px; font-size: .85rem; color: var(--muted); margin-top: 12px; }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 50px; }
.article-body { max-width: 100%; }
.article-lead { font-size: 1.08rem; font-weight: 600; color: var(--navy); }
.article-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-box { background: var(--bg-alt); padding: 22px; border-radius: var(--radius); }
.sidebar-box h3 { font-size: 1rem; }
.sidebar-box p { font-size: .9rem; color: var(--muted); }
.share-links { display: flex; flex-wrap: wrap; gap: 8px; }
.share-links a { font-size: .8rem; background: #fff; padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; }
/* 文章详情 */
.article-hero { padding: 46px 0 42px; }
.article-hero h1 { max-width: 920px; font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.article-hero .cat-eyebrow a { color: #8fc0e6; }
.article-hero .cat-eyebrow a:hover { color: #fff; }
.article-hero-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: #b9d0e2; font-size: .85rem; }
.article-hero-meta a { color: #e7f1f8; }
.article-hero-meta a:hover { color: #fff; }
.article-paper { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 30px 34px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.article-tags a {
  display: inline-flex; align-items: center; padding: 5px 11px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--navy); font-size: .78rem; font-weight: 600; line-height: 1.4;
}
.article-tags a::before { content: '#'; margin-right: 4px; color: #9db4c6; }
.article-tags a:hover { border-color: var(--blue); color: var(--blue); background: #f4f9fd; }
.article-tags-sm a { padding: 4px 9px; font-size: .72rem; }
/* 产品页 / 文章页的 Related Topics：行内文字内链，像正文脚注一样自然折行 */
.topic-block { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.topic-block .cat-kicker { display: block; margin-bottom: 8px; }
/* 产品页里它直接落在容器边缘，收进一块浅底面板，与上方卡片内容的内边距对齐 */
.pd-body .topic-block {
  padding: 18px 22px 20px; border: 1px solid var(--line); border-radius: 10px;
  background: #f7fafc;
}
.pd-body .topic-block .cat-kicker { margin-bottom: 12px; }
/* 通用：文章页等在窄容器里用流式折行，避免长标签被挤在一起 */
.topic-chips { font-size: .84rem; line-height: 1.95; }
.topic-item { display: inline-block; white-space: nowrap; margin-right: 14px; }
/* 产品页容器宽，改成等宽网格，10 个标签排成两行且严格对齐 */
.pd-body .topic-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px 18px; line-height: 1.7; }
.pd-body .topic-item { display: block; min-width: 0; margin-right: 0; }
.topic-chips a {
  color: var(--navy); text-decoration: underline; white-space: nowrap;
  text-decoration-color: #cddae6; text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color .18s ease, text-decoration-color .18s ease;
}
.topic-chips a:hover { color: var(--blue); text-decoration-color: currentColor; }
.article-sidebar .sidebar-quote { background: #eef5fb; }
.article-related-card { display: flex; flex-direction: column; }
.article-related-card .article-tags { margin: 0 0 16px; }
.article-related-card .text-link { margin-top: auto; }

/* 文章列表卡片 */
.article-cat-tabs { margin-bottom: 26px; }
.article-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card { display: flex; flex-direction: column; padding: 22px; }
.article-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; margin: -22px -22px 18px; border-radius: 10px 10px 0 0; }
.article-card-media img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { display: flex; flex-direction: column; flex: 1; }
.article-card .news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.article-card-cat { color: var(--accent); font-weight: 700; }
.article-card h3 { margin: 0 0 10px; font-size: 1.05rem; line-height: 1.45; }
.article-card h3 a { color: var(--navy); }
.article-card h3 a:hover { color: var(--blue); }
.article-card p { margin: 0 0 14px; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.article-card .article-tags { margin: 0 0 16px; }
.article-card .text-link { margin-top: auto; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tabs a { padding: 7px 15px; border: 1px solid var(--line); border-radius: 20px; font-size: .85rem; }
.filter-tabs a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
/* 标签页的相关主题胶囊 */
.tag-topics a { background: #fff; font-weight: 600; }
.tag-topics a:hover { border-color: var(--blue); color: var(--blue); background: #f4f9fd; }

/* ---------- Page layout / contact ---------- */
.page-layout { display: grid; grid-template-columns: 1fr; gap: 40px; }
.page-layout-contact { grid-template-columns: minmax(0, 1fr) 336px; gap: 48px; align-items: start; }
.page-content { max-width: 100%; }
.page-content.prose h2 { margin-top: 34px; font-size: 1.28rem; }
.page-content.prose h2:first-child { margin-top: 0; }
.page-content.prose > p, .page-content.prose li { color: #42586b; line-height: 1.85; }
.page-content.prose li { margin-bottom: 7px; }
.page-content.prose li:last-child { margin-bottom: 0; }

/* 联系页 hero */
.page-hero-contact .page-kicker {
  display: inline-block; margin-bottom: 4px;
  font-size: .7rem; font-weight: 700; letter-spacing: 2.2px;
  text-transform: uppercase; color: var(--blue);
}
.page-hero-contact h1 { margin: 6px 0 10px; }
.page-hero-lead { color: #4a6274; font-size: 1rem; line-height: 1.75; margin: 0; max-width: 720px; }

/* 联系页主体 */
.contact-body { padding: 46px 0 72px; background: #fff; }
.contact-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 52px; }
.contact-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 10px;
  background: #fbfcfd; transition: border-color .18s, background .18s, transform .18s;
}
a.contact-tile:hover { border-color: var(--blue); background: #f4f9fd; transform: translateY(-2px); }
.contact-tile svg {
  width: 20px; height: 20px; padding: 9px; box-sizing: content-box;
  margin-bottom: 12px; border-radius: 8px; background: #eef5fb; color: var(--blue);
}
.contact-tile-label { font-size: .7rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.contact-tile strong { font-size: .96rem; font-weight: 600; color: var(--navy); line-height: 1.5; word-break: break-word; }
.contact-tile-note { margin-top: auto; padding-top: 10px; font-size: .82rem; color: var(--muted); line-height: 1.65; }

/* 侧栏公司信息 */
.contact-sidebar { display: flex; flex-direction: column; gap: 18px; }
.contact-card { background: var(--bg-alt); padding: 26px; border-radius: var(--radius); }
.contact-card h2 { margin: 0 0 14px; font-size: 1.02rem; color: var(--navy); }
.contact-facts { margin: 0; }
.contact-facts > div { padding: 10px 0; border-top: 1px solid var(--line); }
.contact-facts > div:first-child { border-top: 0; padding-top: 0; }
.contact-facts dt { margin-bottom: 3px; font-size: .7rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.contact-facts dd { margin: 0; font-size: .88rem; color: var(--navy); line-height: 1.55; }
.contact-card-btn { display: flex; width: 100%; justify-content: center; margin-top: 20px; }
.contact-card-docs { background: #fff; border: 1px solid var(--line); }
.contact-docs { list-style: none; margin: 0; padding: 0; }
.contact-docs li {
  position: relative; padding: 7px 0 7px 24px;
  font-size: .86rem; color: var(--navy); line-height: 1.55;
}
.contact-docs li::before {
  content: ""; position: absolute; left: 2px; top: 13px;
  width: 11px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.contact-docs-note { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); line-height: 1.6; }

#inquiry { scroll-margin-top: 96px; }
.inquiry-form-wrap { margin-top: 56px; background: var(--bg-alt); padding: 36px; border-radius: var(--radius); }.inquiry-form-wrap h2 { margin-bottom: 6px; }
.inquiry-form-wrap > p { color: var(--muted); }
.inquiry-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .88rem; margin-bottom: 16px; }
.inquiry-form input, .inquiry-form textarea {
  border: 1px solid #c9d5de; border-radius: 4px; padding: 11px 13px;
  font: inherit; font-weight: 400; background: #fff; color: var(--ink);
}
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.notice { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 24px; }
.notice-success { background: #e5f5e9; color: #216e36; border: 1px solid #bfe0c8; }
.notice-error { background: #fdecea; color: #a42820; border: 1px solid #f4c7c3; }
.notice[hidden] { display: none; }

/* ---------- Policy pages ---------- */
.policy-updated { margin: 14px 0 0; font-size: .78rem; letter-spacing: .2px; color: var(--muted); }
.policy-wrap { padding: 46px 0 78px; background: #fff; }
.policy-layout { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 52px; }
.policy-body.prose { max-width: 100%; }
.policy-body.prose > p:first-of-type { font-size: 1.02rem; line-height: 1.9; color: #33495b; }
.policy-body.prose h2 {
  margin: 40px 0 14px; padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 1.2rem; letter-spacing: -.1px;
}
.policy-body.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.policy-body.prose h3 { margin: 24px 0 8px; font-size: 1rem; color: var(--navy); }
.policy-body.prose ul, .policy-body.prose ol { margin: 0 0 16px; padding-left: 20px; }
.policy-body.prose li { margin-bottom: 9px; }
.policy-body.prose li::marker { color: #9db2c3; }
.policy-body.prose strong { color: var(--navy); font-weight: 600; }
.policy-body.prose p { margin-bottom: 14px; }
.policy-body.prose > p:last-child { margin-bottom: 0; }

.policy-side { display: block; }
.policy-side-inner { position: sticky; top: 96px; display: grid; gap: 18px; }
.policy-toc { position: static; }
.policy-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.policy-toc li { counter-increment: toc; font-size: .82rem; line-height: 1.5; }
.policy-toc a { display: flex; gap: 8px; padding: 4px 0; color: #42586b; }
.policy-toc a::before { content: counter(toc, decimal-leading-zero); color: #9db2c3; font-size: .7rem; font-weight: 700; padding-top: 2px; }
.policy-toc a:hover { color: var(--blue); }
.policy-toc a:hover::before { color: var(--blue); }
.policy-links { list-style: none; margin: 0; padding: 0; }
.policy-links li + li { border-top: 1px solid var(--line); }
.policy-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: .85rem; color: var(--navy); }
.policy-links li:first-child a { padding-top: 0; }
.policy-links a::after { content: "→"; color: #a8b8c6; font-size: .9rem; transition: transform .18s, color .18s; }
.policy-links a:hover { color: var(--blue); }
.policy-links a:hover::after { color: var(--blue); transform: translateX(3px); }
.policy-links a:hover::after { color: var(--blue); transform: translateX(3px); }

/* ---------- About page ---------- */
.about-stats { background: #fff; border-bottom: 1px solid var(--line); padding: 30px 0; }
.about-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.about-stats-grid > div { padding: 2px 28px; border-left: 1px solid var(--line); }
.about-stats-grid > div:first-child { border-left: 0; padding-left: 0; }
.about-stats-grid dt {
  margin-bottom: 6px; font-size: .7rem; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--muted);
}
.about-stats-grid dd { margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--navy); letter-spacing: -.5px; }

.about-story-grid { display: grid; grid-template-columns: 316px minmax(0, 1fr); gap: 56px; align-items: start; }
.about-story-aside h2 { margin: 0 0 12px; font-size: 1.5rem; line-height: 1.32; letter-spacing: -.2px; color: var(--navy); text-wrap: balance; }
.about-story-note { margin: 0; font-size: .86rem; line-height: 1.75; color: var(--muted); }
.about-copy.prose { max-width: 100%; }
.about-copy.prose h3 { margin: 30px 0 10px; font-size: 1.05rem; letter-spacing: -.1px; color: var(--navy); }
.about-copy.prose h3:first-child { margin-top: 0; }
.about-copy.prose p { margin-bottom: 14px; font-size: .96rem; line-height: 1.9; color: #42586b; }
.about-copy.prose p:last-child { margin-bottom: 0; }

.about-process { background: var(--bg-alt); }
.about-steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; margin: 0; padding: 0; list-style: none;
}
.about-step {
  padding: 22px 22px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
}
.about-step-no { display: block; margin-bottom: 10px; font-size: .7rem; font-weight: 700; letter-spacing: 1.6px; color: var(--accent); }
.about-step h3 { margin: 0 0 6px; font-size: .96rem; color: var(--navy); }
.about-step p { margin: 0; font-size: .84rem; line-height: 1.72; color: var(--muted); }

.about-quality { padding: 58px 0; background: var(--navy); }
.about-quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.about-quality .cat-kicker { color: #8fc0e6; }
.about-quality h2 { margin: 0 0 14px; font-size: 1.5rem; line-height: 1.32; color: #fff; }
.about-quality p { margin: 0; color: #b9cddd; font-size: .95rem; line-height: 1.85; }
.about-quality-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.about-quality-list li { position: relative; padding-left: 26px; font-size: .9rem; line-height: 1.65; color: #cfdfec; }
.about-quality-list li::before {
  content: ""; position: absolute; left: 1px; top: 6px;
  width: 12px; height: 7px; border-left: 2px solid #6fb2e0; border-bottom: 2px solid #6fb2e0;
  transform: rotate(-45deg);
}
.about-quality-list strong { color: #fff; font-weight: 600; }

.about-products .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Inquiry modal (Get a Quote popup) ---------- */
body.inq-locked { overflow: hidden; }

.inq-modal {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; padding: 28px 20px;
}
.inq-modal.is-open { display: flex; }
.inq-overlay {
  position: absolute; inset: 0; background: rgba(9, 31, 51, .66);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: inqFade .22s ease;
}
.inq-dialog {
  position: relative; width: min(720px, 100%); max-height: calc(100vh - 56px);
  overflow-y: auto; background: #fff; border-radius: 10px;
  box-shadow: 0 40px 90px rgba(9, 31, 51, .45);
  animation: inqRise .26s cubic-bezier(.2, .75, .3, 1);
}
.inq-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16);
  color: #fff; cursor: pointer; transition: background .18s, transform .18s;
}
.inq-close:hover { background: rgba(255, 255, 255, .3); transform: rotate(90deg); }

.inq-head {
  position: relative; overflow: hidden; padding: 28px 30px 24px;
  color: #fff; background: linear-gradient(135deg, #0d2b45 0%, #1668b3 100%);
  border-radius: 10px 10px 0 0;
}
.inq-head::after {
  content: ''; position: absolute; right: -50px; top: -70px;
  width: 230px; height: 230px; border-radius: 50%; background: rgba(255, 255, 255, .08);
}
.inq-kicker {
  display: inline-block; margin-bottom: 8px; font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #ffd9c2;
}
.inq-head h2 { position: relative; margin: 0 0 8px; font-size: 1.55rem; line-height: 1.25; color: #fff; }
.inq-head p { position: relative; margin: 0; max-width: 56ch; color: #c9dcec; font-size: .92rem; line-height: 1.55; }

.inq-body { padding: 24px 30px 26px; }
.inq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.inq-form label, .inq-full {
  display: flex; flex-direction: column; gap: 6px;
  font-size: .82rem; font-weight: 600; color: #33475a;
}
.inq-full { margin-top: 14px; }
.inq-label { display: block; }
.inq-span2 { grid-column: 1 / -1; }
.inq-req { font-style: normal; color: var(--accent); }
.inq-form input, .inq-form textarea {
  border: 1px solid #cfdae3; border-radius: 4px; padding: 10px 12px;
  font: inherit; font-size: .9rem; font-weight: 400; color: var(--ink); background: #fff;
  transition: border-color .16s, box-shadow .16s;
}
.inq-form input::placeholder, .inq-form textarea::placeholder { color: #9fb0be; font-weight: 400; }
.inq-form input:focus, .inq-form textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 104, 179, .14);
}
.inq-form textarea { min-height: 96px; resize: vertical; }
.inq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.inq-submit { margin-top: 16px; width: 100%; padding: 13px 20px; font-size: .95rem; }
.inq-submit[disabled] { opacity: .75; cursor: progress; }
.inq-spinner {
  display: none; width: 14px; height: 14px; margin-left: 8px; vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%;
  animation: inqSpin .7s linear infinite;
}
.inq-submit.is-loading .inq-spinner { display: inline-block; }
.inq-note { margin: 10px 0 0; font-size: .75rem; color: var(--muted); text-align: center; }

.inq-alert {
  margin-bottom: 16px; padding: 10px 14px; border-radius: 4px;
  background: #fdecea; border: 1px solid #f4c7c3; color: #a42820; font-size: .85rem;
}
.inq-alert[hidden] { display: none; }

.inq-success { padding: 20px 6px 6px; text-align: center; }
.inq-success[hidden] { display: none; }
.inq-check {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%; background: #e5f5e9; color: #216e36;
}
.inq-success h3 { margin: 0 0 10px; font-size: 1.25rem; }
.inq-success p { margin: 0 auto 10px; max-width: 46ch; color: var(--muted); font-size: .92rem; }
.inq-success-contact { font-size: .85rem; }
.inq-success .btn { margin-top: 10px; }

@keyframes inqFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes inqRise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes inqSpin { to { transform: rotate(360deg); } }

/* Mobile-only "Get a Quote" entry inside the dropdown navigation */
.nav-cta-item { display: none; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 36px; }
.pagination ul { list-style: none; display: flex; gap: 6px; justify-content: center; padding: 0; margin: 0; flex-wrap: wrap; }
.pagination a, .pagination span { display: block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 4px; font-size: .9rem; }
.pagination [aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
.no-results { color: var(--muted); padding: 30px 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue-dark); color: #fff; padding: 48px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin: 0 0 6px; font-size: 1.7rem; }
.cta-inner p { margin: 0; color: #cfe0ef; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b8cbd8; padding: 60px 0 0; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.15fr 1fr 1.1fr; gap: 36px; padding-bottom: 44px; }
.footer-col h3 { color: #fff; font-size: .95rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: #b8cbd8; }
.footer-col a:hover { color: #fff; }
.footer-about p { font-size: .88rem; line-height: 1.7; }
.footer-address { font-style: italic; opacity: .8; }
.brand-footer { margin-bottom: 14px; }
.footer-contact .btn { margin-top: 12px; }
.footer-contact-person { color: #fff; font-weight: 600; margin-bottom: 9px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .82rem;
}
.footer-bottom p { margin: 0; }
.footer-links a { color: #b8cbd8; }

/* ---------- Floating actions: live chat + back to top ---------- */
.float-actions {
  position: fixed; right: 26px; bottom: calc(154px + env(safe-area-inset-bottom, 0px));
  z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.to-top {
  width: 46px; height: 46px; padding: 0;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: 0 8px 22px rgba(8, 28, 48, .28);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease, background .18s ease, visibility .22s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); }
.to-top:active { transform: translateY(1px); }
.to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.to-top svg { display: block; }

.cs-btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 22px rgba(8, 28, 48, .28);
  transition: background .18s ease, transform .18s ease;
}
.cs-btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.cs-btn:active { transform: translateY(0); }
.cs-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cs-btn svg { display: block; }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 60px 0 90px; }
.error-code { font-size: 8rem; font-weight: 800; color: var(--bg-soft); line-height: 1; }
.error-404 h2 { margin-top: -20px; }
.error-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Category page ---------- */
.category-hero {
  position: relative; overflow: hidden; border-bottom: 0;
  padding: 44px 0 42px;
  background: linear-gradient(135deg, #0b2740 0%, #10395c 58%, #16527c 100%);
  color: #fff;
}
.category-hero::after {
  content: ''; position: absolute; right: -140px; top: -170px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.10), rgba(255,255,255,0) 70%);
}
.category-hero .container { position: relative; z-index: 1; }
.category-hero .breadcrumb ol,
.category-hero .breadcrumb a { color: #9dbdd4; }
.category-hero .breadcrumb a:hover { color: #fff; }
.category-hero .breadcrumb li:not(:last-child)::after { color: rgba(255,255,255,.35); }
.category-hero .breadcrumb [aria-current] { color: #e7f1f8; }

.cat-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; align-items: start; }
.cat-eyebrow {
  display: inline-block; margin: 16px 0 8px;
  font-size: .7rem; font-weight: 700; letter-spacing: 2.2px;
  text-transform: uppercase; color: #8fc0e6;
}
.category-hero h1 {
  margin: 0 0 12px; font-size: clamp(1.9rem, 3.4vw, 2.65rem);
  line-height: 1.15; letter-spacing: -.4px; color: #fff;
}
.cat-hero-lead { margin: 0; max-width: 640px; color: #c3d7e7; font-size: 1rem; line-height: 1.75; }
.cat-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cat-hero-actions .btn-light {
  background: transparent; border-color: rgba(255,255,255,.38); color: #fff;
}
.cat-hero-actions .btn-light:hover { background: #fff; border-color: #fff; color: var(--navy); }

.cat-facts {
  padding: 18px 20px 16px; border-radius: 10px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.cat-facts-title {
  display: block; margin-bottom: 8px;
  font-size: .66rem; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; color: #9fc2dc;
}
.cat-facts dl { margin: 0; }
.cat-fact {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem;
}
.cat-fact:first-child { border-top: 0; padding-top: 2px; }
.cat-fact dt { color: #a8c4d9; }
.cat-fact dd { margin: 0; color: #fff; font-weight: 600; text-align: right; }

.cat-hero-seo {
  margin-top: 30px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: #b9d0e2; font-size: .93rem; line-height: 1.85;
}
.cat-hero-seo p { margin: 0 0 10px; color: #b9d0e2; font-size: .93rem; max-width: none; }
.cat-hero-seo p:last-child { margin-bottom: 0; }
.cat-hero-seo strong, .cat-hero-seo b { color: #fff; font-weight: 600; }
.cat-hero-seo a { color: #ffd9c2; text-decoration: underline; text-underline-offset: 3px; }
.cat-hero-seo a:hover { color: #fff; }

/* 分类切换条：吸顶，横向滚动 */
.cat-subnav {
  position: sticky; top: 76px; z-index: 60;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(13, 43, 69, .05);
}
.cat-subnav-inner { display: flex; align-items: center; gap: 18px; min-height: 58px; }
.cat-subnav-label {
  flex-shrink: 0; font-size: .66rem; font-weight: 700; letter-spacing: 1.7px;
  text-transform: uppercase; color: var(--muted);
}
.cat-chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 0;
  flex: 1 1 auto; min-width: 0;
  scrollbar-width: none; -ms-overflow-style: none;
}
.cat-chips::-webkit-scrollbar { display: none; }
/* 桌面端用左右箭头切换，移动端直接手指滑动 */
.cat-scroll {
  flex: 0 0 auto; width: 32px; height: 32px; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 50%;
  color: var(--navy); box-shadow: 0 2px 8px rgba(13, 43, 69, .08);
  transition: border-color .15s, color .15s, background .15s, opacity .15s;
}
.cat-scroll:hover { border-color: var(--blue); color: var(--blue); background: #f4f9fd; }
.cat-scroll:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.cat-scroll:disabled { opacity: .3; cursor: default; background: #fff; border-color: var(--line); color: var(--navy); box-shadow: none; }
.cat-scroll[hidden] { display: none; }
.cat-scroll svg { display: block; }
.cat-chip {
  flex: 0 0 auto; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); font-size: .82rem; font-weight: 600; white-space: nowrap;
  transition: border-color .18s, color .18s, background .18s;
}
.cat-chip:hover { border-color: var(--blue); color: var(--blue); background: #f4f9fd; }
.cat-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 区块标题 */
.cat-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 26px;
}
.cat-kicker {
  display: block; margin-bottom: 7px;
  font-size: .68rem; font-weight: 700; letter-spacing: 1.9px;
  text-transform: uppercase; color: var(--accent);
}
.cat-head h2, .cat-head h1 { margin: 0 0 6px; font-size: 1.5rem; line-height: 1.3; letter-spacing: -.2px; color: var(--navy); }
.cat-head-sub { margin: 0; max-width: 660px; color: var(--muted); font-size: .9rem; }
.cat-page-indicator {
  padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--muted); font-size: .78rem;
}
.cat-page-indicator strong { color: var(--navy); }

/* ---------- Homepage enrichment ---------- */
.home-trust { background: #fff; border-bottom: 1px solid var(--line); padding: 26px 0; }
.home-trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.home-trust-grid > div { padding: 2px 26px; border-left: 1px solid var(--line); }
.home-trust-grid > div:first-child { border-left: 0; padding-left: 0; }
.home-trust-grid dt {
  margin-bottom: 6px; font-size: .68rem; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--muted);
}
.home-trust-grid dd { margin: 0; font-size: 1.55rem; font-weight: 700; color: var(--navy); letter-spacing: -.5px; }

.home-why { background: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.why-card {
  padding: 26px 22px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.why-card:hover { border-color: #bcd0e0; box-shadow: var(--shadow); transform: translateY(-3px); }
.why-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: 16px; border-radius: 10px;
  background: #eaf2fa; color: var(--blue); font-size: 1.25rem; line-height: 1;
}
.why-icon svg { width: 22px; height: 22px; display: block; }
.why-card h3 { margin: 0 0 8px; font-size: 1rem; color: var(--navy); }
.why-card p { margin: 0; font-size: .86rem; line-height: 1.72; color: var(--muted); }

.home-process { background: var(--bg-alt); }
.home-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.home-step { padding: 24px 22px 22px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.home-step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%;
  background: #fdece1; color: var(--accent-dark);
  font-size: .76rem; font-weight: 700; letter-spacing: .6px;
}
.home-step h3 { margin: 0 0 8px; font-size: 1rem; color: var(--navy); }
.home-step p { margin: 0; font-size: .86rem; line-height: 1.72; color: var(--muted); }

.home-faq .cat-head { margin-bottom: 24px; }

/* 新闻列表页：与详情页一致的深色 Hero + 分类切换 */
.news-list-hero .cat-eyebrow { color: #8fc0e6; }
.news-cat-nav { margin-bottom: 28px; }
.news-cat-nav .filter-tabs a { padding: 8px 17px; font-weight: 600; }
.news-cat-nav .filter-tabs a:hover { border-color: var(--blue); color: var(--blue); background: #f4f9fd; }

/* 产品网格 */
.cat-products { background: #f5f8fa; scroll-margin-top: 140px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pcard {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid #e3eaef; border-radius: 10px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.pcard:hover { border-color: #c8d8e4; box-shadow: 0 14px 30px rgba(13, 43, 69, .10); transform: translateY(-3px); }
.pcard-media {
  position: relative; display: block; aspect-ratio: 4 / 3; padding: 16px;
  background: linear-gradient(180deg, #fff 0%, #f7fafc 100%);
  border-bottom: 1px solid #eef2f5;
}
.pcard-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-model {
  position: absolute; left: 12px; top: 12px; padding: 3px 8px; border-radius: 4px;
  background: rgba(13, 43, 69, .06); color: #4d6274;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .66rem; font-weight: 700; letter-spacing: .3px;
}
.pcard-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 14px 16px 16px; }
.pcard-body h3 {
  margin: 0; min-height: 2.9em; font-size: .94rem; font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-body h3 a { color: var(--navy); }
.pcard-body h3 a:hover { color: var(--blue); }
.pcard-meta {
  display: flex; flex-direction: column; gap: 6px; margin: auto 0 0;
  padding-top: 10px; border-top: 1px dashed #e6edf2;
}
.pcard-meta > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pcard-meta dt { font-size: .64rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #8698a7; }
.pcard-meta dd {
  margin: 0; max-width: 64%; color: #3c5266; font-size: .78rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cat-products .no-results {
  padding: 46px 20px; text-align: center;
  background: #fff; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted);
}

/* 服务能力条 */
.cat-features { padding: 34px 0; background: #fff; }
.cat-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-feature {
  padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 10px;
  background: #fbfcfd;
}
.cat-feature svg {
  width: 20px; height: 20px; padding: 9px; box-sizing: content-box;
  margin-bottom: 14px; border-radius: 8px; background: #eef5fb; color: var(--blue);
}
.cat-feature h3 { margin: 0 0 6px; font-size: .95rem; color: var(--navy); }
.cat-feature p { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.65; }

/* 底部 SEO 文案 */
.cat-seo { background: #fff; border-top: 1px solid var(--line); }
.cat-seo h2 { margin: 0 0 14px; font-size: 1.35rem; color: var(--navy); }
.cat-seo-copy { color: #42586b; font-size: .96rem; line-height: 1.9; }
.cat-seo-copy p { margin: 0 0 12px; }
.cat-seo-copy p:last-child { margin-bottom: 0; }
.cat-seo-copy strong, .cat-seo-copy b { color: #2c4257; font-weight: 600; }
.cat-seo-copy a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.cat-seo-copy ul, .cat-seo-copy ol { margin: 0 0 12px; padding-left: 20px; }

/* FAQ */
.cat-faq { background: #f5f8fa; }
/* 标签页：Related Topics 与 FAQ 相邻，收紧两段之间的留白 */
.section.tag-related { padding-bottom: 30px; }
.section.tag-faq { padding-top: 28px; }
@media (max-width: 900px) {
  .section.tag-related { padding-bottom: 22px; }
  .section.tag-faq { padding-top: 20px; }
}
.cat-faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.faq-item summary {
  position: relative; padding: 16px 50px 16px 18px; cursor: pointer;
  font-size: .94rem; font-weight: 600; color: var(--navy); list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; position: absolute; right: 14px; top: 50%; margin-top: -13px;
  width: 26px; height: 26px; border-radius: 50%; background-color: #eaf2fa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231668b3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 15px 15px;
  transition: transform .25s ease, background-color .2s ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); background-color: #d9e9f7; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-answer { padding: 14px 18px 16px; color: #46596b; font-size: .9rem; line-height: 1.8; }
.faq-answer p { margin: 0; }

/* 底部 CTA 装饰 */
.category-cta {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--blue-dark), #123f68);
}
.category-cta::after {
  content: ''; position: absolute; right: -60px; bottom: -140px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.category-cta .cta-inner { position: relative; z-index: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .category-grid, .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  /* Contact is short — give it the full second row and keep it on one line */
  .footer-contact { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 28px; }
  .footer-contact h3 { flex: 1 0 100%; }
  .footer-contact ul { display: flex; flex-wrap: wrap; gap: 4px 28px; }
  .footer-contact li { margin-bottom: 0; }
  .footer-contact .btn { margin-top: 0; margin-left: auto; }
  /* Header CTA steps into the nav row as an accent item before the hamburger takes over */
  .header-cta { display: none; }
  .nav-cta-item { display: block; }
  .main-nav .nav-cta-item a { background: var(--accent); color: #fff; }
  .main-nav .nav-cta-item a:hover { background: var(--accent-dark); color: #fff; }
  .cat-hero-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-features-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-grid { grid-template-columns: minmax(0, 1fr) 348px; gap: 34px; }
  .about-story-grid { grid-template-columns: 268px minmax(0, 1fr); gap: 40px; }
  .about-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid, .home-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .home-trust-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; margin-left: 0; padding: 8px 4px; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--navy);
    display: none; padding: 10px 20px 20px;
    /* 菜单内容超过一屏时自身可滚动（76px 为站点页头高度） */
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 0 14px; }
  .dropdown a { color: #cfe0ef; }
  /* News 在移动端只做一级入口，不展开子栏目 */
  .nav-news .dropdown, .nav-news .caret { display: none; }
  /* Narrow screens: a 4:1 photo cannot fill a tall box without a hard zoom,
     so the photo runs first as a full-bleed band and the copy follows on navy. */
  .hero {
    background-image: none; background-color: #0b2438; padding: 0 0 44px;
    display: flex; flex-direction: column;
  }
  .hero::before { display: none; }
  .hero-media { display: block; position: relative; order: -1; }
  .hero-media img {
    display: block; width: 100%; height: clamp(196px, 52vw, 286px);
    object-fit: cover; object-position: 50% 58%;
  }
  /* 上沿与深色页头衔接，下沿淡入深蓝文案区，图片不会像“贴”上去 */
  .hero-media::before {
    content: ''; position: absolute; inset: 0 0 auto; height: 30%; pointer-events: none;
    background: linear-gradient(180deg, #0b2438 0%, rgba(11,36,56,.55) 46%, rgba(11,36,56,0) 100%);
  }
  .hero-media::after {
    content: ''; position: absolute; inset: auto 0 0; height: 22%; pointer-events: none;
    background: linear-gradient(180deg, rgba(11,36,56,0) 0%, #0b2438 100%);
  }
  .hero-inner { padding-top: 34px; }
  .hero-copy { max-width: 100%; }
  .product-detail-grid, .article-layout, .page-layout-contact { grid-template-columns: 1fr; }
  .contact-tiles { grid-template-columns: 1fr 1fr; margin-bottom: 42px; }
  .contact-tile:nth-child(3) { grid-column: 1 / -1; }
  .about-story-grid { grid-template-columns: 1fr; gap: 20px; }
  .about-quality-grid { grid-template-columns: 1fr; gap: 26px; }
  .about-stats-grid { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .about-stats-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .about-products .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-sidebar { position: static; }
  .contact-body { padding: 38px 0 60px; }
  .policy-layout { grid-template-columns: 1fr; gap: 0; }
  /* The TOC only makes sense next to the article; the policy links stay below it. */
  .policy-side { display: block; margin-top: 36px; }
  .policy-side-inner { position: static; gap: 0; }
  .policy-toc { display: none; }
  .pd-grid { grid-template-columns: 1fr; gap: 30px; }
  .pd-panel { position: static; }
  .pd-desc { margin-top: 44px; padding-top: 34px; }
  .pd-body .topic-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px 16px; }
  .pd-body .topic-block { padding: 16px 20px 18px; }
  .pd-desc-grid { grid-template-columns: 1fr; gap: 18px; }
  .news-grid, .article-cards { grid-template-columns: repeat(2, 1fr); }
  /* Mobile header: the primary CTA leaves the menu and sits left of the hamburger */
  .header-cta {
    display: inline-flex; align-items: center;
    margin-left: auto; padding: 9px 14px; font-size: .8rem;
  }
  .nav-cta-item { display: none; }
  .cat-scroll { display: none; }
  .cat-hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .cat-facts { max-width: 460px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--max)); }
  /* Keep brand + CTA + hamburger on one line down to 320px */
  .header-inner { gap: 12px; }
  .brand-mark { width: 38px; height: 38px; font-size: .95rem; }
  .brand-text strong { font-size: 1.18rem; }
  .brand-text small { display: none; }
  .header-cta { padding: 8px 12px; font-size: .78rem; }
  .section { padding: 48px 0; }
  /* 404: two even buttons on row one, the third centred underneath */
  .error-404 { padding: 44px 0 64px; }
  .error-code { font-size: 6rem; }
  .error-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .error-links .btn { width: 100%; }
  .error-links .btn:last-child { grid-column: 1 / -1; width: auto; justify-self: center; padding-inline: 34px; }
  .news-grid, .article-cards, .footer-grid { grid-template-columns: 1fr; }
  /* 手机端精选产品同样两列：方形图 + 两行标题，和分类卡视觉统一 */
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card { border-radius: 8px; }
  .product-thumb { aspect-ratio: 1 / 1; padding: 8px; }
  .product-body { padding: 10px 11px 12px; gap: 5px; }
  /* 分类小字在窄卡里会被截成 "CUSTOM TUNGSTEN CARBI…"，移动端直接隐藏，留白都给标题 */
  .product-cat { display: none; }
  .product-body h3 {
    font-size: .82rem; line-height: 1.38;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  /* 手机端分类改两列：缩略图方形、标题两行、去掉多余留白 */
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .category-card { border-radius: 8px; }
  .category-thumb { aspect-ratio: 1 / 1; }
  .category-thumb img { padding: 9px; }
  .category-body { min-height: 0; padding: 10px 11px; gap: 6px; }
  .category-card h3 {
    font-size: .84rem; line-height: 1.34;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .card-arrow svg { width: 15px; height: 15px; }
  .why-grid, .home-steps { grid-template-columns: 1fr; }
  .home-trust-grid { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .home-trust-grid > div { padding: 0 16px; }
  /* 两列布局只保留中间那根分隔线，左边一列贴边不要竖线 */
  .home-trust-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .home-trust-grid dd { font-size: 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .article-paper { padding: 22px 20px; }
  /* 正文表格在窄屏收紧，避免三列被挤成每行两三个字 */
  .prose table { font-size: .8rem; margin: 16px 0; }
  .prose th, .prose td { padding: 7px 9px; line-height: 1.5; }
  .topic-block { margin-top: 24px; padding-top: 14px; }
  .topic-chips { font-size: .78rem; line-height: 1.9; }
  .topic-item { display: inline-block; margin-right: 6px; }
  .pd-body .topic-chips { display: block; }
  .pd-body .topic-item { display: inline-block; margin-right: 6px; }
  .pd-body .topic-block { margin-top: 26px; padding: 16px 18px 18px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 0 0 38px; }
  .hero-media img { height: clamp(188px, 56vw, 250px); }
  .hero-inner { padding-top: 28px; }
  .hero h1 { font-size: clamp(1.8rem, 7.2vw, 2.2rem); }
  .hero-lead { font-size: .96rem; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .category-hero { padding: 28px 0 30px; }
  .cat-eyebrow { margin: 12px 0 6px; }
  .cat-hero-lead { font-size: .95rem; }
  .cat-hero-actions { margin-top: 20px; }
  .cat-hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .cat-facts { max-width: none; }
  .cat-hero-seo { margin-top: 22px; padding-top: 16px; font-size: .88rem; line-height: 1.75; }
  .cat-hero-seo p { font-size: .88rem; }
  .cat-subnav { top: 76px; }
  .cat-subnav-label { display: none; }
  .cat-subnav-inner { gap: 0; min-height: 52px; }
  /* 窄屏改为横向列表卡片，减少页面长度 */
  .cat-grid { grid-template-columns: 1fr; gap: 14px; }
  .pcard { flex-direction: row; }
  .pcard-media {
    flex: 0 0 40%; width: 40%; aspect-ratio: 1 / 1; padding: 10px;
    border-bottom: 0; border-right: 1px solid #eef2f5;
  }
  .pcard-model { left: 8px; top: 8px; font-size: .6rem; }
  .pcard-body { padding: 12px 14px; gap: 8px; }
  .pcard-body h3 { min-height: 0; font-size: .9rem; -webkit-line-clamp: 3; }
  .pcard-meta { padding-top: 8px; gap: 4px; }
  .pcard-meta dd { max-width: 58%; }
  .cat-features-grid { grid-template-columns: 1fr; }
  .cat-head h2, .cat-head h1 { font-size: 1.28rem; }
  .news-cat-nav { margin-bottom: 22px; }
  .cat-feature { padding: 18px; }
  .about-products .category-thumb { aspect-ratio: 3 / 2; }
  .gallery-main { padding: 12px; border-radius: 8px; }
  .thumb { width: 64px; height: 64px; }
  .pd-panel { padding: 20px 18px 18px; border-radius: 10px; }
  .pd-spec-row { font-size: .84rem; }
  .pd-spec-row dt { flex-basis: 46%; }
  .pd-assure { gap: 8px 16px; margin-top: 14px; }
  .pd-assure li { font-size: .8rem; }
  .pd-desc-aside h2 { font-size: 1.2rem; }
  .pd-desc { margin-top: 38px; padding-top: 28px; }
  .contact-tiles { grid-template-columns: 1fr; gap: 12px; margin-bottom: 34px; }
  .contact-tile { padding: 18px 18px 16px; }
  .contact-tile strong { font-size: .92rem; }
  .contact-body { padding: 30px 0 48px; }
  .page-hero-contact h1 { margin: 4px 0 8px; }
  .page-hero-lead { font-size: .92rem; line-height: 1.7; }
  .inquiry-form-wrap { margin-top: 40px; padding: 26px 18px; }
  .contact-card { padding: 22px 18px; }
  .policy-wrap { padding: 30px 0 54px; }
  .policy-body.prose h2 { margin-top: 32px; padding-top: 22px; font-size: 1.1rem; }
  .policy-body.prose > p:first-of-type { font-size: .97rem; }
  .policy-side { margin-top: 28px; }
  .about-stats { padding: 22px 0; }
  .about-stats-grid > div { padding: 2px 16px; }
  .about-stats-grid dd { font-size: 1.26rem; }
  .about-steps { grid-template-columns: 1fr; gap: 12px; }
  .about-step { padding: 18px; }
  .about-quality { padding: 42px 0; }
  .about-quality h2 { font-size: 1.3rem; }
  .about-story-aside h2 { font-size: 1.28rem; }
  .about-products .category-grid { grid-template-columns: 1fr; }
  .about-products .category-body { min-height: 0; padding: 10px 14px; }
  .about-products .category-card h3 { font-size: .92rem; }

  /* Quote modal becomes a bottom sheet with side padding so it never touches the screen edges */
  .inq-modal { padding: 16px 14px; align-items: flex-end; }
  .inq-dialog { width: 100%; max-height: 88vh; border-radius: 16px; }
  .inq-head { padding: 22px 20px 18px; border-radius: 16px 16px 0 0; }
  .inq-head h2 { font-size: 1.28rem; padding-right: 30px; }
  .inq-head p { font-size: .86rem; }
  .inq-body { padding: 18px 20px 22px; }
  .inq-grid { grid-template-columns: 1fr; gap: 12px; }
  .inq-close { top: 10px; right: 10px; width: 30px; height: 30px; }

  .float-actions { right: 16px; bottom: calc(130px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
  .to-top, .cs-btn { width: 42px; height: 42px; }

  /* Narrow screens: back to the two-column grid, contact details stacked */
  .footer-contact { display: block; grid-column: auto; }
  .footer-contact ul { display: block; }
  .footer-contact li { margin-bottom: 7px; }
  .footer-contact .btn { margin-left: 0; margin-top: 12px; }

}

/* Very narrow phones: keep the 404 button labels on one line */
@media (max-width: 400px) {
  .error-links .btn { padding-inline: 8px; font-size: .84rem; }
  .error-links .btn:last-child { padding-inline: 26px; }
}

/* 380 及以下放不下一行两项，改一列避免参差 */
@media (max-width: 380px) {
  .topic-item { display: block; margin-right: 0; }
  .pd-body .topic-item { display: block; margin-right: 0; }
}
