/* ===================================================================
   PayMethod Guide — 国家页面样式
   适用：countries/ 目录下所有页面
   =================================================================== */

/* ----- 国家卡片 ----- */
.country-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: block;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.country-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--cyan);
}

.country-card h3 {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.country-card p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.country-grid {
  align-items: stretch;
}

.country-card-featured {
  min-height: 100%;
}

.country-code {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(6, 57, 199, 0.1), rgba(17, 185, 204, 0.08));
  color: var(--hero-blue);
  font-weight: 900;
  font-size: 13px;
}

.country-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--hero-blue);
  font-size: 13px;
  font-weight: 800;
}

.country-matrix td {
  font-size: 14px;
}

.opportunity-grid .card,
.checklist-grid .card {
  min-height: 100%;
}

.country-warning {
  max-width: 960px;
  margin: 0 auto;
}

.country-warning h2 {
  text-align: left;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* ----- 国家详情 hero ----- */
.country-hero .hero-inner {
  padding: 32px 0 40px;
}

/* ----- Payment-focused country detail pages ----- */
.country-hero-warning {
  background: linear-gradient(135deg, #071f4d 0%, #083b82 58%, #805411 145%);
}

.country-hero-transition {
  background: linear-gradient(135deg, #071f4d 0%, #064b73 62%, #0c7a73 135%);
}

.country-verdict {
  align-self: center;
}

.country-verdict h2 {
  margin: 8px 0 16px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  text-align: left;
}

.country-verdict p {
  margin: 10px 0;
  color: var(--muted);
  font-size: 14px;
}

.country-verdict p:last-child {
  margin-bottom: 0;
}

.verdict-label,
.section-label {
  display: inline-flex;
  color: var(--hero-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.country-verdict-warning {
  border-top: 4px solid #e7a52d;
}

.country-verdict-transition {
  border-top: 4px solid var(--cyan);
}

.country-editorial-bar {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.country-editorial-bar .container {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  color: var(--muted);
  font-size: 13px;
}

.country-editorial-bar a {
  font-weight: 800;
}

.country-route-visual-section {
  padding: 28px 0 0;
  background: var(--surface-soft, #f6f8ff);
}

.country-route-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.country-route-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.country-route-visual figcaption {
  padding: 16px 20px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.country-route-visual figcaption strong {
  color: var(--text);
}

.country-route-visual-warning {
  border-top: 4px solid #d94a3a;
}

.country-route-visual-transition {
  border-top: 4px solid var(--cyan);
}

.country-prose > section {
  scroll-margin-top: 98px;
}

.country-prose .section-label + h2 {
  margin-top: 8px;
}

.country-action {
  margin: 24px 0;
  padding: 20px 22px;
  border: 1px solid rgba(6, 57, 199, 0.14);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(6, 57, 199, 0.04), rgba(17, 185, 204, 0.07));
}

.country-action > strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.02rem;
}

.country-action ol,
.country-action ul {
  margin: 0;
  padding-left: 22px;
}

.country-action li {
  margin: 7px 0;
}

.country-action-warning {
  border-left-color: #d28b18;
  background: linear-gradient(135deg, rgba(210, 139, 24, 0.07), rgba(255, 247, 222, 0.78));
}

.country-table {
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}

.country-table:focus-visible {
  outline: 3px solid rgba(17, 185, 204, 0.55);
  outline-offset: 4px;
}

.country-table table {
  min-width: 760px;
}

.country-table th,
.country-table td {
  vertical-align: top;
  font-size: 14px;
}

.country-table tbody th {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-align: left;
}

.route-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.route-steps > div {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.route-steps span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgba(6, 57, 199, 0.1);
  color: var(--hero-blue);
  font-weight: 900;
}

.route-steps strong {
  display: block;
  color: var(--text);
}

.route-steps p {
  margin: 7px 0 0;
  font-size: 14px;
}

.route-steps-warning span {
  background: rgba(210, 139, 24, 0.14);
  color: #8a5b0c;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.decision-grid article {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.decision-grid h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.decision-grid p {
  margin-bottom: 0;
  font-size: 14px;
}

.source-box {
  padding: 20px 22px;
  border: 1px solid rgba(6, 57, 199, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.74);
}

.source-box ul {
  margin: 0;
  padding-left: 22px;
}

.source-box li {
  margin: 9px 0;
}

.source-box p {
  margin: 14px 0 0;
  font-size: 13px;
}

.transition-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.transition-timeline article {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(6, 57, 199, 0.14);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.transition-timeline span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(17, 185, 204, 0.1);
  color: #08717e;
  font-size: 12px;
  font-weight: 800;
}

.transition-timeline h3 {
  margin: 0 0 7px;
  font-size: 1.08rem;
}

.transition-timeline p {
  margin: 0;
  font-size: 14px;
}

.country-responsible-note {
  margin-top: 30px;
  padding: 22px;
  border: 1px solid rgba(6, 57, 199, 0.15);
  border-left: 4px solid var(--hero-blue);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(6, 57, 199, 0.045), rgba(17, 185, 204, 0.07));
}

.country-responsible-note > strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}

.country-responsible-note p {
  margin: 8px 0 12px;
}

.country-responsible-note a {
  font-weight: 800;
}

.country-responsible-note-warning {
  border-left-color: #d28b18;
}

@media (max-width: 760px) {
  .country-hero .hero-inner {
    gap: 18px;
    padding: 18px 0 24px;
  }

  .country-hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(1.8rem, 8.2vw, 2.05rem);
    line-height: 1.12;
  }

  .country-hero p {
    margin: 10px 0;
    font-size: 15px;
    line-height: 1.45;
  }

  .country-hero .trust-strip {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
  }

  .country-hero .hero-actions {
    gap: 8px;
    margin-top: 14px;
  }

  .country-hero .verdict-card {
    max-width: none;
    padding: 18px;
  }

  .country-hero .country-verdict h2 {
    margin: 6px 0 10px;
    font-size: 1.2rem;
  }

  .country-hero .country-verdict p {
    margin: 7px 0;
    font-size: 13px;
  }

  .country-editorial-bar .container {
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-direction: column;
    gap: 4px;
  }

  .route-steps,
  .decision-grid,
  .transition-timeline {
    grid-template-columns: 1fr;
  }

  .country-table table {
    min-width: 720px;
  }

  .country-route-visual-section {
    padding-top: 18px;
  }

  .country-route-visual {
    border-radius: 18px;
  }

  .country-route-visual figcaption {
    padding: 14px 16px 16px;
  }
}
