/* ============================================================
   header-footer-new.css — 独立样式文件，不受 top_flex.css 影响
   来源：参考页 index(2).html 的头部 + 底部样式
   用途：新头部玻璃拟态 + hover下划线 + 底部深色风格 + 响应式
   ============================================================ */

/* 全局锁定根字体（index.css 仅 >=992px 设了 16px，<992px 缺失导致 rem 膨胀） */
@media screen and (max-width: 991px) {
  html { font-size: 16px !important; }
}

/* 统一基础 reset：productcenter 由 index.css 提供了 *{margin:0;padding:0;box-sizing}，
 * 但 contact 等仅加载 header-footer-new.css 的页面缺少该 reset，导致 body 默认 8px margin、
 * 元素盒模型不一致，从而出现头部/内容轻微错位。这里统一补齐，保证各页面渲染一致。 */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }

/* 关闭旧版窄屏逻辑：<768px 隐藏桌面内容 + 显示空白 mobile-content → 白屏。
 * 现改用新的响应式头部/底部（汉堡菜单等），PC 内容在窄屏正常显示。
 * 注意：必须排除所有 display:none 的弹窗（loginOutPop/loginPop/editPassword/editPhone 等），
 *       否则 !important 会强制覆盖它们的隐藏状态导致页面一加载就弹出。 */
@media screen and (max-width: 767px) {
  body > div:not(.mobile-content):not(.loginOutPop):not(.loginPop):not(.editPassword):not(.editPhone):not([id^="custPop"]) { display: block !important; }
  .desktop-content { display: block !important; }
  .mobile-content { display: none !important; }
}

/* ===== Design Tokens ===== */
:root {
  --hf-red: #c62828;
  --hf-red-dark: #b71c1c;
  --hf-red-light: #e53935;
  --hf-red-glow: rgba(198, 40, 40, 0.35);
  --hf-dark: #1a1a2e;
  --hf-gray-50: #fafafa;
  --hf-gray-100: #f5f5f5;
  --hf-gray-200: #eee;
  --hf-gray-400: #bdbdbd;
  --hf-gray-500: #9e9e9e;
  --hf-gray-600: #757575;
  --hf-gray-700: #616161;
  --hf-white: #fff;
  --hf-grad-red: linear-gradient(135deg, #c62828, #d32f2f 40%, #e53935);
  --hf-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --hf-shadow-md: 0 4px 12px rgba(0,0,0,0.07);
  --hf-shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
  --hf-trans: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --hf-max-w: 1280px;
}


/* ==================== HEADER ==================== */

.hf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--hf-trans);
}

.hf-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--hf-shadow-lg);
}

.hf-header-inner {
  max-width: var(--hf-max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 72px;
  /* 防止 flex 子元素溢出导致右侧按钮被推出视口 */
  overflow: hidden;
}

/* Logo — 允许收缩，避免在窄屏撑开容器 */
.hf-logo { display: flex; align-items: center; min-width: 0; overflow: hidden; }
.hf-logo img { height: 38px; width: auto; }

/* Nav */
.hf-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.hf-nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--hf-gray-600);
  position: relative;
  padding: 6px 0;
  transition: color var(--hf-trans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

/* Hover 下划线动画 */
.hf-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--hf-grad-red);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.hf-nav-link:hover,
.hf-nav-link.active {
  color: var(--hf-red);
}

.hf-nav-link:hover::after,
.hf-nav-link.active::after {
  width: 100%;
}

/* 产品下拉面板：样式与交互完全由 nav-product.css + nav-product.js 接管 */
/* 此处仅确保 nav-product__trigger 在 hf-nav 中正确对齐 */
.hf-nav .nav-product__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* 隐藏 nav-product.css 的 ::after 箭头（改用真实 DOM .hf-arrow） */
.hf-nav .nav-product__trigger::after {
  display: none !important;
}

/* 箭头 — 用真实 span 放在文字右侧 */
.hf-nav .hf-arrow {
  display: inline-block;
  width: 8px;
  height: 5px;
  margin-left: 6px;
  flex-shrink: 0;
  background: url("/image/productcenter/xiala_2.png") no-repeat center / contain;
  transition: transform 0.3s ease, background 0.3s ease;
}

