/* ===== 公共底部板块样式 footer.css（深色主题） ===== */

/* 底部整体 */
.site-footer {
  background-color: #111111;
  color: #999999;
  font-size: 14px;
}

.ft-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* 版权栏外层：通栏宽度，横线两边到头 */


/* ----- 订阅区 ----- */
.ft-subscribe {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 0 56px;
  max-width: 100%;
  box-sizing: border-box;
}

.ft-subscribe-info {
  width: 35%;
}

.ft-subscribe-title {
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.ft-subscribe-title span {
  color: #E02B2B;
  font-weight: 900;
}

.ft-subscribe-desc {
  color: #777777;
  font-size: 14px;
  margin: 10px 0 0;
}

.ft-subscribe-form {
  display: flex;
  width: 38.5%;  /* 原55%减少30% */
  height: 48px;
  background: #2b2b2b;
  border-radius: 2px;
  overflow: hidden;
}

.ft-subscribe-form input[type="email"] {
  flex: 1;
  height: 100%;
  padding: 0 20px;
  font-size: 14px;
  color: #dddddd;
  background: transparent;
  border: 0;
  outline: none;
  box-shadow: none;
}

.ft-subscribe-form input[type="email"]::placeholder {
  color: #888888;
}

.ft-subscribe-form #footer-subscribe-btn {
  flex-shrink: 0;
  height: 100%;
  padding: 0 24px;
  background-color: #E02B2B;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.ft-subscribe-form #footer-subscribe-btn:hover {
  background-color: #c42424;
}

/* ----- 分隔线 ----- */
.ft-divider {
  border-top: 1px solid #2a2a2a;
}

/* ----- 主体区 ----- */
.ft-main {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 56px;
  padding: 56px 0 0;
}

.ft-brand {
  grid-column: span 4;
}

.ft-logo {
  height: 36px;
  width: auto;
  margin-bottom: 24px;
  display: block;
}

.ft-brand-desc {
  font-size: 14px;
  color: #888888;
  line-height: 1.8;
  max-width: 24rem;
  margin: 0;
}

.ft-links {
  grid-column: span 8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 64px;
  justify-items: end;
}

.ft-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 24px;
}

.ft-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ft-col ul li {
  margin-bottom: 14px;
}

.ft-col ul li:last-child {
  margin-bottom: 0;
}

.ft-col ul li span,
.ft-col ul li a {
  font-size: 14px;
  color: #999999;
  cursor: pointer;
  transition: color 0.2s ease;
  text-decoration: none;
}

.ft-col ul li span:hover,
.ft-col ul li a:hover {
  color: #ffffff;
}

/* ----- 服务保障条 ----- */
.ft-features {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  margin-top: 92px;
  margin-bottom: 95px;
  padding: 23px 0;
  background-color: transparent;
  border: 1px solid #333333;
  border-radius: 4px;
}

.ft-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #dddddd;
  flex: 1;
  padding: 0 40px;
}

/* 中间竖向分割线 */
.ft-feature + .ft-feature {
  border-left: 1px solid #333333;
}

.ft-feature svg {
  flex-shrink: 0;
  color: #dddddd;
}

.ft-feature-text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.ft-feature-text span {
  display: block;
  font-size: 13px;
  color: #999999;
}

/* ----- 版权栏 ----- */
.ft-bottom {
  border-top: 1px solid #2a2a2a;  /* 通栏横线，两边到头 */
  font-size: 14px;
  color: #666666;
  font-weight: 400;
}

.ft-bottom-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.ft-copyright {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ft-beian {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ft-beian img {
  width: 14px;
  height: auto;
  position: relative;
  top: -1px;
}

/* ICP 备案图标：下移与文字底部对齐 */
.ft-beian img.ft-icp-icon {
  top: 1px;
}

/* 右侧法律链接 */
.ft-legal {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.ft-legal a {
  color: #666666;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.ft-legal a:hover {
  color: #ffffff;
}

/* ----- 响应式适配 ----- */
@media (max-width: 1023px) {
  .ft-subscribe {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 48px 0 40px;
  }

  .ft-subscribe-info,
  .ft-subscribe-form {
    width: 100%;
  }

  .ft-main {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0 0;
  }

  .ft-brand,
  .ft-links {
    grid-column: span 1;
  }

  .ft-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    justify-items: start;
  }

  .ft-features {
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    margin-top: 76px;
    margin-bottom: 76px;
  }

  .ft-feature {
    width: 50%;
    flex: none;
    padding: 22px 24px;
  }

  /* 移动端每行两个：行内竖线 + 行间横线 */
  .ft-feature + .ft-feature {
    border-left: none;
  }

  .ft-feature:nth-child(even) {
    border-left: 1px solid #333333;
  }

  .ft-feature:nth-child(n+3) {
    border-top: 1px solid #333333;
  }

  /* 版权区：版权/工信部备案/公安网备各一行，法律链接单独一行 */
  .ft-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ft-copyright {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ft-legal {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .ft-subscribe-title {
    font-size: 24px;
  }

  .ft-links {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .ft-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ft-legal {
    margin-left: 0;
  }

  .ft-feature {
    width: 100%;
    padding: 20px 24px;
  }

  .ft-feature:nth-child(even) {
    border-left: none;
  }

  /* 单列：每项之间横线分隔 */
  .ft-feature:nth-child(n+2) {
    border-top: 1px solid #333333;
  }
}

/* 版权区链接：与文字同色、无悬停变化 */
.ft-copy-link {
  color: inherit;
  text-decoration: none;
}
.ft-copy-link:hover {
  color: inherit;
}

/* ===== 回到顶部按钮（全站通用） ===== */
button.back-top,
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  writing-mode: vertical-rl !important;
  text-orientation: mixed;
  letter-spacing: 0.18em;
  padding: 16px 9px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  color: #8a8a8a !important;
  background: transparent !important;
  border: 1px solid rgba(138, 138, 138, 0.7) !important;
  border-radius: 999px;
  box-shadow: none !important;
  display: none;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.back-top:hover {
  background: #E02B2B !important;
  border-color: #E02B2B !important;
  color: #ffffff !important;
  box-shadow: none !important;
  transform: translateY(-3px);
}
.back-top:active {
  transform: translateY(0);
}
@media (max-width: 1023px) {
  .back-top {
    display: none !important;
  }
}

