/* =========================================================
   /assets/site.css — 全站共享样式
   站点：曼冠地址 · 竞技编辑部视觉体系
   ========================================================= */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dd,
figure,
blockquote,
table,
pre {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

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

/* ---------- 2. Design Tokens ---------- */
:root {
  --color-deep: #142A50;
  --color-gold: #C9A86A;
  --color-bright-gold: #E6C882;
  --color-cream: #F7F3EA;
  --color-light-cream: #EFE7DA;
  --color-clay: #C0392B;
  --color-moss: #677A52;
  --color-granite: #8B7D6B;
  --color-ink: #2A2A2A;
  --color-moss-ink: #4A5A3A;

  --font-head: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Consolas", "Liberation Mono", monospace;

  --header-w: 280px;
  --content-max: 1180px;
  --radius-organic: 16px 4px 16px 4px;
  --shadow-panel: 0 16px 40px rgba(20, 42, 80, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. Base Typography & Layout ---------- */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-ink);
  background:
    radial-gradient(circle at 88% 12%, rgba(201, 168, 106, 0.1), transparent 280px),
    var(--color-cream);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.3;
  color: var(--color-deep);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
}

h4 {
  font-size: 1.05rem;
}

p {
  margin-bottom: 1em;
}

strong {
  font-weight: 700;
}

::selection {
  background: var(--color-deep);
  color: var(--color-cream);
}

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

#main-content {
  margin-left: var(--header-w);
  min-height: calc(100vh - 200px);
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

.section {
  padding: clamp(40px, 6vw, 76px) 0;
}

.section--tight {
  padding: clamp(24px, 3vw, 40px) 0;
}

.section-head {
  margin-bottom: clamp(20px, 3vw, 36px);
}

.section-lead {
  font-size: 1.05rem;
  color: var(--color-granite);
  max-width: 640px;
  line-height: 1.9;
}

.text-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--color-gold);
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* ---------- 4. Skip Link ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 24px;
  z-index: 2000;
  background: var(--color-gold);
  color: var(--color-deep);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 6px 20px rgba(20, 42, 80, 0.25);
  transition: top 0.25s var(--ease);
}

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

/* ---------- 5. Site Header / Sidebar Track ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--header-w);
  height: 100vh;
  background: var(--color-deep);
  color: var(--color-cream);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 3px 0 30px rgba(20, 42, 80, 0.3);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-gold) 0%, var(--color-bright-gold) 45%, var(--color-clay) 100%);
  z-index: 10;
}

.site-header::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: 90px;
  width: 160px;
  height: 160px;
  border-radius: 38% 62% 50% 50% / 45% 45% 55% 55%;
  background: rgba(201, 168, 106, 0.05);
  transform: rotate(18deg);
  pointer-events: none;
  z-index: 0;
}

.header-frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 30px 22px 22px;
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(201, 168, 106, 0.22);
}

.brand-mark {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 14px 4px 14px 4px;
  background: linear-gradient(135deg, var(--color-deep) 0%, var(--color-deep) 38%, var(--color-gold) 38%, var(--color-gold) 52%, var(--color-deep) 52%);
  border: 1px solid rgba(230, 200, 130, 0.7);
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1.5px solid rgba(247, 243, 234, 0.85);
  border-radius: 8px 2px 8px 2px;
  pointer-events: none;
}

.brand-words {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.brand-word-title {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--color-cream);
  letter-spacing: 0.03em;
}

.brand-word-sub {
  margin-top: 3px;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-bright-gold);
  letter-spacing: 0.4em;
}

.nav-guide {
  margin-top: 26px;
  padding: 14px 14px 12px;
  background: rgba(247, 243, 234, 0.07);
  border-left: 3px solid var(--color-gold);
  border-radius: 0 12px 12px 0;
}

.nav-guide-label {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.3em;
  color: var(--color-bright-gold);
  opacity: 0.8;
}

.nav-guide-current {
  display: block;
  margin-top: 4px;
  font-family: var(--font-head);
  font-size: 1.28rem;
  font-weight: 900;
  color: var(--color-bright-gold);
  line-height: 1.3;
}

.nav-guide-note {
  margin: 8px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(247, 243, 234, 0.6);
}

.site-nav {
  margin-top: 22px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  margin: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 0.94rem;
  font-weight: 500;
  color: rgba(247, 243, 234, 0.72);
  border-left: 3px solid transparent;
  border-radius: 0 10px 10px 0;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-link::before {
  content: "";
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-gold);
  opacity: 0.4;
  transition: opacity 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.nav-link:hover {
  background: rgba(201, 168, 106, 0.1);
  color: var(--color-cream);
  transform: translateX(3px);
}

.nav-link:hover::before {
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(201, 168, 106, 0.18);
}

.nav-link[aria-current="page"] {
  background: rgba(201, 168, 106, 0.15);
  border-left-color: var(--color-gold);
  color: var(--color-bright-gold);
  font-weight: 700;
}

.nav-link[aria-current="page"]::before {
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(201, 168, 106, 0.2);
}

.header-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 243, 234, 0.1);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: rgba(247, 243, 234, 0.55);
  line-height: 1.7;
}

.header-progress {
  position: absolute;
  left: 4px;
  bottom: 0;
  width: calc(100% - 8px);
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-bright-gold) 60%, var(--color-clay) 100%);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 30;
  pointer-events: none;
  border-radius: 0 3px 3px 0;
}

.nav-toggle {
  display: none;
}

/* ---------- 6. Site Footer ---------- */
.site-footer {
  margin-left: var(--header-w);
  background: var(--color-deep);
  color: rgba(247, 243, 234, 0.8);
  font-size: 0.9rem;
}

