/* ===== /assets/site.css ===== */

:root {
  --bg-deep: #0B1F3A;
  --bg-mid: #123D66;
  --accent: #FF6B35;
  --gold: #F5C518;
  --stone: #6B7A8F;
  --mint: #2A9D8F;
  --terracotta: #C68B59;
  --cream: #F4EBE0;
  --carbon: #071426;
  --silver: #D9D9D9;
  --font-head: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC Light", "PingFang SC Thin", "Microsoft YaHei", sans-serif;
  --weight-head: 900;
  --weight-body: 300;
  --container: 1280px;
  --radius: 4px;
  --shadow: 0 18px 42px rgba(7, 20, 38, 0.28);
  --border-faint: rgba(217, 217, 217, 0.14);
  --transition: 0.3s ease;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--cream);
  background:
    radial-gradient(circle at 82% 8%, rgba(245, 197, 24, 0.14), transparent 34%),
    radial-gradient(circle at 10% 92%, rgba(255, 107, 53, 0.1), transparent 36%),
    linear-gradient(145deg, var(--bg-deep), var(--bg-mid) 55%, var(--bg-deep));
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: var(--weight-head);
  line-height: 1.15;
  color: var(--cream);
}

p {
  margin: 0 0 1rem;
}

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button, input, textarea, select {
  font: inherit;
}

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

::selection {
  background: rgba(255, 107, 53, 0.35);
  color: var(--cream);
}

/* ===== Skip link ===== */

.skip-link {
  position: absolute;
  left: 50%;
  top: -140px;
  transform: translateX(-50%);
  z-index: 2000;
  background: var(--accent);
  color: var(--carbon);
  padding: 10px 20px;
  border-radius: 0 0 4px 4px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.85rem;
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
  transition: top 0.3s ease;
}

.skip-link:focus-visible {
  top: 0;
}

/* ===== Header frame ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 20, 38, 0.88);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid rgba(245, 197, 24, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
}

.site-header::after {
  content: "九博国际 · 中国焕新启航";
  position: absolute;
  right: 24px;
  bottom: 8px;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: rgba(245, 197, 24, 0.32);
  pointer-events: none;
  white-space: nowrap;
}

.header-frame {
  position: relative;
  z-index: 1;
  max-width: 1420px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link,
.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: var(--carbon);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.35rem;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.4), 0 8px 22px rgba(255, 107, 53, 0.25);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.brand-tagline {
  margin-top: 4px;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
}

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

.nav-link {
  position: relative;
  display: block;
  padding: 8px 14px;
  color: rgba(244, 235, 224, 0.78);
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--cream);
  border-color: rgba(255, 107, 53, 0.35);
  background: rgba(255, 107, 53, 0.08);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--gold);
  border-color: rgba(245, 197, 24, 0.25);
  background: rgba(245, 197, 24, 0.06);
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255, 107, 53, 0.45);
  color: var(--cream);
  padding: 10px 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.nav-toggle:hover {
  border-color: var(--accent);
  background: rgba(255, 107, 53, 0.14);
  color: var(--gold);
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--gold);
  background: rgba(245, 197, 24, 0.08);
  color: var(--gold);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: top 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.nav-toggle-bars::before {
  top: 0;
}

.nav-toggle-bars::after {
  top: 8px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 4px;
  transform: rotate(45deg);
  background: var(--gold);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 4px;
  transform: rotate(-45deg);
  background: var(--gold);
}

/* ===== Scroll progress ===== */

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 3;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  pointer-events: none;
}

/* ===== Footer frame ===== */

.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--carbon) 100%);
  border-top: 1px solid rgba(245, 197, 24, 0.22);
  color: rgba(244, 235, 224, 0.8);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold), transparent 70%);
}

.site-footer::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36%;
  height: 140px;
  background:
    radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.12), transparent 60%),
    linear-gradient(120deg, transparent 30%, rgba(245, 197, 24, 0.08) 30%, rgba(245, 197, 24, 0.08) 31%, transparent 31%);
  pointer-events: none;
}

.footer-frame {
  position: relative;
  z-index: 1;
  max-width: 1420px;
  margin: 0 auto;
  padding: 64px 32px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 40px;
}

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

.footer-brand-link .brand-mark {
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
}

.footer-title {
  margin: 0 0 16px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  position: relative;
  display: inline-block;
  padding: 2px 0;
  color: rgba(244, 235, 224, 0.72);
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--cream);
  letter-spacing: 0.02em;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-contact {
  min-width: 0;
}

.footer-index {
  min-width: 0;
}

.footer-legal {
  min-width: 0;
}

.contact-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.contact-label {
  padding-top: 3px;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.contact-value {
  color: rgba(244, 235, 224, 0.85);
}

.contact-service {
  margin-top: 8px;
  font-size: 0.8rem;
  color: rgba(107, 122, 143, 0.9);
}

.footer-trust {
  max-width: 36rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(107, 122, 143, 0.95);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(217, 217, 217, 0.12);
  font-size: 0.77rem;
  color: rgba(107, 122, 143, 0.85);
}

.footer-symbol {
  letter-spacing: 0.28em;
  font-size: 0.68rem;
  color: rgba(245, 197, 24, 0.45);
}

/* ===== Shared page components ===== */

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(56px, 10vw, 120px) 0;
}

