/* ============================================================
   newstyle.css · 宝园财税新版全站样式表  v1.0
   ============================================================
   用途：新旧页面通用。这是「未来要取代 style.css」的那个文件。
        老页面（还在引 style.css）也可以引它，新写的样式一律放这里，
        逐步把老栏目搬过来，最终整站只引本文件。

   老页面的加载顺序（本文件必须在 style.css 之后）：
     <link rel="stylesheet" href="/static/css/style.css">
     <link rel="stylesheet" href="/static/css/newstyle.css">

   本文件分 3 段：
     段 1  设计令牌（改配色只改这里）
     段 2  基础重置 + 通用组件（容器 / 按钮 / 滚动动画 / 跳过链接）
     段 3  全站外壳（顶部栏 / 导航 / 9 项大菜单 / 抽屉菜单 /
                     页脚 / 浮动按钮 / 微信二维码 / 二维码大图弹窗 / 移动端底栏）
   页面专属版式不放这里，各自独立成文件（如 about.css）。

   样式作用域（两套等价重置，按页面情况二选一）：
     body.by-body   全新页面：<body class="by-body">
     .by-shell      老页面  ：只给公共外壳加类，正文完全不受影响
                    <header class="by-header by-shell">
                    <footer class="by-footer by-shell">
                    <div class="by-shell">浮动件…</div>

   约定：
     · 类名统一 by- 前缀，旧站没有同名类，与旧模板互不干扰
     · 断点：1150（抽屉菜单） / 768（移动端） / 600 / 480
       ⚠ 1150 是实测出来的临界值：一级菜单 9 项 + 品牌 + 电话按钮的最小总宽
       约为 1040px，再窄就会溢出，所以必须在溢出前切抽屉，
       否则会出现「菜单被挤爆、汉堡又被推到屏幕外」的中间状态。
       改这里时务必同步改 by-site.js 顶部的 BP_DRAWER 常量。
     · 改完本文件后，把所有页面 <link> 里 href 末尾的 ?v= 换成新值
   ============================================================ */

/* ============================================================
   段 1 ~ 段 3：设计系统 + 全站外壳
   （变量 / reset / 容器 / 按钮 / 顶部栏 / 导航 / 9 项大菜单 / 抽屉 /
     页脚 / 浮动按钮 / 微信二维码 / 二维码大图弹窗 / 移动端底栏）
   ============================================================ */
/* ------------------------------------------------------------
   段 1　设计令牌（改配色只改这里）
   ------------------------------------------------------------ */

