/* ============================================================
   /assets/site.css — 亚洲城指南 共享外壳样式
   ============================================================ */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

img, svg, picture, video { display: block; max-width: 100%; height: auto; }

table { width: 100%; border-collapse: collapse; }

/* ---------- 2. Tokens ---------- */
:root {
  --yz-ink: #0F2740;
  --yz-ink-deep: #08182A;
  --yz-mist: #F4F6F7;
  --yz-silver: #C9D1D6;
  --yz-indigo: #1E4E8C;
  --yz-cinnabar: #E4572E;
  --yz-slate: #6F8FA3;
  --yz-stone: #E8E2D6;
  --yz-moss: #2F6B57;
  --yz-lamp: #F2B441;

  --yz-max: 1220px;
  --yz-gutter: clamp(16px, 4vw, 32px);
  --yz-ease: 180ms cubic-bezier(.32, .72, .36, 1);

  --yz-font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --yz-font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --yz-font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC",
    "SimSun", Georgia, serif;
  --yz-font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace,
    SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--yz-font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--yz-ink-deep);
  background-color: var(--yz-mist);
  background-image:
    linear-gradient(180deg, rgba(15, 39, 64, .07) 0, rgba(15, 39, 64, 0) 260px),
    radial-gradient(1200px 460px at 88% -140px, rgba(30, 78, 140, .10), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--yz-font-head);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--yz-ink);
  text-wrap: balance;
}

h1 { font-size: clamp(28px, 4.4vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 31px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); }
h4 { font-size: 20px; }
h5 { font-size: 17px; }

strong, b { font-weight: 700; }

::selection {
  background: rgba(228, 87, 46, .22);
  color: var(--yz-ink-deep);
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--yz-lamp);
  outline-offset: 3px;
  border-radius: 3px;
}

.yz-mono {
  font-family: var(--yz-font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

.yz-prose { max-width: 70ch; }
.yz-prose p + p { margin-top: 1.2em; }

/* ---------- 4. Layout shell ---------- */
.yz-main {
  display: block;
  flex: 1 0 auto;
  padding-bottom: clamp(48px, 7vw, 96px);
}

.yz-container {
  width: 100%;
  max-width: var(--yz-max);
  margin-inline: auto;
  padding-inline: var(--yz-gutter);
}

.yz-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.yz-span-4  { grid-column: span 4; }
.yz-span-5  { grid-column: span 5; }
.yz-span-6  { grid-column: span 6; }
.yz-span-7  { grid-column: span 7; }
.yz-span-8  { grid-column: span 8; }
.yz-span-12 { grid-column: span 12; }

.yz-start-2 { grid-column-start: 2; }
.yz-start-6 { grid-column-start: 6; }
.yz-start-9 { grid-column-start: 9; }

.yz-section { padding-block: clamp(28px, 4vw, 56px); }

.yz-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  font-family: var(--yz-font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--yz-cinnabar);
}

.yz-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--yz-cinnabar);
  flex: 0 0 auto;
}

.yz-rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, rgba(15, 39, 64, .28), rgba(15, 39, 64, 0));
}

.yz-texture-dots {
  background-image: radial-gradient(rgba(15, 39, 64, .18) 1px, transparent 1px);
  background-size: 9px 9px;
  background-position: 0 0;
}

/* ---------- 5. Skip link ---------- */
.yz-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--yz-ink-deep);
  color: var(--yz-mist);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform var(--yz-ease);
}

.yz-skip:focus,
.yz-skip:focus-visible { transform: translateY(0); }

