/* ==========================================================================
   BET 亚洲官网 · /assets/site.css
   共享外壳：左侧固定框架导航 + 右侧画布 + 展览画册式页脚
   ========================================================================== */

/* ---------- 01 · Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

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

img, svg, video, canvas { display: block; max-width: 100%; }

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

a { color: inherit; }

/* ---------- 02 · Tokens ---------- */
:root {
  --ink:        #07090C;
  --ink-2:      #0C1218;
  --ink-3:      #101923;
  --cyan:       #2FF3E0;
  --cyan-mist:  #8FF7EE;
  --amber:      #F5B942;
  --violet:     #8B5CF6;
  --cool:       #A7B0BA;
  --paper:      #F2F5F7;
  --line:       #1E2A33;
  --coral:      #FFB4A8;

  --frame-w: 288px;
  --gutter: clamp(20px, 4vw, 64px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .6, .2, 1);

  --font-display: "Space Grotesk", "思源黑体 Heavy", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-editorial: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "等距更纱黑体", "Saira Mono", ui-monospace, monospace;
}

/* ---------- 03 · Base ---------- */
body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.08;
}

p { max-width: 68ch; }

small { font-size: 12px; }

::selection {
  background: var(--cyan);
  color: #04110F;
}

/* ---------- 04 · Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 1px;
}

:where(a, button, [tabindex]):focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  transform: translateY(-180%);
  padding: 10px 18px;
  background: var(--cyan);
  color: #04110F;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  transition: transform .2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

/* ---------- 05 · Header · 移动优先 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 12, .95);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px var(--gutter) 14px;
}

.site-header__mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
}

.brand__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  background: linear-gradient(148deg, var(--cyan) 0%, var(--cyan-mist) 48%, var(--amber) 100%);
  color: #04110F;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.05em;
  box-shadow: 0 0 0 1px rgba(47, 243, 224, .35), 0 10px 26px -16px rgba(47, 243, 224, .9);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.015em;
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--cool);
}

/* 版本胶囊 */
.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  max-width: 100%;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid rgba(245, 185, 66, .38);
  background: linear-gradient(90deg, rgba(245, 185, 66, .14), rgba(245, 185, 66, 0) 85%);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  white-space: nowrap;
}

.version-badge__dot {
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: badgePulse 2.8s var(--ease) infinite;
}

.version-badge__text { letter-spacing: .1em; }

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.8); }
}

/* 导航 */
.site-nav {
  display: none;
  flex-direction: column;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-nav__item { display: block; }

.site-nav__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  border-left: 2px solid transparent;
  color: var(--cool);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  transition:
    color .22s var(--ease),
    background-color .22s var(--ease),
    border-color .22s var(--ease),
    transform .22s var(--ease);
}

.site-nav__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  color: #4B5A67;
  transition: color .22s var(--ease);
}

.site-nav__label { letter-spacing: .02em; }

.site-nav__link:hover {
  color: var(--paper);
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(47, 243, 224, .12), rgba(47, 243, 224, 0) 78%);
}

.site-nav__link:hover .site-nav__num { color: var(--cyan); }

.site-nav__link[aria-current="page"] {
  color: var(--paper);
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(47, 243, 224, .18), rgba(139, 92, 246, .06) 60%, rgba(47, 243, 224, 0) 92%);
}

.site-nav__link[aria-current="page"] .site-nav__num {
  color: var(--amber);
}

/* 抽屉展开态 */
.site-header[data-open="true"] .site-nav {
  display: flex;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  animation: navIn .22s var(--ease);
}

@keyframes navIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* 移动端按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 9px 13px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  cursor: pointer;
  transition: border-color .22s var(--ease), background-color .22s var(--ease);
}

.nav-toggle:hover { border-color: rgba(47, 243, 224, .5); }

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}

.site-header[data-open="true"] .nav-toggle__bars span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bars span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

.nav-toggle__label { line-height: 1; }

/* 头部 CTA */
.site-header .btn--frame {
  display: none;
  width: 100%;
}

.site-header[data-open="true"] .btn--frame {
  display: inline-flex;
  margin-top: 6px;
}

/* 域名行（仅桌面） */
.site-header__meta {
  display: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: #46545F;
}

/* 滚动进度 */
.frame-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  background: rgba(30, 42, 51, .6);
  pointer-events: none;
}

.frame-meter__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: transform .12s linear;
}