:root {
  --by-white: #ffffff;
  --by-cream: #faf7f0;
  --by-cream-2: #f3ecdf;
  --by-gold: #b08d4f;
  --by-gold-deep: #8c692f;
  --by-gold-light: #d8bc86;
  --by-gold-soft: #f4ebd9;
  --by-ink: #15130e;
  --by-ink-2: #2a2620;
  --by-text: #3d3931;
  --by-muted: #7b7569;
  --by-line: #e6decf;
  --by-line-soft: #f0eadd;
  --by-container: 1240px;
  --by-radius: 16px;
  --by-radius-lg: 24px;
  --by-shadow-sm: 0 8px 24px rgba(21, 19, 14, 0.06);
  --by-shadow: 0 20px 50px rgba(21, 19, 14, 0.09);
  --by-shadow-lg: 0 30px 80px rgba(21, 19, 14, 0.14);
  --by-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --by-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong",
    SimSun, Georgia, serif;
  --by-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ----------
   全局收敛：所有 reset 都必须挂在 body.by-body 之下。
   这样本文件即使用在旧模板页面上也不会改变旧站布局（旧站 <body> 没有 by-body）。
   注意：新增全局 reset 时，请沿用同样的作用域写法。 */
/* ⚠ 加载顺序要求：<link style.css> 必须在本文件之前 */

body.by-body *,
body.by-body *::before,
body.by-body *::after {
  box-sizing: border-box;
}

/* :has() 兜底：浏览器不支持时只是不生效，body.by-body 上的 overflow 依然生效 */
html:has(> body.by-body) {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body.by-body {
  margin: 0;
  background: var(--by-white);
  color: var(--by-text);
  font-family: var(--by-font);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:where(body.by-body) img {
  display: block;
  max-width: 100%;
  border: 0;
}

:where(body.by-body) a {
  color: inherit;
  text-decoration: none;
}

:where(body.by-body) button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

body.by-body :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd) {
  margin: 0;
}

body.by-body :where(ul, ol) {
  padding: 0;
  list-style: none;
}

body.by-body :where(h1, h2, h3, h4) {
  color: var(--by-ink);
  font-weight: 700;
  line-height: 1.28;
}

:where(body.by-body) svg {
  display: block;
}

/* ---------- reset：.by-shell（老页面专用，与上面那套完全等价） ----------
   老页面不能给 <body> 加 by-body（会改掉老正文的段落 / 列表 / 图片样式），
   所以只把「头部 / 页脚 / 浮动件」这三块加上 class="by-shell"，
   下面这套重置只作用在外壳内部，正文一个字都不受影响。
   权重全部 ≤ (0,1,0)，外壳内部任何带 class 的规则都能覆盖它。

   ⚠ 头部不要额外包 <div>：position:sticky 会失效，
     一定要把 by-shell 直接加在 <header> / <footer> 本身上。 */
.by-shell,
.by-shell *,
.by-shell *::before,
.by-shell *::after {
  box-sizing: border-box;
}

.by-shell :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dt, dd) {
  margin: 0;
}

.by-shell :where(ul, ol) {
  padding: 0;
  list-style: none;
}

.by-shell :where(h1, h2, h3, h4) {
  color: var(--by-ink);
  font-weight: 700;
  line-height: 1.28;
}

.by-shell :where(img) {
  display: block;
  max-width: 100%;
  border: 0;
}

.by-shell :where(a) {
  color: inherit;
  text-decoration: none;
}

.by-shell :where(button) {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.by-shell :where(svg) {
  display: block;
}

/* 抵消旧站 style.css 开头两行的「直接命中」：
     * { color: #000 }
     div, h1…h6, dl, dd, dt, p, a, ul, ol, li { color:#333; font-size:14px; font-weight:normal }
   那两条的权重只有 (0,0,0) / (0,0,1)，下面这条 (0,1,0) 刚好压住。
   只还原「继承」这一件事，不碰 margin / padding / border，
   所以老站的正文排版不会被改动。
   ⚠ 站内彻底下线 style.css 之后，这一条可以整段删除。 */
.by-shell :where(div, p, span, a, li, dt, dd, h1, h2, h3, h4) {
  color: inherit;
  font-size: inherit;
}

body.by-body ::selection {
  background: var(--by-gold);
  color: #fff;
}

:where(body.by-body) :focus-visible {
  outline: 2px solid var(--by-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

body.by-body.nav-open {
  overflow: hidden;
}

/* ---------- skip link ---------- */
.by-skip {
  position: absolute;
  top: -70px;
  left: 16px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--by-ink);
  color: #fff;
  font-size: 13px;
  transition: top 0.2s var(--by-ease);
}

.by-skip:focus {
  top: 0;
  color: #fff;
}

/* ---------- layout ---------- */
.by-container {
  width: min(var(--by-container), calc(100% - 48px));
  margin-inline: auto;
}

.by-section {
  position: relative;
  padding: clamp(64px, 7.5vw, 110px) 0;
}

.by-section--cream {
  background: var(--by-cream);
}

.by-section--soft {
  background: linear-gradient(180deg, #fff 0%, var(--by-cream) 100%);
}

.by-section--dark {
  background: var(--by-ink);
  color: rgba(255, 255, 255, 0.72);
}

.by-section--dark h2,
.by-section--dark h3 {
  color: #fff;
}

.by-section--dark .by-lead {
  color: rgba(255, 255, 255, 0.62);
}

.by-center {
  margin-top: 34px;
  text-align: center;
}

/* ---------- typography ---------- */
.by-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--by-gold-deep);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.by-eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--by-gold);
}

.by-eyebrow--center {
  justify-content: center;
}

.by-eyebrow--light {
  color: var(--by-gold-light);
}

.by-h2 {
  font-family: var(--by-serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-wrap: balance;
}

.by-h3 {
  font-family: var(--by-serif);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.by-lead {
  max-width: 780px;
  margin-top: 16px;
  color: var(--by-muted);
  font-size: 16px;
  line-height: 1.95;
}

.by-section-head {
  max-width: 820px;
}

.by-section-head--center {
  margin-inline: auto;
  text-align: center;
}

.by-section-head--center .by-lead {
  margin-inline: auto;
}

/* ---------- buttons ---------- */
.by-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.25s var(--by-ease), box-shadow 0.25s var(--by-ease),
    background 0.25s var(--by-ease), border-color 0.25s var(--by-ease),
    color 0.25s var(--by-ease);
}

.by-btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.by-btn:hover {
  transform: translateY(-1px);
}

.by-btn--gold {
  background: linear-gradient(135deg, #c9a55e 0%, #a9833f 100%);
  box-shadow: 0 12px 26px rgba(169, 131, 63, 0.26);
  color: #fff;
}

.by-btn--gold:hover {
  box-shadow: 0 16px 34px rgba(169, 131, 63, 0.34);
}

.by-btn--ghost {
  border-color: rgba(21, 19, 14, 0.18);
  background: transparent;
  color: var(--by-ink);
}

.by-btn--ghost:hover {
  border-color: var(--by-gold);
  background: rgba(176, 141, 79, 0.06);
  color: var(--by-gold-deep);
}

.by-btn--light {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.by-btn--light:hover {
  border-color: var(--by-gold-light);
  background: rgba(216, 188, 134, 0.12);
  color: var(--by-gold-light);
}

.by-btn--dark {
  background: var(--by-ink);
  color: #fff;
}

.by-btn--dark:hover {
  background: var(--by-ink-2);
}

.by-btn--outline {
  border-color: rgba(21, 19, 14, 0.32);
  color: var(--by-ink);
}

.by-btn--outline:hover {
  background: rgba(21, 19, 14, 0.06);
}

.by-btn--sm {
  height: 40px;
  padding: 0 18px;
  font-size: 13.5px;
}

.by-btn--block {
  width: 100%;
}

/* ---------- reveal animation ----------
   ⚠ 渐进增强：.by-reveal 默认是「可见」的。
   只有当 <html> 上带 .by-js（由 <head> 里一句内联脚本添加，代表 JS 可用）
   时才隐藏并加入场动画。这样万一 by-site.js 没加载（被 CMS 过滤 / 漏贴 / 404），
   正文照常全部显示，绝不会白屏。 */
.by-reveal {
  transition: opacity 0.8s var(--by-ease), transform 0.8s var(--by-ease);
}

.by-js .by-reveal {
  opacity: 0;
  transform: translateY(26px);
  will-change: opacity, transform;
}

.by-js .by-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.by-reveal[data-delay="1"] {
  transition-delay: 0.08s;
}

.by-reveal[data-delay="2"] {
  transition-delay: 0.16s;
}

.by-reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

.by-reveal[data-delay="4"] {
  transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* 特异性要压过 .by-js .by-reveal，否则减弱动效下反而被隐藏 */
  .by-reveal,
  .by-js .by-reveal,
  .by-js .by-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   顶部工具栏 + 主导航
   ============================================================ */
.by-topbar {
  background: var(--by-ink);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.by-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 38px;
}

.by-topbar-note {
  position: relative;
  min-width: 0;
  padding-left: 16px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.by-topbar-note::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--by-gold-light);
  box-shadow: 0 0 0 3px rgba(216, 188, 134, 0.16);
}

.by-topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.by-topbar-links a {
  color: var(--by-gold-light);
  font-weight: 600;
}

.by-topbar-links a:hover {
  color: #fff;
}

.by-topbar-sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.18);
}

.by-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s var(--by-ease);
}

.by-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(21, 19, 14, 0.08);
}