.hf-nav .nav-product__trigger:hover .hf-arrow,
.hf-nav .nav-product__trigger.is-active .hf-arrow {
  background: url("/image/productcenter/xiala.png") no-repeat center / contain;
  transform: rotate(180deg);
}

/* hover 下划线 — 复用 ::after（已覆盖 nav-product.css 的箭头） */
.hf-nav .nav-product__trigger::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--hf-grad-red);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.hf-nav .nav-product__trigger:hover::before,
.hf-nav .nav-product__trigger.active::before {
  width: 100%;
}

/* 面板 top 适配新头部高度 72px（原 nav-product.css 为 78px） */
.nav-product__panel {
  top: 72px !important;
}

/* Actions (登录/注册) — flex-shrink:0 防止窄屏被压缩隐藏 */
.hf-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* guest 内两个按钮之间的间隙（大屏默认 14px，移动端由 JS 覆写为 6px） */
.hf-actions-guest {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.hf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--hf-trans);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.hf-btn-outline {
  background: transparent;
  border: 1.5px solid #e0e0e0;
  color: #444;
}

.hf-btn-outline:hover {
  border-color: var(--hf-red);
  color: var(--hf-red);
  background: rgba(198, 40, 40, 0.04);
}

.hf-btn-primary {
  background: var(--hf-red);
  color: #fff;
  border: 1.5px solid transparent;
  box-shadow: 0 2px 8px var(--hf-red-glow);
}

.hf-btn-primary:hover {
  background: var(--hf-red-dark);
  box-shadow: 0 4px 14px rgba(198, 40, 40, 0.35);
  transform: translateY(-1px);
}

/* ===== 已登录：用户头像 + 名字 + 下拉面板（默认隐藏，由 JS 按认证状态切换） ===== */
.hf-actions-user {
  display: none;
  align-items: center;
  gap: 12px;
}

.hf-kzt-btn {
  padding: 6px 16px;
  font-size: 0.82rem;
}

.hf-user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 10px 4px 6px;
  border-radius: 50px;
  transition: background 0.25s;
}

.hf-user-profile:hover {
  background: rgba(0, 0, 0, 0.04);
}

.hf-user-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(198, 40, 40, 0.08);
  color: var(--hf-red);
  font-size: 16px;
}

.hf-login-name {
  font-size: 0.88rem;
  color: var(--hf-dark);
  font-weight: 500;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 用户下拉面板 */
.hf-user-dropdown {
  position: fixed;
  top: 72px;
  right: 24px;
  width: 340px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.05);
  z-index: 1003;
  overflow: hidden;
}

.hf-user-drop-title {
  padding: 18px 20px 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hf-dark);
}

.hf-user-drop-account {
  display: flex;
  gap: 14px;
  padding: 8px 20px 16px;
}

.hf-user-drop-avatar .hf-user-icon {
  width: 44px;
  height: 44px;
  font-size: 22px;
  flex-shrink: 0;
  background: #f0f0f0;
  color: #999;
}

.hf-user-drop-fields {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--hf-gray-600);
}

.hf-user-label {
  color: var(--hf-gray-400);
}

.hf-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hf-copy-btn {
  cursor: pointer;
  opacity: 0.4;
  flex-shrink: 0;
  margin-left: 8px;
  transition: opacity 0.2s;
}
.hf-copy-btn img { width: 14px; height: 14px; }
.hf-copy-btn:hover { opacity: 0.75; }

.hf-user-line {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 0 20px;
}

.hf-user-drop-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 14px;
  font-size: 0.84rem;
}

/* 本月消费合计：与上方账户余额左对齐 */
#total-consumption {
  padding: 0 20px 12px;
  font-size: 0.82rem;
}

.hf-balance-val {
  color: var(--hf-red);
  font-weight: 600;
}

