:root {
  --primary-red: #E63946;
  --primary-gold: #FFD700;
  --accent-deep-blue: #1F3A93;
  --background-dark: #0D0D0D;
  --background-section: #1A1A1A;
  --text-light: #F5F5F5;
  --text-dark: #222222;
  --border-gold: #B8860B;
  --success-green: #2ECC71;
  --gold-gradient: linear-gradient(135deg, #FFD700, #E6C300);
  --font-heading: 'STKaiti', 'KaiTi', 'SimSun', 'Noto Serif SC', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-small: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --container-max: 1200px;
  --header-z: 100;
  --transition-speed: 0.3s;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-light);
  background-color: var(--background-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-gold);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--primary-red);
}

a:focus-visible {
  outline: 2px solid var(--primary-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

button:focus-visible {
  outline: 2px solid var(--primary-gold);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 999;
  padding: 0.75rem 1.5rem;
  background: var(--primary-red);
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: none;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Site Header */
.site-header {
  background: var(--background-dark);
  border-bottom: 2px solid var(--border-gold);
  position: relative;
  z-index: var(--header-z);
  padding: 1rem 0 0 0;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-bottom: 0.75rem;
}

.brand-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.8rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

.brand-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--primary-gold);
  letter-spacing: 0.3em;
  margin-top: 0.2rem;
  opacity: 0.8;
}

.contact-short {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  margin-left: auto;
  margin-right: 1rem;
}

.contact-icon {
  font-size: 0.7rem;
  color: var(--primary-red);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  gap: 5px;
  padding: 0.3rem;
  background: transparent;
  border: 1px solid var(--border-gold);
  border-radius: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: var(--primary-gold);
  border-radius: 1px;
  transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

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

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

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

/* Header Divider */
.header-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-gold), var(--primary-red), var(--primary-gold), transparent);
  opacity: 0.6;
  margin: 0;
}

/* Navigation Wrap */
.nav-wrap {
  padding: 0 1.5rem;
}

.nav-container {
  display: flex;
  justify-content: center;
  padding: 0.6rem 0;
}

.nav-list {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 0.5rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-light);
  letter-spacing: 0.06em;
  transition: color var(--transition-speed) ease, background var(--transition-speed) ease;
  border-radius: 4px 4px 0 0;
  position: relative;
}

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

.nav-link:hover {
  color: var(--primary-gold);
  background: rgba(255, 215, 0, 0.05);
}

.nav-link:hover::after {
  width: 60%;
}

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

.nav-link[aria-current="page"]::after {
  width: 70%;
  background: var(--primary-red);
  height: 3px;
}

/* Site Footer */
.site-footer {
  background: var(--background-dark);
  border-top: 2px solid var(--border-gold);
  padding: 3rem 0 0 0;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

.footer-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--text-light);
  opacity: 0.7;
}

.footer-trust {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--primary-gold);
  opacity: 0.6;
  border-left: 2px solid var(--border-gold);
  padding-left: 0.8rem;
  margin-top: 0.3rem;
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-gold);
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(184, 134, 11, 0.3);
  padding-bottom: 0.5rem;
}

.footer-link-list,
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--text-light);
  opacity: 0.75;
  transition: opacity var(--transition-speed) ease, color var(--transition-speed) ease;
}

.footer-link:hover {
  opacity: 1;
  color: var(--primary-gold);
}

.footer-contact-list li {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--text-light);
  opacity: 0.75;
  line-height: 1.6;
}

.footer-contact-label {
  color: var(--primary-gold);
  font-weight: 400;
}

.footer-contact-note {
  font-size: 0.75rem;
  opacity: 0.5;
  font-style: italic;
  margin-top: 0.3rem;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
  opacity: 0.4;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-icp {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--text-light);
  opacity: 0.5;
}

.footer-copyright {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--text-light);
  opacity: 0.5;
}

/* Shared Utilities */
.text-gold {
  color: var(--primary-gold);
}

