/* =============================================================
   幸运澳洲服务 · /assets/site.css
   共享外壳：reset / 设计令牌 / 中文排版 / 刊头 / 页脚 / 基础组件
   ============================================================= */

/* 1. Reset --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

/* 2. 设计令牌 ------------------------------------------------ */
:root {
  color-scheme: light;
  --blue-900: #052A40;
  --blue-800: #0B3B5C;
  --blue-600: #16567F;
  --gold: #F2B705;
  --gold-soft: #FBE7A8;
  --coral: #FF6B4A;
  --mint: #2FBF9B;
  --ink: #12161A;
  --gray: #6B7480;
  --sand: #EDE7DC;
  --paper: #FAF7F1;
  --white: #FFFFFF;

  --line: rgba(11, 59, 92, .16);
  --line-strong: rgba(11, 59, 92, .34);
  --on-dark: rgba(250, 247, 241, .80);
  --on-dark-strong: #FFFFFF;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --gap: clamp(1rem, 2vw, 1.5rem);
  --section-y: clamp(3rem, 7vw, 6.5rem);

  --shadow-1: 0 1px 2px rgba(5, 42, 64, .05), 0 10px 30px -22px rgba(5, 42, 64, .45);
  --shadow-2: 0 2px 6px rgba(5, 42, 64, .07), 0 26px 52px -30px rgba(5, 42, 64, .50);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;

  --ease: cubic-bezier(.2, .7, .3, 1);
  --shell: min(1200px, 100% - 2.5rem);
}

/* 3. 基础排版 ------------------------------------------------ */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-weight: 900; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.8rem, 7vw, 6rem); line-height: 1.02; }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p { line-height: 1.8; }
a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
strong { font-weight: 800; }
::selection { background: var(--gold-soft); color: var(--blue-900); }

.mono { font-family: var(--font-mono); letter-spacing: .04em; }

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 2px;
  border-radius: 4px;
}
.site-footer :focus-visible { outline-color: var(--gold); }

/* 4. 布局工具 ------------------------------------------------ */
.shell { width: var(--shell); margin-inline: auto; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.25rem); }
.section--blue { background: var(--blue-800); color: var(--on-dark); }
.section--blue h1, .section--blue h2, .section--blue h3 { color: var(--on-dark-strong); }
.section--sand { background: var(--sand); }

.grid { display: grid; gap: var(--gap); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

.stack { display: grid; gap: .75rem; }
.stack--loose { gap: 1.4rem; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.divider { height: 1px; border: 0; background: var(--line); margin: 0; }
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--gold);
  color: var(--blue-900);
  font-weight: 800;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  text-decoration: none;
  transition: top .16s var(--ease);
}
.skip-link:focus { top: 0; }

/* 5. 刊头 ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.masthead { border-bottom: 1px solid var(--line); }
.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 14px 0 12px;
}
.masthead__note {
  justify-self: start;
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--gray);
  white-space: nowrap;
}
.masthead__brand {
  justify-self: center;
  display: grid;
  gap: 2px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
}
.masthead__brand-cn {
  position: relative;
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.1;
  color: var(--blue-800);
}
.masthead__brand-cn::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin: 6px auto 0;
  border-radius: 2px;
  background: var(--gold);
}
.masthead__brand-sub {
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--gray);
}
.masthead__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: .65rem;
}
.masthead__hours {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--gray);
  white-space: nowrap;
}

.site-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-nav__inner { display: block; }
.site-nav__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(.35rem, 1.4vw, 1.5rem);
}
.site-nav__link {
  display: inline-block;
  padding: 13px 6px 11px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.site-nav__link:hover { color: var(--blue-800); border-bottom-color: var(--gold-soft); }
.site-nav__link[aria-current="page"] { color: var(--blue-800); border-bottom-color: var(--gold); }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
  transition: width .1s linear;
}

/* 6. 移动导航按钮 -------------------------------------------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .48rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-800);
  font-size: 14px;
  font-weight: 700;
}
.nav-toggle__bars {
  position: relative;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), top .2s var(--ease);
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }
.nav-toggle__label { line-height: 1; }

/* 7. 页脚 ---------------------------------------------------- */
.site-footer {
  background: var(--blue-900);
  color: var(--on-dark);
  margin-top: clamp(2rem, 6vw, 5rem);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}
