/* 独立国家签证页：SEO 内容、摘要与办理清单 */

.country-seo-page {
  --country-accent: #20d5ec;
  --country-accent-soft: rgba(32, 213, 236, .12);
  max-width: 100%;
  overflow-x: hidden;
}

.country-seo-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(760px 360px at 86% 8%, rgba(32, 213, 236, .20), transparent 66%),
    radial-gradient(620px 360px at 8% 100%, rgba(30, 94, 255, .28), transparent 68%),
    linear-gradient(135deg, #070f2b 0%, #0c2055 58%, #123fc4 145%);
}

.country-seo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .45;
  background-image:
    linear-gradient(rgba(114, 164, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 164, 255, .09) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 90% 90% at 56% 12%, #000 35%, transparent 78%);
}

.country-seo-hero .container {
  position: relative;
  z-index: 1;
  padding-top: 24px;
  padding-bottom: 58px;
}

.country-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #98afd8;
  font-size: 13px;
  margin-bottom: 30px;
}

.country-breadcrumb a {
  color: #c7d9ff;
}

.country-breadcrumb a:hover {
  color: #fff;
}

.country-seo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 46px;
  align-items: center;
}

.country-seo-grid > *,
.country-hero-copy,
.country-brief {
  min-width: 0;
}

.country-hero-copy h1,
.country-lead,
.country-brief b {
  overflow-wrap: break-word;
}

.country-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  border: 1px solid rgba(143, 240, 251, .34);
  background: rgba(32, 213, 236, .09);
  color: #a8f4ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
}

.country-kicker img {
  width: 30px;
  height: 21px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .26);
}

.country-hero-copy h1 {
  margin-top: 22px;
  max-width: 780px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.18;
  font-weight: 850;
  letter-spacing: -1px;
}

.country-hero-copy h1 span {
  display: block;
  margin-top: 10px;
  font-size: .39em;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: .6px;
  color: #91e9f7;
}

.country-lead {
  max-width: 760px;
  margin-top: 22px;
  color: #c2d3f3;
  font-size: 16.5px;
  line-height: 1.9;
}

.country-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.country-chips span {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(165, 194, 255, .18);
  background: rgba(255, 255, 255, .07);
  color: #e7f0ff;
  font-size: 12.5px;
  font-weight: 650;
}

.country-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.country-hero-actions .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .07);
}

.country-updated {
  margin-top: 18px;
  color: #829ac6;
  font-size: 12.5px;
}

.country-brief {
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .055));
  border: 1px solid rgba(163, 203, 255, .22);
  box-shadow: 0 24px 70px rgba(0, 5, 25, .32);
  backdrop-filter: blur(18px);
}

.country-brief-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.country-brief-head img {
  width: 54px;
  height: 38px;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .3);
}

.country-brief-head small {
  display: block;
  color: #77e8f5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.country-brief-head b {
  display: block;
  margin-top: 2px;
  font-size: 17px;
}

.country-brief-row {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.country-brief-row span {
  color: #8ea8d3;
  font-size: 12px;
}

.country-brief-row b {
  color: #f5f9ff;
  font-size: 13.5px;
  line-height: 1.55;
}

.country-brief-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 16px;
  color: #a9bedf;
  font-size: 12px;
  line-height: 1.65;
}

.country-fact-band {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .1);
}

.country-fact {
  padding: 18px 20px;
  background: rgba(4, 13, 39, .5);
  backdrop-filter: blur(9px);
}

.country-fact span {
  display: block;
  margin-bottom: 5px;
  color: #849fce;
  font-size: 11px;
  letter-spacing: 1px;
}

.country-fact b {
  color: #f5f9ff;
  font-size: 14px;
  line-height: 1.55;
}

.country-main {
  padding: 62px 0 82px;
}

.country-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.country-side {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 18px;
}

