/* 签证申请页 */

.visa-apply-page {
  background: #eef2f7;
}

.visa-apply-page .visa-header {
  background: #fff;
}

/* Hero：设计稿 banner */
.va-hero {
  position: relative;
  z-index: 1;
  height: 420px;
  max-height: 34vw;
  min-height: 280px;
  background: #0a3a7a url(../../images/visa/apply-hero.png) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  /* 给下方白卡片留出叠压空间，标题仍完整可见 */
  padding: 0 16px 72px;
}

.va-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin-top: -24px;
}

/* 设计稿：黄橙填充 + 粗白描边 */
.va-hero-inner h1 {
  margin: 0;
  padding: 0;
  font-size: 68px;
  font-weight: 800;
  letter-spacing: 8px;
  line-height: 1.15;
  color: #ffb21a;
  -webkit-text-stroke: 4px #ffffff;
  text-stroke: 4px #ffffff;
  paint-order: stroke fill;
  text-shadow: 0 6px 16px rgba(0, 20, 60, .35);
  white-space: nowrap;
}

/* 副标题：浅下弧 + 两侧短线 */
.va-hero-sub {
  display: block;
  width: 420px;
  max-width: 88vw;
  height: auto;
  margin-top: 2px;
  overflow: visible;
}

.va-wrap {
  width: var(--visa-width, 1200px);
  max-width: 96%;
  margin: -56px auto 48px;
  position: relative;
  z-index: 3;
}

.va-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(20, 60, 120, .12);
  padding: 36px 40px 40px;
  min-height: 420px;
}

/* 步骤条 */
.va-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}

.va-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #9aa3b2;
  font-size: 13px;
}

.va-step i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #cfd6e0;
  font-style: normal;
  font-weight: 700;
  background: #fff;
  color: #9aa3b2;
}

.va-step.curr i,
.va-step.done i {
  background: var(--visa-blue, #1a6fd4);
  border-color: var(--visa-blue, #1a6fd4);
  color: #fff;
}

.va-step.curr,
.va-step.done {
  color: var(--visa-blue, #1a6fd4);
  font-weight: 600;
}

.va-step-line {
  width: 120px;
  height: 2px;
  background: #d8dee8;
  margin: 0 16px 22px;
}

.va-steps .va-step.done + .va-step-line,
.va-steps .va-step.curr + .va-step-line {
  background: var(--visa-blue, #1a6fd4);
}

.va-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--visa-blue, #1a6fd4);
}

.va-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 22px;
  font-size: 13px;
  color: #e67e22;
}

.va-tip i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e67e22;
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

/* 工具栏 */
.va-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid #eef1f5;
  padding-bottom: 0;
}

.va-tabs {
  display: flex;
  gap: 4px 8px;
  flex-wrap: wrap;
}

.va-tabs a {
  position: relative;
  padding: 10px 16px;
  font-size: 15px;
  color: #555;
  font-weight: 500;
}

.va-tabs a.curr {
  color: var(--visa-blue, #1a6fd4) !important;
  font-weight: 700;
}

.va-tabs a.curr::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--visa-blue, #1a6fd4);
  border-radius: 2px 2px 0 0;
}

.va-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  z-index: 20;
}

.va-search-box {
  display: flex;
  align-items: center;
  width: 260px;
  height: 36px;
  padding: 0 12px 0 10px;
  border: 1px solid #c5d4ea;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.va-search.is-open .va-search-box,
.va-search-box:focus-within {
  border-color: #1a6fd4;
  box-shadow: 0 0 0 2px rgba(26, 111, 212, .12);
}

.va-search-ico {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%99a3b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E") center / contain no-repeat;
}

.va-search input {
  flex: 1;
  width: auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  color: #333;
  outline: none;
  background: transparent;
  box-sizing: border-box;
}

.va-search input::placeholder {
  color: #a0a8b5;
}

.va-search-drop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 520px;
  max-width: min(520px, 92vw);
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(20, 40, 80, .12);
  box-sizing: border-box;
  z-index: 30;
}

.va-search-drop::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 48px;
  width: 12px;
  height: 12px;
  background: #f5f7fa;
  border-left: 1px solid #e6ebf2;
  border-top: 1px solid #e6ebf2;
  transform: rotate(45deg);
}

.va-search-drop-tip {
  padding: 8px 14px;
  background: #f5f7fa;
  border-radius: 6px 6px 0 0;
  font-size: 12px;
  color: #999;
  line-height: 1.4;
}

.va-search-letter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 8px;
  border-bottom: 1px solid #eef1f5;
}

.va-search-letter-tabs a {
  position: relative;
  padding: 10px 12px;
  font-size: 13px;
  color: #555 !important;
  white-space: nowrap;
}

.va-search-letter-tabs a.curr {
  color: #1a6fd4 !important;
  font-weight: 600;
}