/* ---------- 06 · Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color .22s var(--ease),
    color .22s var(--ease),
    border-color .22s var(--ease),
    box-shadow .22s var(--ease),
    transform .22s var(--ease);
}

.btn--frame {
  background: linear-gradient(115deg, var(--cyan) 0%, var(--cyan-mist) 100%);
  color: #04110F;
  box-shadow: 0 14px 34px -22px rgba(47, 243, 224, .95);
}

.btn--frame:hover {
  background: linear-gradient(115deg, var(--cyan-mist) 0%, var(--cyan) 100%);
  box-shadow: 0 18px 40px -20px rgba(47, 243, 224, 1);
}

.btn--primary {
  background: var(--cyan);
  color: #04110F;
}

.btn--primary:hover {
  background: var(--cyan-mist);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--paper);
  background: rgba(12, 18, 24, .6);
}

.btn--ghost:hover {
  border-color: rgba(47, 243, 224, .55);
  color: var(--cyan);
}

/* ---------- 07 · Footer ---------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(130% 110% at 0% 0%, rgba(139, 92, 246, .16), transparent 58%),
    radial-gradient(90% 90% at 100% 100%, rgba(47, 243, 224, .1), transparent 55%),
    linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 247, 238, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 247, 238, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) 26px;
}

.site-footer__grid {
  display: grid;
  gap: clamp(26px, 4vw, 52px);
  grid-template-columns: 1fr;
}

.site-footer__brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--paper);
}

.site-footer__tagline {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--amber);
}

.site-footer__note {
  margin-top: 14px;
  max-width: 34ch;
  color: var(--cool);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer__cols {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

.site-footer__col { min-width: 0; }

.site-footer__col-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--cyan);
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__list-item {
  font-size: 14px;
  line-height: 1.6;
  color: var(--cool);
}

.site-footer__link {
  position: relative;
  display: inline-block;
  color: var(--cool);
  font-size: 14px;
  text-decoration: none;
  transition: color .22s var(--ease);
}

.site-footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease);
}

.site-footer__link:hover { color: var(--cyan); }
.site-footer__link:hover::after { transform: scaleX(1); }

.site-footer__contact-line {
  display: inline-block;
  word-break: break-word;
  font-size: 14px;
  color: var(--cool);
}

.site-footer__contact-note {
  margin-top: 10px;
  max-width: 32ch;
  font-size: 12px;
  line-height: 1.65;
  color: #6D7B87;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: clamp(30px, 5vw, 54px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--cool);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer__legal-link {
  position: relative;
  color: var(--cool);
  text-decoration: none;
  transition: color .22s var(--ease);
}

.site-footer__legal-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease);
}

.site-footer__legal-link:hover { color: var(--cyan); }
.site-footer__legal-link:hover::after { transform: scaleX(1); }

.site-footer__icp {
  margin-left: auto;
  color: #6D7B87;
}

.site-footer__copy {
  color: #6D7B87;
}

/* ---------- 08 · Layout utilities ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.rule {
  height: 1px;
  width: 100%;
  border: 0;
  margin: 0;
  background: var(--line);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ---------- 09 · Content components ---------- */
.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--cyan);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--cool);
  white-space: nowrap;
}

.tag--amber {
  border-color: rgba(245, 185, 66, .42);
  color: var(--amber);
  background: rgba(245, 185, 66, .08);
}

/* 章节抬头 */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: clamp(14px, 3vw, 38px);
  padding-block: clamp(22px, 4vw, 40px) 16px;
  border-top: 1px solid var(--line);
}

.section-head__index {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.045em;
  color: transparent;
  background: linear-gradient(170deg, var(--cyan) 0%, rgba(139, 92, 246, .7) 78%, rgba(139, 92, 246, .2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
  color: var(--paper);
}

/* 卡片 */
.card {
  position: relative;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--line);
  background: linear-gradient(162deg, var(--ink-2) 0%, var(--ink) 100%);
  box-shadow: 0 26px 60px -54px rgba(47, 243, 224, .8);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(139, 92, 246, .5) 55%, transparent);
  opacity: .75;
}

.card--slant {
  -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

/* 图片容器基础 */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 110% at 16% 0%, rgba(139, 92, 246, .34), transparent 58%),
    radial-gradient(100% 100% at 94% 100%, rgba(47, 243, 224, .24), transparent 56%),
    var(--ink-3);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 247, 238, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 247, 238, .1) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(160deg, #000 10%, transparent 82%);
  mask-image: linear-gradient(160deg, #000 10%, transparent 82%);
}

.media-frame > img,
.media-frame > picture,
.media-frame > video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide   { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall   { aspect-ratio: 3 / 4; }

/* 面包屑 */
.breadcrumb { padding-block: 14px 0; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--cool);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  color: #3A4A57;
}

.breadcrumb__link {
  color: var(--cool);
  text-decoration: none;
  transition: color .22s var(--ease);
}

.breadcrumb__link:hover { color: var(--cyan); }

.breadcrumb__current { color: var(--paper); }

/* ---------- 10 · Reveal ---------- */
html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

html.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 11 · 桌面框架布局 ---------- */
@media (min-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr 1.6fr; }
}

@media (min-width: 1080px) {
  body { padding-left: var(--frame-w); }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--frame-w);
    height: 100vh;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    overflow: hidden;
    background: var(--ink);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(47, 243, 224, .055) 1px, transparent 1px),
      linear-gradient(90deg, rgba(47, 243, 224, .055) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  }

  .site-header__inner {
    position: relative;
    z-index: 1;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 22px 22px;
  }

  .site-header__mast { justify-content: flex-start; }

  .nav-toggle { display: none; }

  .site-nav {
    display: flex;
    padding-top: 4px;
    border-top: 1px solid var(--line);
    animation: none;
  }

  .site-header[data-open="true"] .site-nav { padding-top: 4px; }

  .site-header .btn--frame,
  .site-header[data-open="true"] .btn--frame {
    display: inline-flex;
    margin-top: 4px;
  }

  .site-header__meta {
    display: block;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .frame-meter {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 2px;
    height: auto;
  }

  .frame-meter__fill {
    transform: scaleY(var(--p, 0));
    transform-origin: center top;
    background: linear-gradient(180deg, var(--cyan), var(--violet));
  }

  .site-footer__grid { grid-template-columns: 1.05fr 2fr; }
}

@media (min-width: 1240px) {
  .site-header__inner { padding: 34px 26px 24px; }
}

/* ---------- 12 · 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;
  }

  html.reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .frame-meter__fill { transition: none; }
}