.by-navbar {
  border-bottom: 1px solid var(--by-line-soft);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.by-navbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 80px;
}

.by-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.by-brand img {
  width: auto;
  height: 46px;
}

.by-brand-tag {
  padding: 3px 9px;
  border: 1px solid var(--by-gold-light);
  border-radius: 999px;
  color: var(--by-gold-deep);
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.by-nav {
  margin-left: auto;
}

.by-menu {
  display: flex;
  align-items: center;
  gap: 1px;
}

/* 让 mega 面板相对 .by-navbar-inner 定位，任何一项展开都不会溢出视口 */
.by-menu>li {
  position: static;
}

.by-menu>li>a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 11px;
  border-radius: 9px;
  color: var(--by-ink-2);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.2s var(--by-ease), background 0.2s var(--by-ease);
}

.by-menu>li>a:hover,
.by-menu>li.is-active>a {
  background: var(--by-gold-soft);
  color: var(--by-gold-deep);
}

.by-menu>li.is-active>a::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 3px;
  left: 8px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--by-gold), var(--by-gold-light));
}

.by-caret {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.5;
}

/* ---------- Mega 面板 ---------- */
.by-sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: min(var(--panel-w, 920px), 100%);
  padding: 22px 24px 20px;
  border: 1px solid var(--by-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 64px rgba(21, 19, 14, 0.16), 0 4px 14px rgba(21, 19, 14, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s var(--by-ease), transform 0.2s var(--by-ease),
    visibility 0.2s;
  z-index: 10;
}

.by-sub::before {
  content: "";
  position: absolute;
  top: -14px;
  right: 0;
  left: 0;
  height: 14px;
}

/* 桌面端：由 JS 悬停添加 is-open；键盘 Tab 时用 focus-within 保留面板，
   避免鼠标穿越间隙时闪断。移动端抽屉只用 is-open，不受焦点影响。 */
.by-menu>li.is-open>.by-sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@media (min-width: 1151px) {

  /* :hover 是纯 CSS 兜底：即使 by-site.js 没加载，桌面端悬停也能展开大菜单。
     JS 正常时 is-open 会同时生效，两者叠加无副作用。 */
  .by-menu>li:hover>.by-sub,
  .by-menu>li:focus-within>.by-sub {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

.by-sub-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
  gap: 16px 26px;
}

.by-sub-group {
  min-width: 0;
}

.by-sub-title {
  margin-bottom: 6px;
  padding: 0 10px 6px;
  border-bottom: 1px solid var(--by-line-soft);
  color: var(--by-gold-deep);
  font-family: var(--by-font);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.by-sub-title a {
  display: inline;
  padding: 0;
  color: inherit;
}

.by-sub-title a:hover {
  background: none;
  color: var(--by-gold);
}

.by-sub-list {
  display: grid;
  grid-template-columns: repeat(var(--list-cols, 1), minmax(0, 1fr));
  gap: 1px 4px;
}

.by-sub-list a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--by-text);
  font-size: 13.5px;
  line-height: 1.5;
  transition: background 0.18s var(--by-ease), color 0.18s var(--by-ease);
}

.by-sub-list a:hover {
  background: var(--by-gold-soft);
  color: var(--by-gold-deep);
}

.by-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: auto;
}