/* ---------- 6. Header ---------- */
.yz-header {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: 12px var(--yz-gutter) 8px;
  background: linear-gradient(180deg, rgba(244, 246, 247, .98) 0%, rgba(244, 246, 247, .9) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.yz-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: var(--yz-max);
  min-height: 64px;
  margin-inline: auto;
  padding: 10px 14px 10px 20px;
  border-radius: 999px;
  color: var(--yz-mist);
  background: linear-gradient(115deg, #0F2740 0%, #17395C 52%, #0F2740 100%);
  box-shadow:
    0 20px 44px -32px rgba(8, 24, 42, .95),
    inset 0 0 0 1px rgba(201, 209, 214, .18);
  transition:
    min-height var(--yz-ease),
    padding var(--yz-ease),
    box-shadow var(--yz-ease);
}

.yz-header.is-condensed .yz-header__bar {
  min-height: 52px;
  padding-block: 6px;
  box-shadow:
    0 12px 26px -22px rgba(8, 24, 42, .95),
    inset 0 0 0 1px rgba(201, 209, 214, .18);
}

/* brand */
.yz-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 34px;
  padding-right: 16px;
  border-right: 1px solid rgba(201, 209, 214, .22);
}

.yz-brand__mark {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  background: linear-gradient(150deg, #F2703F 0%, var(--yz-cinnabar) 55%, #B93E1A 100%);
  clip-path: polygon(0 0, 100% 0, 100% 34%, 62% 100%, 0 100%);
}

.yz-brand__text {
  font-family: var(--yz-font-head);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: .04em;
  color: #F4F6F7;
  white-space: nowrap;
}

.yz-brand__meta {
  padding: 2px 6px;
  border: 1px solid rgba(111, 143, 163, .55);
  border-radius: 3px;
  font-family: var(--yz-font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--yz-slate);
  white-space: nowrap;
}

/* nav toggle */
.yz-navtoggle {
  display: none;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--yz-mist);
  box-shadow: inset 0 0 0 1px rgba(201, 209, 214, .3);
  transition: background-color var(--yz-ease), box-shadow var(--yz-ease);
}

.yz-navtoggle:hover { background: rgba(201, 209, 214, .14); }

.yz-navtoggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
  height: 14px;
}

.yz-navtoggle__bars i {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--yz-ease);
}

.yz-navtoggle[aria-expanded="true"] .yz-navtoggle__bars i:first-child {
  transform: translateY(3px) rotate(45deg);
}

.yz-navtoggle[aria-expanded="true"] .yz-navtoggle__bars i:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.yz-navtoggle__label { line-height: 1; }

/* nav */
.yz-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.yz-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.yz-nav__item { flex: 0 0 auto; }

.yz-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  color: rgba(244, 246, 247, .82);
  transition:
    background-color var(--yz-ease),
    color var(--yz-ease),
    box-shadow var(--yz-ease);
}

.yz-nav__link:hover {
  color: #FFFFFF;
  background: rgba(201, 209, 214, .14);
}

.yz-nav__link[aria-current="page"] {
  color: #FFFFFF;
  background: rgba(30, 78, 140, .62);
  box-shadow: inset 0 0 0 1px rgba(201, 209, 214, .42);
}

/* cta */
.yz-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    background-color var(--yz-ease),
    color var(--yz-ease),
    box-shadow var(--yz-ease);
}

.yz-cta--ghost {
  color: var(--yz-mist);
  background: rgba(244, 246, 247, .08);
  box-shadow: inset 0 0 0 1px rgba(201, 209, 214, .45);
}

.yz-cta--ghost:hover {
  color: #FFFFFF;
  background: rgba(228, 87, 46, .92);
  box-shadow: inset 0 0 0 1px rgba(228, 87, 46, 1);
}

.yz-cta--solid {
  color: #FFFFFF;
  background: var(--yz-cinnabar);
  box-shadow: 0 12px 24px -16px rgba(228, 87, 46, .95);
}

.yz-cta--solid:hover { background: #C9451F; }

/* ---------- 7. Rail ---------- */
.yz-rail {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: var(--yz-max);
  margin: 10px auto 0;
  padding-inline: 4px;
}

.yz-rail__scroll {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--yz-silver) transparent;
  -webkit-overflow-scrolling: touch;
}

.yz-rail__scroll::-webkit-scrollbar { height: 3px; }
.yz-rail__scroll::-webkit-scrollbar-track { background: transparent; }
.yz-rail__scroll::-webkit-scrollbar-thumb {
  background: var(--yz-silver);
  border-radius: 2px;
}

.yz-rail__list {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: max-content;
  padding: 2px 0;
}

.yz-rail__item { flex: 0 0 auto; }

.yz-rail__node {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 5px 14px 5px 18px;
  font-family: var(--yz-font-mono);
  font-size: 13px;
  letter-spacing: .03em;
  color: #33506B;
  background: linear-gradient(180deg, rgba(232, 226, 214, .9), rgba(232, 226, 214, .45));
  transition: color var(--yz-ease), background-color var(--yz-ease);
}

