/* 签证产品列表页 — 对齐设计稿 */

.visa-product-page {
  background: #f2f2f2;
}

.visa-product-page .visa-page.vp-page {
  background: transparent;
  box-shadow: none;
  margin-top: 12px;
  margin-bottom: 40px;
  padding: 8px 0 32px;
}

.vp-breadcrumb {
  font-size: 13px;
  color: #888;
  margin-bottom: 18px;
}

.vp-breadcrumb a {
  color: #666;
}

.vp-breadcrumb a:hover {
  color: var(--visa-blue) !important;
}

/* 白底卡片容器：标题+搜索+国家筛选 */
.vp-panel {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(30, 50, 90, .06);
  padding: 20px 22px 22px;
  margin-bottom: 16px;
  box-sizing: border-box;
}

/* 标题 + 搜索同一行 */
.vp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.vp-page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.vp-search {
  display: flex;
  width: 420px;
  max-width: 100%;
  flex-shrink: 1;
}

.vp-search input {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #d8dee8;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  background: #fff;
}

.vp-search input:focus {
  border-color: var(--visa-blue);
}

.vp-search button {
  width: 88px;
  height: 40px;
  border: none;
  border-radius: 0 4px 4px 0;
  background: var(--visa-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.vp-search button:hover {
  opacity: .92;
}

.vp-item.is-hide {
  display: none !important;
}

.vp-empty {
  padding: 36px 16px;
  text-align: center;
  color: #888;
  font-size: 14px;
  background: #fff;
  border: 1px dashed #e0e5ec;
  border-radius: 4px;
  margin-top: 8px;
}

/* 国家筛选：8 列 × 2 行 */
.vp-country-filter {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-bottom: 0;
}

.vp-country-card {
  position: relative;
  display: block;
  height: 88px;
  border-radius: 6px;
  overflow: hidden;
  background: #c5d5e8;
}

.vp-country-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vp-country-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 24, 40, .35) 0%, rgba(20, 24, 40, .15) 40%, rgba(20, 24, 40, .82) 100%);
}

