/* FONT_BUMP_V1 */
/* ===========================================================
   Xingsourcing 全站基础样式
   配色：藏青主题 NAVY_THEME_V1 —— 藏青 #0A2540 + 橙 #F27A1C + 金 #A8864F
   （原橙 #FF9933 版本已归档；本目录为藏青完整版）
   字体对齐原站 Inter（本地托管 woff2，不外链 Google Fonts）
   =========================================================== */
/* Inter Variable：与 jingsourcing.com 同款，本地文件由 scripts/fetch-fonts.cjs 下载 */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-variable.woff2") format("woff2"); }
:root {
  /* 藏青主题：--orange 变量继续作为「强调橙」使用，值为 #F27A1C；
     --navy/--gold 为新增主色。变量名保留 orange 是为不改动全站数百处引用。 */
  --navy: #0A2540;
  --navy-2: #12395C;
  --gold: #A8864F;
  --gold-ink: #7A5A2E;
  --orange: #F27A1C;
  --orange-strong: #D9650B;
  --orange-soft: #FDF1E6;
  --orange-line: #F2C79E;
  --ink: #0A2540;
  --text: #2B3440;
  --muted: #667085;
  --line: #E4E8EC;
  --soft: #F7F8FA;
  --white: #FFFFFF;
  --shadow: 0 10px 30px rgba(10, 37, 64, .10);
  --radius: 10px;
  --container: 1200px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); font-size: 17px; line-height: 1.65; background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 14px; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0 0 14px; }
