/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  background-color: #1A1A2E;
  color: #F5F5F5;
  min-height: 100vh;
}
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid #D4AF37; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  html { scroll-behavior: auto; }
}

/* ===== CSS VARIABLES ===== */
:root {
  --color-gold: #D4AF37;
  --color-crimson: #8B0000;
  --color-lime: #C9E265;
  --color-dark: #1A1A2E;
  --color-gray: #2B2B3D;
  --color-white: #F5F5F5;
  --color-dull-gold: #B8922E;
  --color-silver: #A0A0B0;
  --color-gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F5D76E 40%, #B8922E 100%);
  --font-heading: "PingFang SC", "Microsoft YaHei", "Arial Black", Impact, sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Helvetica Neue Light", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --shadow-card: 0 4px 20px rgba(0,0,0,0.4);
  --transition: 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  --max-width: 1200px;
  --header-height: 100px;
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .container { padding: 0 32px; }
}
@media (min-width: 1024px) {
  .container { padding: 0 40px; }
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--color-gold);
  color: #1A1A2E;
  font-weight: 700;
  font-size: 14px;
  transform: translateY(-100%);
  transition: transform 0.2s;
}
.skip-link:focus {
  transform: translateY(0);
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
  background: transparent;
}
.scroll-progress__bar {
  width: 0%;
  height: 100%;
  background: var(--color-gold-gradient);
  transition: width 0.1s linear;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress__bar { transition: none; }
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 3px;
  z-index: 1000;
  background: #2B2B3D;
  border-bottom: 2px solid #8B0000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.6);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 0 100%);
}
.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  position: relative;
}
.header__brand {
  flex: 0 0 auto;
}
.header__logo {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 4px;
  background: var(--color-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  transform: skew(-6deg);
  transition: transform 0.3s;
}
.header__logo:hover { transform: skew(-6deg) scale(1.02); }
.header__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  border-radius: var(--radius-sm);
  background: rgba(212,175,55,0.1);
  padding: 8px;
}
.header__toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #D4AF37;
  border-radius: 2px;
  margin: 3px 0;
  transition: var(--transition);
}
.header__toggle[aria-expanded="true"] .header__toggle-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.header__toggle[aria-expanded="true"] .header__toggle-line:nth-child(2) {
  opacity: 0;
}
.header__toggle[aria-expanded="true"] .header__toggle-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.header__nav {
  flex: 0 0 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}
.header__nav[data-open] {
  max-height: 600px;
  opacity: 1;
}
.header__nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 0 8px;
}
.header__nav-link {
  display: inline-block;
  padding: 8px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  color: #F5F5F5;
  background: transparent;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.header__nav-link:hover,
.header__nav-link:focus-visible {
  background: rgba(212,175,55,0.12);
  border-color: #D4AF37;
  color: #D4AF37;
}
.header__nav-link[aria-current="page"] {
  background: #8B0000;
  border-color: #D4AF37;
  color: #D4AF37;
  box-shadow: 0 0 12px rgba(212,175,55,0.3);
}

/* Header tablet+ */
@media (min-width: 768px) {
  :root { --header-height: 80px; }
  .header__inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 8px 0;
  }
  .header__brand { flex: 0 0 auto; }
  .header__logo { font-size: 32px; }
  .header__toggle { display: none; }
  .header__nav {
    flex: 0 0 auto;
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible;
  }
  .header__nav-list {
    flex-direction: row;
    padding: 0;
    gap: 2px;
  }
  .header__nav-link {
    font-size: 14px;
    padding: 6px 16px;
  }
}
@media (min-width: 1024px) {
  .header__logo { font-size: 38px; }
  .header__nav-link { font-size: 15px; padding: 8px 20px; }
}