.country-toc,
.country-consult {
  border: 1px solid rgba(30, 94, 255, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.country-toc {
  padding: 18px;
}

.country-toc h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 14px;
}

.country-toc nav {
  display: grid;
}

.country-toc a {
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.country-toc a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.country-consult {
  padding: 20px;
  color: #fff;
  background: linear-gradient(150deg, #071634, #0a2b69);
}

.country-consult h2 {
  font-size: 17px;
}

.country-consult p {
  margin: 8px 0 15px;
  color: #aabfe4;
  font-size: 12.5px;
  line-height: 1.75;
}

.country-consult .qr-box {
  width: 132px;
  height: 132px;
  margin: 0 auto 12px;
}

.country-consult .btn {
  width: 100%;
  margin-top: 9px;
}

.country-consult small {
  display: block;
  margin-top: 11px;
  color: #7891c0;
  font-size: 10.5px;
  line-height: 1.6;
}

.country-content {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.country-section {
  padding: 32px;
  border: 1px solid rgba(30, 94, 255, .11);
  border-radius: 22px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 42px rgba(12, 34, 96, .08);
  scroll-margin-top: 96px;
}

.country-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.6px;
  text-transform: uppercase;
}

.country-section-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-tech);
  box-shadow: 0 0 10px rgba(32, 213, 236, .8);
}

.country-section h2 {
  margin: 10px 0 15px;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.3;
}

.country-section-lead {
  margin: 9px 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.86;
}

.country-note {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(30, 94, 255, .18);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(30, 94, 255, .07), rgba(32, 213, 236, .07));
  color: #29436d;
  font-size: 14px;
  line-height: 1.8;
}

.country-note strong {
  color: var(--primary-dark);
}

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

.country-type {
  position: relative;
  padding: 20px 20px 20px 54px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfdff;
}

.country-type-num {
  position: absolute;
  left: 16px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: var(--grad-tech);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(30, 94, 255, .24);
}

.country-type h3 {
  color: var(--ink);
  font-size: 16px;
}

.country-type p {
  margin-top: 7px;
  color: var(--gray);
  font-size: 13.5px;
  line-height: 1.72;
}

.country-steps {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.country-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.country-step-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid rgba(30, 94, 255, .16);
  font-size: 12px;
  font-weight: 800;
}

.country-step h3 {
  color: var(--ink);
  font-size: 15.5px;
}

.country-step p {
  margin-top: 5px;
  color: var(--gray);
  font-size: 13.5px;
  line-height: 1.72;
}

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

.country-material {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.country-material h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 15.5px;
}

.country-material h3::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
}

