/* =========================================================
   全站统一页壳（header / footer）
   独立命名空间 sh-*，不依赖 styles.css 或 styles-v2.css，
   在所有旧版内页上与首页视觉对齐（棕金 / 衬线 / 克制留白）
   ========================================================= */

:root {
  --sh-brown: #8B5E3C;
  --sh-brown-dark: #6B3F2A;
  --sh-gold: #C9A96E;
  --sh-ink: #2C2420;
  --sh-soft: #6E5F52;
  --sh-line: rgba(140, 122, 110, 0.18);
  --sh-bg: #FBF7F2;
  --sh-dark: #1C1410;
  --sh-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sh-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
}

/* ---------------- 顶部导航 ---------------- */
.sh-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(251, 247, 242, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--sh-line);
}

.sh-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.sh-header .sh-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.sh-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
  min-width: 0;
}

.sh-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--sh-brown), var(--sh-gold));
  color: #fff;
  font-family: var(--sh-serif);
  font-size: 17px;
  font-weight: 700;
  flex: 0 0 36px;
}

.sh-logo-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.sh-logo-text strong {
  font-family: var(--sh-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sh-ink);
}
.sh-logo-text small {
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--sh-soft);
  white-space: nowrap;
}

.sh-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.sh-nav a {
  position: relative;
  padding: 8px 12px;
  font-size: 14.5px;
  color: var(--sh-ink);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.sh-nav a:hover { color: var(--sh-brown); background: rgba(139, 94, 60, 0.06); }
.sh-nav a.is-active { color: var(--sh-brown); font-weight: 600; }
.sh-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--sh-gold);
  border-radius: 2px;
}

.sh-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}
.sh-nav + .sh-actions { margin-left: 0; }

.sh-phone {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sh-brown);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.sh-lang {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--sh-soft);
  text-decoration: none;
  border: 1px solid var(--sh-line);
  border-radius: 999px;
  padding: 4px 9px;
  transition: all 0.2s ease;
}
.sh-lang:hover { border-color: var(--sh-brown); color: var(--sh-brown); }

.sh-cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sh-brown), #A9764C);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(139, 94, 60, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sh-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(139, 94, 60, 0.26); }

.sh-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0 8px;
  border: 0;
  background: none;
  cursor: pointer;
}
.sh-burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--sh-ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.sh-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sh-burger.is-open span:nth-child(2) { opacity: 0; }
.sh-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- 移动端面板 ---------------- */
.sh-panel {
  position: fixed;
  inset: 0;
  z-index: 890;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 96px clamp(20px, 6vw, 40px) 32px;
  background: var(--sh-bg);
  overflow-y: auto;
}
.sh-panel.is-open { display: flex; }
.sh-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 4px;
  font-size: 18px;
  color: var(--sh-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--sh-line);
}
.sh-panel a:hover { color: var(--sh-brown); }
.sh-panel .sh-panel-cta {
  margin-top: 18px;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sh-brown), #A9764C);
  color: #fff;
  font-weight: 600;
}
.sh-panel .sh-panel-tel { color: var(--sh-brown); font-weight: 600; }

/* ---------------- 页脚 ---------------- */
.sh-footer {
  background: var(--sh-dark);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(48px, 6vw, 72px) 0 28px;
  margin-top: clamp(48px, 7vw, 88px);
  font-family: var(--sh-sans);
}
.sh-footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.sh-footer a:hover { color: var(--sh-gold); }

.sh-fgrid {
  display: grid;
  /* 自适应：4 列或 5 列（品牌 + 3/4 个栏目）都能排在一行 */
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.sh-fbrand { grid-column: span 2; }

.sh-fbrand .sh-logo { margin-bottom: 14px; }
.sh-fbrand .sh-logo-text strong { color: #fff; }
.sh-fbrand .sh-logo-text small { color: rgba(255, 255, 255, 0.5); }
.sh-fbrand p {
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 12px;
}
.sh-fbrand .sh-fcontact { font-size: 13.5px; line-height: 2; }
.sh-fbrand .sh-fcontact b { color: #fff; font-weight: 600; }

.sh-fcol-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 14px;
}
.sh-fcol a,
.sh-fcol p {
  display: block;
  font-size: 13.5px;
  line-height: 2.1;
  margin: 0;
}

.sh-fguides {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: clamp(20px, 3vw, 28px);
}
.sh-fguides-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.sh-fguides-links a { font-size: 13px; }

.sh-fbottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 24px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}
.sh-fbottom-links { display: flex; flex-wrap: wrap; gap: 16px; }

/* 桌面端右下有悬浮询盘胶囊，页脚底部链接留出空间，避免被压住 */
@media (min-width: 921px) {
  .sh-fbottom-links { padding-right: 210px; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .sh-nav a { padding: 8px 9px; font-size: 14px; }
  .sh-phone { display: none; }
}

@media (max-width: 920px) {
  .sh-header .sh-wrap { height: 64px; gap: 10px; }
  .sh-nav { display: none; }
  .sh-burger { display: flex; }
  .sh-logo-text small { display: none; }
  .sh-logo-text strong { font-size: 17px; }
  .sh-logo-mark { width: 32px; height: 32px; flex-basis: 32px; font-size: 15px; }
  .sh-cta { height: 34px; padding: 0 14px; font-size: 12.5px; }
  .sh-actions { gap: 8px; margin-left: auto; }
  .sh-fgrid { grid-template-columns: 1fr 1fr; }
  .sh-fbrand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .sh-fgrid { grid-template-columns: 1fr; gap: 22px; }
  .sh-fguides-links { gap: 6px 16px; }
  .sh-fbottom { flex-direction: column; align-items: flex-start; }
  .sh-cta { display: none; }
}

/* 旧版悬浮询盘按钮：改为紧凑胶囊，避免遮挡内容 */
.floating-contact {
  position: fixed;
  right: 16px !important;
  left: auto !important;
  bottom: 16px !important;
  min-width: 0 !important;
  max-width: 168px;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px !important;
  line-height: 1.3;
  font-size: 11px;
  box-shadow: 0 10px 26px rgba(139, 94, 60, 0.28) !important;
}
.floating-contact span { opacity: 0.85; font-size: 10.5px; letter-spacing: 0.02em; }
.floating-contact strong { font-size: 13px; font-weight: 600; }

@media (max-width: 560px) {
  .floating-contact { max-width: 132px; padding: 8px 12px !important; }
  .floating-contact strong { font-size: 12px; }
}
