@charset "utf-8";
/* ============================================================
   香港身份办理流程及优势 · 页面专属样式
   依赖 styles.css（设计令牌 / 按钮 / 栅格）与 about.css（首屏 / chapter / sec-head）。
   本文件只补充：四栏索引、流程步骤条、五种途径卡片、七年三选择、优势板块、海报图集与灯箱。
   z-index 策略：不使用负值，统一 0/1，避免图片被容器背景色盖住。
   ============================================================ */

/* ---------- 首屏文字提亮：压在夜景照片上，必须用足白 ---------- */
.page-hero .hero-title { color: #FFFFFF; text-shadow: 0 2px 18px rgba(4, 12, 20, .55); }
.page-hero .hero-sub   { color: rgba(255, 255, 255, .92); text-shadow: 0 1px 12px rgba(4, 12, 20, .5); }
.page-hero .kicker     { color: #F0D79B; text-shadow: 0 1px 10px rgba(4, 12, 20, .5); }
.page-hero .idx-name   { color: #FFFFFF; }
.page-hero .idx-tags   { color: rgba(255, 255, 255, .72); }

/* ---------- 首屏索引改为四栏 ---------- */
.page-hero .hero-index { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .page-hero .hero-index { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .page-hero .hero-index { grid-template-columns: 1fr; }
}

/* ============================================================
   01 办理流程 · 竖向步骤条
   ============================================================ */

.hp-flow {
  counter-reset: step;
  display: grid;
  gap: 0;
  margin-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.hp-step {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background .35s var(--ease);
}
.hp-step:hover { background: rgba(160, 118, 46, .035); }

.hp-step-no {
  font-family: var(--num);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--gold);
  padding-top: 5px;
}
.hp-step-no b {
  display: block;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -.02em;
}
.hp-step-no span {
  display: block;
  margin-top: 7px;
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--ink-3);
}

.hp-step-body h3 {
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.45;
  margin-bottom: 10px;
  color: var(--ink);
}
.hp-step-body p {
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-2);
  max-width: 46em;
}
.hp-step-body p + p { margin-top: 8px; }

.hp-step-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--gold);
  border: 1px solid rgba(160, 118, 46, .32);
  border-radius: 2px;
  vertical-align: 3px;
  font-weight: 400;
  white-space: nowrap;
}

/* ============================================================
   02 五种办理途径 · 卡片
   ============================================================ */

.hp-schemes {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(28px, 4vw, 44px);
}

.hp-scheme {
  background: var(--paper);
  padding: clamp(24px, 3.2vw, 38px) clamp(20px, 3vw, 40px);
  display: grid;
  grid-template-columns: minmax(210px, .82fr) minmax(0, 1.38fr);
  gap: clamp(20px, 3.4vw, 52px);
  align-items: start;
}
.hp-scheme:nth-child(odd) { background: var(--paper-2); }

.hp-scheme-head h3 {
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 10px;
}
.hp-scheme-head h3 em {
  display: block;
  font-style: normal;
  font-family: var(--num);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--gold);
  margin-bottom: 8px;
}
.hp-scheme-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.7;
}
.hp-scheme-meta b {
  font-weight: 400;
  color: var(--gold);
  font-family: var(--num);
  letter-spacing: .02em;
}

.hp-scheme-body { display: grid; gap: 16px; }

.hp-scheme-body h4 {
  font-size: 12px;
  letter-spacing: .13em;
  color: var(--ink-3);
  font-weight: 400;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-top: 6px;
  margin-bottom: -2px;
}
.hp-scheme-body h4:first-child { margin-top: 0; }

.hp-list {
  display: grid;
  gap: 11px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 34em;
  text-align: left;
}
.hp-list li {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  text-align: left;
}
.hp-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-top: .62em;
  border-radius: 50%;
  background: var(--gold);
}
.hp-list li b { color: var(--ink); font-weight: 500; white-space: nowrap; }
.hp-list li em {
  font-style: normal;
  font-family: var(--num);
  font-size: 11.5px;
  color: var(--gold);
  border: 1px solid rgba(160, 118, 46, .3);
  padding: 1px 6px;
  border-radius: 2px;
  margin-left: 6px;
  white-space: nowrap;
}

