/* =========================================================
   /assets/site.css — 皇冠现金官网 共享层
   夜黑基底 / 墨金层 / 香槟金 / 电子青 / 熔金橙
   ========================================================= */

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

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

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

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

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

a { color: inherit; }

button { font: inherit; color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0B0B0D;
  --ink-panel: #15120D;
  --line: #2B2722;
  --gold: #C9A45C;
  --gold-bright: #EBCB86;
  --cyan: #3FD3DA;
  --cyan-deep: #12727A;
  --ember: #FF7A3C;
  --ivory: #F6F1E7;
  --mist: #A39D92;

  --font-display: "Helvetica Neue", "Arial Narrow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --font-serif: Georgia, "Times New Roman", "Songti SC", "STSong", serif;

  --step-hero: clamp(2.75rem, 8vw, 7.5rem);
  --step-h2: clamp(1.75rem, 3.4vw, 3rem);
  --step-h3: clamp(1.2rem, 1.9vw, 1.75rem);
  --step-body: clamp(1rem, 1.05vw, 1.125rem);
  --step-note: 0.8125rem;

  --shell: 1280px;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
}

/* ---------- 3. Base ---------- */
html, body { background-color: var(--ink); }

body {
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.012em;
}

main {
  display: block;
  padding-block: clamp(1.75rem, 4vw, 3.5rem) 0;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- 4. 基础版式组件 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose {
  max-width: 68ch;
}

.prose p + p { margin-top: 1.05em; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 26px;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--step-h2);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ivory);
  margin: 0;
}

.section-title em {
  font-style: normal;
  color: var(--gold);
}

.lede {
  max-width: 52ch;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.8;
  color: var(--ivory);
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--line) 0%, rgba(43, 39, 34, 0) 92%);
}

/* 状态点 */
.status-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(63, 211, 218, 0.14);
  animation: status-pulse 3.6s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(63, 211, 218, 0.14); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(63, 211, 218, 0.05); }
}

/* 通用按钮 */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: transparent;
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.cta:hover {
  background: var(--gold);
  border-color: var(--gold-bright);
  color: var(--ink);
}

.cta--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.cta--primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.cta--ghost {
  border-color: var(--line);
  color: var(--ivory);
}

.cta--ghost:hover {
  background: transparent;
  border-color: var(--cyan);
  color: var(--cyan);
}

/* 标签与面板 */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--mist);
  font-size: var(--step-note);
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.panel {
  position: relative;
  padding: clamp(1.15rem, 2.2vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-panel);
}

.panel > .eyebrow { margin-bottom: 0.9rem; }

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.breadcrumb li { display: inline-flex; align-items: center; }

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--line);
}

.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

.breadcrumb [aria-current="page"] {
  color: var(--gold-bright);
}

/* 图片容器基础规则（页面阶段放置 img） */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--ink-panel);
  background-image:
    linear-gradient(rgba(43, 39, 34, 0.75) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 39, 34, 0.75) 1px, transparent 1px);
  background-size: 32px 32px;
}

.media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media__caption {
  margin-top: 0.7rem;
  font-size: var(--step-note);
  line-height: 1.65;
  color: var(--mist);
}

/* 显现协议 */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

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

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  background: var(--cyan);
  color: #04191B;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}

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

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(11, 11, 13, 0.98) 0%, rgba(21, 18, 13, 0.96) 100%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan) 0%, rgba(63, 211, 218, 0) 42%, rgba(201, 164, 92, 0) 58%, var(--gold) 100%);
  opacity: 0.7;
  pointer-events: none;
}

.site-header__rail {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.6rem);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0.85rem var(--gutter);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
  color: var(--ivory);
  text-decoration: none;
}

.brand__crown {
  display: block;
  flex: 0 0 auto;
  width: 34px;
  height: 24px;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  clip-path: polygon(0% 100%, 0% 24%, 20% 54%, 34% 0%, 50% 42%, 66% 0%, 80% 54%, 100% 24%, 100% 100%);
}

.brand__text { display: block; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  color: var(--ivory);
}

