/* 资质与协议 — 设计基准宽 1920px，资源本地化 */
:root {
  --qa-text: #1f2633;
  --qa-link: #2063e6;
  --qa-muted: rgba(31, 38, 51, 0.5);
  --qa-pad-x: clamp(16px, 5.2vw, 158px);
  --qa-content-max: min(1524px, calc(100vw - 32px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--qa-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.qa-page {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

/* 主区域：渐变背景图 + 内容 */
.qa-main {
  position: relative;
  flex: 1 0 auto;
  isolation: isolate;
  min-height: clamp(520px, 50vw, 860px);
}

.qa-main__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  pointer-events: none;
}

.qa-main__inner {
  position: relative;
  z-index: 1;
  width: var(--qa-content-max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 60px) var(--qa-pad-x) clamp(48px, 8vw, 72px);
}

.qa-logo {
  display: block;
  width: clamp(160px, 28vw, 200px);
  height: auto;
}

.qa-title {
  margin: clamp(24px, 4vw, 80px) 0 0;
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 600;
  line-height: 1.3;
  color: #000;
}

.qa-updated {
  margin: 16px 0 0;
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--qa-muted);
}

.qa-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  margin-top: clamp(32px, 5vw, 48px);
  align-items: start;
}

@media (max-width: 900px) {
  .qa-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.qa-col__heading {
  margin: 0 0 16px;
  font-size: clamp(18px, 2.2vw, 20px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--qa-text);
}

.qa-col__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.qa-col__list li {
  margin-top: 10px;
}

.qa-col__list li:first-child {
  margin-top: 0;
}

.qa-col__list a {
  font-size: clamp(14px, 1.7vw, 16px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--qa-link);
  text-decoration: none;
}

.qa-col__list a:hover {
  text-decoration: underline;
}

/* 页脚 */
.qa-footer {
  flex-shrink: 0;
  position: relative;
  color: #fff;
  background-color: #1f2633;
  background-image: url("./assets/qa-qualifications-footer-bg.svg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  padding: clamp(36px, 5vw, 48px) clamp(16px, 6vw, 300px) clamp(24px, 4vw, 32px);
}

.qa-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 40px);
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
  .qa-footer__top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .qa-footer__brand {
    flex-direction: column;
    align-items: center;
  }

  .qa-footer__download {
    width: 100%;
    justify-content: center;
  }
}

.qa-footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.qa-footer__brand-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qa-footer__brand-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.qa-footer__brand-text strong {
  display: block;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  margin-bottom: 8px;
}

.qa-footer__brand-text span {
  font-size: clamp(13px, 1.6vw, 16px);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.qa-footer__download {
  display: flex;
  align-items: center;
  gap: 24px;
}

.qa-footer__qr {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  border: 2px solid #ffaa89;
  overflow: hidden;
  flex-shrink: 0;
}

.qa-footer__qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qa-footer__dl-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.qa-footer__dl-text img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.qa-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-top: 28px;
  font-size: clamp(11px, 1.4vw, 12px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

@media (min-width: 900px) {
  .qa-footer__legal {
    justify-content: flex-start;
    text-align: left;
  }
}

.qa-footer__sep {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  display: inline-block;
  vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