.hf-recharge-btn {
  padding: 4px 14px;
  border: 1px solid var(--hf-red);
  border-radius: 20px;
  color: var(--hf-red);
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  transition: all 0.2s;
}
.hf-recharge-btn:hover { background: var(--hf-red); color: #fff; }

.hf-link {
  color: var(--hf-red);
  cursor: pointer;
}
.hf-link:hover { text-decoration: underline; }

.hf-user-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 14px 20px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.hf-user-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.78rem;
  color: var(--hf-gray-600);
}
.hf-user-action-item:hover { background: rgba(0, 0, 0, 0.03); }
.hf-user-action-item img { width: 22px; height: 22px; opacity: 0.55; }
.hf-user-logout:hover { color: var(--hf-red); }
.hf-user-logout:hover img { opacity: 0.8; }

/* Mobile menu button — flex-shrink:0 防止被压缩 */
.hf-mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.hf-mobile-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hf-mobile-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hf-mobile-btn.active span:nth-child(2) {
  opacity: 0;
}
.hf-mobile-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ==================== MOBILE MENU ==================== */

.hf-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.hf-mobile-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media screen and (max-width: 1024px) {
  .hf-header-inner { padding: 0 16px; }
  .hf-nav { gap: 20px; }
  .hf-nav-link { font-size: 0.88rem; }

  /* 锁定头部字体基准，防止 <992px 时 index.css 未设 html font-size 导致 rem 膨胀 */
  .hf-header { font-size: 14px; }
  .hf-actions-user { font-size: 14px; }

  /* 隐藏桌面 nav，改为下拉面板 */
  .hf-nav {
    position: absolute !important;
    top: 72px;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: calc(80vh - 72px);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 20px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
    border-radius: 0 0 16px 16px;
    overflow-y: auto;
    z-index: 1002;
    box-sizing: border-box;
  }

  .hf-nav.open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .hf-nav-link {
    width: 100%;
    max-width: 360px;
    text-align: center;
    padding: 14px 20px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    justify-content: center;
    margin: 0 auto;
  }

  /* 移动端产品及服务也要居中 */
  .hf-nav .nav-product__trigger {
    justify-content: center;
  }

  /* 移动端箭头扩大触摸热区（视觉不变，用 ::after 透明层扩大点击区） */
  .hf-nav .nav-product__trigger .hf-arrow {
    position: relative;
    cursor: pointer;
  }
  .hf-nav .nav-product__trigger .hf-arrow::after {
    content: '';
    position: absolute;
    top: -10px; right: -8px; bottom: -10px; left: -8px;
  }

  /* 移动端下划线居中 */
  .hf-nav-link::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .hf-nav-link:hover::after,
  .hf-nav-link.active::after {
    width: 60px;
  }

  .hf-mobile-btn { display: flex !important; }
  /* 移动端隐藏控制台按钮 */
  #login-right-2-kzt { display: none !important; }

  /* 确保 header-inner 在移动端保持 flex 布局（防止被外部样式破坏） */
  .hf-header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* 移动端登录/注册按钮保留显示，通过缩小间距避免与汉堡菜单重叠 */
  #login-right-1 {
    display: flex !important;
    gap: 6px !important;
    font-size: 13px !important;
  }
  /* 已登录用户头像保留显示 */
  #login-right-2 {
    display: flex !important;
  }

  /* 移动端 actions 区域保险：防止被任何外部样式隐藏或压缩 */
  .hf-actions {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* ===== 移动端：产品面板改为内嵌手风琴（点击展开，非 hover） ===== */
  /* 移动端完全禁用 hover 触发，仅允许 click */
  .nav-product__trigger {
    pointer-events: auto !important;
  }

  /* 用 .hf-nav 前缀提高选择性，确保覆盖后加载的 nav-product.css 中
     .nav-product__panel.is-open { transform: translateX(-50%) !important } */
  .hf-nav .nav-product__panel {
    position: static !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    transform: none !important;
    border-radius: 0 !important;
    border-top: none !important;
    box-shadow: none !important;
    background: rgba(0, 0, 0, 0.02);
    padding: 0 !important;
    margin: 0 !important;
    display: none;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
  }

  /* 移动端强制覆盖 nav-product.js 的 is-open 样式 */
  .hf-nav .nav-product__panel.is-open {
    display: block !important;
    transform: none !important;
    position: static !important;
  }

  /* 移动端面板内容紧凑化 + 全宽居中 */
  .hf-nav .nav-product__inner {
    padding: 12px 20px 16px !important;
    max-width: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  .hf-nav .nav-product__toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
  }

  /* 覆盖 nav-product.css ≤900px 的 flex-direction:column + align-items:flex-start */
  .hf-nav .nav-product__sidebar {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
  }

  .hf-nav .nav-product__search {
    flex: 1 1 auto !important;
    min-width: 0;
    width: auto !important;
  }

  .hf-nav .nav-product__tags {
    flex-wrap: wrap !important;
    gap: 6px !important;
    justify-content: center !important;
    width: 100% !important;
  }

  /* 产品网格：移动端单列全宽 */
  .hf-nav .nav-product__grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .hf-nav .nav-product__item {
    padding: 10px 14px !important;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 768px) {
  .hf-nav-link { font-size: 0.95rem; padding: 12px 16px; }
  .hf-nav { padding: 16px 20px 20px; }
  .hf-header-inner { padding: 0 12px; }
  .hf-logo img { height: 32px; }

  /* 移动端用户下拉面板：贴近屏幕边缘，宽度自适应 */
  .hf-user-dropdown {
    top: 64px;
    right: 8px;
    left: 8px;
    width: auto;
    max-width: none;
    border-radius: 10px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
}

/* 超小屏适配（iPhone SE 375px / iPhone XR 414px 等） */
@media screen and (max-width: 480px) {
  .hf-header-inner { padding: 0 8px; }
  .hf-logo img { height: 28px; }

  /* 用户信息区紧凑化 */
  .hf-user-profile { gap: 4px; padding: 2px 6px 2px 4px; }
  .hf-login-name { max-width: 70px; font-size: 0.82rem; }
  .hf-user-icon { font-size: 14px; }

  /* 登录/注册按钮缩小 */
  .hf-btn-outline, .hf-btn-primary { padding: 5px 10px; font-size: 0.78rem; }

  /* 下拉面板全宽贴边 */
  .hf-user-dropdown {
    top: 60px;
    right: 0;
    left: 0;
    width: 100%;
    border-radius: 0 0 12px 12px;
    max-height: calc(100vh - 60px);
  }
  .hf-user-drop-title { padding: 14px 16px 8px; font-size: 0.9rem; }
  .hf-user-drop-account { padding: 6px 16px 12px; }
  .hf-user-drop-fields { font-size: 0.78rem; line-height: 1.8; }
  .hf-user-drop-balance { padding: 6px 16px 10px; font-size: 0.8rem; }
  #total-consumption { padding: 0 16px 10px; font-size: 0.78rem; }
}

/* 移动端确认弹窗（替代 layui layer，解决按钮点不了的问题） */
.hf-confirm-mask {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}
.hf-confirm-mask.show { display: flex; }
.hf-confirm-box {
  width: 86%;
  max-width: 340px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.2);
}
.hf-confirm-title {
  padding: 16px 20px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}
.hf-confirm-body {
  padding: 16px 20px 20px;
  font-size: 0.92rem;
  color: #666;
  line-height: 1.6;
}
.hf-confirm-btns {
  display: flex;
  border-top: 1px solid #eee;
}
.hf-confirm-btn {
  flex: 1;
  padding: 13px 0;
  border: none;
  background: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.hf-confirm-btn:not(:last-child) { border-right: 1px solid #eee; }
.hf-confirm-cancel { color: #666; }
.hf-confirm-cancel:active { background: #f5f5f5; }
.hf-confirm-ok { color: var(--hf-red, #c62828); font-weight: 500; }
.hf-confirm-ok:active { background: #fef0f0; }


/* ==================== FOOTER ==================== */

.hf-footer {
  background: #242424;
  color: #fff;
  text-align: center;
}

.hf-footer-inner {
  max-width: var(--hf-max-w);
  margin: 0 auto;
}

.hf-footer-links {
  display: flex;
  justify-content: space-around;
  padding: 48px 32px;
  text-align: left;
  gap: 20px;
}

.hf-footer-col {
  flex: 1;
  min-width: 0;
}

.hf-footer-col h4 {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 16px;
}

/* 产品列 */
.hf-footer-products {
  display: flex;
  gap: 40px;
}

.hf-footer-products-col a,
.hf-footer-products-col span {
  display: block;
  font-size: 0.875rem;
  color: #fff;
  margin-top: 10px;
  transition: color 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.hf-footer-products-col a:hover,
.hf-footer-products-col span:hover {
  color: #ee4e41;
}

/* 资讯列 */
.hf-footer-article-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
}

.hf-footer-article-item a {
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  font-size: 0.875rem;
  color: #fff;
  transition: color 0.3s ease;
  text-decoration: none;
}

.hf-footer-article-item a:hover {
  color: #ee4e41;
}

.hf-footer-article-time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  margin-left: 8px;
}

/* 分隔线 */
.hf-footer-divider {
  width: 1px;
  min-height: 233px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

/* 联系方式 */
.hf-footer-contact p {
  margin-top: 12px;
  font-size: 0.875rem;
}

/* 二维码 */
.hf-footer-qrcodes {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.hf-footer-qr-item {
  width: 110px;
  height: 126px;
  background: #fff;
  border-radius: 8px;
  padding: 8px 8px 14px;
  display: flex;
  flex-direction: column;
}

.hf-footer-qr-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hf-footer-qr-item span {
  font-size: 11px;
  color: #000;
  text-align: center;
  margin-top: 2px;
  line-height: 1.2;
}

/* 版权栏 — 与上方内容等宽对齐 */
.hf-footer-copyright {
  /* max-width: var(--hf-max-w); */
  margin: 0 auto;
  background: #e43f36;
  color: #fff;
  font-size: 0.8rem;
  line-height: 1;
  padding: 18px 24px;
  text-align: center;
}

.hf-footer-copyright a {
  color: #fff;
  text-decoration: none;
}

.hf-footer-copyright a:hover {
  text-decoration: underline;
}


/* ==================== FOOTER RESPONSIVE ==================== */

@media screen and (max-width: 1024px) {
  .hf-footer-links {
    flex-wrap: wrap;
    gap: 32px;
  }
  .hf-footer-divider { display: none; }
}

@media screen and (max-width: 768px) {
  .hf-footer-links {
    flex-direction: column;
    gap: 32px;
    padding: 40px 24px;
  }
  .hf-footer-qrcodes { justify-content: flex-start; }
  .hf-footer-products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
  }
}


/* ==================== 未登录提示弹窗（toProduct 使用） 与 bottom.css 一致 ==================== */

/* 弹窗打开时禁止页面滚动 */
.body { overflow: hidden; }

.loginPop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
}

.loginPop .loginPop_concent {
  margin-top: 100px;
  width: 416px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
}

.loginPop .loginPop_concent .loginPop_concent_1 {
  display: flex;
  align-items: center;
  margin-top: 20px;
  margin-left: 24px;
}

.loginPop .loginPop_concent .loginPop_concent_1 .loginPop_concent_2 {
  display: inline-block;
  width: 22px;
  height: 22px;
  color: #faad14;
  margin-top: 1px;
}

.loginPop .loginPop_concent .loginPop_concent_1 .loginPop_concent_2 svg {
  width: 100%;
  height: 100%;
}

.loginPop .loginPop_concent .loginPop_concent_1 .loginPop_concent_3 {
  font-size: 16px;
  color: rgba(0, 0, 0, 0.88);
  font-weight: 600;
  margin-left: 12px;
}

.loginPop .loginPop_concent .loginPop_concent_4 {
  display: flex;
  margin-top: 10px;
  margin-left: 58px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.88);
}

.loginPop .loginPop_concent .loginPop_concent_btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
}

.loginPop .loginPop_concent .loginPop_concent_btn .loginPop_concent_btn_1 {
  width: 64px;
  height: 32px;
  font-size: 14px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  background-color: #ffffff;
  border: 1px solid #d9d9d9;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  margin-right: 8px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.88);
}

.loginPop .loginPop_concent .loginPop_concent_btn .loginPop_concent_btn_1:hover {
  color: #f06c60;
  border: 1px solid #f06c60;
}

.loginPop .loginPop_concent .loginPop_concent_btn .loginPop_concent_btn_2 {
  width: 88px;
  font-size: 14px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 6px;
  color: #fff;
  background-color: #e43f36;
  box-shadow: 0 2px 0 rgba(255, 55, 5, 0.06);
  margin-right: 24px;
  cursor: pointer;
}


/* ==================== 退出登录确认弹窗（loginOutPop） 与 bottom.css 一致 ==================== */

.loginOutPop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
}

.loginOutPop .loginPop_concent {
  margin-top: 100px;
  width: 416px;
  height: 138px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
}


/* ==================== 弹窗（修改密码/修改手机号） 与原版 top.css 一致 ==================== */

.editPassword,
.editPhone {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
}

.editPassword_1,
.editPhone_1 {
  margin-top: 100px;
  width: 520px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow:
    0 6px 16px 0 rgba(0, 0, 0, 0.08),
    0 3px 6px -4px rgba(0, 0, 0, 0.12),
    0 9px 28px 8px rgba(0, 0, 0, 0.05);
}

.editPassword_1 { height: 287px; }
.editPhone_1 { height: 348px; }

.voucherCenter_2 {
  width: 90%;
  margin-top: 20px;
  margin-left: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.voucherCenter_3 {
  color: rgba(0, 0, 0, 0.88);
  font-weight: 600;
  font-size: 16px;
}

.voucherCenter_4 {
  margin-top: 3px;
  cursor: pointer;
}

.input_password {
  height: 32px;
  margin-left: 30px;
  margin-top: 25px;
  display: flex;
  align-items: center;
}

/* 标签区：星号 + 文字保持同行 */
.input-label {
  display: flex;
  align-items: center;
}

.input_password_1 {
  color: #ff4d4f;
  font-size: 20px;
  margin-right: 4px;
  margin-top: 8px;
}

.input_password_2 {
  color: rgba(0, 0, 0, 0.88);
  font-size: 14px;
  font-weight: 500;
}

.input_password_3,
.input_password_4 {
  width: 315px;
  height: 32px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid #d9d9d9;
}

.input_password_4 {
  background-color: rgba(0, 0, 0, 0.04);
}

.input_password_3 input,
.input_password_4 input {
  width: 90%;
  margin-left: 10px;
  border: none;
  outline: none;
}

.loginPop_concent_btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 22px;
}

.loginPop_concent_btn_1 {
  width: 64px;
  height: 32px;
  font-size: 14px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  background-color: #ffffff;
  border: 1px solid #d9d9d9;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  margin-right: 8px;
  font-weight: 400;
}

.loginPop_concent_btn_1:hover {
  color: #f06c60;
  border: 1px solid #f06c60;
}

.loginPop_concent_btn_2 {
  width: 64px;
  font-size: 14px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 6px;
  color: #fff;
  background-color: #e43f36;
  box-shadow: 0 2px 0 rgba(255, 55, 5, 0.06);
  margin-right: 24px;
  cursor: pointer;
  font-weight: 400;
}

/* 修改手机号弹窗特有样式 */
.input_yzm {
  height: 32px;
  margin-left: 30px;
  margin-top: 25px;
  display: flex;
  align-items: center;
}

.input_yzm_1 {
  width: 154px;
  height: 32px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid #d9d9d9;
}

.input_yzm_1 input {
  width: 90%;
  margin-left: 10px;
  border: none;
  outline: none;
}

.input_yzm_2 {
  width: 105px;
  height: 35px;
  margin-left: 10px;
}

.input_yzm_2 img {
  width: 100%;
  height: 100%;
}

.input_yzm_3 {
  width: 102px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid #d9d9d9;
  color: #000;
  margin-left: 10px;
  cursor: pointer;
}

.input_yzm_3:hover {
  color: #e43f36;
  border: 1px solid #e43f36;
}


/* ==================== 弹窗显示动画（避免生硬） ==================== */
/* 遮罩淡入 + 内容框缩放下滑，.show() 由 display:none 切到 flex 时自动触发 */
.loginPop,
.loginOutPop,
.editPassword,
.editPhone {
  animation: hf-mask-in 0.28s ease forwards;
}

.loginPop .loginPop_concent,
.loginOutPop .loginPop_concent,
.editPassword_1,
.editPhone_1 {
  animation: hf-box-in 0.34s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
}

@keyframes hf-mask-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hf-box-in {
  from {
    opacity: 0;
    transform: translateY(-24px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