ul { padding-left: 20px; }
code { background: #F3F3F5; padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }

/* ---------------- 页眉 ---------------- */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid rgba(0,0,0,.05); }
.header-inner { display: flex; align-items: center; gap: 36px; height: 64px; }
.logo { display: flex; align-items: baseline; flex-wrap: wrap; line-height: 1; flex: 0 0 auto; }
.logo-mark { color: var(--orange); font-size: 23px; font-weight: 800; letter-spacing: -.06em; }
.logo-img { display: inline-block; max-height: 30px; width: auto; max-width: 180px; object-fit: contain; }
.logo-footer .logo-img { max-height: 32px; }
.logo-hub { color: var(--ink); font-size: 23px; font-weight: 700; letter-spacing: -.04em; }
.logo small { display: block; flex: 1 0 100%; font-size: 7.5px; letter-spacing: .06em; color: #8A8D93; margin-top: 3px; text-transform: uppercase; }
.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-item > a { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 500; color: #3A3B40; padding: 20px 0; white-space: nowrap; }
.nav-item > a:hover { color: var(--orange-strong); }
.caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .65; }
.nav-item { position: relative; }
.drop-menu { position: absolute; top: 100%; left: -18px; min-width: 215px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; }
.nav-item:hover .drop-menu, .nav-item:focus-within .drop-menu { opacity: 1; visibility: visible; transform: none; }
.drop-menu a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 15px; color: var(--text); }
.drop-menu a:hover { background: var(--orange-soft); color: var(--orange-strong); }
.header-cta { background: var(--orange); color: #fff; font-size: 14.5px; font-weight: 600; padding: 9px 18px; border-radius: 999px; white-space: nowrap; }
.header-cta:hover { background: var(--orange-strong); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; margin-left: auto; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }
.mobile-bar { display: none; }
.nav-scrim { display: none; }

/* ---------------- 按钮 ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 999px; padding: 11px 24px; font-size: 16px; font-weight: 600; font-family: inherit; cursor: pointer; line-height: 1.3; transition: .18s ease; white-space: nowrap; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-strong); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--orange-strong); border-color: var(--orange); }
.btn-outline:hover { background: var(--orange-soft); }
.btn-white { background: #fff; color: var(--orange-strong); }
.btn-white:hover { background: var(--orange-soft); }
.btn-outline-dark { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; color: var(--ink); }
.text-link span { color: var(--orange); font-size: 19px; }
.text-link:hover span { transform: translateX(3px); }

/* ---------------- 通用内页 ---------------- */
.page-hero { background: linear-gradient(115deg, #F2F5F8, #E4ECF3); padding: 54px 0 48px; }
.page-hero h1 { font-size: 39.1px; margin-bottom: 10px; }
.page-hero p { color: #5A5D63; font-size: 18px; max-width: 720px; margin: 0; }
.crumb { display: inline-block; font-size: 14.5px; color: var(--gold-ink); margin-bottom: 14px; }
.inner-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 56px; padding-bottom: 72px; align-items: start; }
.prose { font-size: 17.5px; line-height: 1.85; color: var(--text); max-width: 72ch; }
.prose h2 { font-size: 27.6px; margin: 36px 0 14px; }
.prose h3 { font-size: 21px; margin: 28px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose li { margin-bottom: 8px; }
.prose blockquote { border-left: 3px solid var(--gold); background: var(--soft); margin: 24px 0; padding: 14px 18px; border-radius: 0 8px 8px 0; color: var(--navy-2); font-size: 16px; }
.prose img { border-radius: 8px; }
/* Markdown 分项价目表：PC 铺满容器，窄屏可横向滚动 */
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0 28px; font-size: 15px; line-height: 1.6; }
.prose thead th { background: var(--soft); color: var(--navy); font-weight: 700; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose tbody tr:nth-child(even) { background: #FAFAF8; }
@media (max-width: 700px) {
  /* 窄屏：表格转为逐行卡片，费率列始终可见，不依赖横向滑动 */
  .prose table { display: block; width: 100%; min-width: 0; overflow: visible; font-size: 14px; }
  .prose thead { display: none; }
  .prose tbody, .prose tr, .prose td { display: block; width: 100%; box-sizing: border-box; }
  .prose tbody tr { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; padding: 10px 0; background: #fff !important; }
  .prose td { border: 0; padding: 5px 14px; }
  .prose td:first-child { font-weight: 700; font-size: 15.5px; }
  .prose td:nth-child(3)::before { content: "Rate · "; font-weight: 700; color: var(--gold-ink); }
}
/* /services 页「服务范围」卡片：把每条服务的交付口径与费率页打通 */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 22px 0 30px; }
.service-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.service-card:hover { border-color: var(--orange); box-shadow: 0 6px 20px rgba(29,29,31,.07); }
.service-card h3 { font-size: 17px; margin: 0 0 8px; }
.service-card p { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin: 0 0 12px; }
.service-more { font-size: 14px; font-weight: 700; color: var(--orange); }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }
.inner-side { position: sticky; top: 88px; display: grid; gap: 18px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 4px 18px rgba(29,29,31,.04); }
.side-card h3 { font-size: 19px; }
.side-card p { font-size: 16px; color: var(--muted); }
.side-soft { background: var(--soft); box-shadow: none; }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li { border-bottom: 1px solid var(--line); padding: 9px 0; font-size: 16px; }
.side-links li:last-child { border: 0; }
.side-links a:hover { color: var(--orange-strong); }
.faq-item { border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; margin-bottom: 10px; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq-item div { padding-top: 10px; font-size: 16.5px; color: var(--muted); }
.detail-cover { width: 100%; max-height: 360px; object-fit: cover; border-radius: 10px; margin-bottom: 28px; }
.detail-cta { margin-top: 40px; background: var(--orange-soft); border-radius: 10px; padding: 26px; }
.detail-cta h3 { font-size: 21px; }

/* ---------------- 表单 ---------------- */
.inquiry-form { display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .afield > span { font-size: 14.5px; font-weight: 600; color: #4A4C52; }
.field label em { color: var(--orange-strong); font-style: normal; }
.field input, .field textarea, .field select, .afield input, .afield textarea, .afield select {
  width: 100%; border: 1px solid #DEE0E5; border-radius: 7px; padding: 10px 12px;
  font: inherit; font-size: 16px; color: var(--ink); background: #fff; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus, .afield input:focus, .afield textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,122,28,.16); }
.phone-input { display: flex; flex-wrap: nowrap; gap: 8px; }
.phone-cc { flex: 0 0 auto; width: auto; max-width: 58%; }
.phone-number { flex: 1 1 auto; min-width: 0; }
.consent { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; color: var(--muted); }
.consent a { color: var(--orange-strong); text-decoration: underline; }
.inner-form-section { background: var(--soft); padding: 56px 0 72px; }
.inner-form { max-width: 720px; }
.final-form { max-width: 680px; margin: 26px auto 0; }
.thankyou-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 24px; }
.thankyou-box { max-width: 520px; }
.thankyou-check { width: 62px; height: 62px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 34.5px; display: grid; place-items: center; margin: 0 auto 22px; }
.thankyou-box h1 { font-size: 36.8px; }
.thankyou-box p { color: var(--muted); margin-bottom: 26px; }

/* ---------------- 列表 / 卡片 ---------------- */
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding-top: 56px; padding-bottom: 80px; }
.catalog-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: .18s ease; }
.catalog-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.catalog-cover { display: block; background: var(--soft); }
.catalog-cover img { width: 100%; height: 190px; object-fit: cover; }
.catalog-body { padding: 20px; }
.catalog-meta { font-size: 13.5px; color: var(--orange-strong); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.catalog-body h2 { font-size: 20px; margin: 8px 0; }
.catalog-body p { font-size: 16px; color: var(--muted); }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #071B2E; color: #B7C6D6; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; padding-top: 56px; padding-bottom: 44px; }
.logo-footer .logo-mark, .logo-footer .logo-hub { font-size: 24px; }
.footer-brand p { font-size: 15px; margin: 8px 0; }
.footer-contact { line-height: 1.55; }
.footer-col h3 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
/* 与左栏统一垂直节奏：行距加大到与左栏信息行数相称，两栏最后一行底边对齐 */
.footer-col li { margin-bottom: 21px; font-size: 15px; }
/* PC 页脚：品牌区删掉重复的邮箱/电话两行后，右列行距同步收紧，
   保持左栏（四个社媒）与右侧四列底边仍然对齐；移动端保持原有行距。 */
@media (min-width: 901px) {
  .footer-col li { margin-bottom: 11px; }
}
.footer-col a:hover { color: var(--orange); }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; display: grid; place-items: center; font-size: 13.5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; padding: 16px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 20px; }

/* ---------------- 社媒联系方式（移动菜单 + PC 页脚共用） ---------------- */
.sc-item { display: flex; align-items: center; gap: 13px; min-width: 0; }
.sc-item:hover .sc-text strong { text-decoration: underline; }
.sc-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.sc-icon svg { width: 25px; height: 25px; display: block; }
.sc-whatsapp { background: #25D366; }
.sc-telegram { background: #2AABEE; }
.sc-wechat { background: #25D366; }
.sc-email { background: var(--orange); }
.sc-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.3; min-width: 0; }
.sc-text strong { font-family: var(--font); font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.sc-text small { font-size: 14.5px; overflow-wrap: anywhere; }

/* PC 页脚：与右侧四列保持同一套等距单行节奏。
   图标缩小，名称与号码改到同一行（信息不丢），每项高度由 24px 图标统一决定，
   避免两行文字把左栏撑得比右栏长。 */
.social-contacts--footer { display: flex; flex-direction: column; gap: 3px; margin: 5px 0 2px; }
.social-contacts--footer .sc-icon { width: 24px; height: 24px; flex-basis: 24px; border-radius: 7px; }
.social-contacts--footer .sc-icon svg { width: 14px; height: 14px; }
.social-contacts--footer .sc-item { gap: 8px; min-height: 24px; }
.social-contacts--footer .sc-text { flex-direction: row; align-items: baseline; gap: 7px; line-height: 1.35; white-space: nowrap; }
.social-contacts--footer .sc-text strong { font-size: 13.5px; color: #E9EAEC; }
.social-contacts--footer .sc-text small { font-size: 12px; color: #9DA1A8; overflow-wrap: normal; }

/* 移动端菜单顶部：桌面隐藏，移动端显示 */
.social-contacts--menu { display: none; }

/* ---------------- 弹窗 / 回顶 ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,20,22,.55); }
.modal-card { position: relative; z-index: 1; width: min(560px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: 14px; padding: 32px; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.modal-card h2 { font-size: 25px; }
.modal-sub { font-size: 16px; color: var(--muted); margin-bottom: 20px; }
.modal-close { position: absolute; top: 12px; right: 16px; border: 0; background: none; font-size: 29.9px; cursor: pointer; color: #888; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--orange); color: #fff; font-size: 21px; cursor: pointer; opacity: 0; visibility: hidden; transition: .2s; box-shadow: var(--shadow); }
.back-to-top.show { opacity: 1; visibility: visible; }

/* ---------------- 移动端 ---------------- */
@media (max-width: 900px) {
  .header-inner { gap: 16px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  /* 移动端导航：左侧抽屉，宽度约为屏宽的 65%（对齐参考图），右侧留半透明遮罩 */
  .main-nav { position: fixed; top: 64px; left: 0; right: auto; width: 65%; max-width: 340px; height: calc(100vh - 64px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border-right: 1px solid var(--line); box-shadow: 6px 0 26px rgba(18,20,26,.14); margin: 0; padding: 10px 18px 28px; display: none; z-index: 65; }
  .main-nav.open { display: block; }
  /* 遮罩必须低于页眉(60)：抽屉是页眉的子元素，处在页眉的堆叠上下文里；
     若遮罩 z-index 高于 60 会把整个抽屉一起压暗。同时高于常驻 CTA(55)。 */
  .nav-scrim.open { display: block; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: rgba(18,20,26,.55); z-index: 58; }
  /* 菜单顶部的四个社媒联系方式（对齐参考图：彩色圆角图标 + 粗体名称 + 灰色副文本） */
  .social-contacts--menu { display: block; padding: 8px 0 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
  .social-contacts--menu .sc-item { padding: 8px 0; gap: 11px; }
  .social-contacts--menu .sc-icon { width: 42px; height: 42px; flex-basis: 42px; }
  .social-contacts--menu .sc-icon svg { width: 24px; height: 24px; }
  .social-contacts--menu .sc-text { min-width: 0; }
  .social-contacts--menu .sc-text strong { color: #15254A; }
  .social-contacts--menu .sc-text small { color: #808692; font-size: 13.5px; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  /* 移动端：菜单顶部是快捷入口，页脚同样常驻展示四个社媒（与 PC 一致）。
     窄屏下改为「图标 + 两行文字」，避免邮箱地址在一行内溢出。 */
  .social-contacts--footer { display: flex; margin: 14px 0 4px; gap: 8px; }
  .social-contacts--footer .sc-icon { width: 30px; height: 30px; flex-basis: 30px; border-radius: 9px; }
  .social-contacts--footer .sc-icon svg { width: 17px; height: 17px; }
  .social-contacts--footer .sc-item { gap: 10px; min-height: 30px; }
  .social-contacts--footer .sc-text { flex-direction: column; align-items: flex-start; gap: 1px; white-space: normal; }
  .social-contacts--footer .sc-text strong { font-size: 14px; }
  .social-contacts--footer .sc-text small { font-size: 12.5px; white-space: normal; overflow-wrap: anywhere; }
  .nav-list { display: block; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-item > a { padding: 15px 0; font-size: 18px; font-weight: 700; color: #15254A; width: 100%; justify-content: space-between; }
  .nav-item .caret { width: 8px; height: 8px; transform: rotate(-45deg) translateY(-1px); }
  .drop-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--orange-line); border-radius: 0; padding: 0 0 6px 12px; min-width: 0; display: none; }
  .nav-item.open .drop-menu { display: block; }
  .inner-layout { grid-template-columns: 1fr; gap: 34px; }
  .inner-side { position: static; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 560px) {
  body { padding-bottom: 62px; }
  .container { padding: 0 18px; }
  .field-row { grid-template-columns: 1fr; }
  .phone-cc { max-width: 52%; font-size: 13.5px; }
  .cc-name { display: none; }
  .mobile-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: #fff; border-top: 1px solid var(--line); padding: 10px 18px; }
  .mobile-bar-btn { display: block; width: 100%; border: 0; font-family: inherit; cursor: pointer; text-align: center; background: var(--orange); color: #fff; border-radius: 999px; padding: 11px; font-weight: 600; font-size: 16px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 31.1px; }
  .back-to-top { bottom: 78px; }
}

/* ---------------- WhatsApp 点击聊天浮窗：纯绿色圆形按钮（对齐参考站） ---------------- */
/* 视觉上只有绿色圆 + 白色图标；文字保留在 DOM 供读屏与测试，视觉隐藏 */
.wa-float { position: fixed; right: 22px; bottom: 78px; z-index: 54; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #25D366; color: #fff; text-decoration: none; box-shadow: 0 8px 24px rgba(37, 180, 92, .42); transition: transform .2s ease, box-shadow .2s ease; }
.wa-float:hover, .wa-float:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(37, 180, 92, .52); }
.wa-float-icon { width: 58px; height: 58px; display: grid; place-items: center; }
.wa-float-icon svg { width: 33px; height: 33px; }
/* 视觉隐藏但保留 display:flex（移动端测试据此判定文字节点存在） */
.wa-float-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; display: flex; flex-direction: column; line-height: 1.22; }
@media (max-width: 900px) {
  .wa-float { bottom: 84px; }
}
@media (max-width: 560px) {
  /* 让开底部常驻 CTA 条(62px)与返回顶部按钮 */
  .wa-float { right: 16px; bottom: 138px; width: 52px; height: 52px; }
  .wa-float-icon { width: 52px; height: 52px; }
  .wa-float-icon svg { width: 30px; height: 30px; }
}
