/* ============================================================
   rfq.模具设计.中国 — 主样式（本站独立实现，不与其他站点共用）
   明亮科技风 / 工程感 / 响应式
   断点策略：≤1080 收列，≤640 单列
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f2f7fc;
  --bg-soft2: #e8f1fb;
  --ink: #0d2038;
  --ink-2: #3f5670;
  --ink-3: #6b7f96;
  --line: #dde7f2;
  --line-2: #c9d9ec;
  --brand: #0b62d6;
  --brand-dark: #08479c;
  --brand-soft: #e7f0ff;
  --cyan: #00a2b8;
  --cyan-soft: #e0f6f9;
  --amber: #b8720a;
  --amber-soft: #fdf3e0;
  --green: #1d7a4c;
  --green-soft: #e6f5ec;
  --radius: 14px;
  --radius-s: 9px;
  --shadow: 0 10px 30px rgba(13, 32, 56, .08);
  --shadow-s: 0 4px 14px rgba(13, 32, 56, .06);
  --maxw: 1200px;
  --nav-h: 66px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 14px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.34;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}
h1 { font-size: clamp(28px, 4.4vw, 44px); margin: 0 0 18px; }
h2 { font-size: clamp(21px, 2.6vw, 30px); margin: 0 0 16px; }
h3 { font-size: clamp(17px, 1.8vw, 21px); margin: 0 0 10px; }
h4 { font-size: 16px; margin: 0 0 8px; }
p  { margin: 0 0 16px; }
p, li, td, th, dd, dt, figcaption, .cell { overflow-wrap: anywhere; word-break: break-word; }

.container { width: 100%; max-width: var(--maxw); 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;
}

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand) 0%, var(--cyan) 100%);
  color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .5px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text b { font-size: 15.5px; font-weight: 700; }
.brand-text span { font-size: 11.5px; color: var(--ink-3); letter-spacing: .2px; }

.nav-main { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-main > a {
  color: var(--ink-2); font-size: 14.5px; padding: 8px 12px; border-radius: 8px;
  white-space: nowrap;
}
.nav-main > a:hover { background: var(--bg-soft); color: var(--brand); }
.nav-main > a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); font-weight: 600; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand); color: #fff !important;
  padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  white-space: nowrap; transition: background .2s;
}
.nav-cta:hover { background: var(--brand-dark); }

/* 移动端菜单按钮 */
.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 38px; border-radius: 9px;
  border: 1px solid var(--line-2); background: #fff;
  cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .24s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile { display: none; border-top: 1px solid var(--line); background: #fff; }
.nav-mobile.open { display: block; }
.nav-mobile .mgroup { border-bottom: 1px solid var(--line); }
.nav-mobile .mgroup > button {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 14px 24px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; cursor: pointer;
}
.nav-mobile .mgroup > button .caret {
  width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .22s; margin-right: 4px;
}
.nav-mobile .mgroup > button[aria-expanded="true"] .caret { transform: rotate(-135deg); }
.nav-mobile .msub { display: none; padding: 0 24px 12px; background: var(--bg-soft); }
.nav-mobile .msub.open { display: block; }
.nav-mobile .msub a {
  display: block; padding: 9px 0 9px 14px; font-size: 14px; color: var(--ink-2);
  border-left: 2px solid var(--line-2);
}
.nav-mobile .msub a:hover { color: var(--brand); border-left-color: var(--brand); }
.nav-mobile .mflat > a {
  display: block; padding: 13px 24px; font-size: 15px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-mobile .mflat > a.accent { color: var(--brand); }

/* ---------------- 通用区块 ---------------- */
.section { padding: 68px 0; }
.section.soft { background: var(--bg-soft); }
.section.soft2 { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); }
.section-head { max-width: 760px; margin-bottom: 38px; }
.section-head .eyebrow {
  display: inline-block; font-size: 12.5px; letter-spacing: 1.4px; font-weight: 700;
  color: var(--brand); background: var(--brand-soft);
  padding: 4px 11px; border-radius: 999px; margin-bottom: 14px;
}
.section-head p { color: var(--ink-2); font-size: 16px; margin: 0; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; min-width: 0;
}
.card h3 { font-size: 18px; }
.card p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.card .kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .6px; color: var(--cyan);
  text-transform: uppercase; margin-bottom: 8px;
}
.card-link { display: block; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card-link:hover { border-color: var(--brand); box-shadow: var(--shadow-s); transform: translateY(-2px); color: inherit; }

.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
.card ul li { margin-bottom: 5px; }

/* 标签 */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12.5px; color: var(--brand); background: var(--brand-soft);
  padding: 3px 10px; border-radius: 6px; white-space: nowrap;
}
.tag.cyan { color: var(--cyan); background: var(--cyan-soft); }
.tag.amber { color: var(--amber); background: var(--amber-soft); }
.tag.green { color: var(--green); background: var(--green-soft); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: 8px; }

