/* ============================================================
   hg8868皇冠 / daka-hg8868.com.cn
   /assets/site.css — 全站共享样式
   设计基调：堆叠面板 · 悬浮胶囊 · 夜空黑 x 皇冠金 x 竞技红
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; background: none; border: none; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
main { display: block; }
[hidden] { display: none !important; }

/* ---------- Design Tokens ---------- */
:root {
  --gold: #D4AF37;
  --black: #0A0A0A;
  --charcoal: #1A1A1A;
  --charcoal-soft: #202020;
  --red: #E63946;
  --white: #FFFFFF;
  --silver: #C0C0C0;
  --amber: #B8860B;
  --olive: #8B7D3C;
  --font-heading: "Archivo Black", "Noto Sans SC Black", "Arial Black", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --container: 1200px;
  --header-height: 88px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.55);
  --border-gold: 1px solid rgba(212, 175, 55, 0.28);
}

/* ---------- Base Typography ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: var(--white);
  background: var(--black);
  padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
p, li { overflow-wrap: break-word; }
::selection { background: rgba(212, 175, 55, 0.4); color: var(--white); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.site-main {
  display: block;
  scroll-margin-top: 96px;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 24px;
  z-index: 3000;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 12px 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: var(--black);
  box-shadow: var(--shadow-md);
  transition: top 200ms var(--ease-out);
}
.skip-link:focus-visible { top: 16px; }
.divider {
  height: 3px;
  margin: 30px 0;
  border: none;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--amber) 45%, transparent 100%);
}

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2500;
  width: 100%;
  height: 4px;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--amber), var(--gold), var(--red));
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.55);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  padding: 14px 20px 0;
}
.header-capsule {
  max-width: 1280px;
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 6px 10px;
  border-radius: 40px;
  background: rgba(10, 10, 10, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: var(--border-gold);
  box-shadow: var(--shadow-md);
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.site-header.is-scrolled .header-capsule {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: var(--shadow-lg);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand-slashes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--black);
  background: linear-gradient(135deg, var(--gold) 0%, var(--amber) 100%);
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  transition: transform 200ms var(--ease-out);
}
.brand:hover .brand-slashes { transform: scale(1.05); }
.brand-text {
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--white);
  white-space: nowrap;
}
.brand-text::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(212, 175, 55, 0.15));
}

/* Main navigation */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--silver);
  white-space: nowrap;
  transition: color 180ms var(--ease-out), background 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.nav-list a:hover {
  color: var(--white);
  background: rgba(212, 175, 55, 0.1);
}
.nav-list a[aria-current="page"] {
  color: var(--black);
  background: linear-gradient(135deg, var(--gold), var(--amber));
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

/* Check-in CTA */
.checkin-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  flex-shrink: 0;
  padding: 0 20px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.checkin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.42);
}
.checkin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: dot-pulse 2s var(--ease-out) infinite;
}
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.65); }
  70% { box-shadow: 0 0 0 9px rgba(230, 57, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.06);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: transform 220ms var(--ease-out), opacity 180ms var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: #070707;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  overflow: hidden;
}
.footer-accent {
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 35%, var(--red) 70%, transparent 100%);
}
.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1fr 1.2fr;
  gap: 44px;
  padding-top: 60px;
  padding-bottom: 52px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 28px;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.footer-logo::before {
  content: "";
  width: 10px;
  height: 30px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--gold), var(--amber));
  clip-path: polygon(0 0, 100% 25%, 100% 75%, 0 100%);
}
.footer-slogan {
  margin-top: 12px;
  font-size: 15px;
  color: var(--white);
  letter-spacing: 0.04em;
}
.footer-trust {
  margin-top: 10px;
  max-width: 380px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--silver);
}
.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}
.footer-links li + li { margin-top: 10px; }
.footer-links a {
  font-size: 14px;
  color: var(--silver);
  transition: color 160ms var(--ease-out), padding-left 160ms var(--ease-out);
}
.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}
.footer-contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--silver);
}
.footer-contact-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--olive);
}
.footer-bottom {
  background: rgba(0, 0, 0, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--silver);
}