.va-search-letter-tabs a.curr::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background: #1a6fd4;
  border-radius: 1px;
}

.va-search-drop-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px 6px;
  padding: 12px 10px 14px;
  max-height: 280px;
  overflow-y: auto;
}

.va-search-drop-list a {
  display: block;
  padding: 6px 4px;
  text-align: center;
  font-size: 13px;
  color: #333 !important;
  border-radius: 3px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.va-search-drop-list a:hover {
  background: #f0f5ff;
  color: #1a6fd4 !important;
}

.va-search-drop-list a.curr {
  background: #1a6fd4;
  color: #fff !important;
}

.va-search-drop-empty {
  grid-column: 1 / -1;
  padding: 24px 12px;
  text-align: center;
  color: #999;
  font-size: 13px;
}

/* 国家网格：国旗上 + 名称下 */
.va-country-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 20px 12px;
}

.va-country {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  cursor: pointer;
}

.va-country.is-hidden {
  display: none;
}

.va-flag {
  width: 72px;
  height: 47px;
  border-radius: 8px;
  background: #e8edf3 center/cover no-repeat;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
  transition: transform .2s, box-shadow .2s;
}

.va-country:hover .va-flag,
.va-country.curr .va-flag {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 111, 212, .28);
  outline: 2px solid var(--visa-blue, #1a6fd4);
}

.va-cname {
  font-size: 13px;
  color: #333;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

.va-country.curr .va-cname {
  color: var(--visa-blue, #1a6fd4);
  font-weight: 700;
}

.va-empty {
  text-align: center;
  color: #999;
  padding: 40px 0;
  font-size: 14px;
}

/* 区块 */
.va-block {
  margin-bottom: 28px;
}

.va-block-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: #222;
}

.va-chip-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.va-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.va-chip {
  height: 40px;
  padding: 0 18px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  color: #555;
  font-size: 14px;
  cursor: pointer;
  transition: .15s;
}

.va-chip:hover {
  border-color: var(--visa-blue, #1a6fd4);
  color: var(--visa-blue, #1a6fd4);
}

.va-chip.curr {
  background: var(--visa-blue, #1a6fd4);
  border-color: var(--visa-blue, #1a6fd4);
  color: #fff;
}

.va-help {
  margin: 8px 0 0;
  font-size: 12px;
  color: #e74c3c;
}

.va-date-wrap {
  max-width: 360px;
}

.va-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}

.va-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #333;
}

.va-field label em {
  color: #e74c3c;
  font-style: normal;
}

.va-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
}

.va-input:focus {
  border-color: var(--visa-blue, #1a6fd4);
}

.va-code-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.va-code-row .va-input {
  flex: 1;
}

.va-code-img {
  height: 42px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #e8edf3;
}

.va-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.va-btn {
  min-width: 140px;
  height: 44px;
  padding: 0 28px;
  border: none;
  border-radius: 22px;
  background: var(--visa-blue, #1a6fd4);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.va-btn:hover {
  opacity: .92;
}

.va-btn-ghost {
  background: #fff;
  color: var(--visa-blue, #1a6fd4);
  border: 1px solid var(--visa-blue, #1a6fd4);
}

@media (max-width: 1100px) {
  .va-country-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .va-chip-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .va-hero {
    height: 220px;
    max-height: none;
    min-height: 200px;
    padding: 0 12px 56px;
  }

  .va-hero-inner {
    margin-top: -8px;
  }

  .va-hero-inner h1 {
    font-size: 36px;
    letter-spacing: 4px;
    -webkit-text-stroke: 2px #ffffff;
    text-stroke: 2px #ffffff;
  }

  .va-hero-sub {
    width: 280px;
  }

  .va-wrap {
    margin: -40px auto 28px;
    max-width: 96%;
  }

  .va-card {
    padding: 22px 14px 26px;
    border-radius: 10px;
  }

  .va-title {
    font-size: 22px;
  }

  .va-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .va-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .va-tabs a {
    flex-shrink: 0;
    padding: 10px 12px;
    font-size: 14px;
  }

  .va-search {
    width: 100%;
    margin-bottom: 0;
  }

  .va-search-box {
    width: 100%;
  }

  .va-search-drop {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
  }

  .va-search-drop::before {
    right: 24px;
  }

  .va-search-drop-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .va-country-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 8px;
  }

  .va-flag {
    width: 56px;
    height: 36px;
  }

  .va-cname {
    font-size: 12px;
  }

  .va-chip-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .va-chip {
    height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }

  .va-chip-row {
    gap: 8px;
  }

  .va-fields {
    max-width: none;
  }

  .va-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .va-btn {
    width: 100%;
  }

  .va-step-line {
    width: 64px;
    margin: 0 10px 22px;
  }
}

@media (max-width: 480px) {
  .va-country-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .va-flag {
    width: 64px;
    height: 42px;
  }
  .va-chip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