.country-material ul {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.country-material li {
  position: relative;
  padding-left: 15px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.66;
}

.country-material li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .67em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

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

.country-tip {
  display: flex;
  gap: 11px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #dbe7fa;
  background: #f8fbff;
}

.country-tip span {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.country-tip p {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.7;
}

.country-faqs {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.country-faq {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.country-faq summary {
  position: relative;
  padding: 16px 44px 16px 18px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.country-faq summary::-webkit-details-marker {
  display: none;
}

.country-faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 20px;
  font-weight: 500;
}

.country-faq[open] summary::after {
  content: "−";
}

.country-faq p {
  padding: 0 18px 17px;
  color: var(--gray);
  font-size: 13.5px;
  line-height: 1.76;
}

.country-related {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-top: 20px;
}

.country-related a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 650;
  transition: all .2s ease;
}

.country-related a:hover {
  color: var(--primary-dark);
  border-color: rgba(30, 94, 255, .34);
  background: var(--primary-soft);
  transform: translateY(-2px);
}

.country-related img {
  width: 25px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
}

.country-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 26px;
  padding: 24px 26px;
  border-radius: 18px;
  background: linear-gradient(125deg, #071634, #0b2e72);
  color: #fff;
}

.country-cta h3 {
  font-size: 19px;
}

.country-cta p {
  margin-top: 5px;
  color: #aabfe4;
  font-size: 13px;
}

.country-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.country-disclaimer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #8190a4;
  font-size: 12px;
  line-height: 1.75;
}

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

.country-contact-card {
  padding: 19px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: #fff;
}

.country-contact-card .ic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 11px;
  background: var(--primary-soft);
  font-size: 18px;
}

.country-contact-card h3 {
  font-size: 14px;
}

.country-contact-card p {
  margin-top: 4px;
  color: var(--gray);
  font-size: 13px;
  word-break: break-word;
}

@media (max-width: 1040px) {
  .country-seo-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .country-brief {
    max-width: 720px;
  }

  .country-fact-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .country-layout {
    grid-template-columns: 1fr;
  }

  .country-side {
    position: static;
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .country-toc nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .country-seo-page .topbar .container {
    height: auto;
    min-height: 40px;
    padding-top: 7px;
    padding-bottom: 7px;
    flex-wrap: wrap;
  }

  .country-seo-page .topbar .tb-l {
    display: none;
  }

  .country-seo-page .topbar .tb-r {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
  }

  .country-seo-page .nav {
    height: 68px;
    gap: 8px;
  }

  .country-seo-page .logo {
    min-width: 0;
    gap: 8px;
  }

  .country-seo-page .logo .lg {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .country-seo-page .logo .lt {
    min-width: 0;
  }

  .country-seo-page .logo .lt b {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 17px;
  }

  .country-seo-page .logo .lt span {
    font-size: 9px;
    letter-spacing: 1.8px;
  }

  .country-seo-page .nav-right {
    flex: 0 0 auto;
    gap: 4px;
  }

  .country-seo-page .country-nav-consult {
    display: none;
  }

  .country-seo-page .nav-links {
    top: 68px;
  }

  .country-seo-hero .container {
    padding-top: 18px;
    padding-bottom: 40px;
  }

  .country-breadcrumb {
    margin-bottom: 22px;
  }

  .country-hero-copy h1 {
    font-size: 36px;
  }

  .country-hero-actions .btn {
    max-width: 100%;
  }

  .country-lead {
    font-size: 15px;
  }

  .country-hero-actions .btn {
    flex: 1 1 220px;
  }

  .country-fact-band {
    margin-top: 28px;
  }

  .country-main {
    padding: 42px 0 60px;
  }

  .country-side {
    grid-template-columns: 1fr;
  }

  .country-toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .country-section {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .country-type-grid,
  .country-material-grid,
  .country-tip-grid,
  .country-contact-grid {
    grid-template-columns: 1fr;
  }

  .country-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .country-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .country-hero-copy h1 {
    font-size: 31px;
  }

  .country-fact-band,
  .country-related {
    grid-template-columns: 1fr;
  }

  .country-toc nav {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .country-related a {
    transition: none;
  }
}

/* 国家详情页：旗帜主题、文件式版式与横向办理导航 */
.country-detail-page .country-seo-hero {
  isolation: isolate;
  background:
    linear-gradient(104deg, rgba(3, 11, 33, .95) 0%, rgba(5, 20, 52, .84) 50%, rgba(7, 28, 67, .62) 100%),
    radial-gradient(650px 380px at 83% 22%, color-mix(in srgb, var(--country-primary) 42%, transparent), transparent 72%),
    url('/img/site-background.jpg') center 46% / cover no-repeat,
    var(--country-secondary);
}

.country-detail-page .country-seo-hero::before {
  opacity: .42;
  background-image:
    linear-gradient(color-mix(in srgb, var(--country-primary) 18%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--country-primary) 18%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
}

.country-detail-page .country-seo-hero::after {
  content: attr(data-code);
  position: absolute;
  z-index: 0;
  right: 3.5%;
  bottom: -32px;
  color: rgba(255, 255, 255, .055);
  font-size: clamp(150px, 24vw, 330px);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -14px;
  pointer-events: none;
}

.continent-south-america .country-seo-hero::before {
  background-image: radial-gradient(circle, color-mix(in srgb, var(--country-primary) 32%, transparent) 0 2px, transparent 2.5px);
  background-size: 34px 34px;
}

.continent-oceania .country-seo-hero::before {
  background-image: radial-gradient(circle, rgba(255, 255, 255, .28) 0 1.5px, transparent 2px);
  background-size: 30px 30px;
}

.continent-asia .country-seo-hero::before {
  background-image:
    linear-gradient(45deg, transparent 47%, color-mix(in srgb, var(--country-primary) 26%, transparent) 48% 52%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, color-mix(in srgb, var(--country-primary) 18%, transparent) 48% 52%, transparent 53%);
  background-size: 68px 68px;
}

.continent-africa .country-seo-hero::before {
  background-image: repeating-linear-gradient(0deg, color-mix(in srgb, var(--country-primary) 22%, transparent) 0 1px, transparent 1px 26px);
  background-size: auto;
}

.country-detail-page .country-breadcrumb,
.country-detail-page .country-seo-grid,
.country-detail-page .country-fact-band {
  position: relative;
  z-index: 1;
}

.country-detail-page .country-seo-grid {
  display: block;
}

.country-detail-page .country-hero-copy {
  max-width: 930px;
}

.country-detail-page .country-kicker {
  border-color: color-mix(in srgb, var(--country-primary-light) 48%, transparent);
  background: color-mix(in srgb, var(--country-primary) 20%, transparent);
  color: #fff;
}

.country-detail-page .country-hero-copy h1 {
  font-size: clamp(40px, 5.7vw, 66px);
  text-wrap: balance;
}

.country-title-break {
  display: none;
}

.country-detail-page .country-hero-copy h1 span {
  color: var(--country-primary-light);
}

.country-detail-page .country-hero-actions .btn-primary {
  background: linear-gradient(115deg, var(--country-secondary), var(--country-primary));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--country-primary) 32%, transparent);
}

.country-detail-page .country-chips span {
  border-color: color-mix(in srgb, var(--country-primary-light) 30%, transparent);
  background: color-mix(in srgb, var(--country-primary) 16%, rgba(255, 255, 255, .06));
}

.country-detail-page .country-brief {
  display: grid;
  grid-template-columns: 200px repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: none;
  margin-top: 28px;
  padding: 0;
  overflow: hidden;
  background: rgba(4, 15, 39, .58);
}

.country-detail-page .country-brief-head {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 0;
}

.country-detail-page .country-brief-head img {
  width: 46px;
  height: 32px;
}

.country-detail-page .country-brief-row {
  align-content: center;
  padding: 16px 18px;
  border-right: 1px solid rgba(255, 255, 255, .09);
  border-bottom: 0;
}

.country-detail-page .country-brief-row:last-of-type {
  border-right: 0;
}

.country-detail-page .country-brief-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .035);
}

.country-detail-page .country-layout-wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 258px;
  gap: 24px;
  align-items: start;
}

.country-detail-page .country-side {
  display: none;
}

.country-jump-nav {
  grid-column: 1;
  position: sticky;
  z-index: 20;
  top: 86px;
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid rgba(30, 94, 255, .13);
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.country-jump-nav::-webkit-scrollbar {
  display: none;
}

.country-jump-nav a {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
}

.country-jump-nav a:first-child,
.country-jump-nav a:hover {
  color: var(--country-secondary, var(--primary));
  background: color-mix(in srgb, var(--country-primary, #20d5ec) 13%, #fff);
}

.country-content-wide {
  width: 100%;
  grid-column: 1;
}

.country-contact-rail {
  position: sticky;
  top: 96px;
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 18px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(260px 220px at 90% 0%, rgba(32, 213, 236, .22), transparent 70%),
    linear-gradient(150deg, #06142f, #0a337b);
  box-shadow: 0 18px 48px rgba(7, 28, 72, .22);
}

.contact-rail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
}

.contact-rail-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #27e1a3;
  box-shadow: 0 0 0 5px rgba(39, 225, 163, .12);
  animation: railPulse 1.8s ease-in-out infinite;
}

.contact-rail-head small {
  display: block;
  color: #80e9f5;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.contact-rail-head b {
  display: block;
  margin-top: 2px;
  font-size: 16px;
}

.contact-rail-qr {
  margin-top: 17px;
  padding: 12px;
  border-radius: 15px;
  text-align: center;
  background: #fff;
}

.contact-rail-qr img {
  display: block;
  width: 100%;
  max-width: 174px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
}

.contact-rail-qr p {
  margin-top: 7px;
  color: #526784;
  font-size: 10.5px;
  line-height: 1.55;
}

.contact-rail-phone {
  display: grid;
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: 13px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
}

.contact-rail-phone small {
  color: #8da7d2;
  font-size: 9px;
  letter-spacing: .8px;
}

.contact-rail-phone b {
  margin-top: 2px;
  font-size: 20px;
  letter-spacing: .4px;
}

.contact-rail-phone span {
  margin-top: 2px;
  color: #80e9f5;
  font-size: 9.5px;
}

.contact-rail-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 11px;
  color: #d6e5ff;
  background: rgba(255, 255, 255, .05);
  font: inherit;
  font-size: 10.5px;
  cursor: pointer;
}

.contact-rail-copy strong {
  color: #8ff0fb;
}

.contact-rail-chat {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 11px 10px;
  border-radius: 11px;
  color: #fff;
  background: var(--grad-tech);
  font-size: 12px;
  font-weight: 750;
  box-shadow: 0 8px 20px rgba(30, 94, 255, .24);
}

.contact-rail-note {
  margin-top: 11px;
  color: #819bc6;
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}

@keyframes railPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.8); }
}