/* ---------- 导航右侧电话按钮 ----------
   样式直接复用全局 .by-btn--gold + .by-btn--sm（就是原来「免费获取方案」
   那个金色按钮，跟页面其它金色按钮完全一致），只是文字换成手机号。
   额外加 .by-nav-plan 标记，作用只有一个：
   在手机端不被 `.by-nav-actions .by-btn:not(.by-nav-plan)` 隐藏
   （它是手机上唯一的拨号入口）。
   交互：桌面点击 → 微信二维码大图弹窗（data-qr-open，由 by-site.js 接管）
         手机点击 → href="tel:" 直接拨号（by-site.js 在窄屏不拦截） */
.by-nav-plan {
  flex: 0 0 auto;
  letter-spacing: 0.01em;
  /* 手机号是数字，等宽数字能让短横线对齐、宽度稳定，避免不同字重下抖动 */
  font-variant-numeric: tabular-nums;
}

/* 旧版头部模板（带文字块版手机号）仍可正常显示，不清掉是为了
   上传新模板前线上不至于没样式。新模板已不再使用。 */
.by-nav-tel {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: right;
}

.by-nav-tel span {
  color: var(--by-muted);
  font-size: 11px;
}

.by-nav-tel b {
  color: var(--by-ink);
  font-family: var(--by-font);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.by-nav-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--by-line);
  border-radius: 12px;
}