.section.is-compact {
  padding: clamp(32px, 5vw, 56px) 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(28px, 5vw, 56px);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.section-title {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

.section-excerpt {
  margin: 14px 0 0;
  max-width: 66ch;
  color: rgba(244, 235, 224, 0.7);
}

.page-header {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 36px;
  margin-bottom: clamp(32px, 6vw, 64px);
  border-bottom: 1px solid rgba(245, 197, 24, 0.16);
}

.page-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.page-title {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.page-intro {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(244, 235, 224, 0.72);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-bottom: 18px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(244, 235, 224, 0.62);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(245, 197, 24, 0.5);
}

.breadcrumb-link {
  color: inherit;
  transition: color 0.3s ease;
}

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

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

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--carbon);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.28);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  border-color: var(--gold);
  color: var(--carbon);
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.2);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold), var(--accent));
  border-color: var(--accent);
}

.btn-ghost {
  border-color: rgba(244, 235, 224, 0.28);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 107, 53, 0.08);
}

/* ===== Surface cards ===== */

.surface-card {
  position: relative;
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(18, 61, 102, 0.36), rgba(11, 31, 58, 0.86) 68%);
  box-shadow: var(--shadow);
}

.surface-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.surface-card.is-plain {
  background: var(--cream);
  color: var(--carbon);
  box-shadow: 0 10px 30px rgba(7, 20, 38, 0.18);
}

.surface-card.is-plain .surface-title {
  color: var(--carbon);
}

.surface-card.is-plain .surface-text {
  color: rgba(7, 20, 38, 0.72);
}

.surface-title {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.surface-text {
  margin-bottom: 0;
  color: rgba(244, 235, 224, 0.72);
  line-height: 1.65;
}

/* ===== Tags ===== */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(217, 217, 217, 0.18);
  border-radius: 999px;
  background: rgba(11, 31, 58, 0.35);
  color: rgba(244, 235, 224, 0.8);
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.tag-gold {
  border-color: rgba(245, 197, 24, 0.32);
  color: var(--gold);
  background: rgba(245, 197, 24, 0.08);
}

.tag-mint {
  border-color: rgba(42, 157, 143, 0.4);
  color: var(--mint);
  background: rgba(42, 157, 143, 0.07);
}

.tag-orange {
  border-color: rgba(255, 107, 53, 0.4);
  color: var(--accent);
  background: rgba(255, 107, 53, 0.08);
}

/* ===== Grid systems ===== */

.grid {
  display: grid;
  gap: clamp(18px, 2.6vw, 32px);
}

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

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

.grid-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.grid-bento > * {
  grid-column: 1 / -1;
}

.data-index {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.26em;
  color: var(--terracotta);
}

/* ===== Typography helpers ===== */

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(244, 235, 224, 0.85);
}

.prose {
  color: rgba(244, 235, 224, 0.8);
}

.prose h2 {
  margin: 2em 0 0.75em;
  font-size: 1.6rem;
}

.prose h3 {
  margin: 1.8em 0 0.6em;
  font-size: 1.25rem;
}

.prose p {
  max-width: 68ch;
  margin-bottom: 1.1em;
}

.prose ul {
  margin-bottom: 1.2em;
}

.prose ul li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.5em;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0.25em;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
  transform: rotate(45deg);
}

.prose a {
  color: var(--gold);
  border-bottom: 1px solid rgba(245, 197, 24, 0.3);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.prose a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.text-accent {
  color: var(--accent);
}

.text-gold {
  color: var(--gold);
}

.text-muted {
  color: rgba(244, 235, 224, 0.6);
}

/* ===== Image containers ===== */

.image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 120px;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(217, 217, 217, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(18, 61, 102, 0.7), rgba(7, 20, 38, 0.94));
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 107, 53, 0.22), transparent 36%),
    linear-gradient(115deg, transparent 44%, rgba(245, 197, 24, 0.1) 44%, rgba(245, 197, 24, 0.1) 45%, transparent 45%),
    linear-gradient(0deg, rgba(217, 217, 217, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 100% 24px;
}

.image-frame::after {
  content: "九博 · 视觉区块";
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: rgba(245, 197, 24, 0.55);
}

.image-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.image-frame.is-square {
  aspect-ratio: 1 / 1;
}

/* ===== Responsive ===== */

@media (max-width: 1100px) {
  .site-header::after {
    display: none;
  }

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

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

@media (min-width: 760px) {
  .grid-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .grid-bento > .span-4 {
    grid-column: span 4;
  }

  .grid-bento > .span-5 {
    grid-column: span 5;
  }

  .grid-bento > .span-6 {
    grid-column: span 6;
  }

  .grid-bento > .span-7 {
    grid-column: span 7;
  }

  .grid-bento > .span-8 {
    grid-column: span 8;
  }

  .grid-bento > .span-12 {
    grid-column: span 12;
  }
}

@media (min-width: 1024px) {
  .grid-trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-bento > .span-3 {
    grid-column: span 3;
  }
}

@media (max-width: 960px) {
  .header-frame {
    padding: 0 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    display: block;
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    background: rgba(7, 20, 38, 0.98);
    border-bottom: 1px solid rgba(255, 107, 53, 0.35);
    box-shadow: 0 24px 48px rgba(7, 20, 38, 0.35);
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.25s ease, visibility 0.3s ease;
  }

  .site-nav[data-open] {
    max-height: calc(100vh - 72px);
    padding: 20px;
    overflow: auto;
    visibility: visible;
    opacity: 1;
  }

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

  .nav-link {
    padding: 12px 14px;
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .header-frame {
    min-height: 64px;
    padding: 0 16px;
    gap: 12px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

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

  .brand-tagline {
    display: none;
  }

  .nav-toggle-text {
    display: none;
  }

  .footer-frame {
    padding: 48px 20px 20px;
  }

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

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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