﻿:root {
  --yp-bg: #f5f7fb;
  --yp-card: #ffffff;
  --yp-line: #e6ebf3;
  --yp-text: #172033;
  --yp-muted: #697489;
  --yp-primary: #2367ff;
  --yp-primary-dark: #1557e8;
  --yp-cyan: #00a4ff;
  --yp-success: #10b981;
  --yp-warning: #f59e0b;
  --yp-danger: #ef4444;
  --yp-shadow: 0 14px 36px rgba(25, 45, 100, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.yiqipay-arco-site,
body.yiqipay-result-page {
  margin: 0;
  background: var(--yp-bg);
  color: var(--yp-text);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.yp-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.yp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(230, 235, 243, 0.86);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}
.yp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}
.yp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--yp-text);
  font-size: 17px;
  font-weight: 800;
}
.yp-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.yp-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yp-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.yp-nav a:not(.yp-nav__cta) {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--yp-muted);
  font-size: 14px;
  font-weight: 700;
}
.yp-nav a:not(.yp-nav__cta):hover,
.yp-nav a:not(.yp-nav__cta):focus {
  background: #f3f7ff;
  color: var(--yp-primary);
}
.yp-nav__cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 80px !important;
  width: 80px !important;
  min-width: 80px !important;
  height: 36px !important;
  min-height: 36px !important;
  margin-left: 10px;
  padding: 0 !important;
  border: 2px solid var(--yp-primary) !important;
  border-radius: 9px !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  box-shadow: 0 10px 22px rgba(35, 103, 255, 0.16);
}
.yp-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--yp-line);
  border-radius: 8px;
  background: #fff;
}
.yp-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--yp-text);
}

.yp-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 42px;
  background:
    linear-gradient(180deg, #fff 0%, #f8fbff 58%, var(--yp-bg) 100%);
}
.yp-hero:before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(35, 103, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 103, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 76%);
  content: "";
}
.yp-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: center;
  gap: 52px;
}
.yp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--yp-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.yp-eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yp-primary);
  box-shadow: 0 0 0 6px rgba(35, 103, 255, 0.1);
}
.yp-hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--yp-text);
  font-size: 48px;
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: 0;
  text-wrap: pretty;
}
.yp-hero p {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--yp-muted);
  font-size: 16px;
  line-height: 1.8;
  text-wrap: pretty;
}
.yp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.yp-hero__actions .arco-btn,
.yp-doc-band .arco-btn,
.yp-result-actions .arco-btn {
  border-radius: 8px;
  font-weight: 800;
}
.arco-btn-primary {
  background: var(--yp-primary) !important;
  border-color: var(--yp-primary) !important;
}
.arco-btn-primary:hover,
.arco-btn-primary:focus {
  background: var(--yp-primary-dark) !important;
  border-color: var(--yp-primary-dark) !important;
}
.arco-btn-outline {
  border-color: rgba(35, 103, 255, 0.28) !important;
  background: #fff !important;
  color: var(--yp-primary) !important;
}
.arco-btn-outline:hover,
.arco-btn-outline:focus {
  background: #eef5ff !important;
  border-color: rgba(35, 103, 255, 0.42) !important;
}
.yp-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.yp-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--yp-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}
.yp-trust-row img { width: 20px; height: 20px; object-fit: contain; }

.yp-hero__panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--yp-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: var(--yp-shadow) !important;
}
.yp-hero__panel:before {
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--yp-primary), var(--yp-cyan), var(--yp-success));
  content: "";
}
.yp-terminal__head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--yp-line);
}
.yp-terminal__head span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d8dee9;
}
.yp-terminal__head span:nth-child(1) { background: var(--yp-danger); }
.yp-terminal__head span:nth-child(2) { background: var(--yp-warning); }
.yp-terminal__head span:nth-child(3) { background: var(--yp-success); }
.yp-terminal__head strong {
  margin-left: auto;
  color: var(--yp-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.yp-pay-card,
.yp-code-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px;
  padding: 18px;
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  background: #f4f8ff;
}
.yp-muted {
  display: block;
  color: var(--yp-muted);
  font-size: 13px;
  line-height: 1.5;
}
.yp-pay-card strong {
  display: block;
  margin-top: 6px;
  color: var(--yp-primary);
  font-size: 30px;
  line-height: 1;
  font-weight: 850;
}
.yp-pay-card em {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}
.yp-flow {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 8px 20px 18px;
}
.yp-flow__item {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--yp-muted);
}
.yp-flow__item span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--yp-line);
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}
.yp-flow__item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}
.yp-flow__item.is-active span {
  border-color: rgba(35, 103, 255, 0.18);
  background: var(--yp-primary);
  color: #fff;
}
.yp-flow__item.is-active p { color: var(--yp-text); font-weight: 800; }
.yp-flow__line { height: 1px; background: var(--yp-line); }
.yp-code-card {
  justify-content: flex-start;
  margin-top: 0;
  border-color: #e8edf5;
  background: #fff;
}
.yp-code-card__qr {
  display: grid;
  grid-template-columns: repeat(2, 22px);
  grid-template-rows: repeat(2, 22px);
  gap: 7px;
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  padding: 8px;
  border: 1px solid var(--yp-line);
  border-radius: 10px;
  background: #f8fafd;
}
.yp-code-card__qr i {
  display: block;
  border-radius: 5px;
  background: var(--yp-text);
}
.yp-code-card p {
  margin: 4px 0 0;
  color: var(--yp-muted);
  font-size: 13px;
}
.yp-code-card strong { font-size: 15px; }