/* 综合计分制 · 12 项准则按六个范畴分组 */
.hp-crit {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.hp-crit-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: clamp(12px, 2vw, 24px);
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.hp-crit-row:last-child { border-bottom: 0; padding-bottom: 0; }
.hp-crit-row:first-child { padding-top: 14px; }
.hp-crit-cat {
  font-size: 12px;
  line-height: 1.85;
  letter-spacing: 0;
  color: var(--gold);
  white-space: nowrap;
}
.hp-crit-row .hp-list { gap: 8px; max-width: none; }
.hp-crit-row .hp-list li {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}
.hp-crit-row .hp-list li::before { display: none; }
.hp-list li em.hp-no {
  font-family: var(--num);
  font-size: 11px;
  font-style: normal;
  color: var(--gold);
  border: 0;
  padding: 0;
  margin: 0;
  line-height: inherit;
  letter-spacing: .02em;
  opacity: .9;
  text-align: right;
}

/* 高校名单 */
.hp-unis {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 7px;
  font-size: 11.5px;
  line-height: 1.6;
}
.hp-unis span {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .5);
}
.hp-unis span.is-new {
  border-color: rgba(160, 118, 46, .38);
  color: var(--gold);
  background: rgba(212, 176, 104, .09);
}

.hp-note {
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-2);
  padding-left: 12px;
  border-left: 2px solid rgba(160, 118, 46, .38);
  max-width: 42em;
}

/* ============================================================
   03 七年之后 · 三个选择
   ============================================================ */

.hp-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  margin-top: clamp(28px, 4vw, 44px);
  background-color: var(--navy);
}
.hp-choice {
  background: var(--navy-2);
  padding: clamp(24px, 3vw, 36px);
  color: rgba(247, 243, 234, .8);
}
.hp-choice:nth-child(2) { background: var(--navy); }

.hp-choice-no {
  font-family: var(--num);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--gold-l);
  margin-bottom: 14px;
}
.hp-choice h3 {
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.5;
  color: #F7F3EA;
  margin-bottom: 12px;
}
.hp-choice h3 span {
  display: block;
  font-size: 12px;
  color: rgba(247, 243, 234, .5);
  margin-top: 6px;
  letter-spacing: .04em;
}
.hp-choice p { font-size: 13px; line-height: 1.9; }

.hp-choice-cards {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-dark-soft);
  display: grid;
  gap: 7px;
  font-size: 12px;
  line-height: 1.7;
}
.hp-choice-cards li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
}
.hp-choice-cards li::before {
  content: "·";
  color: var(--gold-l);
}

.hp-choices-foot {
  margin-top: 22px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-3);
  max-width: 52em;
}
/* 卡片内的收尾说明压在深蓝底上，用浅色，保证对比度 */
.hp-choice .hp-choices-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-dark-soft);
  font-size: 13px;
  line-height: 1.85;
  color: rgba(247, 243, 234, .78);
  max-width: none;
}
.hp-choice h3 span { color: rgba(247, 243, 234, .62); }
.hp-choice-no { font-size: 11px; }

/* ============================================================
   04 优势 · 四类
   ============================================================ */

.hp-adv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(28px, 4vw, 44px);
}
.hp-adv-item {
  background: var(--paper);
  padding: clamp(26px, 3.2vw, 40px);
}
.hp-adv-item:nth-child(2) { background: var(--paper-2); }
.hp-adv-item:nth-child(3) { background: var(--paper-2); }

.hp-adv-item h3 {
  font-size: clamp(17px, 2.1vw, 21px);
  color: var(--ink);
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.hp-adv-item h3 em {
  font-style: normal;
  font-family: var(--num);
  font-size: 10.5px;
  letter-spacing: .17em;
  color: var(--gold);
}
.hp-adv-item > p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-2);
  margin-bottom: 16px;
}

/* 数据条 */
.hp-metrics {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.hp-metric {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-2);
}
.hp-metric .bar {
  grid-column: 1 / -1;
  height: 3px;
  background: rgba(22, 34, 44, .08);
  border-radius: 2px;
  overflow: hidden;
}
.hp-metric .bar i {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
}
.hp-metric b {
  font-family: var(--num);
  font-size: 14px;
  color: var(--ink);
  font-weight: 400;
}

.hp-adv-item .hp-list { margin-top: 12px; }

/* 免签国家小标签 */
.hp-visa-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 6px;
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.5;
}
.hp-visa-tags span {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .45);
  white-space: nowrap;
}
.hp-visa-tags span b {
  font-family: var(--num);
  color: var(--gold);
  font-weight: 400;
  margin-left: 4px;
}

/* ============================================================
   05 海报图集 + 灯箱
   ============================================================ */

/* 图集章节只保留编号行（标题与来源说明已去掉），收紧上下的空档 */
#gallery .sec-head { margin-bottom: 0; }

.hp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(18px, 2.4vw, 26px);
}