.footer-frame {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 48px) 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

.footer-col,
.footer-col-brand,
.footer-col-nav,
.footer-col-contact {
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 9px 3px 9px 3px;
  background: linear-gradient(135deg, var(--color-deep) 0%, var(--color-deep) 35%, var(--color-gold) 35%, var(--color-gold) 55%, var(--color-deep) 55%);
  border: 1px solid rgba(230, 200, 130, 0.6);
}

.footer-brand-name {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--color-cream);
}

.footer-brand-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--color-bright-gold);
  letter-spacing: 0.32em;
  margin-top: 1px;
}

.footer-trust {
  margin-top: 16px;
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(247, 243, 234, 0.6);
  max-width: 44ch;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 168, 106, 0.2);
}

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

.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.88rem;
  color: rgba(247, 243, 234, 0.72);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-nav a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-gold);
  opacity: 0.45;
  transition: opacity 0.2s var(--ease);
}

.footer-nav a:hover {
  color: var(--color-bright-gold);
  transform: translateX(3px);
}

.footer-nav a:hover::before {
  opacity: 1;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(247, 243, 234, 0.62);
}

.footer-contact-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.6;
}

.footer-contact-list li::before {
  content: "";
  flex: 0 0 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-clay);
  align-self: center;
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 20px;
  border-top: 1px solid rgba(247, 243, 234, 0.1);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: rgba(247, 243, 234, 0.55);
}

.footer-dot {
  opacity: 0.4;
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  border: 2px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--color-deep);
  border-color: var(--color-deep);
  color: var(--color-cream);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20, 42, 80, 0.28);
}

.btn-gold {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-deep);
}

.btn-gold:hover {
  background: var(--color-bright-gold);
  border-color: var(--color-bright-gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201, 168, 106, 0.3);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(20, 42, 80, 0.35);
  color: var(--color-deep);
}

.btn-ghost:hover {
  background: rgba(20, 42, 80, 0.06);
  border-color: var(--color-deep);
}

/* ---------- 8. Badges & Data ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.7;
  white-space: nowrap;
}

.badge--gold {
  background: rgba(201, 168, 106, 0.16);
  color: #6b5732;
}

.badge--moss {
  background: rgba(103, 122, 82, 0.16);
  color: var(--color-moss-ink);
}

.badge--clay {
  background: rgba(192, 57, 43, 0.12);
  color: var(--color-clay);
}

.data-line {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--color-deep);
}

/* ---------- 9. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-granite);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--color-granite);
  transition: color 0.2s var(--ease);
}

.breadcrumb a:hover {
  color: var(--color-deep);
}

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

.breadcrumb li + li::before {
  content: "/";
  color: rgba(139, 125, 107, 0.45);
}

.breadcrumb [aria-current="page"] {
  color: var(--color-deep);
  font-weight: 600;
}

/* ---------- 10. Grid & Cards ---------- */
.grid {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
}

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

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