.country-detail-page .country-section {
  border-top: 3px solid color-mix(in srgb, var(--country-primary) 68%, #dfe8f6);
}

.country-detail-page .country-type {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--country-tint) 60%, #fff), #fff);
}

.country-detail-page .country-type-num {
  background: linear-gradient(135deg, var(--country-secondary), var(--country-primary));
}

.country-insurance-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(440px 220px at 86% 0%, rgba(32, 213, 236, .27), transparent 66%),
    linear-gradient(120deg, #06142e, #0a337d);
  box-shadow: 0 18px 46px rgba(7, 29, 74, .2);
  scroll-margin-top: 96px;
}

.country-insurance-strip .cis-copy {
  max-width: 760px;
}

.country-insurance-strip .cis-copy > span {
  color: #8ff0fb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.4px;
}

.country-insurance-strip h2 {
  margin-top: 7px;
  font-size: clamp(24px, 3vw, 34px);
}

.country-insurance-strip p {
  margin-top: 8px;
  color: #b8caeb;
  font-size: 14px;
  line-height: 1.75;
}

.country-insurance-strip .cis-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  flex-wrap: wrap;
}

.country-insurance-strip .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
}

.country-business-bridge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 27px 30px;
  border-radius: 22px;
  border: 1px solid rgba(30, 94, 255, .16);
  background:
    radial-gradient(360px 190px at 90% 0%, rgba(32, 213, 236, .13), transparent 68%),
    linear-gradient(120deg, #f0f6ff, #f8fdff);
}

