/* 签证材料聚合页（/visa-index.html、/visa-index-ctrip.html）
   按钮列表沿用官网卡片风格：细边框、圆角、悬浮变蓝 */

/* 面包屑：与 list.html / about.html 等页面一致。
   其他页面的样式带 data-v-* 作用域属性，这里的选择器不带属性，
   保持同样的取值即可。 */
.site-crumbs {
  color: #404040;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.9rem;
  font-size: 0.75rem;
  display: flex;
}
.site-crumbs svg {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--brand-blue);
}
.site-crumbs a {
  color: #404040;
  text-decoration: none;
}
.site-crumbs a:focus-visible,
.site-crumbs a:hover {
  color: var(--brand-blue);
  text-underline-offset: 0.15rem;
  text-decoration: underline;
}
.visa-index {
  color: var(--body);
  padding-bottom: 3.5rem;
}

.visa-index__inner {
  padding-top: 1.4rem;
}

.visa-index__head {
  margin: 1.6rem 0 2.2rem;
}

.visa-index__head h1 {
  color: var(--brand-blue);
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.4;
}

/* 另一个版本的入口 */
.visa-index__switch {
  margin: 0.7rem 0 0;
}

.visa-index__switch a {
  color: var(--brand-blue);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  font-size: 0.9rem;
  line-height: 1.8;
  text-decoration: none;
}

.visa-index__switch a:hover,
.visa-index__switch a:focus-visible {
  color: var(--brand-orange);
}

.visa-index__group + .visa-index__group {
  margin-top: 2.4rem;
}

.visa-index__group h2 {
  color: var(--ink);
  border-left: 3px solid var(--brand-orange);
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 1rem;
  padding-left: 0.7rem;
  font-size: 1.12rem;
  font-weight: 700;
  display: flex;
}

.visa-index__group h2 small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
}

.visa-index__list {
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: 0.7rem;
  display: grid;
}

.visa-index__item {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.86rem;
  line-height: 1.6;
  text-decoration: none;
  transition:
    border-color 0.18s,
    background 0.18s,
    color 0.18s;
  display: flex;
  text-align: center;
}

.visa-index__item:hover,
.visa-index__item:focus-visible {
  color: var(--brand-blue);
  background: var(--brand-blue-soft);
  border-color: #c9d6f5;
}

/* 极简顶栏（携程国旅版）没有导航与页脚，正文上方留出足够空间 */
.site-header--bare ~ main .visa-index__inner {
  padding-top: 2.4rem;
}

@media (width<=700px) {
  .visa-index__inner {
    padding-top: 1rem;
  }
  .visa-index__head {
    margin: 1.2rem 0 1.8rem;
  }
  .visa-index__head h1 {
    font-size: 1.4rem;
  }
  .visa-index__list {
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 0.55rem;
  }
  .visa-index__item {
    min-height: 2.7rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
  }
  .site-header--bare ~ main .visa-index__inner {
    padding-top: 1.6rem;
  }
}

/* 面包屑定位图标：其他页面的图标定义在各自 CSS 里，这里补一份 */
:where(.i-lucide\:map-pin) {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask-image: var(--svg);
    mask-image: var(--svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/g%3E%3C/svg%3E");
  }