/* 表格 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
table.data {
  width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; min-width: 620px;
}
table.data caption {
  caption-side: top; text-align: left; padding: 14px 18px 0;
  font-size: 13.5px; color: var(--ink-3);
}
table.data th, table.data td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data thead th { background: var(--bg-soft); color: var(--ink); font-weight: 700; white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:nth-child(even) { background: #fbfdff; }

/* 提示条 */
.notice {
  border-left: 3px solid var(--brand); background: var(--bg-soft);
  padding: 16px 20px; border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: 14.5px;
}
.notice.warn { border-left-color: var(--amber); background: var(--amber-soft); }
.notice strong { color: var(--ink); }

/* 面包屑 —— 与正文同容器，左边缘与首个小标题 H2 严格对齐 */
.breadcrumb {
  font-size: 13.5px; color: var(--ink-3);
  padding: 18px 0 16px; margin: 0;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "/"; color: var(--line-2); }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--ink-2); }

/* 页脚 */
.site-footer { background: #0d2038; color: #b9cbdf; margin-top: 0; }
.footer-top { padding: 54px 0 40px; }
.footer-cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.site-footer a { color: #b9cbdf; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer p { font-size: 14px; line-height: 1.8; }
.footer-brandline { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brandline .brand-mark { color: #fff; }
.footer-brandline b { color: #fff; font-size: 15.5px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0;
  font-size: 13px; color: #8ba3bd;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}

/* ---------------- 悬浮工具胶囊（右侧中部） ---------------- */
.float-capsule {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%);
  z-index: 70; display: flex; flex-direction: column; align-items: stretch;
  background: linear-gradient(160deg, var(--brand) 0%, var(--cyan) 100%);
  border-radius: 999px; box-shadow: 0 8px 26px rgba(11, 98, 214, .32);
  overflow: hidden;
}
.float-capsule button {
  border: 0; background: transparent; color: #fff; cursor: pointer;
  font: inherit; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 14px 9px; width: 52px;
}
.float-capsule button + button { border-top: 1px solid rgba(255, 255, 255, .26); }
.float-capsule button:hover { background: rgba(255, 255, 255, .14); }
.float-capsule .fc-icon { width: 20px; height: 20px; display: block; }
.float-capsule .fc-text {
  writing-mode: vertical-rl; text-orientation: upright;
  font-size: 12.5px; letter-spacing: 2px; line-height: 1;
}

/* 微信名片弹层：300 x 500 竖版，原图不压缩 */
.wechat-modal-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8, 30, 56, .58);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.wechat-modal-overlay.open { display: flex; }
.wechat-modal {
  background: #fff; border-radius: var(--radius); padding: 16px;
  /* 宽度由 300px 内容框 + 32px padding 决定，避免挤压名片显示尺寸 */
  width: auto; max-width: calc(100vw - 24px); position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.wechat-modal h3 { font-size: 15px; margin: 0 0 10px; text-align: center; }
.wechat-frame {
  width: 300px; height: 500px; max-width: 100%;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; background: #f7fafd;
}
.wechat-frame img {
  width: 300px; height: 500px; max-width: 100%;
  object-fit: contain;         /* 原始比例，不拉伸、不裁切 */
  image-rendering: auto;
  display: block;
}
.wechat-close {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: var(--bg-soft); color: var(--ink-2); cursor: pointer; font-size: 16px; line-height: 1;
}
.wechat-close:hover { background: var(--line); }
.wechat-tip { font-size: 12px; color: var(--ink-3); text-align: center; margin: 10px 0 0; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}

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

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding: 0 18px; }
  .nav-wrap { padding: 0 18px; gap: 12px; }
  .section { padding: 48px 0; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .brand-text span { display: none; }
  .float-capsule { right: 8px; width: 46px; }
  .float-capsule button { width: 46px; padding: 12px 6px; }
  .float-capsule .fc-text { font-size: 11.5px; letter-spacing: 1px; }
  .btn { width: 100%; }
  .card { padding: 22px 18px; }
}

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