.country-business-bridge span {
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.2px;
}

.country-business-bridge h2 {
  margin-top: 5px;
  color: var(--ink);
  font-size: clamp(22px, 2.7vw, 30px);
}

.country-business-bridge p {
  max-width: 760px;
  margin-top: 6px;
  color: var(--gray);
  font-size: 13.5px;
  line-height: 1.7;
}

.country-business-bridge .btn {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .country-detail-page .country-brief {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .country-detail-page .country-brief-head {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
  }

  .country-insurance-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .country-business-bridge {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 1000px) {
  .country-detail-page .country-layout-wide {
    grid-template-columns: 1fr;
  }

  .country-jump-nav,
  .country-content-wide,
  .country-contact-rail {
    grid-column: 1;
    grid-row: auto;
  }

  .country-contact-rail {
    position: static;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 12px 16px;
    align-items: center;
  }

  .contact-rail-head {
    grid-column: 1 / -1;
  }

  .contact-rail-qr {
    grid-row: span 4;
    margin-top: 0;
  }

  .contact-rail-phone,
  .contact-rail-copy,
  .contact-rail-chat,
  .contact-rail-note {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .country-detail-page .country-seo-hero::after {
    right: -12px;
    bottom: -14px;
    font-size: 150px;
  }

  .country-detail-page .country-hero-copy h1 {
    font-size: 37px;
  }

  .country-title-break {
    display: block;
  }

  .country-detail-page .country-brief {
    grid-template-columns: 1fr;
  }

  .country-detail-page .country-brief-row {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
  }

  .country-jump-nav {
    top: 76px;
    margin-left: -5px;
    margin-right: -5px;
  }

  .country-insurance-strip {
    padding: 23px 20px;
  }

  .country-insurance-strip .cis-actions {
    width: 100%;
  }

  .country-insurance-strip .cis-actions .btn {
    flex: 1 1 160px;
  }

  .country-contact-rail {
    grid-template-columns: 118px minmax(0, 1fr);
    padding: 14px;
  }

  .contact-rail-qr {
    padding: 7px;
  }

  .contact-rail-qr p {
    font-size: 9px;
  }

  .contact-rail-phone b {
    font-size: 17px;
  }
}

/* 国家签证资料库 */
.country-directory-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(3, 10, 31, .94) 0%, rgba(5, 22, 61, .78) 58%, rgba(8, 37, 91, .56) 100%),
    url('/img/site-background.jpg') center 45% / cover no-repeat,
    radial-gradient(720px 360px at 88% 8%, rgba(32, 213, 236, .20), transparent 68%),
    radial-gradient(660px 420px at 10% 100%, rgba(30, 94, 255, .3), transparent 70%),
    linear-gradient(135deg, #070f2b, #0a245d 64%, #123fc4 150%);
}

.country-directory-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .38;
  background-image:
    linear-gradient(rgba(114, 164, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 164, 255, .09) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 90% 90% at 55% 10%, #000 34%, transparent 78%);
}

.country-directory-hero .container {
  position: relative;
  z-index: 1;
  padding-top: 28px;
  padding-bottom: 68px;
}

.country-directory-hero h1 {
  max-width: 900px;
  margin-top: 24px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.16;
  letter-spacing: -1.3px;
}

.country-directory-hero h1 span {
  display: block;
  margin-top: 8px;
  color: #96eef8;
  font-size: .35em;
  font-weight: 650;
  letter-spacing: 1px;
}

.country-directory-hero p {
  max-width: 760px;
  margin-top: 20px;
  color: #c0d2f2;
  font-size: 16px;
  line-height: 1.9;
}

.directory-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.directory-stat-row span {
  padding: 8px 14px;
  border: 1px solid rgba(167, 211, 255, .2);
  border-radius: 999px;
  color: #dbeaff;
  background: rgba(255, 255, 255, .07);
  font-size: 12.5px;
}

.directory-stat-row b {
  color: #8ceefa;
}

.country-directory-main {
  padding: 56px 0 82px;
}

.featured-country-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 34px;
}

.featured-country-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(30, 94, 255, .13);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: all .22s ease;
}