.vp-cc-name {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 1;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.vp-cc-type {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
  color: rgba(255, 255, 255, .92);
  font-size: 11px;
}

.vp-cc-type:empty {
  display: none;
}

.vp-cc-price {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  color: #ffd56a;
  font-size: 12px;
  font-weight: 700;
}

.vp-country-card.curr {
  outline: 2px solid var(--visa-blue);
  outline-offset: 1px;
}

/* 主栏：列表 + 侧栏（排序栏在上方通栏） */
.vp-main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.vp-list-col {
  flex: 1;
  min-width: 0;
}

.vp-side {
  width: 300px;
  flex-shrink: 0;
}

/* 排序栏通栏：左排序，右共X件 + 翻页 */
.vp-sort {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid #e0e5ec;
  border-radius: 4px;
  margin-bottom: 14px;
  padding-right: 16px;
  min-height: 46px;
  box-sizing: border-box;
}

.vp-sort-tabs {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.vp-sort-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 13px 22px;
  font-size: 14px;
  color: #444 !important;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none !important;
}

.vp-sort-tabs a .vp-sort-txt {
  color: inherit !important;
  font-size: 14px !important;
  font-weight: inherit;
}

.vp-sort-tabs a .vp-arrow {
  font-size: 12px;
  color: #888 !important;
  font-weight: 400;
}

/* 未选中：悬停蓝字 */
body.visa-home.visa-product-page .vp-sort-tabs a:not(.curr):hover,
body.visa-home.visa-product-page .vp-sort-tabs a:not(.curr):focus {
  color: var(--visa-blue) !important;
  background: transparent;
  text-decoration: none !important;
}

/* 选中 / 选中后悬停：必须白字蓝底（勿被 a:hover 蓝字盖住） */
.vp-sort-tabs a.curr,
.vp-sort-tabs a.curr:hover,
.vp-sort-tabs a.curr:focus,
.vp-sort-tabs a.curr:active,
body.visa-home .vp-sort-tabs a.curr,
body.visa-home .vp-sort-tabs a.curr:hover,
body.visa-home .vp-sort-tabs a.curr:focus,
body.visa-home .vp-sort-tabs a.curr:active,
body.visa-home.visa-product-page .vp-sort-tabs a.curr,
body.visa-home.visa-product-page .vp-sort-tabs a.curr:hover,
body.visa-home.visa-product-page .vp-sort-tabs a.curr:focus,
body.visa-home.visa-product-page .vp-sort-tabs a.curr:active {
  color: #fff !important;
  font-weight: 700;
  background: var(--visa-blue) !important;
  text-decoration: none !important;
}

.vp-sort-tabs a.curr .vp-sort-txt,
.vp-sort-tabs a.curr:hover .vp-sort-txt,
.vp-sort-tabs a.curr .vp-arrow,
.vp-sort-tabs a.curr:hover .vp-arrow,
body.visa-home.visa-product-page .vp-sort-tabs a.curr .vp-sort-txt,
body.visa-home.visa-product-page .vp-sort-tabs a.curr:hover .vp-sort-txt,
body.visa-home.visa-product-page .vp-sort-tabs a.curr .vp-arrow,
body.visa-home.visa-product-page .vp-sort-tabs a.curr:hover .vp-arrow {
  color: #fff !important;
}

.vp-sort-pager {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.vp-page-info {
  font-size: 13px;
  color: #666;
}

.vp-page-info b,
.vp-page-info em {
  color: #333;
  font-weight: 600;
  font-style: normal;
}

.vp-pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid #cfd5de;
  border-radius: 2px;
  background: #fff;
  color: #666 !important;
  font-size: 12px;
  line-height: 1;
  box-sizing: border-box;
}

.vp-pg-btn:hover {
  border-color: var(--visa-blue);
  color: var(--visa-blue) !important;
}

.vp-pg-btn.is-disabled,
.vp-pg-btn.is-disabled:hover {
  border-color: #e5e8ee;
  color: #c8ced8 !important;
  cursor: default;
  pointer-events: none;
}

/* 产品列表 */
.vp-product-list {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 4px;
}

.vp-item {
  display: flex;
  gap: 16px;
  padding: 20px 18px;
  border-bottom: 1px solid #eef1f5;
  align-items: flex-start;
}

.vp-item:last-child {
  border-bottom: 0;
}

/* 左侧正方形缩略图；无图回退彩色品牌块 */
.vp-badge {
  width: 96px;
  height: 96px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  align-self: flex-start;
  background: linear-gradient(145deg, #f06a5a 0%, #d94436 100%);
  color: #fff;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  padding: 0;
  box-sizing: border-box;
  letter-spacing: 1px;
  overflow: hidden;
}

.vp-badge.has-pic {
  background: #f0f2f5;
  padding: 0;
}

.vp-badge .vp-thumb {
  display: none;
  width: 96px;
  height: 96px;
  object-fit: cover;
  object-position: center;
}

.vp-badge.has-pic .vp-thumb {
  display: block;
}

.vp-badge.is-text {
  padding: 8px 6px;
}

.vp-badge span {
  display: block;
}

.vp-badge .vp-badge-sub {
  color: #ffe08a;
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}

.vp-item:nth-child(4n+2) .vp-badge {
  background: linear-gradient(145deg, #3cc98a 0%, #1fa968 100%);
}

.vp-item:nth-child(4n+3) .vp-badge {
  background: linear-gradient(145deg, #5b8def 0%, #2f6ad4 100%);
}

.vp-item:nth-child(4n+4) .vp-badge {
  background: linear-gradient(145deg, #f0a04b 0%, #e07a20 100%);
}

.vp-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vp-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.vp-title {
  display: inline;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
}

.vp-title:hover {
  color: var(--visa-blue) !important;
}

/* 红色「优惠」角标 */
.vp-promo {
  position: relative;
  display: inline-block;
  height: 20px;
  line-height: 20px;
  padding: 0 8px 0 10px;
  background: #e53935;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 2px;
  flex-shrink: 0;
}

.vp-promo::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  margin-top: -5px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 6px 5px 0;
  border-color: transparent #e53935 transparent transparent;
}

.vp-meta {
  margin: 0 0 12px;
  padding: 0;
  font-size: 12px;
  color: #999;
  line-height: 1.7;
}

.vp-meta-cycle {
  margin: 0 0 2px;
}

.vp-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.vp-meta-row > span {
  display: inline-flex;
  align-items: center;
}

.vp-meta-row > span + span::before {
  content: "|";
  margin: 0 10px;
  color: #d0d5dd;
  font-weight: 400;
}

.vp-meta em {
  font-style: normal;
  color: #555;
}

.vp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.vp-tags span {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #c8d0db;
  color: #8a93a3;
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.6;
  background: #fff;
  box-sizing: border-box;
  white-space: nowrap;
}

/* 按标签文案配色（对齐设计稿） */
.vp-tags span.vp-tag-red {
  color: #e54d4d;
  border-color: #e54d4d;
}
.vp-tags span.vp-tag-green {
  color: #2db87a;
  border-color: #2db87a;
}
.vp-tags span.vp-tag-orange {
  color: #e6a23c;
  border-color: #e6a23c;
}
.vp-tags span.vp-tag-cyan {
  color: #3aa0d9;
  border-color: #3aa0d9;
}
.vp-tags span.vp-tag-brown {
  color: #c49a6c;
  border-color: #c49a6c;
}
.vp-tags span.vp-tag-blue {
  color: #4a7fd4;
  border-color: #4a7fd4;
}
.vp-tags span.vp-tag-purple {
  color: #9b6dd7;
  border-color: #9b6dd7;
}
.vp-tags span.vp-tag-gray {
  color: #8a93a3;
  border-color: #c8d0db;
}

.vp-right {
  width: 168px;
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}

.vp-price {
  font-size: 14px;
  color: #666;
}

.vp-price strong {
  font-size: 24px;
  color: #333;
  font-weight: 800;
}

.vp-stat {
  font-size: 12px;
  color: #999;
  line-height: 1.4;
}

.vp-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 38px;
  padding: 0 20px;
  border-radius: 4px;
  background: var(--visa-blue);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
}

.vp-book:hover {
  opacity: .92;
  color: #fff !important;
}

.vp-pages {
  padding: 20px 0 8px;
  text-align: center;
}

.vp-pages a,
.vp-pages b,
.vp-pages span,
.vp-pages .vz-agg-pager a {
  display: inline-block;
  min-width: 32px;
  height: 32px;
  line-height: 32px;
  margin: 0 3px;
  padding: 0 8px;
  border: 1px solid #e0e6ef;
  border-radius: 4px;
  background: #fff;
  color: #555;
  font-size: 13px;
  box-sizing: border-box;
  text-decoration: none !important;
}

.vp-pages b,
.vp-pages .curr,
.vp-pages .vz-agg-pager a.curr {
  background: var(--visa-blue);
  border-color: var(--visa-blue);
  color: #fff !important;
}

/* 侧栏 */
.vp-side-box {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 6px;
  padding: 16px 15px 22px;
  margin-bottom: 14px;
  box-sizing: border-box;
}

.vp-side-box-guarantee {
  padding: 16px 15px 22px;
  min-height: 323px;
  display: flex;
  flex-direction: column;
  background: #fff;
}

/* 标题下两根线：文字等宽蓝线 + 通栏灰线 */
.vp-side-title {
  position: relative;
  margin: 0 0 16px;
  padding: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
  border-bottom: 1px solid #e8ecf1;
}

.vp-side-title > span {
  display: inline-block;
  position: relative;
}

.vp-side-title > span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -13px;
  width: 100%;
  height: 3px;
  background: #333;
}

.vp-guarantee {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.vp-guarantee li {
  display: flex;
  gap: 12px; /* 15+44+12=71 文字起始 */
  align-items: flex-start;
  margin: 0;
  min-height: 44px;
}

.vp-ico {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: block;
  overflow: hidden;
  background: transparent;
}

.vp-ico img {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
}

.vp-guarantee strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  margin-bottom: 2px;
}

.vp-guarantee p {
  margin: 0;
  max-width: 211px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(0, 0, 0, .4);
  line-height: 19.2px;
}

.vp-process-lead {
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.6;
  color: #888;
}

.vp-process-lead span {
  color: #f09040;
  font-weight: 600;
}

.vp-process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.vp-process li {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0;
}

.vp-process-ico {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: block;
  overflow: hidden;
}

.vp-process-ico img {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
}

.vp-process strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin: 0;
}

.vp-process p {
  margin: 0;
  font-size: 12px;
  color: #999;
}

@media (max-width: 1200px) {
  .vp-country-filter {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 1100px) {
  .vp-side {
    width: 230px;
  }

  .vp-search {
    width: 320px;
  }
}

@media (max-width: 992px) {
  .vp-page {
    padding: 14px 12px 24px;
  }

  .vp-panel {
    padding: 14px 14px 16px;
  }

  .vp-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .vp-search {
    width: 100%;
  }

  .vp-country-filter {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .vp-main {
    flex-direction: column;
  }

  .vp-side {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .vp-side-box {
    margin-bottom: 0;
  }

  .vp-item {
    flex-wrap: wrap;
  }

  .vp-right {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px dashed #eef1f5;
  }
}

@media (max-width: 640px) {
  .vp-country-filter {
    grid-template-columns: repeat(3, 1fr);
  }

  .vp-country-card {
    height: 76px;
  }

  .vp-side {
    grid-template-columns: 1fr;
  }

  .vp-sort {
    flex-direction: column;
    align-items: stretch;
    padding-right: 0;
  }

  .vp-sort-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    border-bottom: 1px solid #eef1f5;
  }

  .vp-sort-tabs a {
    flex-shrink: 0;
    padding: 10px 14px;
    font-size: 13px;
  }

  .vp-sort-pager {
    justify-content: flex-end;
    padding: 8px 12px;
  }

  .vp-badge {
    width: 72px;
    height: 72px;
    font-size: 12px;
  }

  .vp-badge .vp-thumb {
    width: 72px;
    height: 72px;
  }

  .vp-title {
    font-size: 15px;
  }

  .vp-search button {
    width: 72px;
  }
}