.yz-rail__node::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yz-indigo);
  opacity: .45;
  transform: translateY(-50%);
  transition: background-color var(--yz-ease), opacity var(--yz-ease);
}

.yz-rail__node:hover {
  color: var(--yz-indigo);
  background: linear-gradient(180deg, rgba(30, 78, 140, .18), rgba(30, 78, 140, .06));
}

.yz-rail__node:hover::before {
  background: var(--yz-cinnabar);
  opacity: 1;
}

.yz-rail__node[aria-current="page"] {
  color: var(--yz-ink);
  font-weight: 600;
  background: linear-gradient(180deg, rgba(228, 87, 46, .2), rgba(228, 87, 46, .06));
}

.yz-rail__node[aria-current="page"]::before {
  background: var(--yz-cinnabar);
  opacity: 1;
}

.yz-rail__side {
  flex: 0 0 auto;
  padding: 5px 0 5px 12px;
  border-left: 1px solid rgba(15, 39, 64, .16);
  font-family: var(--yz-font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--yz-indigo);
  transition: color var(--yz-ease);
}

.yz-rail__side:hover {
  color: var(--yz-cinnabar);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- 8. Progress ---------- */
.yz-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(15, 39, 64, .1);
  overflow: hidden;
}

.yz-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--yz-indigo) 0%, var(--yz-cinnabar) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 120ms linear;
}