.by-nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--by-ink);
  transition: transform 0.25s var(--by-ease), opacity 0.25s var(--by-ease);
}

.by-nav-close {
  display: none;
  position: absolute;
  top: 18px;
  right: 18px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--by-line);
  border-radius: 10px;
  color: var(--by-ink);
}

.by-nav-close svg {
  width: 18px;
  height: 18px;
}

.by-nav-cta {
  display: none;
}

.by-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(21, 19, 14, 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s var(--by-ease);
}

.by-nav-backdrop.is-open {
  display: block;
  opacity: 1;
}

body.nav-open .by-navbar {
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* ============================================================
   页脚
   ============================================================ */
.by-footer {
  padding: 64px 0 0;
  background: #12100b;
  color: rgba(255, 255, 255, 0.62);
}

.by-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.by-footer-brand img {
  width: auto;
  height: 46px;
}

.by-footer-brand p {
  max-width: 330px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.9;
}

.by-footer-tel {
  display: inline-flex;
  flex-direction: column;
  margin-top: 22px;
  color: var(--by-gold-light);
  font-family: var(--by-font);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.by-footer-tel small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--by-font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.by-footer-col h4 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.by-footer-col ul li+li {
  margin-top: 10px;
}

.by-footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: color 0.2s var(--by-ease);
}

.by-footer-col a:hover {
  color: var(--by-gold-light);
}

.by-footer-addr>div {
  margin-bottom: 14px;
}

.by-footer-addr b {
  display: block;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
}

.by-footer-addr span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.7;
}

.by-footer-addr a:hover {
  color: var(--by-gold-light);
}

.by-friendlinks {
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.36);
  font-size: 12.5px;
  line-height: 2;
}

.by-friendlinks a {
  margin-right: 14px;
  color: rgba(255, 255, 255, 0.46);
}

.by-friendlinks a:hover {
  color: var(--by-gold-light);
}

.by-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.42);
  font-size: 12.5px;
}

.by-footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

.by-footer-bottom a:hover {
  color: var(--by-gold-light);
}

/* ============================================================
   浮动工具 + 移动端底部操作条
   ============================================================ */
.by-fabs {
  position: fixed;
  left: 18px;
  bottom: 96px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.by-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--by-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--by-shadow-sm);
  color: var(--by-ink);
  transition: transform 0.25s var(--by-ease), background 0.25s var(--by-ease),
    border-color 0.25s var(--by-ease), color 0.25s var(--by-ease),
    opacity 0.25s var(--by-ease), visibility 0.25s var(--by-ease);
}

.by-fab:hover {
  border-color: var(--by-gold);
  background: var(--by-gold);
  color: #fff;
  transform: translateY(-2px);
}

.by-fab svg {
  width: 20px;
  height: 20px;
}

.by-fab--top {
  opacity: 0;
  visibility: hidden;
}

.by-fab--top.is-visible {
  opacity: 1;
  visibility: visible;
}

/* 二维码弹窗贴着左侧按钮条向页面内（右边）展开，
   悬停按钮即淡入，不再需要点击 */