.card {
  background: var(--color-cream);
  border: 1px solid rgba(139, 125, 107, 0.18);
  border-radius: var(--radius-organic);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow-panel);
}

.side-note {
  background: var(--color-light-cream);
  border-left: 3px solid var(--color-gold);
  padding: 18px 20px;
  border-radius: 0 12px 12px 0;
  font-size: 0.9rem;
  color: var(--color-granite);
}

.side-note strong {
  color: var(--color-deep);
}

.index-list {
  display: flex;
  flex-direction: column;
}

.index-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(139, 125, 107, 0.16);
  color: var(--color-deep);
  font-weight: 500;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.index-list a:hover {
  color: var(--color-gold);
  padding-left: 6px;
}

.index-arrow {
  font-family: var(--font-mono);
  color: var(--color-gold);
  font-size: 0.8rem;
}

/* ---------- 11. Media Frames ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(20, 42, 80, 0.05) 0%, transparent 40%),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(20, 42, 80, 0.025) 10px 11px),
    var(--color-light-cream);
  border-radius: var(--radius-organic);
  aspect-ratio: 16 / 10;
  min-height: 120px;
}

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

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

.media-frame--card {
  aspect-ratio: 3 / 2;
}

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

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

.media-frame--pattern {
  background:
    linear-gradient(135deg, var(--color-deep) 0%, var(--color-deep) 42%, transparent 42%),
    linear-gradient(315deg, transparent 0%, transparent 65%, rgba(201, 168, 106, 0.75) 65%),
    var(--color-light-cream);
}

.media-skeleton {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-light-cream);
  border: 1px dashed rgba(139, 125, 107, 0.4);
  border-radius: var(--radius-organic);
  min-height: 160px;
  padding: 24px;
  color: var(--color-granite);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- 12. Reveal Motion ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.js [data-reveal="in"] {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 13. Responsive ---------- */
@media (max-width: 979px) {
  .site-header {
    width: 100%;
    height: 66px;
    flex-direction: row;
    align-items: center;
    padding: 0;
    box-shadow: 0 2px 16px rgba(20, 42, 80, 0.24);
  }

  .site-header::before {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-bright-gold), var(--color-clay));
  }

  .site-header::after {
    display: none;
  }

  .header-frame {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 18px;
  }

  .brand {
    padding: 0;
    border-bottom: none;
  }

  .brand-mark {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .brand-word-title {
    font-size: 0.95rem;
  }

  .brand-word-sub {
    font-size: 0.65rem;
    letter-spacing: 0.28em;
  }

  .nav-guide,
  .header-foot {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: 66px;
    left: 0;
    width: 100%;
    height: calc(100vh - 66px);
    margin: 0;
    padding: 24px;
    background: var(--color-deep);
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease);
    overflow-y: auto;
    z-index: 950;
    box-shadow: 4px 0 24px rgba(20, 42, 80, 0.25);
  }

  .site-nav[data-open] {
    transform: translateX(0);
  }

  .nav-list {
    gap: 6px;
  }

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

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(201, 168, 106, 0.35);
    border-radius: 999px;
    color: var(--color-bright-gold);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    transition: border-color 0.2s, background-color 0.2s;
  }

  .nav-toggle:hover {
    border-color: var(--color-gold);
    background: rgba(201, 168, 106, 0.1);
  }

  .nav-toggle-bars {
    position: relative;
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
  }

  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: top 0.2s, transform 0.2s;
  }

  .nav-toggle-bars::before {
    top: -5px;
  }

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

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

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

  .nav-toggle-label {
    font-size: 0.82rem;
    font-weight: 600;
  }

  .header-progress {
    left: 0;
    width: 100%;
    border-radius: 0;
  }

  body.nav-lock {
    overflow: hidden;
  }

  #main-content {
    margin-left: 0;
    padding-top: 66px;
  }

  .site-footer {
    margin-left: 0;
    padding-bottom: 32px;
  }

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

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

@media (max-width: 639px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }
}

/* ---------- 14. Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