/* ---------- 9. Footer ---------- */
.yz-footer {
  flex: 0 0 auto;
  color: rgba(244, 246, 247, .86);
  background: linear-gradient(180deg, #0F2740 0%, #08182A 100%);
  border-top: 2px solid var(--yz-cinnabar);
  font-size: 14px;
}

.yz-footer__inner {
  display: grid;
  grid-template-columns: 1.1fr 1.7fr .7fr;
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
  width: 100%;
  max-width: var(--yz-max);
  margin-inline: auto;
  padding: clamp(24px, 3vw, 36px) var(--yz-gutter);
}

.yz-footer__brandcol {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yz-footer__brand {
  font-family: var(--yz-font-head);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .06em;
  color: #F4F6F7;
}

.yz-footer__icp {
  font-family: var(--yz-font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(201, 209, 214, .7);
}

.yz-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.yz-footer__label {
  margin-bottom: 8px;
  padding-left: 12px;
  position: relative;
  font-family: var(--yz-font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(201, 209, 214, .72);
}

.yz-footer__label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 2px;
  background: var(--yz-cinnabar);
  transform: translateY(-50%);
}

.yz-footer__line {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(244, 246, 247, .82);
}

.yz-footer__line .yz-mono { color: rgba(244, 246, 247, .96); }

.yz-footer__note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(201, 209, 214, .62);
}

.yz-footer__contact .yz-cta { margin-top: 14px; }

.yz-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.yz-footer__link {
  padding-bottom: 2px;
  font-size: 14px;
  color: rgba(244, 246, 247, .82);
  border-bottom: 1px solid rgba(201, 209, 214, .25);
  transition: color var(--yz-ease), border-color var(--yz-ease);
}

.yz-footer__link:hover {
  color: #FFFFFF;
  border-bottom-color: var(--yz-cinnabar);
}

.yz-footer__base {
  border-top: 1px solid rgba(201, 209, 214, .14);
}

.yz-footer__base p {
  width: 100%;
  max-width: var(--yz-max);
  margin-inline: auto;
  padding: 12px var(--yz-gutter) 16px;
  font-family: var(--yz-font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(201, 209, 214, .55);
}

/* ---------- 10. Buttons / tags / breadcrumbs ---------- */
.yz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  transition:
    background-color var(--yz-ease),
    color var(--yz-ease),
    border-color var(--yz-ease),
    box-shadow var(--yz-ease);
}

.yz-btn--primary {
  color: #FFFFFF;
  background: var(--yz-cinnabar);
  box-shadow: 0 12px 24px -16px rgba(228, 87, 46, .95);
}

.yz-btn--primary:hover { background: #C9451F; }

.yz-btn--ink {
  color: var(--yz-mist);
  background: var(--yz-ink);
}

.yz-btn--ink:hover { background: var(--yz-ink-deep); }

.yz-btn--ghost {
  color: var(--yz-ink);
  background: transparent;
  border-color: var(--yz-silver);
}

.yz-btn--ghost:hover {
  color: var(--yz-indigo);
  border-color: var(--yz-indigo);
}

.yz-btn--mono {
  padding: 10px 16px;
  font-family: var(--yz-font-mono);
  font-size: 13px;
  letter-spacing: .04em;
}

.yz-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 2px;
  font-family: var(--yz-font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  background: rgba(15, 39, 64, .08);
  color: #3B5266;
}

.yz-tag--live {
  background: rgba(228, 87, 46, .14);
  color: #B23C19;
}

.yz-tag--done {
  background: rgba(47, 107, 87, .14);
  color: var(--yz-moss);
}

.yz-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0 10px;
  font-family: var(--yz-font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--yz-slate);
}

.yz-crumbs a {
  color: var(--yz-indigo);
  border-bottom: 1px solid rgba(30, 78, 140, .3);
}

.yz-crumbs a:hover { border-bottom-color: var(--yz-indigo); }

.yz-crumbs__sep { color: var(--yz-silver); }

/* ---------- 11. Figure (图片容器基础) ---------- */
.yz-figure {
  display: block;
  margin: 0;
}

.yz-figure__frame {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(130% 90% at 18% 0%, rgba(244, 246, 247, .9), transparent 62%),
    linear-gradient(150deg, #E8E2D6 0%, #D8E1E7 55%, #C4D1DB 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.yz-figure__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yz-figure--wide .yz-figure__frame { aspect-ratio: 16 / 9; }
.yz-figure--tall .yz-figure__frame { aspect-ratio: 4 / 5; }
.yz-figure--square .yz-figure__frame { aspect-ratio: 1 / 1; }

.yz-figure__cap {
  margin-top: 10px;
  font-family: var(--yz-font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--yz-slate);
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 1080px) {
  .yz-nav__link { padding: 8px 11px; font-size: 14px; }
}

@media (max-width: 980px) {
  html { scroll-padding-top: 118px; }

  .yz-navtoggle { display: inline-flex; margin-left: auto; }

  .yz-nav {
    display: none;
    position: absolute;
    left: 6px;
    right: 6px;
    top: calc(100% + 10px);
    z-index: 5;
    flex: none;
    padding: 10px;
    border-radius: 18px;
    background: linear-gradient(160deg, #123152 0%, #08182A 100%);
    box-shadow:
      0 28px 52px -26px rgba(8, 24, 42, .95),
      inset 0 0 0 1px rgba(201, 209, 214, .2);
  }

  .yz-nav[data-open="true"] { display: block; }

  .yz-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .yz-nav__item { width: 100%; }

  .yz-nav__link {
    justify-content: flex-start;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15px;
  }

  .yz-brand { padding-right: 10px; }

  .yz-span-4,
  .yz-span-5,
  .yz-span-6,
  .yz-span-7,
  .yz-span-8 { grid-column: span 12; }

  .yz-start-2,
  .yz-start-6,
  .yz-start-9 { grid-column-start: auto; }
}

@media (max-width: 860px) {
  .yz-footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .yz-footer__links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .yz-header { padding-top: 8px; }
  .yz-header__bar { min-height: 58px; padding: 8px 10px 8px 14px; gap: 6px; }
  .yz-brand__meta { display: none; }
  .yz-brand__text { font-size: 15px; letter-spacing: .02em; }
  .yz-cta { padding: 8px 14px; font-size: 13px; }
  .yz-navtoggle { padding: 7px 10px; }
  .yz-navtoggle__label { display: none; }

  .yz-rail { gap: 8px; margin-top: 8px; }
  .yz-rail__node { padding: 4px 10px 4px 16px; font-size: 12px; }
  .yz-rail__side { font-size: 12px; padding-left: 8px; }

  .yz-crumbs { font-size: 12px; padding-top: 16px; }
}

@media (max-width: 420px) {
  .yz-brand { padding-right: 8px; }
  .yz-brand__text { font-size: 14px; }
}

/* ---------- 13. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .yz-header__bar,
  .yz-progress__bar,
  .yz-skip { transition: none !important; }
}