/* ===== FOOTER ===== */
.footer {
  background: #1A1A2E;
  border-top: 3px solid #8B0000;
  padding: 48px 0 0;
  margin-top: 80px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.footer__logo {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 4px;
  background: var(--color-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: skew(-6deg);
}
.footer__tagline {
  font-size: 13px;
  color: #B8922E;
  letter-spacing: 2px;
  margin-top: 4px;
}
.footer__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: #D4AF37;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.footer__contact-list,
.footer__link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__contact-list li,
.footer__link-list li {
  font-size: 14px;
  color: #A0A0B0;
  line-height: 1.5;
}
.footer__link {
  color: #A0A0B0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}
.footer__link:hover,
.footer__link:focus-visible {
  color: #D4AF37;
  border-bottom-color: #D4AF37;
}
.footer__bottom {
  margin-top: 32px;
  padding: 20px 0;
  border-top: 1px solid #2B2B3D;
  text-align: center;
}
.footer__icp {
  font-size: 12px;
  color: #B8922E;
  letter-spacing: 1px;
}
.footer__note {
  font-size: 12px;
  color: #A0A0B0;
  margin-top: 4px;
}
@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
  }
  .footer__bottom { text-align: center; }
}
@media (min-width: 1024px) {
  .footer { padding: 56px 0 0; }
  .footer__inner { gap: 60px; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  background: transparent;
  border: 2px solid #D4AF37;
  color: #D4AF37;
}
.btn:hover,
.btn:focus-visible {
  background: #D4AF37;
  color: #1A1A2E;
  box-shadow: 0 0 20px rgba(212,175,55,0.3);
}
.btn--primary {
  background: #8B0000;
  border-color: #8B0000;
  color: #F5F5F5;
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: #A00000;
  border-color: #D4AF37;
  color: #D4AF37;
  box-shadow: 0 0 20px rgba(139,0,0,0.4);
}
.btn--secondary {
  border-color: #A0A0B0;
  color: #A0A0B0;
}
.btn--secondary:hover,
.btn--secondary:focus-visible {
  border-color: #D4AF37;
  color: #D4AF37;
  background: rgba(212,175,55,0.08);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 12px 0;
  font-size: 13px;
  color: #A0A0B0;
}
.breadcrumb a {
  color: #B8922E;
  transition: var(--transition);
}
.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: #D4AF37;
}
.breadcrumb__separator {
  color: #8B0000;
  font-size: 12px;
}

/* ===== SECTION ===== */
.section {
  padding: 60px 0;
}
.section--tight {
  padding: 32px 0;
}
.section--loose {
  padding: 100px 0;
}
.section__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 32px;
  color: #F5F5F5;
  letter-spacing: 2px;
  margin-bottom: 16px;
  background: var(--color-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section__subtitle {
  font-size: 16px;
  color: #A0A0B0;
  max-width: 640px;
  line-height: 1.7;
}
@media (min-width: 768px) {
  .section__title { font-size: 42px; }
  .section--loose { padding: 140px 0; }
}
@media (min-width: 1024px) {
  .section__title { font-size: 52px; }
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid { gap: 32px; }
}

/* ===== CARD ===== */
.card {
  background: #2B2B3D;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid #A0A0B0;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.card:hover,
.card:focus-within {
  border-color: #D4AF37;
  box-shadow: 0 8px 32px rgba(212,175,55,0.15);
  transform: translateY(-2px);
}
.card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: #F5F5F5;
  margin-bottom: 8px;
}
.card__text {
  font-size: 14px;
  color: #A0A0B0;
  line-height: 1.6;
}
.card__badge {
  display: inline-block;
  padding: 4px 14px;
  background: #8B0000;
  color: #D4AF37;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

/* ===== IMAGE CONTAINER ===== */
.img-container {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #2B2B3D;
  aspect-ratio: 16 / 9;
  position: relative;
}
.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.img-container:hover img {
  transform: scale(1.03);
}
.img-container--portrait {
  aspect-ratio: 3 / 4;
}
.img-container--square {
  aspect-ratio: 1 / 1;
}
.img-container--wide {
  aspect-ratio: 21 / 9;
}
@media (prefers-reduced-motion: reduce) {
  .img-container img { transition: none; }
  .img-container:hover img { transform: none; }
}

/* ===== MISC UTILITIES ===== */
.text-gold { color: #D4AF37; }
.text-crimson { color: #8B0000; }
.text-lime { color: #C9E265; }
.text-muted { color: #A0A0B0; }
.text-dull { color: #B8922E; }
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }

/* ===== RESPONSIVE HELPER ===== */
.show-mobile { display: block; }
.hide-mobile { display: none; }
@media (min-width: 768px) {
  .show-mobile { display: none; }
  .hide-mobile { display: block; }
}

/* ===== ACCESSIBLE FOCUS ===== */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: 3px;
}
/* Remove outline for mouse clicks */
:focus:not(:focus-visible) {
  outline: none;
}
