/* ==========================================================================
   Taimei — 新版纯黑页脚（全屏宽度黑色背景）
   需在页面自身 style.css 之后引入，以覆盖旧版页脚规则。
   ========================================================================== */

.footer {
  position: relative;
  height: 468px;
  background: #000000;
  /* 不能裁剪：::before 需要以 100vw 全宽铺黑，裁剪会把黑色限制在 1440px 内容区 */
  overflow: visible;
}

/* 黑色背景扩展到全屏宽度 */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: #000000;
  z-index: 0;
}

/* Logo（仅保留太美主 logo） */
.footer__brands .footer__logo,
.footer__logo {
  position: absolute;
  top: 207px;
  left: 158px;
  width: 149px;
  height: 54px;
  z-index: 1;
}

.footer__brand-2 {
  display: none;
}

/* 4 列导航 */
.footer__nav {
  position: absolute;
  top: 100px;
  left: 409px;
  display: flex;
  gap: 20px;
  z-index: 1;
}

.footer__nav::before,
.footer__info::before {
  content: "";
  position: absolute;
  top: -16px;
  left: -60px;
  width: 1px;
  height: 300px;
  background: #ffffff;
}

.footer__nav-col {
  display: flex;
  flex-direction: column;
}

.footer__nav-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 25px;
  color: #ffffff;
}

.footer__nav-col a {
  font-size: 12px;
  font-weight: 300;
  line-height: 25px;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.footer__nav-col a:hover {
  opacity: 0.8;
}

/* 右侧地址 + 社交 + 二维码 */
.footer__info {
  position: absolute;
  top: 100px;
  left: 1027px;
  width: 255px;
  z-index: 1;
}

.footer__address {
  margin: 0;
  font-size: 12px;
  line-height: 25px;
  color: #ffffff;
}

.footer__address strong,
.footer__address span {
  display: block;
}

.footer__address strong {
  font-weight: 700;
}

.footer__address span {
  font-weight: 300;
}

/* 社交图标：设计稿 (1027,358)，行内间距 25px */
.footer__social {
  position: absolute;
  top: 258px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 25px;
}

/* 加一级 .footer__social，避免被旧页面的 .footer__social a 规则覆盖 */
.footer__social .footer__social-btn {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.footer__social .footer__social-btn:hover {
  opacity: 0.8;
}

.footer__social-btn img {
  display: block;
}

/* 各平台图标尺寸（设计稿实测） */
.footer__social-btn--wechat img   { width: 29px; height: 24px; }
.footer__social-btn--linkedin img { width: 26px; height: 24px; }
.footer__social-btn--toutiao img  { width: 24px; height: 24px; }
.footer__social-btn--baijiahao img{ width: 24px; height: 24px; }
.footer__social-btn--penguin img  { width: 23px; height: 25px; }
.footer__social-btn--zhihu img    { width: 24px; height: 24px; }
.footer__social-btn--xueqiu img   { width: 26px; height: 26px; }

.footer__wechat {
  position: relative;
}

/* 微信二维码气泡：设计稿 (945,234) 190×100，白底 + 底部下三角，默认隐藏点击展开 */
.footer__wechat-tip {
  position: absolute;
  left: -82px;
  bottom: calc(100% + 24px);
  display: flex;
  align-items: center;
  width: 190px;
  height: 100px;
  padding: 10px 8px 10px 10px;
  background: #ffffff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 10;
}

.footer__wechat.is-open .footer__wechat-tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 气泡底部箭头：31×19，探出 12px，对准微信图标 */
.footer__wechat-tip::after {
  content: "";
  position: absolute;
  left: 80px;
  bottom: -12px;
  width: 31px;
  height: 19px;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* 选择器加一级 .footer__social，避免被旧页面的 .footer__social img 规则覆盖 */
.footer__social .footer__wechat-qr {
  flex: none;
  width: 80px;
  height: 80px;
}

.footer__wechat-text {
  flex: 1;
  margin: 0 0 0 8px;
  font-size: 10px;
  line-height: 14px;
  color: #000000;
  white-space: pre-line;
}

/* 返回顶部 */
.footer__badge {
  position: absolute;
  top: 99px;
  left: 1320px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 1;
}

.footer__badge img {
  display: block;
  width: 100%;
  height: 100%;
}

/* 底部版权（设计稿中该行为居中，左右留白 71px/73px 对称） */
.footer__legal {
  position: absolute;
  top: 416px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  z-index: 1;
}

.footer__legal span {
  position: static;
  font-size: 12px;
  line-height: 25px;
  color: #ffffff;
  white-space: nowrap;
}

/* Cookies 链接（打开 Cookie 偏好设置弹窗） */
.footer__legal a.footer__legal-link {
  position: static;
  font-size: 12px;
  line-height: 25px;
  color: #ffffff;
  white-space: nowrap;
  text-decoration: none;
}

.footer__legal a.footer__legal-link:hover {
  text-decoration: underline;
}

/* 兼容：旧结构残留元素隐藏 */
.footer__cube,
.footer__glow,
.footer__title,
.footer__contact {
  display: none;
}

/* ==========================================================================
   窄屏（≤1439px）：修正全屏黑底层的对齐
   .footer 位于固定 1440px 画布 .page 内；视口窄于 1440px 时 CSS 会把 .page
   的 margin:auto 解析为 0（不产生负边距），.page 左边缘落在 0 而非居中，
   上面 ::before 的 left:50% + translateX(-50%) 会让这层黑底整体右移
   G = 720 - 视口宽/2，左侧那段失去覆盖（目前靠 .footer 自身黑底兜住，属隐患）。
   这里直接钉在左边缘并清掉位移，使黑底严格铺满视口；
   ≥1440px 不命中本规则，PC 效果不变。
   ========================================================================== */

@media (max-width: 1439px) {
  .footer::before {
    left: 0;
    transform: none;
  }
}

/* ==========================================================================
   窄屏（≤979px）：微信二维码气泡改为左对齐，避免向左溢出视口
   ========================================================================== */

@media (max-width: 979px) {
  .footer__wechat-tip {
    left: 0;
    width: 170px;
    padding: 10px 8px 10px 10px;
  }

  .footer__wechat-tip::after {
    left: 12px;
  }
}