/* ---------- Sections & Chapters ---------- */
.section {
  position: relative;
  padding: 96px 0;
  background: var(--black);
}
.section--alt { background: var(--charcoal); }
.section--line { border-top: 1px solid rgba(212, 175, 55, 0.16); }
.chapter {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 44px;
}
.chapter-no {
  font-family: var(--font-heading);
  font-size: 88px;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  color: rgba(212, 175, 55, 0.08);
  -webkit-text-stroke: 2px rgba(212, 175, 55, 0.65);
}
.chapter-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--white);
  text-shadow: 0 4px 24px rgba(212, 175, 55, 0.18);
}
.chapter-desc {
  max-width: 640px;
  margin-top: -20px;
  margin-bottom: 48px;
  font-size: 15px;
  color: var(--silver);
}

/* ---------- Panels ---------- */
.panel {
  position: relative;
  padding: 30px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--charcoal-soft);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  transition: transform 240ms var(--ease-out), border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.panel:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.panel-gold-edge { border-left: 3px solid var(--gold); }
.panel-ticket {
  background:
    repeating-linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0 2px, transparent 2px 12px),
    var(--charcoal-soft);
}

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.35);
}
.tag-red {
  color: var(--red);
  background: rgba(230, 57, 70, 0.1);
  border-color: rgba(230, 57, 70, 0.35);
}
.tag--solid {
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: var(--black);
  border-color: transparent;
  font-weight: 700;
}

/* ---------- Stats ---------- */
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(52px, 8vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.25);
}
.stat-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
}

/* ---------- Data Table ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--white);
}
.data-table tr:hover td { background: rgba(212, 175, 55, 0.04); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 30px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: transform 180ms var(--ease-out), background 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: var(--black);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.28);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.4);
}
.btn-outline {
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  transform: translateY(-2px);
  background: rgba(212, 175, 55, 0.1);
}
.btn-large {
  height: 56px;
  padding: 0 38px;
  border-radius: 10px;
  font-size: 16px;
}

/* ---------- Grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 22px 0 6px;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}
.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--silver);
}
.breadcrumb-list li + li::before {
  content: "/";
  color: var(--olive);
}
.breadcrumb-list a { color: var(--silver); transition: color 160ms var(--ease-out); }
.breadcrumb-list a:hover { color: var(--gold); }
.breadcrumb-list [aria-current="page"] { color: var(--gold); font-weight: 600; }

/* ---------- Image Frames ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: var(--charcoal);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.img-frame img,
.img-frame > * {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 60%, rgba(212, 175, 55, 0.18));
}
.img-landscape { aspect-ratio: 16 / 10; }
.img-portrait { aspect-ratio: 4 / 5; }
.img-square { aspect-ratio: 1 / 1; }
.img-ratio-21 { aspect-ratio: 21 / 9; }

/* ---------- Decorative ---------- */
.diagonal-line {
  position: absolute;
  top: -15%;
  right: -8%;
  width: 240px;
  height: 130%;
  pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0 2px, transparent 2px 10px);
  transform: rotate(12deg);
}

/* ---------- Reveal on Scroll ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .nav-list a { padding: 0 10px; }
}

@media (max-width: 880px) {
  body { padding-top: 72px; }
  .site-header { padding: 8px 12px 0; }
  .header-capsule {
    flex-wrap: wrap;
    min-height: 56px;
    padding: 6px;
    border-radius: 32px;
  }
  .brand { gap: 8px; margin-right: auto; }
  .brand-slashes { width: 36px; height: 36px; font-size: 12px; }
  .brand-text { font-size: 15px; }
  .checkin-btn { height: 38px; padding: 0 14px; font-size: 13px; gap: 6px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    flex-basis: 100%;
    width: 100%;
    display: none;
    padding: 8px 4px 4px;
    margin-top: 4px;
    border-top: 1px solid rgba(212, 175, 55, 0.16);
  }
  .main-nav[data-open="true"] { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-list a {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 46px;
    border-radius: 18px;
    font-size: 15px;
  }
  .section { padding: 68px 0; }
  .chapter { gap: 18px; }
  .chapter-no { font-size: 64px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .data-table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 560px) {
  .brand-text { font-size: 14px; letter-spacing: 0.04em; }
  .brand-text::after { display: none; }
  .checkin-btn { padding: 0 12px; font-size: 12px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 36px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .chapter { flex-direction: column; align-items: flex-start; gap: 8px; }
  .chapter-no { font-size: 52px; }
  .chapter-title { font-size: 28px; }
  .panel { padding: 22px; }
}

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