.text-red {
  color: var(--primary-red);
}

.border-gold {
  border: 1px solid var(--border-gold);
}

.bg-dark {
  background-color: var(--background-dark);
}

.bg-section {
  background-color: var(--background-section);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: background var(--transition-speed) ease, transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  text-align: center;
  line-height: 1.2;
}

.btn:focus-visible {
  outline: 2px solid var(--primary-gold);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary-red);
  color: var(--text-light);
  border: 1px solid var(--primary-red);
}

.btn-primary:hover {
  background: #c62e3a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.btn-gold {
  background: var(--gold-gradient);
  color: var(--text-dark);
  border: 1px solid var(--border-gold);
  font-weight: 700;
}

.btn-gold:hover {
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.35);
  transform: translateY(-1px);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8rem;
  color: rgba(245, 245, 245, 0.5);
  padding: 1rem 0;
}

.breadcrumb a {
  color: var(--primary-gold);
  opacity: 0.7;
}

.breadcrumb a:hover {
  opacity: 1;
}

.breadcrumb span {
  color: rgba(245, 245, 245, 0.3);
}

/* Section Title */
.section-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--primary-gold);
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border-gold);
  line-height: 1.3;
}

/* Page Content */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-light);
}

.page-content h2,
.page-content h3 {
  font-family: var(--font-heading);
  color: var(--primary-gold);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.page-content p {
  margin-bottom: 1.2rem;
}

/* Grid Systems */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Label Tag */
.label-tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  font-family: var(--font-small);
  font-weight: 300;
  font-size: 0.7rem;
  color: var(--primary-gold);
  border: 1px solid var(--border-gold);
  border-radius: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Print Border */
.print-border {
  border: 2px solid var(--border-gold);
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  background: rgba(26, 26, 26, 0.6);
}

/* Paper Stack */
.paper-stack {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.1);
  background: var(--background-section);
  border: 1px solid rgba(184, 134, 11, 0.15);
}

/* Gold Line */
.gold-line {
  display: block;
  height: 1px;
  background: var(--gold-gradient);
  opacity: 0.5;
  margin: 1.5rem 0;
}

/* Scroll Top Button */
[data-scroll-top] {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--text-dark);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease, visibility var(--transition-speed) ease;
  border: 1px solid var(--border-gold);
}

[data-scroll-top].visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

[data-scroll-top]:hover {
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

[data-scroll-top]:focus-visible {
  outline: 2px solid var(--primary-gold);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 768px) {
  .header-row {
    padding-bottom: 0.5rem;
  }

  .brand-logo {
    font-size: 2rem;
  }

  .brand-sub {
    font-size: 0.7rem;
  }

  .contact-short {
    font-size: 0.8rem;
    margin-right: 0.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-container {
    display: none;
    flex-direction: column;
    padding: 0.5rem 0 1rem 0;
  }

  .nav-container[data-open] {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(184, 134, 11, 0.15);
  }

  .nav-link {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    border-radius: 0;
  }

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

  .nav-link[aria-current="page"] {
    background: rgba(255, 215, 0, 0.08);
    border-left: 3px solid var(--primary-gold);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
  }

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

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 1.6rem;
  }

  .page-content {
    padding: 1.5rem 1rem;
  }

  [data-scroll-top] {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    font-size: 1.6rem;
  }

  .brand-sub {
    font-size: 0.65rem;
  }

  .contact-short {
    font-size: 0.7rem;
    margin-right: 0.3rem;
  }

  .nav-toggle {
    width: 2.2rem;
    height: 2.2rem;
  }

  .nav-toggle-bar {
    width: 1.2rem;
  }

  .footer-logo {
    font-size: 1.5rem;
  }

  .footer-heading {
    font-size: 1rem;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .skip-link {
    transition: none;
  }

  .nav-toggle-bar {
    transition: none;
  }

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

  .btn {
    transition: none;
  }

  [data-scroll-top] {
    transition: none;
  }
}
