/**
 * 平安银行信用卡 - 页脚组件样式（Footer）
 * 对应 Vue 版本 Footer/index.vue 的 SCSS 样式转换（纯 CSS）
 * 颜色变量：bg-dark #252525 / primary #ff5f16 / white #ffffff
 */
.creditcard-footer {
  width: 100%;
  min-width: 1200px;
  background: #252525;
  box-shadow: inset 0px 1px 0px 0px rgba(229, 229, 229, 0.5);
  padding: 40px 0;
}

.creditcard-footer .footer-inner {
  width: 1200px;
  margin: 0 auto;
}

/* ===== 顶部动态区（链接列 + 联系区） ===== */
.creditcard-footer .footer-top::after {
  content: '';
  display: block;
  clear: both;
}

.creditcard-footer .footer-top .link-column + .link-column {
  margin-left: 32px;
}

.creditcard-footer .footer-top .link-column {
  float: left;
  display: flex;
  flex-direction: column;
  width: 130px;
}

.creditcard-footer .footer-top .link-column .col-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.creditcard-footer .footer-top .link-column .link-item {
  font-size: 12px;
  line-height: 17px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s ease;
  margin-bottom: 8px;
}

.creditcard-footer .footer-top .link-column .link-item:hover {
  color: #ff5f16;
}

.creditcard-footer .footer-top .contact-section {
  display: flex;
  flex-direction: column;
  float: right;
  width: 350px;
  flex-shrink: 0;
}

.creditcard-footer .footer-top .contact-section .col-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.creditcard-footer .footer-top .contact-section .contact-desc {
  font-size: 12px;
  line-height: 17px;
  color: rgba(255, 255, 255, 0.8);
  margin: 10px 0 17px;
}

.creditcard-footer .footer-top .contact-section .qr-row {
  display: flex;
  gap: 42px;
}

.creditcard-footer .footer-top .contact-section .qr-row .qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.creditcard-footer .footer-top .contact-section .qr-row .qr-box .qr-image {
  width: 88px;
  height: 88px;
}

.creditcard-footer .footer-top .contact-section .hotline-label {
  display: block;
  font-size: 12px;
  line-height: 17px;
  color: rgba(255, 255, 255, 0.8);
  margin: 32px 0 2px;
}

.creditcard-footer .footer-top .contact-section .hotline-number {
  display: block;
  font-size: 18px;
  font-weight: 500;
  line-height: 25px;
  color: #ff5f16;
}

/* ===== 客服与投诉服务卡片 ===== */
.creditcard-footer .service-card {
  width: 100%;
  min-height: 223px;
  background: #1f1e1e;
  border-radius: 8px;
  margin-top: 40px;
  padding: 16px 24px 20px;
  position: relative;
}

.creditcard-footer .service-card .service-card-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.creditcard-footer .service-card .service-grid {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 12px 0;
}

.creditcard-footer .service-card .service-grid .service-grid-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

.creditcard-footer .service-card .service-grid .service-grid-col .col-header {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
  min-height: 17px;
}

.creditcard-footer .service-card .service-grid .service-grid-col .col-header .col-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.creditcard-footer .service-card .service-grid .service-grid-col .col-header .col-header-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 17px;
  color: rgba(255, 255, 255, 0.8);
}

.creditcard-footer .service-card .service-grid .service-grid-col .col-value {
  position: relative;
  font-size: 12px;
  line-height: 17px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 2px 20px;
  white-space: pre-wrap;
}

.creditcard-footer .service-card .service-grid .service-grid-col .col-value.has-qr {
  cursor: pointer;
}

.creditcard-footer .service-card .service-grid .service-grid-col .col-value-link {
  display: block;
  font-size: 12px;
  line-height: 17px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin: 0 0 2px 20px;
}

.creditcard-footer .service-card .service-grid .service-grid-col .col-value-link:hover {
  color: #ff5f16;
}

/* 二维码悬浮弹层 */
.creditcard-footer .service-card .service-grid .service-grid-col .col-value.has-qr:hover .qr-popup {
  opacity: 1;
  visibility: visible;
}

.creditcard-footer .service-card .service-grid .service-grid-col .qr-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 10;
  width: 136px;
  background: #ffffff;
  box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-sizing: border-box;
}

.creditcard-footer .service-card .service-grid .service-grid-col .qr-popup .qr-code {
  width: 112px;
  height: 112px;
}

.creditcard-footer .service-card .service-grid .service-grid-col .qr-popup .qr-code img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== 分割线 ===== */
.creditcard-footer .footer-divider {
  border: 1px solid rgba(241, 241, 241, 0.1);
  margin: 40px 0;
}

/* ===== 底部版权备案 + Logo ===== */
.creditcard-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.creditcard-footer .footer-bottom .bottom-left {
  flex: 1;
}

.creditcard-footer .footer-bottom .bottom-left .copyright-lines {
  margin-bottom: 25px;
}

.creditcard-footer .footer-bottom .bottom-left .copyright-lines .copyright-line {
  font-size: 12px;
  line-height: 17px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.creditcard-footer .footer-bottom .bottom-left .bottom-info {
  display: flex;
  align-items: center;
  gap: 25px;
}

.creditcard-footer .footer-bottom .bottom-left .bottom-info .info-link {
  font-size: 12px;
  line-height: 17px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  white-space: nowrap;
}

.creditcard-footer .footer-bottom .bottom-left .bottom-info .info-link:hover {
  color: #ff5f16;
  text-decoration: underline;
}

.creditcard-footer .footer-bottom .bottom-left .bottom-info .info-text {
  font-size: 12px;
  line-height: 17px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.creditcard-footer .footer-bottom .bottom-left .bottom-info .info-text .ipv6-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 16px;
  border: 0.5px solid #979797;
  border-radius: 2px;
  vertical-align: middle;
}

.creditcard-footer .footer-bottom .bottom-right {
  flex-shrink: 0;
  margin-left: 40px;
}

.creditcard-footer .footer-bottom .bottom-right .footer-logo {
  width: 254px;
  height: 42px;
  object-fit: contain;
}