.footer__brand-name {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--on-dark-strong);
  line-height: 1.3;
}
.footer__brand-tag { font-size: 14px; color: var(--on-dark); margin-top: .5rem; }
.footer__icp { font-size: 13px; color: rgba(250, 247, 241, .62); margin-top: .9rem; }
.footer__rule {
  display: block;
  width: 64px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  margin-top: 1.2rem;
}
.footer__col-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  color: var(--gold);
  margin-bottom: .95rem;
}
.footer__list { display: grid; gap: .6rem; }
.footer__list a {
  color: rgba(250, 247, 241, .84);
  font-size: 15px;
  text-decoration: none;
  transition: color .16s var(--ease), box-shadow .16s var(--ease);
}
.footer__list a:hover { color: var(--on-dark-strong); box-shadow: inset 0 -1px 0 var(--gold); }
.footer__list--plain .footer__fact {
  font-size: 13.5px;
  color: rgba(250, 247, 241, .70);
  word-break: break-word;
  line-height: 1.6;
}
.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.6rem;
  justify-content: space-between;
  border-top: 1px solid rgba(250, 247, 241, .16);
  padding: 16px 0 28px;
  font-size: 13px;
  color: rgba(250, 247, 241, .68);
}

/* 8. 按钮 ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .62rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--brand { background: var(--gold); color: var(--blue-900); box-shadow: var(--shadow-1); }
.btn--brand:hover { background: #FFC72B; }
.btn--blue { background: var(--blue-800); color: var(--paper); }
.btn--blue:hover { background: var(--blue-600); }
.btn--ghost { border-color: var(--line-strong); color: var(--blue-800); background: transparent; }
.btn--ghost:hover { border-color: var(--blue-800); background: rgba(11, 59, 92, .06); }
.btn--quiet { color: var(--blue-800); padding: .4rem .2rem; }
.btn--quiet:hover { box-shadow: inset 0 -2px 0 var(--gold); }

/* 9. 筛选与状态 ---------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-800);
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: .04em;
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.chip:hover { background: var(--gold-soft); border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--blue-900); font-weight: 700; }
.chip--clear { border-style: dashed; color: var(--coral); border-color: rgba(255, 107, 74, .55); }
.chip--clear:hover { background: rgba(255, 107, 74, .12); }
.filter-count { margin-left: auto; font-family: var(--font-mono); font-size: 13px; color: var(--gray); letter-spacing: .06em; }
.empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--gray);
  font-size: 15px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .6rem;
  border-radius: 6px;
  background: var(--sand);
  color: var(--blue-800);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  line-height: 1.6;
}
.pill--gold { background: var(--gold); color: var(--blue-900); }
.pill--mint { background: rgba(47, 191, 155, .18); color: #0C6B54; }
.pill--coral { background: rgba(255, 107, 74, .18); color: #AE2E12; }
.pill--blue { background: var(--blue-800); color: var(--paper); }

/* 10. 文本组件 ----------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.section--blue .eyebrow { color: var(--gold); }
.lede {
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.75;
  color: #2A3540;
}
.section--blue .lede { color: var(--on-dark); }
.note {
  max-width: 56ch;
  padding: .35rem 0 .35rem 1rem;
  border-left: 3px solid var(--gold);
  color: var(--gray);
  font-size: 15px;
  line-height: 1.75;
}
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--blue-600); }
.prose blockquote {
  padding: 1rem 1.2rem;
  background: var(--sand);
  border-radius: var(--radius);
  font-size: 16px;
  color: #2A3540;
}
.prose code {
  font-family: var(--font-mono);
  font-size: .92em;
  background: var(--sand);
  padding: .1em .4em;
  border-radius: 4px;
}

/* 11. 面包屑与索引 ------------------------------------------- */
.breadcrumb { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--gray);
}
.breadcrumb__list li { display: flex; align-items: center; gap: .45rem; }
.breadcrumb__list li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumb__link { color: var(--blue-600); text-decoration: none; }
.breadcrumb__link:hover { color: var(--blue-800); box-shadow: inset 0 -1px 0 var(--gold); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }

.index-list { border-top: 1px solid var(--line); }
.index-list__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
}
.index-list__num { font-family: var(--font-mono); font-size: 13px; color: var(--blue-600); letter-spacing: .06em; }
.index-list__title { font-size: 1.05rem; font-weight: 800; color: var(--ink); text-decoration: none; }
.index-list__item:hover .index-list__title { box-shadow: inset 0 -2px 0 var(--gold); }
.index-list__meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--gray); letter-spacing: .05em; }

/* 12. 卡片与统计 --------------------------------------------- */
.card {
  display: grid;
  gap: .65rem;
  align-content: start;
  padding: clamp(1.1rem, 2vw, 1.6rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.card:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); transform: translateY(-2px); }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.card__title { font-size: 1.15rem; font-weight: 800; letter-spacing: -.015em; }
.card__title a { text-decoration: none; color: inherit; }
.card__title a:hover { box-shadow: inset 0 -2px 0 var(--gold); }
.card__body { font-size: 15.5px; line-height: 1.75; color: #3A444E; }
.card__meta { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; color: var(--gray); }
.card--accent { border-top: 4px solid var(--gold); }
.card--focus { background: var(--blue-800); border-color: transparent; color: var(--on-dark); }
.card--focus .card__title, .card--focus .card__title a { color: var(--on-dark-strong); }
.card--focus .card__body { color: var(--on-dark); }
.card--focus .card__meta { color: rgba(250, 247, 241, .68); }

.stat { display: grid; gap: .25rem; }
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--blue-800);
}
.section--blue .stat__num { color: var(--gold); }
.stat__label { font-size: 13px; letter-spacing: .1em; color: var(--gray); }
.section--blue .stat__label { color: var(--on-dark); }

/* 13. 图像容器（页面阶段放图）-------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--blue-900);
  isolation: isolate;
}
.media__img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.media--wide .media__img { aspect-ratio: 21 / 9; }
.media--tall .media__img { aspect-ratio: 4 / 5; }
.media--square .media__img { aspect-ratio: 1 / 1; }
.media__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 42, 64, 0) 40%, rgba(5, 42, 64, .78));
}
.media__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  color: var(--on-dark-strong);
  font-size: 14px;
  line-height: 1.6;
}
.media__badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.media--ph {
  background-image:
    linear-gradient(135deg, rgba(22, 86, 127, .92), rgba(5, 42, 64, .96)),
    repeating-linear-gradient(90deg, rgba(250, 247, 241, .08) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(250, 247, 241, .08) 0 1px, transparent 1px 56px);
}

/* 14. 动效 --------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
  will-change: opacity, transform;
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .scroll-progress__bar { transition: none; }
}

/* 15. 响应式 ------------------------------------------------- */
@media (max-width: 1100px) {
  .masthead__hours { display: none; }
}
@media (max-width: 1024px) {
  .span-3, .span-4 { grid-column: span 6; }
  .span-5, .span-7, .span-8, .span-9 { grid-column: span 12; }
  .footer__inner { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer__col:last-child { grid-column: span 3; }
}
@media (max-width: 860px) {
  :root { --shell: min(1200px, 100% - 2rem); }
  .js .site-nav {
    max-height: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height .28s var(--ease), visibility .28s var(--ease);
  }
  .js .site-nav[data-open] {
    max-height: 72vh;
    visibility: visible;
    overflow-y: auto;
  }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 1rem; }
  .site-nav__link {
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .site-nav__link:hover { border-bottom-color: var(--line); background: rgba(242, 183, 5, .14); }
  .site-nav__link[aria-current="page"] { border-bottom-color: var(--gold); background: rgba(242, 183, 5, .18); }
  .nav-toggle { display: inline-flex; }
  .masthead__inner { padding: 12px 0 10px; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .masthead__note { display: none; }
  .masthead__inner { grid-template-columns: 1fr auto; }
  .masthead__brand { justify-self: start; text-align: left; }
  .masthead__brand-cn::after { margin-left: 0; margin-right: auto; }
  .footer__inner { grid-template-columns: 1fr 1fr; padding-top: 2.5rem; }
  .footer__brand { grid-column: span 2; }
  .footer__col:last-child { grid-column: span 2; }
  .footer__base { flex-direction: column; gap: .35rem; }
  .filter-count { margin-left: 0; width: 100%; }
}
@media (max-width: 640px) {
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9, .span-12 { grid-column: span 12; }
  .index-list__item { grid-template-columns: auto 1fr; }
  .index-list__meta { grid-column: 2; }
}
