/* ============================================================
   九博国际娱乐 Site Kit  /assets/site.css
   深空蓝 x 金 x 藏红 | 杂志刊头式 | 左右分屏 | 粒子漂浮
   ============================================================ */

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

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

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul,
ol {
  list-style: none;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-highlight);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 0.5em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

strong,
em {
  color: var(--text-primary);
}

address {
  font-style: normal;
}

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

::selection {
  background: rgba(212, 175, 55, 0.35);
  color: var(--text-primary);
}

:focus-visible {
  outline: 2px solid var(--accent-highlight);
  outline-offset: 2px;
}

/* ---------- 2. Design Tokens ---------- */
:root {
  --bg-primary: #0A1628;
  --bg-card: #1E3A5F;
  --accent-gold: #D4AF37;
  --accent-highlight: #E6C200;
  --accent-dark: #A67C00;
  --accent-wine: #8C1D18;
  --text-primary: #F5F5F0;
  --text-secondary: #B0BFC9;
  --line-gold: #B8860B;

  --font-heading: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif;
  --font-data: "Roboto Mono", "SF Mono", "Consolas", "Liberation Mono", monospace;

  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --container-max: 1200px;
  --radius: 2px;
}

/* ---------- 3. Accessibility & Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 300;
  background: var(--accent-gold);
  color: var(--bg-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

#main-content {
  display: block;
  min-height: 60vh;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.split-grid--reverse {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent-gold);
}

.section-label::before {
  content: "";
  width: 11px;
  height: 11px;
  border: 2px solid var(--accent-gold);
  transform: rotate(45deg);
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-dark));
  color: var(--bg-primary);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--accent-highlight), var(--accent-gold));
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}

.btn-outline {
  background: transparent;
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent-highlight);
  border-color: var(--accent-highlight);
}

/* ---------- 5. Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  border-bottom: 1px solid rgba(184, 134, 11, 0.45);
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-highlight), var(--accent-wine));
  pointer-events: none;
  transition: width 0.1s linear;
}

.header-orbit {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.header-orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 48px, rgba(184, 134, 11, 0.05) 48px 50px),
    linear-gradient(180deg, rgba(30, 58, 95, 0.35), transparent 80%);
}

.orbit-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-gold);
  animation: orbit-drift 14s ease-in-out infinite alternate;
}

.orbit-particle-1 {
  top: 20%;
  left: 5%;
  width: 4px;
  height: 4px;
  opacity: 0.55;
  animation-duration: 16s;
}

.orbit-particle-2 {
  top: 38%;
  left: 12%;
  width: 2px;
  height: 2px;
  opacity: 0.4;
  animation-duration: 11s;
  animation-delay: 2s;
}

.orbit-particle-3 {
  top: 65%;
  left: 8%;
  width: 5px;
  height: 5px;
  opacity: 0.3;
  animation-duration: 19s;
  animation-delay: 0.8s;
}

.orbit-particle-4 {
  top: 82%;
  left: 17%;
  width: 3px;
  height: 3px;
  opacity: 0.5;
  animation-duration: 12s;
  animation-delay: 3s;
}

.orbit-particle-5 {
  top: 50%;
  left: 2%;
  width: 2px;
  height: 2px;
  opacity: 0.7;
  animation-duration: 17s;
  animation-delay: 1.2s;
}

@keyframes orbit-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(8px, 14px, 0);
  }
}

.header-masthead {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem var(--space-md) 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-dark) 70%, var(--accent-wine));
  color: var(--bg-primary);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.375rem;
  line-height: 1;
  transform: rotate(-3deg);
  transition: box-shadow 0.3s ease;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.625rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  transition: color 0.25s ease;
}

.brand:hover .brand-glyph {
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
}

.brand:hover .brand-name {
  color: var(--accent-highlight);
}

.masthead-rule {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 220px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold) 30%, var(--accent-gold) 70%, transparent);
}

.masthead-rule::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 7px;
  height: 7px;
  background: var(--accent-wine);
  border: 1px solid var(--accent-gold);
}

.site-nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(184, 134, 11, 0.25);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding: 0 var(--space-md);
}

.nav-link {
  position: relative;
  display: block;
  padding: 0.875rem 0.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.925rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

.nav-link[aria-current="page"] {
  color: var(--accent-gold);
}

.nav-toggle {
  display: none;
}

/* ---------- 6. Footer ---------- */
.site-footer {
  margin-top: var(--space-2xl);
  background: var(--bg-primary);
  border-top: 1px solid var(--line-gold);
}