.yp-section { padding: 56px 0; }
.yp-section--tight { padding: 28px 0; }
.yp-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 22px;
}
.yp-section__head h2,
.yp-doc-band h2,
.yp-page-hero h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: 0;
}
.yp-section__head p {
  max-width: 410px;
  margin: 0;
  color: var(--yp-muted);
  line-height: 1.7;
}
.yp-stats,
.yp-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.yp-stat,
.yp-feature,
.yp-article {
  border: 1px solid var(--yp-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045) !important;
}
.yp-stat { padding: 20px !important; }
.yp-stat span { color: var(--yp-muted); font-size: 13px; font-weight: 700; }
.yp-stat strong { display: block; margin-top: 8px; font-size: 25px; line-height: 1; font-weight: 850; }
.yp-stat p,
.yp-feature p { margin: 10px 0 0; color: var(--yp-muted); line-height: 1.7; }
.yp-feature { padding: 22px !important; }
.yp-feature h3 { margin: 16px 0 0; font-size: 18px; font-weight: 850; }
.yp-feature__icon {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
}
.yp-feature__icon--blue { background: rgba(35, 103, 255, 0.1); color: var(--yp-primary); }
.yp-feature__icon--green { background: rgba(16, 185, 129, 0.12); color: #047857; }
.yp-feature__icon--orange { background: rgba(245, 158, 11, 0.14); color: #b45309; }

.yp-section--band { padding-top: 26px; }
.yp-doc-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  border: 1px solid var(--yp-line);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(35, 103, 255, 0.1), rgba(0, 164, 255, 0.04), transparent),
    #fff;
  box-shadow: var(--yp-shadow);
}
.yp-doc-band p { margin: 8px 0 0; color: var(--yp-muted); line-height: 1.7; }
.yp-doc-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.yp-page-hero {
  padding: 64px 0 36px;
  background: linear-gradient(180deg, #fff, var(--yp-bg));
}
.yp-page-hero p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--yp-muted);
  line-height: 1.8;
}
.yp-article { padding: 28px !important; }
.yp-article h2 { margin: 0 0 10px; font-size: 20px; font-weight: 850; }
.yp-article h2:not(:first-child) { margin-top: 26px; }
.yp-article p { margin: 0; color: #3b465a; line-height: 1.9; }

.yp-footer {
  margin-top: 28px;
  border-top: 1px solid var(--yp-line);
  background: #fff;
}
.yp-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 40px;
  padding: 34px 0 24px;
}
.yp-brand--footer { margin-bottom: 12px; }
.yp-footer p,
.yp-footer a,
.yp-footer__bottom {
  color: var(--yp-muted);
  font-size: 13px;
  line-height: 1.8;
}
.yp-footer h3 {
  margin: 0 0 12px;
  color: var(--yp-text);
  font-size: 14px;
  font-weight: 850;
}
.yp-footer a { display: block; margin-top: 6px; }
.yp-footer a:hover { color: var(--yp-primary); }
.yp-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 22px;
  border-top: 1px solid #eef2f7;
}

.yiqipay-result-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #fff 0%, #f8fbff 52%, var(--yp-bg) 100%);
}
.yp-result-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}
.yp-result-card {
  width: min(460px, 100%);
  padding: 34px 30px !important;
  border: 1px solid var(--yp-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  text-align: center;
  box-shadow: var(--yp-shadow) !important;
}
.yp-result-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: #fff;
  font-size: 38px;
  font-weight: 850;
}
.yp-result-card--success .yp-result-icon { background: var(--yp-success); }
.yp-result-card--error .yp-result-icon { background: var(--yp-danger); }
.yp-result-card h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 850;
}
.yp-result-card p {
  margin: 12px auto 0;
  color: var(--yp-muted);
  line-height: 1.8;
}
.yp-result-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

@media (max-width: 920px) {
  .yp-hero { padding-top: 46px; }
  .yp-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .yp-hero__panel { max-width: 560px; }
  .yp-section__head,
  .yp-doc-band { align-items: flex-start; flex-direction: column; }
  .yp-stats,
  .yp-feature-grid { grid-template-columns: 1fr; }
  .yp-footer__grid { grid-template-columns: 1fr; gap: 20px; }
  .yp-footer__bottom { flex-direction: column; }
}

@media (max-width: 720px) {
  .yp-container { width: min(100% - 28px, 1180px); }
  .yp-header__inner { min-height: 62px; }
  .yp-nav-toggle { display: block; }
  .yp-nav {
    position: absolute;
    top: 62px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--yp-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--yp-shadow);
  }
  .yp-nav.is-open { display: flex; }
  .yp-nav a:not(.yp-nav__cta),
  .yp-nav__cta { width: 100%; justify-content: center; margin-left: 0; min-height: 44px !important; }
  .yp-hero h1 { font-size: 34px; }
  .yp-hero p { font-size: 15px; }
  .yp-hero__actions .arco-btn { width: 100%; }
  .yp-trust-row span { flex: 1 1 calc(50% - 8px); justify-content: center; }
  .yp-pay-card,
  .yp-code-card { margin: 14px; padding: 14px; }
  .yp-flow { margin: 8px 14px 14px; gap: 6px; }
  .yp-flow__item p { font-size: 11px; }
  .yp-section { padding: 38px 0; }
  .yp-section--tight { padding: 20px 0; }
  .yp-section__head h2,
  .yp-doc-band h2,
  .yp-page-hero h1 { font-size: 24px; }
  .yp-doc-band { padding: 20px; }
  .yp-doc-band .arco-btn { width: 100%; }
}
