/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
select { font: inherit; }
:focus-visible { outline: 2px solid #D4A843; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* ===== CSS VARIABLES ===== */
:root {
  --color-bg: #F5F0E8;
  --color-text: #1A1A1A;
  --color-gold: #D4A843;
  --color-navy: #1B3A5C;
  --color-navy-dark: #0F2027;
  --color-navy-mid: #203A43;
  --color-ash: #E0DCD5;
  --color-white: #FFFFFF;
  --color-star: #FFFFFF;
  --font-heading: "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-data: "JetBrains Mono", "Fira Code", monospace;
  --font-small: "PingFang SC", sans-serif;
  --nav-width: 240px;
  --nav-width-collapsed: 64px;
  --header-gap: 1.5rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --transition: 0.25s ease;
  --max-width: 1280px;
  --z-nav: 1000;
  --z-overlay: 900;
}

/* ===== TYPOGRAPHY ===== */
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1rem, 1.8vw, 1.4rem); }
.data, code, .mono { font-family: var(--font-data); font-weight: 500; font-size: 1rem; }
.small-index {
  font-family: var(--font-small);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: var(--z-nav);
  padding: 0.75rem 1.5rem;
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; outline: 2px solid var(--color-gold); }

/* ===== SITE HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-width);
  height: 100vh;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-mid) 100%);
  color: var(--color-white);
  z-index: var(--z-nav);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: width var(--transition);
}
.header-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem 1.25rem;
  gap: 1.5rem;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-gold);
  letter-spacing: -0.02em;
  transition: color var(--transition);
}
.brand-logo:hover { color: var(--color-white); }
.brand-icon { font-size: 1.8rem; line-height: 1; }
.brand-text { line-height: 1; }
.brand-tagline {
  font-family: var(--font-small);
  font-weight: 300;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.03em;
  margin-top: 0.2rem;
}

/* ===== NAVIGATION ===== */
.main-nav { flex: 1; display: flex; flex-direction: column; }
.nav-list { display: flex; flex-direction: column; gap: 0.25rem; }
.nav-item { width: 100%; }
.nav-link {
  display: block;
  padding: 0.7rem 1rem 0.7rem 1.2rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  border-left: 3px solid transparent;
  transition: all var(--transition);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  background: transparent;
}
.nav-link:hover {
  color: var(--color-gold);
  border-left-color: var(--color-gold);
  background: rgba(212,168,67,0.08);
}
.nav-link[aria-current="page"] {
  color: var(--color-gold);
  border-left-color: var(--color-gold);
  background: rgba(212,168,67,0.12);
  font-weight: 700;
}

/* ===== NAV TOGGLE (mobile) ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: calc(var(--z-nav) + 1);
}
.nav-toggle-line {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}
[data-nav-toggle][aria-expanded="true"] .nav-toggle-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
[data-nav-toggle][aria-expanded="true"] .nav-toggle-line:nth-child(2) { opacity: 0; }
[data-nav-toggle][aria-expanded="true"] .nav-toggle-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== SEASON SELECTOR ===== */
.season-selector {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.season-selector--hidden { display: none; }
.season-label {
  display: block;
  font-family: var(--font-small);
  font-weight: 300;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.4rem;
}
.season-dropdown {
  width: 100%;
  padding: 0.45rem 0.6rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-size: 0.85rem;
  transition: border-color var(--transition);
}
.season-dropdown:hover, .season-dropdown:focus { border-color: var(--color-gold); }

/* ===== MAIN CONTENT ===== */
#main-content {
  margin-left: var(--nav-width);
  flex: 1;
  width: calc(100% - var(--nav-width));
  transition: margin-left var(--transition), width var(--transition);
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--gold {
  background: var(--color-gold);
  color: var(--color-text);
  border-color: var(--color-gold);
}
.btn--gold:hover { background: transparent; color: var(--color-gold); }
.btn--outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn--outline:hover { background: var(--color-navy); color: var(--color-white); }
.btn--small { padding: 0.4rem 1rem; font-size: 0.8rem; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 0.75rem 0;
  font-family: var(--font-small);
  font-size: 0.8rem;
  color: rgba(26,26,26,0.6);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.breadcrumb li { display: flex; align-items: center; gap: 0.4rem; }
.breadcrumb li + li::before { content: "/"; color: var(--color-ash); }
.breadcrumb a { color: var(--color-navy); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--color-gold); }

/* ===== GRID ===== */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ===== SECTION ===== */
.section { padding: 3rem 0; }
.section--dark { background: var(--color-navy); color: var(--color-white); }
.section--accent { background: var(--color-gold); color: var(--color-text); }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--color-gold);
  width: 0%;
  z-index: calc(var(--z-nav) + 2);
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy-mid) 100%);
  color: rgba(255,255,255,0.85);
  padding: 3rem 2rem 1.5rem;
  margin-left: var(--nav-width);
  width: calc(100% - var(--nav-width));
  transition: margin-left var(--transition), width var(--transition);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(2px 2px at 55% 15%, rgba(255,255,255,0.15) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 80% 45%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.15) 0%, transparent 100%),
    radial-gradient(2px 2px at 20% 85%, rgba(255,255,255,0.1) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 70% 70%, rgba(255,255,255,0.12) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 40%, rgba(255,255,255,0.18) 0%, transparent 100%);
  pointer-events: none;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-gold);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.footer-trust {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
  border-left: 2px solid var(--color-gold);
  padding-left: 0.75rem;
}
.footer-heading {
  font-family: var(--font-small);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  margin-bottom: 0.8rem;
}
.footer-link-list { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-link-list a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-link-list a:hover { color: var(--color-gold); }
.footer-contact p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.4rem;
}
.footer-contact a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--color-gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  position: relative;
  z-index: 1;
}
.footer-icp { letter-spacing: 0.02em; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  :root { --nav-width: 200px; }
  .header-inner { padding: 1.5rem 1rem; gap: 1rem; }
  .brand-logo { font-size: 1.2rem; }
  .nav-link { font-size: 0.85rem; padding: 0.55rem 0.8rem 0.55rem 1rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --nav-width: 0px; }
  .site-header {
    width: 100%;
    height: auto;
    position: relative;
    flex-direction: row;
    background: var(--color-navy);
    padding: 0.6rem 1rem;
  }
  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    gap: 0;
    align-items: center;
  }
  .brand { flex: 1; }
  .brand-logo { font-size: 1.1rem; }
  .brand-tagline { display: none; }
  .nav-toggle { display: flex; order: 2; }
  .main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-mid) 100%);
    padding: 2.5rem 1.5rem 2rem;
    transition: left 0.3s ease;
    z-index: var(--z-nav);
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
    overflow-y: auto;
  }
  .main-nav[data-open] { left: 0; }
  .main-nav[data-open]::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: -1;
  }
  .nav-list { gap: 0.15rem; }
  .nav-link { font-size: 1rem; padding: 0.65rem 1rem; }
  .season-selector { display: none; }
  #main-content { margin-left: 0; width: 100%; }
  .site-footer { margin-left: 0; width: 100%; padding: 2rem 1.2rem 1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .container { padding: 0 1.2rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0.4rem 0; }
  .brand-logo { font-size: 1rem; }
  .nav-toggle { padding: 0.3rem; }
  .nav-toggle-line { width: 24px; }
  .main-nav { width: 100%; left: -100%; }
}

/* ===== UTILITY ===== */
.text-gold { color: var(--color-gold); }
.text-navy { color: var(--color-navy); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