.footer-orbit {
  height: 26px;
  background:
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(212, 175, 55, 0.09) 30px 32px),
    linear-gradient(90deg, transparent 0%, rgba(140, 29, 24, 0.18) 50%, transparent 100%);
  border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 4rem);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

.footer-statement {
  max-width: 26em;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 0;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-heading {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(184, 134, 11, 0.3);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-list a {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--accent-dark);
  transition: width 0.2s ease, background 0.2s ease;
}

.footer-list a:hover {
  color: var(--accent-highlight);
  padding-left: 1.5rem;
}

.footer-list a:hover::before {
  width: 13px;
  background: var(--accent-gold);
}

.footer-list .contact-label {
  display: inline-block;
  min-width: 5.5em;
  margin-right: 0.5em;
  font-family: var(--font-data);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
}

.footer-list .contact-value {
  color: var(--text-secondary);
}

.footer-contact .footer-list li {
  line-height: 1.7;
}

.footer-contact .contact-value {
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-md) var(--space-md) var(--space-lg);
  border-top: 1px solid rgba(184, 134, 11, 0.2);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-icp {
  font-family: var(--font-data);
  letter-spacing: 0.06em;
}

.copyright {
  font-family: var(--font-body);
}

/* ---------- 7. Shared Components ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: var(--space-sm) 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--text-secondary);
}

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

.breadcrumb-separator {
  color: var(--line-gold);
}

.breadcrumb-current {
  color: var(--accent-gold);
}

.card {
  position: relative;
  background: linear-gradient(160deg, var(--bg-card), #16294a);
  border: 1px solid rgba(184, 134, 11, 0.35);
  border-radius: var(--radius);
  padding: var(--space-lg);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.card-gold {
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.12), rgba(184, 134, 11, 0.03) 65%, rgba(140, 29, 24, 0.05));
  border-color: rgba(212, 175, 55, 0.55);
}

.panel {
  background: var(--bg-card);
  border: 1px solid rgba(184, 134, 11, 0.3);
  border-radius: var(--radius);
  overflow: hidden;
}

.panel-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  background: transparent;
  transition: color 0.2s ease, background 0.2s ease;
}

.panel-trigger:hover {
  color: var(--accent-highlight);
  background: rgba(212, 175, 55, 0.04);
}

.panel-trigger::after {
  content: "+";
  font-family: var(--font-data);
  font-size: 1.125rem;
  color: var(--accent-gold);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.panel-trigger[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.panel-content {
  display: block;
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

html.js .panel-content {
  display: none;
}

html.js .panel-content[data-open] {
  display: block;
  animation: panel-fade 0.25s ease;
}

@keyframes panel-fade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tag {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--accent-gold);
  border-radius: 2px;
}

.tag-wine {
  color: #e09a90;
  background: rgba(140, 29, 24, 0.18);
  border-color: rgba(140, 29, 24, 0.7);
}

.stat-number {
  font-family: var(--font-data);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--accent-highlight);
}

.media-frame {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, var(--bg-card), #0d1c35);
  border: 1px solid rgba(184, 134, 11, 0.3);
  border-radius: 2px;
  color: var(--accent-dark);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
}

.media-frame--tall {
  aspect-ratio: 3 / 4;
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.media-frame:hover img {
  transform: scale(1.03);
}

/* ---------- 8. Reveal on Scroll ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  will-change: opacity, transform;
}

html.js [data-reveal][data-revealed] {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 9. Responsive ---------- */
@media (max-width: 900px) {
  .split-grid,
  .split-grid--reverse {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--space-lg) var(--space-md);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    padding-top: var(--space-lg);
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .header-masthead {
    justify-content: space-between;
    padding: 1rem var(--space-md);
  }

  .brand-glyph {
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
  }

  .brand-name {
    font-size: 1.375rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(184, 134, 11, 0.5);
    border-radius: 2px;
    flex-shrink: 0;
    background: rgba(212, 175, 55, 0.04);
  }

  .toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--accent-gold);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

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

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

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 150;
    padding: 0.75rem var(--space-md) 1rem;
    background: var(--bg-primary);
    border-top: 1px solid rgba(184, 134, 11, 0.3);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
  }

  .site-nav[data-open] {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item + .nav-item {
    border-top: 1px solid rgba(184, 134, 11, 0.15);
  }

  .nav-link {
    display: block;
    padding: 0.875rem 0.75rem;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    color: var(--accent-gold);
    border-left-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.08);
  }

  .nav-link:hover {
    color: var(--accent-highlight);
  }
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .masthead-rule {
    width: 140px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  .scroll-progress {
    transition: none;
  }
}