.hp-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 2px;
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.hp-thumb img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .5s var(--ease);
}
.hp-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 39, 64, 0);
  transition: background .3s var(--ease);
}
.hp-thumb:hover,
.hp-thumb:focus-visible {
  border-color: rgba(160, 118, 46, .5);
  box-shadow: 0 10px 26px rgba(15, 39, 64, .13);
  transform: translateY(-2px);
}
.hp-thumb:hover::after,
.hp-thumb:focus-visible::after { background: rgba(15, 39, 64, .08); }
.hp-thumb:hover img { transform: scale(1.025); }

.hp-thumb-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 18px 11px 9px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #F7F3EA;
  text-align: left;
  background: linear-gradient(180deg, rgba(9, 24, 39, 0) 0%, rgba(9, 24, 39, .82) 62%);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.hp-thumb:hover .hp-thumb-cap,
.hp-thumb:focus-visible .hp-thumb-cap { opacity: 1; transform: translateY(0); }

.hp-thumb .hp-thumb-no {
  position: absolute;
  top: 8px;
  left: 9px;
  z-index: 1;
  font-family: var(--num);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--gold);
  background: rgba(250, 248, 241, .9);
  padding: 2px 6px;
  border-radius: 2px;
}

/* 长图（续签）单独一行，宽一点 */
.hp-gallery .is-tall { grid-row: span 1; }

/* ---------- 灯箱 ---------- */
.hp-lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 44px);
  background: rgba(9, 24, 39, .94);
  backdrop-filter: blur(3px);
}
.hp-lb.is-open { display: flex; }

.hp-lb-body {
  position: relative;
  max-width: min(100%, 1180px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hp-lb-img {
  display: block;
  max-width: 100%;
  max-height: calc(100svh - 150px);
  width: auto;
  height: auto;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  background: var(--paper);
}

.hp-lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(247, 243, 234, .78);
  font-size: 12.5px;
}
.hp-lb-cap { line-height: 1.5; }
.hp-lb-cap b { color: #F7F3EA; font-weight: 500; }
.hp-lb-count {
  font-family: var(--num);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--gold-l);
  white-space: nowrap;
}

.hp-lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(9, 24, 39, .55);
  color: #F7F3EA;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.hp-lb-btn:hover { background: rgba(160, 118, 46, .55); border-color: rgba(212, 176, 104, .6); }
.hp-lb-prev { left: -8px; }
.hp-lb-next { right: -8px; }

.hp-lb-close {
  position: fixed;
  top: clamp(12px, 2vw, 24px);
  right: clamp(12px, 2vw, 24px);
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(9, 24, 39, .6);
  color: #F7F3EA;
  font-size: 17px;
  cursor: pointer;
  transition: background .25s var(--ease);
}
.hp-lb-close:hover { background: rgba(160, 118, 46, .6); }

@media (max-width: 760px) {
  .hp-lb-prev { left: 2px; }
  .hp-lb-next { right: 2px; }
  .hp-lb-btn { width: 38px; height: 38px; font-size: 16px; }
  .hp-lb-img { max-height: calc(100svh - 170px); }
}

/* ============================================================
   收尾 CTA
   ============================================================ */

.hp-cta {
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(30px, 4vw, 52px);
  background: var(--navy);
  color: rgba(247, 243, 234, .8);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  border: 1px solid var(--line-dark);
}
.hp-cta h3 {
  font-size: clamp(19px, 2.6vw, 27px);
  line-height: 1.4;
  color: #F7F3EA;
  margin-bottom: 10px;
}
.hp-cta p { font-size: 13px; line-height: 1.9; max-width: 40em; }
.hp-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 860px) {
  .hp-cta { grid-template-columns: 1fr; }
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 980px) {
  .hp-scheme { grid-template-columns: 1fr; gap: 20px; }
  .hp-crit-row { grid-template-columns: 1fr; gap: 6px; }
  .hp-crit-cat { padding-top: 0; }
  .hp-adv { grid-template-columns: 1fr; }
  .hp-choices { grid-template-columns: 1fr; }
  .hp-step { grid-template-columns: 64px 1fr; gap: 16px; }
}

@media (max-width: 600px) {
  .hp-gallery { grid-template-columns: repeat(2, 1fr); }
  .hp-step { grid-template-columns: 1fr; gap: 10px; }
  .hp-step-no { display: flex; align-items: baseline; gap: 10px; }
  .hp-step-no b { font-size: 26px; }
  .hp-step-no span { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-step, .hp-thumb, .hp-thumb img, .hp-thumb::after,
  .hp-thumb-cap, .hp-lb-btn, .hp-lb-close { transition: none; }
  .hp-thumb:hover { transform: none; }
  .hp-thumb:hover img { transform: none; }
}
