/* 签证国家列表页 */

.visa-country-page {
  background: #f5f7fa;
}

.visa-country-page .vc-page {
  margin-top: 16px;
  margin-bottom: 40px;
  padding: 20px 28px 36px;
}

.vc-breadcrumb {
  font-size: 13px;
  color: #888;
  margin-bottom: 18px;
}

.vc-breadcrumb a {
  color: #666;
}

.vc-breadcrumb a:hover {
  color: var(--visa-blue) !important;
}

.vc-section {
  margin-bottom: 28px;
}

.vc-section .visa-sec-head {
  margin-bottom: 14px;
}

.vc-section .visa-sec-head h2 {
  font-size: 20px;
  font-weight: 700;
  color: #222;
}

/* 热门卡：沿用 dest-card 90px + 国旗 */
.vc-hot-card .vc-hot-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* 设计稿国旗：72×47，圆角 8px */
.vc-hot-flag {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 28px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  z-index: 2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.vc-hot-card .dest-name {
  left: 8px;
  top: 6px;
  font-size: 13px;
}

/* A-Z + 搜索 */
.vc-az-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.vc-az-label {
  flex-shrink: 0;
  font-size: 13px;
  color: #666;
  white-space: nowrap;
}

.vc-az-letters {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

/* 设计稿字母：18px / 600 / 行高 28.8 */
.vc-az-letters a {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 13px;
  height: 28.8px;
  padding: 0 2px;
  opacity: 1;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 28.8px;
  text-align: center;
  letter-spacing: 0;
  color: #000;
  border-radius: 0;
  background: transparent;
  z-index: 0;
}

.vc-az-letters a:hover,
.vc-az-letters a.curr {
  background: transparent;
  color: var(--visa-blue) !important;
  text-decoration: none !important;
}

.vc-az-letters a.disabled {
  color: #ccc;
  pointer-events: none;
  font-weight: 400;
}

.vc-search {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
}

.vc-search input {
  width: 180px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #d8dee8;
  border-right: 0;
  border-radius: 6px 0 0 6px;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}

.vc-search input:focus {
  border-color: var(--visa-blue);
}

.vc-search button {
  height: 34px;
  padding: 0 18px;
  border: none;
  border-radius: 0 6px 6px 0;
  background: var(--visa-blue);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.vc-search button:hover {
  opacity: .92;
}

/* 字母行：相邻块边框重合，中间无间距 */
.vc-letter-block {
  display: flex;
  align-items: stretch;
  border: 1px solid #e8edf3;
  border-radius: 0;
  overflow: hidden;
  margin: 0;
  background: #fff;
  min-height: 84px;
}

.vc-letter-block + .vc-letter-block {
  margin-top: -1px; /* 上下边框重合为一条线 */
}

.vc-letter-block:first-child {
  border-radius: 8px 8px 0 0;
}

.vc-letter-block:last-child {
  border-radius: 0 0 8px 8px;
}

.vc-letter-block:only-child {
  border-radius: 8px;
}

.vc-letter-side {
  width: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef1f5;
  font-size: 22px;
  font-weight: 700;
  color: #9aa3b2;
}

.vc-country-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 0;
  padding: 15px 12px;
  box-sizing: border-box;
}

/* 设计稿单卡约 269.75×54.33，横向 flex */
.vc-country-item {
  padding: 0 8px;
  margin-bottom: 12px;
  border-left: none;
  box-sizing: border-box;
  min-height: 54px;
}

.vc-country-item:nth-child(4n+1) {
  border-left: none;
}

.vc-country-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  align-self: stretch;
  flex-grow: 1;
  padding: 0;
  gap: 9px;
  width: 100%;
  min-height: 47px;
  opacity: 1;
  box-sizing: border-box;
}

.vc-flag {
  width: 72px;
  height: 47px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  margin-top: 0;
  display: block;
  background: #e8edf3 center/cover no-repeat;
  box-shadow: none;
}

.vc-flag-empty {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 72px;
  height: 47px;
  padding: 0;
  background: #dde3ec;
  border-radius: 8px;
  flex-shrink: 0;
  margin-top: 0;
}

.vc-country-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.vc-country-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin-bottom: 0;
  line-height: 1.3;
}

.vc-country-name:hover {
  color: var(--visa-blue) !important;
  text-decoration: none !important;
}

.vc-country-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}

.vc-country-links a {
  font-size: 12px;
  color: var(--visa-blue);
  white-space: nowrap;
}

.vc-country-links a:hover {
  text-decoration: underline !important;
}

.vc-empty {
  padding: 40px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

.vc-letter-block.is-hidden,
.vc-country-item.is-hidden {
  display: none;
}

@media (max-width: 1100px) {
  .vc-country-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .vc-hot-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 992px) {
  .visa-country-page .vc-page {
    padding: 14px 12px 20px;
    margin-top: 12px;
  }

  .vc-az-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .vc-az-letters {
    gap: 6px;
    max-width: 100%;
  }

  .vc-az-letters a {
    font-size: 15px;
    height: 28px;
    min-width: 18px;
  }

  .vc-search {
    width: 100%;
  }

  .vc-search input {
    width: 100%;
    flex: 1;
  }

  .vc-letter-block {
    flex-direction: column;
    min-height: 0;
  }

  .vc-letter-side {
    width: 100%;
    height: 36px;
    font-size: 16px;
    justify-content: flex-start;
    padding-left: 14px;
  }

  .vc-country-grid {
    grid-template-columns: 1fr;
    padding: 10px 8px;
  }

  .vc-country-item {
    margin-bottom: 10px;
    padding: 8px;
    border-top: 1px solid #f0f2f5;
  }

  .vc-flag,
  .vc-flag-empty {
    width: 56px;
    height: 36px;
  }

  .vc-country-links {
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .vc-hot-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .vc-hot-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .vc-az-letters a {
    font-size: 14px;
  }
}
