/* ============================================================
   Megatex Blanket — 基础样式
   色板来源：导航栏2无图片版.psd 采样（images/_palette.json）
   ============================================================ */
:root {
  --ink: #2c2a25;        /* 主深色：按钮/深色区块/标题（PSD: 矩形7、矩形21） */
  --ink-2: #1f1d19;      /* 深色 hover */
  --text: #3c3426;       /* 正文（PSD: Home 文字色） */
  --muted: #6f6a5f;      /* 次级文字 */
  --bg: #f9f9f9;         /* 页面底色（PSD: 矩形1） */
  --surface: #ffffff;    /* 卡片面 */
  --line: #e8e4dc;       /* 描边 */
  --radius: 8px;
  --shadow: 0 8px 30px rgba(44, 42, 37, .10);
  --container: 1240px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--ink); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; font-weight: 500; }

/* ---- 布局 ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 32px; letter-spacing: .5px; }
.section-head h2::after {
  content: ""; display: block; width: 48px; height: 3px;
  background: var(--ink); margin: 14px auto 0;
}

/* ---- 无障碍辅助 ---- */
.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;
}
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---- 通用按钮 ---- */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--ink-2); color: #fff; transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

/* ============================================================
   页脚（PSD：浅灰 #ebebeb 底 + 深色文字）
   ============================================================ */
.footer { background: #ebebeb; color: var(--text); margin-top: auto; }
.footer .cols {
  display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1.6fr;
  gap: 30px; padding: 26px 0 20px;
}
.footer h4 { color: var(--ink); font-size: 16px; margin-bottom: 18px; letter-spacing: .5px; }
.footer a { color: var(--text); }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-brand img { width: 74px; margin-bottom: 16px; }
.footer-brand .slogan { font-size: 14px; max-width: 300px; margin-bottom: 14px; }
.footer-brand .sister { font-size: 13px; margin-bottom: 18px; }
.footer-brand .sister strong {
  display: block; font-size: 13px; font-weight: 700; color: var(--ink);
  letter-spacing: .5px; margin-bottom: 10px; line-height: 1.4;
}
.footer-brand .sister span { display: block; line-height: 1.7; }
.footer-brand .sister a { font-weight: 400; }
.footer .social { display: flex; gap: 10px; }
.footer .share-icon {
  width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; font-family: Georgia, serif; color: var(--ink);
  transition: background .2s, color .2s;
}
.footer .share-icon:hover { background: var(--ink); color: #fff; text-decoration: none; }
.footer-nav ul li { margin-bottom: 0px; font-size: 14px; }
.footer-contact h4 { font-size: 16px; }
.footer-contact address { font-style: normal; font-size: 14px; line-height: 1.8; }
.footer-contact address span { display: block; margin-bottom: 0px; }
.footer-contact address p { margin-top: 14px; line-height: 1; }
.footer-contact address > a { display: block; margin-top: 6px; }
.footer-bottom {
  border-top: 1px solid #d8d4cd;
  padding: 18px 0; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px;
}

/* ---------- 浮动 WhatsApp 询盘按钮（PSD 右下角） ---------- */
.float-wa {
  position: fixed; right: 22px; bottom: 26px; z-index: 1400;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 52px; padding: 9px 4px 7px;
  background: var(--ink); color: #fff; border-radius: 999px;
  box-shadow: 0 6px 22px rgba(44,42,37,.35);
  transition: background .2s, transform .2s;
}
.float-wa:hover { background: var(--ink-2); color: #fff; transform: translateY(-3px); }
.float-wa svg { width: 22px; height: 22px; fill: #fff; }
.float-wa span { font-size: 10px; font-weight: 600; letter-spacing: .3px; white-space: nowrap; }

/* ---- 响应式 ---- */
@media (max-width: 992px) {
  .footer .cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 56px 0; }
}
@media (max-width: 576px) {
  .footer .cols { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 26px; }
}

/* ---- 减少动效偏好（无障碍） ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
