/* 云脉主题页脚（替换原即刻加入 + 旧 footer） */

.ym-footer-promo {
  padding: clamp(28px, 3.5vw, 44px) 0;
  background: #eef0f4;
}

.ym-footer-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: min(1460px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 0 clamp(12px, 2.4vw, 22px);
}

.ym-footer-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 22px);
}

@media (min-width: 768px) {
  .ym-footer-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ym-fcard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  padding: clamp(22px, 2.5vw, 28px);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.ym-fcard-title {
  margin: 0 0 10px;
  font-size: clamp(17px, 1vw + 15px, 19px);
  font-weight: 600;
  color: #000;
}

.ym-fcard-desc {
  flex: 1 1 auto;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.65;
  color: #555;
}

.ym-fcard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 20px;
  border-radius: 19px;
  border: 1px solid #ccc;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  background: #fff;
  text-decoration: none !important;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.ym-fcard-btn:hover {
  border-color: #000;
  color: #000;
  background: #f7f7f7;
}

/* 五项服务说明（线框 SVG + 双行文案） */
.ym-footer-features {
  padding: clamp(16px, 2.2vw, 26px) 0;
  background: #f5f6f8;
  border-top: 1px solid #e8eaee;
  border-bottom: 1px solid #e8eaee;
}

.ym-feat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(12px, 1.8vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ym-feat-row li {
  flex: 1 1 calc(50% - 8px);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 100%;
}

@media (min-width: 992px) {
  .ym-feat-row li {
    flex: 1 1 0;
    min-width: 0;
  }
}

.ym-feat-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: 1px;
  color: #1677ff;
}

.ym-feat-svg {
  width: 32px;
  height: 32px;
  display: block;
}

.ym-feat-text {
  font-size: 12px;
  line-height: 1.45;
  color: #333;
}

.ym-feat-text strong {
  font-size: 13px;
  font-weight: 600;
  color: #111;
}

/* 主导航列 */
.ym-footer-main {
  padding: clamp(28px, 3.5vw, 40px) 0 clamp(18px, 2.2vw, 26px);
  background: #fff;
}

.ym-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 2.5vw, 28px);
}

@media (min-width: 992px) {
  .ym-footer-grid {
    grid-template-columns: minmax(200px, 260px) repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 24px);
    align-items: start;
  }
}

.ym-footer-brand-col .ym-footer-app {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ym-footer-app-logo {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.ym-footer-app-name {
  font-size: 15px;
  font-weight: 600;
  color: #000;
}

.ym-footer-hotline {
  margin: 0 0 10px;
  font-size: 13px;
  color: #444;
  line-height: 1.5;
}

.ym-footer-hotline strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ym-footer-mini-links {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.ym-footer-mini-links li {
  margin-bottom: 8px;
}

.ym-footer-mini-links a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
}

.ym-footer-mini-links a:hover {
  color: #1677ff;
}

.ym-footer-follow-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #000;
}

.ym-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ym-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #ddd;
  color: #555;
  text-decoration: none !important;
  transition: border-color 0.2s, color 0.2s;
}

.ym-footer-social a:hover {
  border-color: #1677ff;
  color: #1677ff;
}

.ym-footer-links-col h4 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: #000;
}

.ym-footer-links-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ym-footer-links-col li {
  margin-bottom: 8px;
}

.ym-footer-links-col a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
}

.ym-footer-links-col a:hover {
  color: #1677ff;
}

.ym-footer-friendly {
  margin-top: clamp(16px, 2.5vw, 24px);
  padding-top: clamp(14px, 2vw, 20px);
  border-top: 1px solid #eee;
}

.ym-footer-friendly-title {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #000;
}

.ym-footer-friendly-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.ym-footer-friendly-links a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
}

.ym-footer-friendly-links a:hover {
  color: #1677ff;
}

/* 备案与法律（左文案 / 右链接，贴近原版） */
.ym-footer-legal {
  padding: clamp(14px, 2vw, 20px) 0 clamp(20px, 2.5vw, 28px);
  background: #f5f6f8;
  border-top: 1px solid #e8eaee;
}

.ym-footer-legal-inner {
  max-width: min(1460px, calc(100vw - 28px));
}

.ym-footer-legal-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 24px;
}

.ym-footer-legal-left {
  flex: 1 1 auto;
  min-width: min(100%, 280px);
  text-align: left;
}

.ym-footer-legal-right {
  flex: 0 0 auto;
  text-align: right;
}

.ym-footer-copy {
  margin: 0 0 6px;
  font-size: 12px;
  color: #666;
}

.ym-footer-records {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: #777;
}

.ym-footer-records a {
  color: #555;
  text-decoration: none;
}

.ym-footer-records a:hover {
  color: #1677ff;
}

.ym-footer-legal-links {
  margin: 0;
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}

.ym-footer-legal-links a {
  color: #555;
  text-decoration: none;
}

.ym-footer-legal-links a:hover {
  color: #1677ff;
}

.ym-footer-legal-sep {
  margin: 0 8px;
  color: #ccc;
}

@media (max-width: 767px) {
  .ym-footer-legal-main {
    flex-direction: column;
    align-items: stretch;
  }

  .ym-footer-legal-right {
    text-align: left;
  }

  .ym-footer-legal-links {
    white-space: normal;
  }
}

@media (max-width: 991px) {
  .ym-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ym-footer-brand-col {
    grid-column: 1 / -1;
  }
}
