/* ==========================================================================
   华大包装官网 · PHP 版样式（基础层）
   纯 CSS，不依赖 Tailwind 构建。数值取自原站实测，与 Next 版保持一致。
   ========================================================================== */

/* ---------- 字体（自托管，不依赖外部 CDN） ---------- */
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- 变量 ---------- */
:root {
  --brand: #0162af;
  --brand-deep: #005197;
  --brand-50: #eef4fb;
  --brand-100: #d7e6f5;
  --brand-200: #a9c8e8;
  --brand-300: #7493e7;
  --brand-400: #4a7dd0;
  --brand-600: #005197;
  --brand-700: #00427c;
  --ink: #333;
  --ink-soft: #595757;
  --ink-mute: #888;
  --mist: #f6f7f9;
  --line: #e6e9ee;
  --head-h: 103px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Poppins, Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; height: auto; border: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font-family: inherit; }
::selection { background: var(--brand); color: #fff; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #f0f2f5; }
::-webkit-scrollbar-thumb { background: #c3cbd6; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

.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;
}

/* ---------- 容器（与原站 .layout 阶梯一致） ----------
   原站实测：≤1680 视口内容是 95%；>1680 会明显收窄到 73.8%
   （1440→1368、1600→1520、1800→1328、1920→1417、2560→1889）。
   以前这里写死 1900px，1920 屏上左右只剩 10px，看着像铺满屏。 */
.shell, .shell-wide { width: 95%; max-width: none; margin: 0 auto; }
.shell-foot { width: 84.1%; margin: 0 auto; }

@media (min-width: 1712px) {
  .shell, .shell-wide, .shell-foot { width: 73.8%; }
}
@media (max-width: 640px) {
  .shell, .shell-wide, .shell-foot { width: 91%; }
}

.narrow { max-width: 1120px; margin: 0 auto; }
.mt-6 { margin-top: 24px; }
.mt-7 { margin-top: 28px; }
.mt-8 { margin-top: 32px; }
.w-full { width: 100%; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }
.center-cta { text-align: center; margin-top: 40px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 30px; border-radius: 4px; border: none;
  font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: 1.1px;
  text-transform: uppercase; color: #fff; cursor: pointer;
  background: linear-gradient(90deg, #8aa2ea 0%, #6b89e2 100%);
  transition: all .28s ease;
}
.btn:hover { background: linear-gradient(90deg, #6b89e2 0%, #4f70d8 100%); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(107, 137, 226, .35); }
.btn:active { transform: translateY(0); }
.btn-solid { background: var(--brand); border-radius: 3px; }
.btn-solid:hover { background: var(--brand-deep); box-shadow: 0 8px 20px rgba(1, 98, 175, .28); }
.btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .75); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--brand); box-shadow: none; }
.btn-outline { background: transparent; border: 1px solid var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: var(--brand-50); color: var(--brand); box-shadow: 0 10px 24px rgba(0, 0, 0, .14); }
.btn-sm { height: 38px; padding: 0 20px; font-size: 12px; }

/* ---------- 区块标题 ---------- */
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-title {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  font-family: Montserrat, Poppins, sans-serif;
  font-size: 36px; line-height: 1.15; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase; color: #111;
}
.sec-title .diamond { width: 9px; height: 9px; background: var(--brand); transform: rotate(45deg); flex: none; box-shadow: 0 0 0 3px rgba(1, 98, 175, .1); }
.sec-title .rule { display: block; height: 1px; width: 76px; flex: none; background: linear-gradient(90deg, rgba(1, 98, 175, 0), rgba(1, 98, 175, .55)); }
.sec-title .rule.r { background: linear-gradient(270deg, rgba(1, 98, 175, 0), rgba(1, 98, 175, .55)); }
.sec-title .px-1 { padding: 0 4px; }
.sec-sub { margin-top: 14px; color: #6b7280; font-size: 15px; }

@media (max-width: 768px) {
  .sec-title { font-size: 23px; gap: 10px; }
  .sec-title .rule { width: 34px; }
  .sec-head { margin-bottom: 28px; }
}

/* ---------- 富文本 ---------- */
.rich { color: var(--ink-soft); font-size: 15px; line-height: 1.9; }
.rich, .rich p, .rich li, .rich td, .rich th { overflow-wrap: break-word; }
.rich > *:first-child { margin-top: 0; }
.rich > *:last-child { margin-bottom: 0; }
.rich p { margin: 0 0 14px; }
.rich h2 { font-family: Montserrat, Poppins, sans-serif; font-size: 26px; font-weight: 700; color: #1a1a1a; margin: 30px 0 14px; line-height: 1.35; }
.rich h3 { font-family: Montserrat, Poppins, sans-serif; font-size: 21px; font-weight: 600; color: var(--brand); margin: 26px 0 12px; line-height: 1.4; }
.rich h4 { font-size: 17px; font-weight: 600; color: #1a1a1a; margin: 22px 0 10px; }
.rich ul, .rich ol { margin: 0 0 16px; padding-left: 22px; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich li { margin: 6px 0; }
.rich strong, .rich b { color: #212121; font-weight: 600; }
.rich a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.rich a:hover { color: var(--brand-deep); }
.rich img { max-width: 100%; height: auto; border-radius: 6px; display: block; margin: 16px 0; }
.rich figure { margin: 18px 0; }
.rich figure img { margin: 0; }
.rich blockquote { border-left: 3px solid var(--brand); background: var(--mist); padding: 14px 20px; margin: 18px 0; color: #4b5563; border-radius: 0 6px 6px 0; }
.rich hr { border: none; border-top: 1px solid var(--line); margin: 26px 0; }

/* 资源下载卡片 */
.rich .dl-row { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 22px 26px; margin: 22px 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.rich .dl-row figure { margin: 0; }
.rich .dl-row figure img { width: 132px; height: 92px; margin: 0; padding: 6px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: var(--mist); }
.rich .dl-row h3 { margin: 0 0 6px; font-size: 18px; }
.rich .dl-row p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.rich .dl-meta { white-space: nowrap; color: var(--ink-soft); }
.rich .dl-row p.dl-alt { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); }
.rich .dl-row p.dl-alt a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; margin-left: .25em; }
.rich .dl-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 5px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s, box-shadow .2s; }
.rich .dl-btn:hover { background: var(--brand-deep); color: #fff; text-decoration: none; box-shadow: 0 8px 20px rgba(1, 98, 175, .28); }
.rich .dl-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (max-width: 640px) {
  .rich .dl-row { grid-template-columns: 1fr; justify-items: center; gap: 14px; padding: 20px 18px; text-align: center; }
  .rich .dl-row figure img { width: 118px; height: 82px; }
  .rich .dl-btn { width: 100%; justify-content: center; }
}

/* 表格 */
.rich table, .table-wrap table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; background: #fff; border: 1px solid var(--line); }
.rich th, .rich td, .table-wrap th, .table-wrap td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; vertical-align: top; }
.rich th, .table-wrap th { background: #eef4fb; color: var(--brand-deep); font-weight: 600; }
.rich tr:nth-child(even) td, .table-wrap tr:nth-child(even) td { background: #fafbfc; }
.table-wrap { overflow-x: auto; margin: 18px 0; }
.table-wrap table { margin: 0; min-width: 480px; }

.media-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 20px 0; }
.media-gallery figure { margin: 0; overflow: hidden; border-radius: 8px; background: #f3f5f8; }
.media-gallery img { margin: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.media-gallery figure:hover img { transform: scale(1.04); }

/* ---------- 卡片 ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: box-shadow .3s ease, transform .3s ease, border-color .3s; }
@media (hover: hover) {
  .card:hover { box-shadow: 0 18px 44px rgba(1, 98, 175, .15); border-color: #cfe0f2; transform: translateY(-6px); }
}

/* ---------- 滚动入场 ---------- */
@keyframes rodRevealUp {
  0% { opacity: 0; transform: translate3d(0, 30%, 0); }
  100% { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes menuDrop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* 滚动入场
   默认可见：JS 被禁用、加载失败、或被拦截时内容照常显示。
   只有在 <head> 里同步执行的那行脚本给 <html> 加上 .rv-js 之后才隐藏，
   这样既不会有 FOUC，也不会出现「白屏等一个永远不来的动画」。 */
[data-reveal] { opacity: 1; }
.rv-js [data-reveal] { opacity: 0; }
.rv-js [data-reveal].is-in {
  opacity: 1;
  animation: rodRevealUp var(--rd, .8s) cubic-bezier(.215, .61, .355, 1) var(--rv-delay, 0s) backwards;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; animation: none !important; transform: none !important; }
  .card:hover { transform: none !important; }
}

/* ---------- 表单 ---------- */
.field {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid #dfe3e9; border-radius: 4px;
  font-size: 14px; font-family: inherit; color: #333; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(1, 98, 175, .1); }
textarea.field { height: auto; padding: 12px 14px; line-height: 1.7; resize: vertical; }

/* ==========================================================================
   页头
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  transition: transform .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { box-shadow: 0 2px 18px rgba(0, 0, 0, .09); }

.head-bar {
  height: var(--head-h);
  padding-inline: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0 auto;
}
@media (max-width: 1711px) { .head-bar { padding-inline: 8px; } }
@media (max-width: 640px) { .head-bar { padding-inline: 6px; } }
@media (max-width: 1366px) { :root { --head-h: 90px; } }
@media (max-width: 1024px) { :root { --head-h: 74px; } }

/* 首页桌面端：固定 + 透明浮层 */
/* 首屏底图浅色时白字会看不清，所以浮层自带一层顶部压暗渐变 */
.site-header.is-home {
  position: fixed; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(7, 20, 38, .62) 0%, rgba(7, 20, 38, .28) 62%, rgba(7, 20, 38, 0) 100%);
}
.site-header.is-home.is-scrolled { background: #fff; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--brand); }
.brand-mark {
  display: block; width: 36px; height: 30px; flex-shrink: 0; background: currentColor;
  -webkit-mask: url(/images/logo-mark.png) no-repeat center / contain;
  mask: url(/images/logo-mark.png) no-repeat center / contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-line1 { font-family: Montserrat, Poppins, sans-serif; font-size: 23px; font-weight: 800; letter-spacing: .5px; color: var(--brand); }
.brand-line2 { margin-top: 3px; font-size: 9px; font-weight: 600; letter-spacing: 1.6px; color: var(--ink-mute); }

/* 透明浮层下的白字 */
.site-header.is-home:not(.is-scrolled) { color: #fff; }
.site-header.is-home:not(.is-scrolled) .brand,
.site-header.is-home:not(.is-scrolled) .brand-line1 { color: #fff; }
.site-header.is-home:not(.is-scrolled) .brand-line2 { color: rgba(255, 255, 255, .75); }
.site-header.is-home:not(.is-scrolled) .head-bar { text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }

/* 主导航 */
.nav-main { display: none; flex: 1; align-items: center; justify-content: center; }
@media (min-width: 1280px) { .nav-main { display: flex; } }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px; padding: 8px 12px;
  font-size: 13px; font-weight: 500; letter-spacing: .4px; text-transform: uppercase;
  white-space: nowrap; color: var(--ink); transition: color .2s;
}
.nav-link:hover, .nav-link.is-active { color: var(--brand); }
.site-header.is-home:not(.is-scrolled) .nav-link { color: rgba(255, 255, 255, .9); }
.site-header.is-home:not(.is-scrolled) .nav-link:hover,
.site-header.is-home:not(.is-scrolled) .nav-link.is-active { color: #fff; }
.nav-caret { transition: transform .25s ease; opacity: .6; }
.nav-item:hover .nav-caret { transform: rotateX(180deg); }

.menu-drop {
  position: absolute; left: 0; top: 100%; z-index: 50;
  min-width: 230px; padding-top: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-item:hover .menu-drop, .nav-item:focus-within .menu-drop { opacity: 1; visibility: visible; transform: none; }
.menu-drop > * { }
.menu-drop {
  /* 内层容器用伪元素无法包裹，直接给 .menu-drop 加背景会带上 padding-top。
     用 ::before 撑出白色卡片。 */
}
.menu-drop::before {
  content: ""; position: absolute; inset: 4px 0 0; z-index: -1;
  background: #fff; border-top: 2px solid var(--brand); border-radius: 0 0 4px 4px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .13);
}
.menu-drop a {
  display: block; padding: 9px 20px; font-size: 13px; color: var(--ink-soft);
  transition: background-color .2s, color .2s;
}
.menu-drop a:hover { background: var(--brand-50); color: var(--brand); }
/* 分类多时下拉会顶出视口 */
.menu-drop { max-height: calc(100vh - 140px); overflow-y: auto; }

/* 右侧工具 */
.head-tools { display: flex; align-items: center; gap: 12px; }

.head-search { display: none; align-items: center; }
@media (min-width: 1024px) { .head-search { display: flex; } }
.head-search {
  height: 36px; border-radius: 999px; padding-left: 16px; padding-right: 6px;
  background: #f1f3f6;
}
.site-header.is-home:not(.is-scrolled) .head-search { background: rgba(255, 255, 255, .18); backdrop-filter: blur(4px); }
.head-search input {
  width: 110px; border: 0; background: transparent; font-family: inherit;
  font-size: 12.5px; color: var(--ink); outline: none; transition: width .25s;
}
.head-search input:focus { width: 150px; }
.head-search input::placeholder { color: #9aa3ae; }
.site-header.is-home:not(.is-scrolled) .head-search input { color: #fff; }
.site-header.is-home:not(.is-scrolled) .head-search input::placeholder { color: rgba(255, 255, 255, .7); }
.head-search button {
  display: grid; place-items: center; width: 24px; height: 24px;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  color: var(--ink-mute);
}
.head-search button:hover { color: var(--brand); }
.site-header.is-home:not(.is-scrolled) .head-search button { color: rgba(255, 255, 255, .8); }

.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  font-size: 12.5px; font-weight: 500; color: var(--ink); cursor: pointer;
}
.site-header.is-home:not(.is-scrolled) .lang-btn { color: #fff; }
.lang-flag { font-size: 15px; line-height: 1; }
.lang-label { display: none; }
@media (min-width: 640px) { .lang-label { display: inline; } }
.lang-menu {
  position: absolute; right: 0; top: 100%; z-index: 50; min-width: 140px;
  margin-top: 8px; padding: 4px 0; border-radius: 6px; background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.lang-switch:hover .lang-menu, .lang-switch:focus-within .lang-menu { opacity: 1; visibility: visible; }
.lang-menu a { display: block; padding: 8px 16px; font-size: 13px; color: var(--ink-soft); }
.lang-menu a:hover { background: var(--brand-50); }
.lang-menu a.is-current { color: var(--brand); font-weight: 600; }

.nav-toggle {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 0; background: none; cursor: pointer; color: var(--ink);
}
.site-header.is-home:not(.is-scrolled) .nav-toggle { color: #fff; }
@media (min-width: 1280px) { .nav-toggle { display: none; } }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: inline; }

/* 移动菜单 */
.mobile-nav { display: none; background: #fff; border-top: 1px solid var(--line); max-height: calc(100vh - var(--head-h)); overflow-y: auto; }
.mobile-nav.is-open { display: block; }
@media (min-width: 1280px) { .mobile-nav.is-open { display: none; } }
.mnav-group { border-bottom: 1px solid #f1f3f6; }
.mnav-group:last-of-type { border-bottom: 0; }
.mnav-row { display: flex; align-items: center; justify-content: space-between; }
.mnav-link { flex: 1; padding: 12px 0; font-size: 15px; font-weight: 500; color: var(--ink); }
.mnav-expand { padding: 12px 8px; border: 0; background: none; color: var(--ink-mute); cursor: pointer; }
.mnav-expand svg { transition: transform .2s; }
.mnav-group.is-open .mnav-expand svg { transform: rotate(180deg); }
.mnav-sub { display: none; padding: 0 0 8px 12px; }
.mnav-group.is-open .mnav-sub { display: block; }
.mnav-sub a { display: block; padding: 8px 0; font-size: 13.5px; color: var(--ink-soft); }
.mobile-nav .shell { width: 91%; }
.mobile-nav > div { padding: 8px 0; }
.mobile-nav, .mobile-nav * { }
.mnav-search { display: flex; gap: 8px; padding: 16px; }
.mnav-search .field { flex: 1; height: 40px; }

/* ==========================================================================
   内页页头 + 面包屑
   ========================================================================== */
.page-head {
  position: relative; aspect-ratio: 1920 / 464;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--brand-700) url(/images/page_banner.jpg) center / cover no-repeat;
}
.page-head-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .15); }
.page-head-inner { position: relative; padding: 0 20px; text-align: center; }
.page-head-inner h1,
.page-head-inner .page-head-title {
  font-family: Montserrat, Poppins, sans-serif;
  font-size: 35px; font-weight: 700; line-height: 1.5; color: #fff;
}
@media (min-width: 768px) { .page-head-inner h1,
.page-head-inner .page-head-title { font-size: 54px; } }
.page-head-inner p { margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: rgba(255, 255, 255, .9); }
@media (min-width: 768px) { .page-head-inner p { font-size: 14px; } }

.path-bar { background: #505050; }
.path-bar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 0; font-size: 12.5px; color: rgba(255, 255, 255, .85); }
.path-bar-inner a:hover { color: #fff; }
.path-sep { color: rgba(255, 255, 255, .45); }
.path-cur { color: #fff; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer { position: relative; overflow: hidden; margin-top: auto; background: var(--brand-700); color: rgba(255, 255, 255, .85); }
.foot-bg {
  position: absolute; inset: 0; opacity: .18; pointer-events: none;
  background: url(/images/foot_bg.png) center / cover no-repeat;
}
.site-footer::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(0, 66, 124, .95), rgba(0, 66, 124, .9) 55%, rgba(0, 58, 110, .95));
}
.foot-inner { position: relative; z-index: 1; padding: 80px 0 40px; }
.foot-grid { display: grid; gap: 40px; padding-bottom: 40px; }
@media (min-width: 1024px) { .foot-grid { grid-template-columns: 1.1fr .8fr 1fr 1.25fr; } }

.foot-title { font-family: Montserrat, Poppins, sans-serif; font-size: 18px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.foot-sub { margin-bottom: 12px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .95); }
.foot-list { display: grid; gap: 14px; font-size: 14.5px; line-height: 1.6; }
.foot-list li { display: flex; align-items: flex-start; gap: 10px; }
.foot-list li svg { margin-top: 3px; flex-shrink: 0; color: rgba(255, 255, 255, .7); }
.foot-list a:hover { color: #fff; }
.foot-links li { display: block; }
.foot-links a { transition: color .2s; }

.foot-sns { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.foot-sns a {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85);
  transition: background-color .2s, color .2s, transform .3s;
}
.foot-sns a:hover { background: rgba(255, 255, 255, .25); color: #fff; transform: rotate(-15deg); }

.foot-cta { border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); border-radius: 6px; padding: 24px; text-align: center; }
.foot-cta h4 { font-family: Montserrat, Poppins, sans-serif; font-size: 17px; font-weight: 700; line-height: 1.35; letter-spacing: .6px; text-transform: uppercase; color: #fff; }
.foot-cta p { margin-top: 12px; font-size: 12.5px; line-height: 1.65; color: rgba(255, 255, 255, .75); }
.foot-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 42px; margin-top: 20px; border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 3px; font-size: 12.5px; font-weight: 600; letter-spacing: .8px;
  text-transform: uppercase; color: #fff; transition: background-color .2s, color .2s;
}
.foot-cta-btn:hover { background: #fff; color: var(--brand-600); }

.foot-bottom {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: 12.5px; color: rgba(255, 255, 255, .6);
}
@media (min-width: 768px) { .foot-bottom { flex-direction: row; justify-content: space-between; } }
.foot-bottom-right { display: flex; align-items: center; gap: 12px; }
.foot-bottom-right a:hover { color: rgba(255, 255, 255, .9); }

/* ==========================================================================
   悬浮联系条 + 返回顶部
   ========================================================================== */
.float-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .08);
}
.float-bar .fb-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 9px 0; font-size: 11px; color: var(--brand); border-right: 1px solid var(--line);
}
.float-bar .fb-item:last-child { border-right: 0; }
@media (min-width: 1025px) { .float-bar { display: none; } }

.back-top {
  position: fixed; right: 18px; bottom: 74px; z-index: 40;
  display: none; place-items: center; width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: var(--brand); color: #fff;
  cursor: pointer; box-shadow: 0 6px 18px rgba(1, 98, 175, .35);
  opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s;
}
.back-top.is-visible { display: grid; opacity: 1; transform: none; }
@media (min-width: 1025px) { .back-top { bottom: 28px; } }

/* 小屏幕给页脚留出悬浮条的空间 */
@media (max-width: 1024px) { body { padding-bottom: 54px; } }

/* ---------- 移动端字体 ---------- */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .rich { font-size: 14px; }
  .rich h2 { font-size: 21px; }
  .rich h3 { font-size: 18px; }
}
