:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe4ee;
  --soft: #f7fafc;
  --teal: #0f766e;
  --teal-2: #dff8ef;
  --blue: #2563eb;
  --amber: #f59e0b;
  --orange: #ea580c;
  --white: #ffffff;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--soft);
}

a { color: inherit; text-decoration: none; }

/* ── Header ─────────────────────────────── */
.site-header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 64px;
  background: var(--white);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  text-decoration: none;
}

.brand-logo {
  height: 56px;
  width: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
}

.brand-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name-main {
  font-size: 22px;
  font-weight: 800;
  color: #1a2756;
  letter-spacing: -0.2px;
  line-height: 1.15;
}

.brand-name-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: #b8922a;
  letter-spacing: 2px;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #334155;
  font-size: 15px;
  font-weight: 600;
}

.site-nav a {
  cursor: pointer;
  transition: color .15s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Buttons ─────────────────────────────── */
.btn {
  height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: var(--teal);
  color: var(--white);
  white-space: nowrap;
}

.btn.secondary {
  background: var(--white);
  color: var(--ink);
  border-color: #cbd5e1;
}

/* ── Hero ─────────────────────────────── */
.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 574px);
  gap: 56px;
  align-items: center;
  padding: 70px 64px;
  background:
    linear-gradient(120deg, rgba(15,118,110,.12), rgba(37,99,235,.08)),
    #eef9f4;
}

.eyebrow {
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--teal-2);
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  margin: 22px 0 18px;
  max-width: 660px;
  font-size: 54px;
  line-height: 1.18;
}

.hero-copy {
  max-width: 610px;
  color: #475569;
  font-size: 19px;
  line-height: 1.65;
  margin: 0 0 28px;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 34px;
  max-width: 580px;
}

.stat {
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(203,213,225,.75);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.stat strong {
  display: block;
  color: var(--teal);
  font-size: 28px;
  line-height: 34px;
}

.stat span { color: var(--muted); font-size: 13px; font-weight: 700; }

/* ── Network panel ─────────────────────────────── */
.network-panel {
  min-height: 430px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 24px 50px rgba(15, 23, 42, .14);
  padding: 30px 34px;
  position: relative;
  overflow: hidden;
}

.network-panel h2 { margin: 0 0 4px; font-size: 22px; }
.network-panel p  { margin: 0; color: var(--muted); font-size: 14px; }

.map {
  position: absolute;
  inset: 126px 48px 58px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 50%, rgba(15,118,110,.20), transparent 0 14px, transparent 15px),
    radial-gradient(circle at 56% 34%, rgba(37,99,235,.20), transparent 0 14px, transparent 15px),
    radial-gradient(circle at 78% 52%, rgba(245,158,11,.22), transparent 0 14px, transparent 15px),
    radial-gradient(circle at 62% 78%, rgba(15,118,110,.18), transparent 0 14px, transparent 15px),
    #e0f2fe;
}

.route {
  position: absolute;
  left: 145px; right: 112px; top: 252px;
  border-top: 4px dashed var(--amber);
  transform: rotate(-2deg);
}

.node {
  position: absolute;
  display: grid;
  gap: 9px;
  justify-items: center;
  font-size: 13px;
  font-weight: 800;
}

.node::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(15,118,110,.16);
}

.node.blue::before   { background: var(--blue);   box-shadow: 0 0 0 6px rgba(37,99,235,.16); }
.node.orange::before { background: var(--orange);  box-shadow: 0 0 0 6px rgba(234,88,12,.16); }

.node.cn { left: 128px; top: 228px; }
.node.ca { left: 266px; top: 190px; }
.node.eu { right: 76px; top: 236px; }
.node.as { left: 314px; top: 306px; }

.verify-card {
  position: absolute;
  right: 34px; bottom: 28px;
  width: 250px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(15,23,42,.10);
  padding: 16px 18px;
}

.verify-card span   { display: block; font-size: 14px; font-weight: 700; }
.verify-card strong { display: block; margin-top: 7px; color: var(--teal); font-size: 21px; }
.verify-card small  { display: block; margin-top: 8px; color: var(--muted); }

/* ── Sections ─────────────────────────────── */
.section     { padding: 68px 64px; background: var(--white); }
.section.alt { background: #f8fafc; }

.section-head {
  max-width: 1280px;
  margin: 0 auto 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section h2 { margin: 0 0 8px; font-size: 34px; line-height: 44px; }

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
  max-width: 720px;
}

/* ── Certificate query ─────────────────────────────── */
.query-panel {
  max-width: 1280px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.1fr 1fr auto auto;
  gap: 16px;
  align-items: end;
}

label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

input {
  width: 100%;
  height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 14px;
  color: var(--ink);
  font-size: 15px;
  outline: none;
}

input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,118,110,.14); }

.query-result {
  max-width: 1280px;
  margin: 18px auto 0;
  border: 1px solid #d5b36b;
  border-radius: 10px;
  background: linear-gradient(135deg, #071a3c, #0f2b5c);
  padding: 24px;
  color: #fff7dc;
  display: none;
  flex-direction: column;
  gap: 22px;
  font-size: 14px;
  line-height: 22px;
  box-shadow: 0 24px 54px rgba(15,23,42,.22);
}

.query-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 2px;
}