.brand__tagline {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  line-height: 1.4;
  color: var(--mist);
}

.brand:hover .brand__name { color: var(--gold-bright); }

/* 状态徽标 */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: var(--gold-bright);
  white-space: nowrap;
}

.status-badge__dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(63, 211, 218, 0.14);
  animation: status-pulse 3.6s ease-in-out infinite;
}

/* 导航 */
.site-nav {
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.15rem, 1vw, 1rem);
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.6rem 0.5rem;
  color: var(--ivory);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.22s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.1rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  opacity: 0.55;
}

.site-nav__link:hover { color: var(--gold-bright); }
.site-nav__link:hover::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] { color: var(--gold-bright); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); opacity: 1; }
.site-nav__link[aria-current="page"] .site-nav__index { color: var(--cyan); }

.site-nav__index {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--mist);
  transition: color 0.22s var(--ease);
}

.site-nav__label { white-space: nowrap; }

.site-nav__cta { display: none; }

/* 移动开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
  flex: 0 0 auto;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--gold-bright);
  transition: transform 0.26s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- 7. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-panel) 26%, var(--ink-panel) 100%);
  color: var(--mist);
  font-size: 0.9375rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--cyan) 48%, rgba(63, 211, 218, 0) 100%);
  opacity: 0.55;
  pointer-events: none;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.site-footer__intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer__summary {
  max-width: 34ch;
  margin: 0;
  line-height: 1.9;
  color: var(--mist);
}

.site-footer__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--gold-bright);
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.footer-col__title {
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col__list a {
  display: inline-block;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  color: var(--ivory);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-col__list a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan-deep);
}

.footer-contact__list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-contact__list li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.footer-contact__val {
  color: var(--ivory);
  font-size: 0.9375rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.site-footer__note {
  margin-top: 1rem;
  font-size: var(--step-note);
  line-height: 1.7;
  color: var(--mist);
}

.site-footer__legal {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  padding-block: 1.25rem;
}

.site-footer__legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--mist);
}

.site-footer__copy { margin: 0; }

.site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.site-footer__legal-links a {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer__legal-links a:hover { color: var(--cyan); }

/* ---------- 8. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(14px, 2.4vw, 28px);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(21, 18, 13, 0.92);
  color: var(--gold-bright);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s linear, border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.to-top.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.to-top::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) var(--sp, 0%), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  pointer-events: none;
}

.to-top__icon {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
}

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1180px) {
  .status-badge { display: none; }
}

@media (max-width: 980px) {
  .site-header__rail {
    gap: 0.75rem;
    padding-block: 0.7rem;
  }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 82vh;
    margin: 0;
    padding: 1.25rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    background: linear-gradient(180deg, #15120D 0%, #0B0B0D 100%);
    border-top: 1px solid var(--gold);
    box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.62);
    z-index: 95;
    visibility: hidden;
    transform: translateY(105%);
    transition: transform 0.34s var(--ease), visibility 0s linear 0.34s;
  }

  .site-nav[data-open] {
    visibility: visible;
    transform: translateY(0);
    transition: transform 0.34s var(--ease), visibility 0s linear 0s;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__link {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.9rem;
    width: 100%;
    padding: 0.95rem 0.25rem;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav__link::after {
    left: 0.25rem;
    right: auto;
    bottom: -1px;
    width: 38px;
    height: 2px;
  }

  .site-nav__index { min-width: 2.2ch; }

  .site-nav__cta {
    display: flex;
    width: 100%;
    margin-top: 1rem;
  }

  .nav-toggle { display: inline-flex; }
  .site-header__cta { display: none; }

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

@media (max-width: 720px) {
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__legal-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .brand__name { font-size: 1rem; letter-spacing: 0.04em; }
  .brand__tagline { display: none; }
  .brand__crown { width: 28px; height: 20px; }
  .nav-toggle__text { display: none; }
  .nav-toggle { padding: 0.5rem 0.65rem; }
  .site-footer__legal-links { gap: 0.35rem 1rem; }
  .media { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

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

  .status-dot,
  .status-badge__dot { animation: none; }
}