.by-wechat-pop {
  position: fixed;
  left: 74px;
  bottom: 96px;
  z-index: 91;
  width: 168px;
  padding: 12px;
  border: 1px solid var(--by-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--by-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: opacity 0.22s var(--by-ease), transform 0.22s var(--by-ease),
    visibility 0.22s var(--by-ease);
}

/* 按钮与弹窗之间 10px 的空隙用不可见区块补上，
   鼠标从按钮移向二维码时不会因为穿过空隙而误关闭 */
.by-wechat-pop::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -12px;
  width: 12px;
}

.by-wechat-pop.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.by-wechat-pop img {
  width: 144px;
  height: 144px;
  margin-inline: auto;
  border-radius: 8px;
}

.by-wechat-pop p {
  margin-top: 6px;
  color: var(--by-muted);
  font-size: 12px;
  text-align: center;
}

/* ============================================================
   二维码放大预览（悬停浮层 + 点击大图弹窗）
   ============================================================ */

/* 桌面端悬停：贴在触发器的上方弹出 */
.by-qr-pop {
  position: absolute;
  right: 0;
  bottom: calc(100% + 16px);
  z-index: 20;
  width: 216px;
  padding: 14px 14px 13px;
  border: 1px solid var(--by-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--by-shadow);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.24s var(--by-ease), transform 0.24s var(--by-ease),
    visibility 0.24s var(--by-ease);
}

/* 触发器与浮层之间 16px 的空隙补上，鼠标下移时不会闪断 */
.by-qr-pop::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 18px;
}

.by-qr-pop img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.by-qr-pop b {
  display: block;
  margin-top: 10px;
  color: var(--by-ink);
  font-size: 13.5px;
  font-weight: 700;
}

.by-qr-pop small {
  display: block;
  margin-top: 3px;
  color: var(--by-muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.by-qr-pop.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

/* 只有真正支持悬停、且是宽屏时才用浮层；触屏走点击弹窗 */
@media (min-width: 769px) and (hover: hover) {

  .by-contact-bar-qr:hover .by-qr-pop,
  .by-qr-trigger:focus-visible+.by-qr-pop {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
}

/* ---------- 二维码大图弹窗 ---------- */
.by-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(21, 19, 14, 0.66);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s var(--by-ease), visibility 0.26s var(--by-ease);
}

.by-qr-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.by-qr-modal-card {
  position: relative;
  width: min(320px, 78vw);
  padding: 16px 16px 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(21, 19, 14, 0.3);
  text-align: center;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.28s var(--by-ease);
}

.by-qr-modal.is-open .by-qr-modal-card {
  transform: none;
}

.by-qr-modal-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.by-qr-modal-card b {
  display: block;
  margin-top: 14px;
  color: var(--by-ink);
  font-size: 15px;
  font-weight: 700;
}

.by-qr-modal-card small {
  display: block;
  margin-top: 4px;
  color: var(--by-muted);
  font-size: 12px;
  line-height: 1.6;
}

.by-qr-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--by-line);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--by-shadow-sm);
  color: var(--by-ink);
  cursor: pointer;
  transition: background 0.2s var(--by-ease), color 0.2s var(--by-ease);
}

.by-qr-modal-close:hover {
  background: var(--by-ink);
  color: #fff;
}

.by-qr-modal-close svg {
  width: 15px;
  height: 15px;
}

/* 弹窗打开时锁定页面滚动 */
body.by-qr-lock {
  overflow: hidden;
}

.by-mobile-bar {
  display: none;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1500px) {
  .by-brand-tag {
    display: none;
  }
}

/* 桌面导航收窄分两档，1150 以下直接切抽屉，不留空档 */
@media (max-width: 1400px) {
  .by-navbar-inner {
    gap: 16px;
  }

  .by-menu>li>a {
    padding: 12px 9px;
    font-size: 14px;
  }

  .by-nav-actions {
    gap: 10px;
  }
}