.query-summary h3 { margin: 0; color: #fff8e7; font-size: 24px; line-height: 32px; }
.query-summary p  { margin: 4px 0 0; color: #dbeafe; }

.certificate-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.certificate-actions .btn.secondary { background: rgba(255,255,255,.96); border-color: #f8d98a; }

.certificate-image {
  width: min(760px, 100%);
  max-width: 100%;
  height: auto;
  align-self: center;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 18px 42px rgba(0,0,0,.30);
}

.trust-tags {
  max-width: 1280px;
  margin: 18px auto 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.tag {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  background: #eff6ff;
  color: #1d4ed8;
}

.tag.orange { background: #fff7ed; color: #c2410c; }
.tag.gray   { background: #f1f5f9; color: #475569; }

/* ── Services ─────────────────────────────── */
.service-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service {
  min-height: 250px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
}

.icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal-2);
  color: var(--teal);
  font-weight: 900;
  margin-bottom: 18px;
}

.service h3 { margin: 0 0 12px; font-size: 21px; line-height: 28px; }
.service p  { margin: 0; color: var(--muted); line-height: 24px; font-size: 15px; }

/* ── News ─────────────────────────────── */
.news-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 594px) minmax(0, 1fr);
  gap: 22px;
}

.headline,
.news-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
}

.headline { padding: 26px 28px; display: block; }
a.headline:hover { border-color: #99f6e4; }

.news-cover {
  height: 164px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent 8%, rgba(250,204,21,.95) 8% 12%, transparent 12% 20%, rgba(250,204,21,.9) 20% 24%, transparent 24%),
    linear-gradient(135deg, #0f766e, #1d4ed8);
  display: flex;
  align-items: flex-start;
  padding: 34px;
  color: var(--white);
  font-size: 25px;
  line-height: 32px;
  font-weight: 900;
}

.headline h3 { margin: 18px 0 10px; font-size: 25px; line-height: 34px; }
.headline p  { margin: 0; color: var(--muted); font-size: 15px; line-height: 24px; }

.news-list { display: grid; gap: 16px; }

.news-item {
  min-height: 92px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 24px;
  gap: 18px;
  align-items: center;
  padding: 17px 20px;
  width: 100%;
  border-color: var(--line);
  color: inherit;
  text-align: left;
  text-decoration: none;
}

a.news-item:hover {
  border-color: #99f6e4;
  box-shadow: 0 16px 34px rgba(15,118,110,.12);
}

.news-type {
  border-radius: 999px;
  padding: 8px 10px;
  text-align: center;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}

.news-item h3   { margin: 0 0 6px; font-size: 16px; line-height: 22px; }
.news-item time { color: #94a3b8; font-size: 13px; }
.news-item b    { color: #94a3b8; font-size: 24px; font-weight: 500; }

/* ── Steps ─────────────────────────────── */
.steps {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.step {
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 22px;
}

.step span { color: var(--teal); font-size: 15px; font-weight: 900; }
.step h3   { margin: 18px 0 10px; font-size: 21px; line-height: 28px; }
.step p    { margin: 0; color: var(--muted); font-size: 14px; line-height: 22px; }

/* ── Footer ─────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--white);
}

.footer-body {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding: 56px 64px 44px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand h2 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.footer-brand .footer-tagline {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #b8922a;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.footer-brand p {
  margin: 0 0 22px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.8;
  max-width: 320px;
}

.footer-contact { display: grid; gap: 10px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-contact-item .ci-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(255,255,255,.08);
  font-size: 11px;
  margin-top: 1px;
}

.footer-col strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #e2e8f0;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  color: #94a3b8;
  font-size: 13px;
  line-height: 30px;
  transition: color .15s;
}

.footer-col a:hover { color: #e2e8f0; }

/* ── Trust badges ─────────────────────────────── */
.footer-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 22px 64px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-trust-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  margin-right: 4px;
  white-space: nowrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  background: rgba(255,255,255,.04);
}

.trust-badge .tb-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 13px;
  flex-shrink: 0;
}

.trust-badge .tb-text strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1.3;
}

.trust-badge .tb-text span {
  display: block;
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
}

/* ── Footer bottom bar ─────────────────────────────── */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 64px;
  font-size: 12px;
  color: #475569;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #475569;
  font-size: 12px;
  padding: 0 8px;
  border-right: 1px solid #334155;
  line-height: 1;
}

.footer-bottom-links a:last-child { border-right: none; }
.footer-bottom-links a:hover { color: #94a3b8; }

/* ── Merchant apply form ─────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.field-error {
  display: block;
  color: #dc2626;
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}

label em { color: #dc2626; font-style: normal; margin-left: 2px; }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1040px) {
  .site-header { padding: 0 24px; }
  .site-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding: 48px 24px; }
  .network-panel { min-height: 390px; }
  .section { padding: 52px 24px; }
  .query-panel { grid-template-columns: 1fr 1fr; }
  .service-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-layout { grid-template-columns: 1fr; }
  .footer-body { grid-template-columns: 1fr 1fr; padding: 40px 24px 32px; gap: 32px; }
  .footer-trust { padding: 18px 24px; }
  .footer-bottom { padding: 16px 24px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .site-header { height: auto; min-height: 72px; gap: 12px; flex-wrap: wrap; padding: 10px 18px; }
  .brand-logo { height: 50px; }
  .brand-name { display: none; }
  .header-actions .secondary { display: none; }
  .hero h1 { font-size: 38px; line-height: 1.2; }
  .stats, .query-panel, .service-grid, .steps, .news-item, .footer-body { grid-template-columns: 1fr; }
  .footer-trust { gap: 8px; }
  .trust-badge { padding: 6px 10px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .network-panel { display: none; }
  .query-summary { align-items: flex-start; flex-direction: column; }
  .certificate-actions { justify-content: flex-start; }
}
