:root {
  --color-primary: #0A1A2F;
  --color-bg: #F6F5F0;
  --color-accent: #C9A86A;
  --color-accent-soft: rgba(201, 168, 106, 0.12);
  --color-cta: #FF7A00;
  --color-cyan: #00E5CC;
  --color-purple: #7A5CFF;
  --color-text: #1F2933;
  --color-muted: #6B7280;
  --color-line: #E5E2DA;
  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'SimSun', serif;
  --font-sans: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Courier New', monospace;
  --shadow-sm: 0 1px 2px rgba(10, 26, 47, 0.06);
  --shadow-md: 0 6px 28px rgba(10, 26, 47, 0.09);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 64px;
  --radius: 14px;
  --container: 1280px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary);
}

:focus-visible {
  outline: 2px solid var(--color-cta);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--color-accent-soft);
  color: var(--color-primary);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

.visually-hidden {
  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;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--color-cta);
  color: #0A1A2F;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 0 0 8px 0;
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  left: 0;
}

.main-content {
  min-height: 65vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent) 0%, rgba(0, 229, 204, 0.35) 55%, transparent 100%);
  opacity: 0.5;
  pointer-events: none;
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-cyan);
  border-radius: 0 2px 2px 0;
  z-index: 10;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  flex-shrink: 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-brand .brand-mark svg {
  width: 30px;
  height: 30px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1.2;
}

.brand-region {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  line-height: 1.2;
}

.header-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.76);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

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

.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 2px;
  height: 12px;
  background: var(--color-accent);
  transform: translateY(-50%);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid rgba(201, 168, 106, 0.35);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-accent);
  background: rgba(201, 168, 106, 0.08);
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 0 0 rgba(0, 229, 204, 0.5);
  animation: statusPulse 2.4s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 229, 204, 0.5);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(0, 229, 204, 0);
  }
}

.header-cta {
  display: inline-block;
  padding: 8px 18px;
  background: var(--color-cta);
  color: #0A1A2F;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 122, 0, 0.35);
}

.nav-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: rgba(201, 168, 106, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

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

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

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

@media (max-width: 992px) {
  .header-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--color-primary);
    border-bottom: 1px solid rgba(201, 168, 106, 0.25);
    box-shadow: 0 24px 48px rgba(10, 26, 47, 0.28);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  }

  .header-nav[data-open] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 18px;
  }

  .nav-item + .nav-item {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-link {
    padding: 12px 8px;
    font-size: 15px;
  }

  .nav-link[aria-current="page"]::before {
    left: 0;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .header-actions {
    display: none;
  }

  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .nav-list {
    padding: 8px 16px 14px;
  }
}

.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(201, 168, 106, 0.3);
  padding: 64px 0 0;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 48px;
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand .brand-mark svg {
  width: 38px;
  height: 38px;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.footer-brand-text .brand-name {
  font-size: 20px;
}

.footer-brand-text .brand-region {
  font-size: 12px;
}

.footer-note {
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.55);
  max-width: 380px;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  padding-bottom: 8px;
  position: relative;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 1px;
  background: var(--color-accent);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.76);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer-list a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-contact-col .footer-list li {
  font-size: 13px;
  line-height: 1.65;
  padding-left: 18px;
  position: relative;
  color: rgba(255, 255, 255, 0.68);
}

.footer-contact-col .footer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 1.5px;
  background: var(--color-cyan);
  border-radius: 2px;
}

.footer-bottom {
  max-width: var(--container);
  margin: 56px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 992px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }

  .footer-note {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 48px 0 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 16px;
  }

  .footer-brand-col {
    grid-column: auto;
  }

  .footer-bottom {
    margin-top: 40px;
    padding: 18px 16px;
    flex-direction: column;
    text-align: center;
  }
}

.section {
  padding: 48px 0;
}

.section-overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--color-purple);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-overline::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--color-purple);
  border-radius: 2px;
}

.section-title {
  font-size: 28px;
  font-family: var(--font-serif);
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 8px;
}

.page-header {
  padding: 56px 0 8px;
  position: relative;
}

.page-title {
  font-size: 40px;
  font-family: var(--font-serif);
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.page-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-muted);
  max-width: 640px;
}

.breadcrumb {
  margin-bottom: 24px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--color-muted);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--color-line);
  font-family: var(--font-mono);
}

.breadcrumb-link {
  color: var(--color-muted);
  transition: color 0.15s var(--ease);
}

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

.breadcrumb-item[aria-current] {
  color: var(--color-primary);
  font-weight: 500;
}

.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));
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bento-cell {
  grid-column: span 4;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.bento-cell--2 {
  grid-column: span 8;
}

.panel {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.panel-dark {
  background: var(--color-primary);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-primary {
  background: var(--color-cta);
  color: #0A1A2F;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 122, 0, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-line);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  background: rgba(10, 26, 47, 0.04);
}

.image-container {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-line);
  aspect-ratio: 4 / 3;
}

.image-container--wide {
  aspect-ratio: 16 / 9;
}

.image-container--portrait {
  aspect-ratio: 3 / 4;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-figure {
  margin: 0;
}

.image-caption {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 8px;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .bento-cell,
  .bento-cell--2 {
    grid-column: span 6;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

@media (max-width: 640px) {
  .section {
    padding: 40px 0;
  }

  .page-header {
    padding: 40px 0 0;
  }

  .page-title {
    font-size: 32px;
  }

  .page-lead {
    font-size: 16px;
  }

  .grid-2,
  .grid-3,
  .bento-cell,
  .bento-cell--2 {
    grid-template-columns: 1fr;
    grid-column: span 12;
  }

  .container,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .btn {
    width: 100%;
  }
}
