/* ============================================
   Footer - 底部样式
   ============================================ */

.footer {
  background: #fff;
  border-top: 1px solid #e5e5e5;
  padding: 48px 0;
  position: relative;
  z-index: 16;
}

/* 上部布局 */
.footer-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 992px) {
  .footer-main {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* 4列链接网格 */
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  flex: 1;
  margin-right: 80px;
}

@media (max-width: 991px) {
  .footer-links-grid {
    margin-right: 0;
  }

}

@media (min-width: 992px) {
  .footer-links-grid {
    display: flex;
    justify-content: space-between;
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .footer-links-grid {
    gap: 48px;
  }
}

.footer-links-column h4 {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
}

.footer-links-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-column li a {
  font-size: 13px;
  color: #999;
  transition: color 0.2s;
}

.footer-links-column li a:hover {
  color: #c9151e;
}

/* 客户服务两列布局 */
.footer-customer-service {
  display: flex;
  gap: 24px;
}

/* 右侧联系区域 */
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  flex-shrink: 0;
}

/* 社交图标 */
.footer-social-new {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.social-icon-new {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.social-icon-new:hover {
  border-color: #c9151e;
}

.social-icon-new>img {
  width: 60%;
  height: 60%;
  filter: grayscale(100%);
  transition: filter 0.2s;
}

.social-icon-new:hover img {
  filter: grayscale(0);
}

.social-qr-popup-new {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  z-index: 50;
}

.social-icon-new:hover .social-qr-popup-new {
  display: flex;
}

.social-qr-code-new {
  background: white;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border: 1px solid #f3f4f6;
  display: flex;
  gap: 16px;
}

.social-qr-code-new img {
  display: block;
  max-width: none;
  width: 120px;
  height: 120px;
}

.social-qr-label-new {
  display: flex;
  width: 100%;
  font-size: 10px;
  color: #666;
  text-align: center;
  margin-top: 4px;
}

.social-qr-label-new div {
  flex: 1;
}

@media (max-width: 991px) {
  .footer-contact {
    align-items: center;
  }

  .social-icon-new:hover .social-qr-popup-new {
    display: none;
  }
}

/* 电话区域 */
.footer-phone-new {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 16px;
}

.footer-phone-icon-new {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #c9151e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9151e;
  flex-shrink: 0;
}

.footer-phone-info-new {
  text-align: left;
}

.footer-phone-number-new {
  font-size: 32px;
  font-weight: bold;
  /* font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consons, "Courier New", monospace; */
  color: #c9151e;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 4px;
}

.footer-phone-label-new {
  font-size: 13px;
  color: #666;
}

/* 售后服务电话（纯文字灰色） */
.footer-phone-after-sales {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #999;
  flex-wrap: wrap;
  max-width: 100%;
  align-self: flex-start;
}

.footer-after-sales-numbers {
  font-size: 18px;
  color: var(--primary);
  font-weight: bold;
  word-break: break-all;
}

@media (max-width: 991px) {

  .footer-phone-after-sales {
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}

/* 分隔线 */
.footer-divider {
  height: 1px;
  background: #ccc;
  margin-bottom: 24px;
}

/* 底部链接和版权 */
.footer-bottom {
  font-size: 13px;
  color: #666;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #333;
}

.footer-bottom-links a {
  color: #333;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: #c9151e;
}

.footer-bottom-divider {
  color: #ccc;
}

/* 服务网点 */
.service-network {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.2s;
}

.service-network:hover {
  color: #c9151e;
}

/* 服务网点下拉 */
#service-network-dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 8px;
  width: 320px;
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  padding: 16px;
  z-index: 100;
  cursor: default;
  flex-direction: column;
}

@media (min-width: 992px) {
  #service-network-dropdown {
    width: 400px;
  }
}

/* 返回顶部按钮 */
.back-to-top-btn {
  position: fixed;
  right: 24px;
  bottom: 48px;
  width: 44px;
  height: 44px;
  background: var(--bg-white);
  border: 1px solid var(--border-default);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.back-to-top-btn.visible {
  display: flex;
}

.back-to-top-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
}

.back-to-top-btn:hover svg {
  color: var(--text-white);
}

.back-to-top-btn svg {
  color: var(--primary);
  transition: color var(--transition-fast);
}

@media (max-width: 991px) {
  .back-to-top-btn {
    right: 16px;
    bottom: 32px;
    width: 40px;
    height: 40px;
    display: none !important;
  }
}

.sn-select-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.sn-select {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  background: #f9fafb;
  outline: none;
  cursor: pointer;
  color: #333;
  transition: border-color 0.2s;
}

.sn-select:focus {
  border-color: #c9151e;
}

.sn-results {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;
}

.sn-results>div+div {
  margin-top: 12px;
}

/* 网点卡片样式 */
.sn-card {
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #e5e5e5;
  transition: border-color 0.2s;
}

.sn-card:hover {
  border-color: #c9151e;
}

.sn-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.sn-card-region {
  background: rgba(201, 21, 30, 0.1);
  color: #c9151e;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
}

.sn-card-name {
  font-weight: bold;
  color: #333;
  font-size: 14px;
}

.sn-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #666;
}

.sn-card-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.sn-card-row-inline {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sn-card-icon {
  width: 14px;
  height: 14px;
  color: #999;
  flex-shrink: 0;
  margin-top: 1px;
}

.sn-card-text {
  line-height: 1.5;
}

/* 旧版样式兼容 */
.footer-flex {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

@media (min-width: 992px) {
  .footer-flex {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space);
}

.footer-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-main);
  transition: color var(--transition-fast);
  cursor: pointer;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-link-divider {
  color: var(--border-dark);
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-copyright a {
  color: var(--text-muted);
}

.footer-copyright a:hover {
  color: var(--primary);
}

.footer-icp {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.footer-icp i {
  color: #d49a37;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.social-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(153, 153, 153, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  border-color: var(--primary);
}

.social-icon img {
  width: 20px;
  height: 20px;
  filter: grayscale(100%);
  transition: filter var(--transition-fast);
}

.social-icon:hover img {
  filter: grayscale(0);
}

.social-qr-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: var(--space-sm);
  display: none;
  flex-direction: column;
  align-items: center;
  z-index: 50;
  min-width: 120px;
}

.social-icon:hover .social-qr-popup {
  display: flex;
}

.social-qr-code {
  background: var(--bg-white);
  padding: var(--space-sm);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  width: 120px;
  height: 120px;
}

.social-qr-code img {
  width: 100%;
  height: 100%;
  filter: none;
}

.social-qr-label {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-xs);
}

.footer-phone {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-md);
}

.footer-phone-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.footer-phone-info {
  text-align: left;
}

.footer-phone-number {
  font-size: 32px;
  font-weight: bold;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.025em;
}

.footer-phone-label {
  font-size: 13px;
  color: var(--primary);
  margin-top: var(--space-xs);
}

/* 响应式 */
@media (max-width: 991px) {
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-phone {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-phone-info {
    text-align: left;
  }

  .footer-phone-number {
    font-size: 24px;
  }

  .footer-social {
    justify-content: flex-start;
  }

  /* #service-network-dropdown {
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 32px);
    max-width: 100%;
  } */
}