@media (max-width: 1280px) {
  .by-menu>li>a {
    padding: 12px 7px;
    font-size: 13.5px;
    gap: 4px;
  }

  .by-nav-plan {
    padding: 0 14px;
    font-size: 13px;
  }
}

/* ===== 抽屉模式：1150 及以下 ===== */
@media (max-width: 1150px) {
  .by-topbar-note {
    font-size: 11.5px;
  }

  .by-brand img {
    height: 42px;
  }

  .by-nav-toggle {
    display: flex;
  }

  .by-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    width: min(420px, 88vw);
    margin: 0;
    padding: 76px 22px 96px;
    overflow-y: auto;
    background: #fff;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s var(--by-ease);
  }

  .by-nav.is-open {
    transform: none;
  }

  .by-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .by-menu>li>a {
    justify-content: space-between;
    padding: 13px 12px;
    font-size: 16px;
  }

  .by-menu>li.is-active>a::after {
    display: none;
  }

  .by-sub {
    position: static;
    display: none;
    width: auto;
    margin: 0 0 8px 12px;
    padding: 2px 0 2px 8px;
    border: 0;
    border-left: 2px solid var(--by-gold-soft);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .by-sub::before {
    display: none;
  }

  /* 抽屉内展开/收起完全由 JS 切换 is-open（不能带 :focus-within，
     否则点击后链接获得焦点，面板会一直保持展开无法收起） */
  .by-menu>li.is-open>.by-sub {
    display: block;
    transform: none;
  }

  /* 基准是 rotate(45deg)，展开时再加 180° 才是“向上”，直接写 180° 会变成拐角 */
  .by-menu>li.is-open>a .by-caret {
    transform: rotate(225deg);
  }

  .by-menu>li>a .by-caret {
    transition: transform 0.25s var(--by-ease);
  }

  .by-sub-grid {
    display: block;
  }

  .by-sub-group {
    margin-bottom: 10px;
  }

  .by-sub-title {
    padding: 4px 10px;
    border-bottom: 0;
    font-size: 12px;
  }

  .by-sub-list {
    display: block;
  }

  .by-sub-list a {
    padding: 8px 10px;
    font-size: 14px;
  }

  .by-nav-close {
    display: flex;
  }

  .by-nav-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .by-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .by-container {
    width: calc(100% - 32px);
  }

  .by-topbar-inner {
    height: 34px;
  }

  .by-topbar-note {
    max-width: 68%;
    font-size: 11px;
  }

  .by-topbar-hours {
    display: none;
  }

  .by-topbar-links {
    font-size: 11.5px;
  }

  .by-navbar-inner {
    height: 66px;
    gap: 12px;
  }

  .by-brand img {
    height: 40px;
  }

  /* 手机端导航栏里除「免费获取方案」外，其余 .by-btn 一律隐藏，腾出宽度 */
  .by-nav-actions .by-btn:not(.by-nav-plan) {
    display: none;
  }

  /* 手机端「免费获取方案」保持可见（点击直接拨号），只把尺寸收紧 */
  .by-nav-plan {
    display: inline-flex;
    height: 36px;
    padding: 0 13px;
    font-size: 12.5px;
  }

  .by-section {
    padding: 56px 0;
  }

  .by-footer {
    padding-top: 48px;
  }

  .by-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 32px;
  }

  .by-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .by-fabs {
    display: none;
  }

  .by-mobile-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 95;
    display: flex;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--by-line);
    background: #fff;
    box-shadow: 0 -8px 24px rgba(21, 19, 14, 0.08);
  }

  .by-mobile-bar a,
  .by-mobile-bar button {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 58px;
    color: var(--by-ink-2);
    font-size: 12px;
  }

  .by-mobile-bar a.by-mobile-bar-main {
    flex: 1.3;
    background: linear-gradient(135deg, #c9a55e 0%, #a9833f 100%);
    color: #fff;
  }

  .by-mobile-bar svg {
    width: 18px;
    height: 18px;
  }

  body.by-body {
    padding-bottom: 58px;
  }
}