.featured-country-link:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 94, 255, .32);
  box-shadow: var(--glow);
}

.featured-country-link img {
  width: 34px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
}

.featured-country-link span {
  display: grid;
  min-width: 0;
}

.featured-country-link b {
  font-size: 14px;
}

.featured-country-link small {
  margin-top: 2px;
  color: var(--gray);
  font-size: 11px;
}

.featured-country-link strong {
  margin-left: auto;
  color: var(--primary);
  font-size: 12px;
  white-space: nowrap;
}

.directory-explorer {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(30, 94, 255, .12);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-lg);
}

.directory-toolbar {
  display: grid;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.directory-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.directory-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30, 94, 255, .1);
}

.directory-search svg {
  width: 20px;
  height: 20px;
  color: var(--gray);
  flex: 0 0 auto;
}

.directory-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.directory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.directory-filters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  transition: all .18s ease;
}

.directory-filters button:hover,
.directory-filters button.active {
  border-color: rgba(30, 94, 255, .35);
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.directory-filters em {
  margin-left: 4px;
  color: var(--gray);
  font-style: normal;
  font-size: 10px;
}

.directory-result-count {
  color: var(--gray);
  font-size: 12.5px;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.directory-continent {
  margin-top: 30px;
}

.directory-continent[hidden] {
  display: none;
}

.directory-continent-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  list-style: none;
}

.directory-continent-head::-webkit-details-marker {
  display: none;
}

.directory-continent-head h2 {
  color: var(--ink);
  font-size: 22px;
}

.directory-continent-head span {
  margin-left: auto;
  color: var(--gray);
  font-size: 12px;
}

.directory-continent-head i {
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  transition: transform .2s;
}

.directory-continent[open] .directory-continent-head i {
  transform: rotate(225deg);
}

.directory-continent .directory-grid {
  margin-top: 16px;
}

.directory-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 20px;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #fff, #f9fbff);
  color: var(--ink);
  transition: all .22s ease;
}

.directory-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 94, 255, .3);
  box-shadow: var(--glow);
}

.directory-card[hidden] {
  display: none;
}

.directory-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.directory-card-head img {
  width: 42px;
  height: 29px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(9, 22, 64, .14);
}

.directory-card-head h3 {
  font-size: 18px;
}

.directory-card-head small {
  display: block;
  margin-top: 1px;
  color: var(--gray);
  font-size: 10px;
  letter-spacing: 1px;
}

.directory-card-region {
  align-self: flex-start;
  margin-top: 15px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 10.5px;
  font-weight: 700;
}

.directory-card p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 11px;
  color: var(--gray);
  font-size: 12.5px;
  line-height: 1.65;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.directory-card-go {
  margin-top: auto;
  padding-top: 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
}

.directory-empty {
  margin-top: 22px;
  padding: 34px 20px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  text-align: center;
  color: var(--gray);
}

.directory-empty[hidden] {
  display: none;
}

.directory-service-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 21px 24px;
  border-radius: 18px;
  border: 1px solid rgba(30, 94, 255, .16);
  background: linear-gradient(120deg, rgba(30, 94, 255, .07), rgba(32, 213, 236, .08));
}

.directory-service-note p {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.7;
}

.directory-service-note b {
  color: var(--primary-dark);
}

@media (max-width: 1000px) {
  .featured-country-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .country-directory-hero .container {
    padding-top: 18px;
    padding-bottom: 46px;
  }

  .country-directory-hero h1 {
    font-size: 36px;
  }

  .country-directory-hero p {
    font-size: 14.5px;
  }

  .country-directory-main {
    padding: 38px 0 60px;
  }

  .featured-country-links {
    grid-template-columns: 1fr;
  }

  .directory-explorer {
    padding: 18px 15px;
    border-radius: 19px;
  }

  .directory-grid {
    grid-template-columns: 1fr;
  }

  .directory-card {
    min-height: 195px;
  }

  .directory-service-note {
    align-items: flex-start;
    flex-direction: column;
  }
}
