/* ============================================
   球盟会门户 · 全站共享基座 /assets/site.css
   视觉协议：数据赛场 · 框架式导航 · 粗野主义
   ============================================ */

/* ---------- 1. CSS 变量 ---------- */
:root {
  --navy: #0B1B3A;
  --orange: #FF6B00;
  --silver: #B0B8C4;
  --white: #FFFFFF;
  --blue-gray: #E8ECF1;
  --moss: #5A7A5A;
  --terracotta: #C96F4A;
  --cream: #F4F1E8;
  --rock: #9BA4B5;

  --font-heading: "Arial Black", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: "Courier New", "Fira Code", "PingFang SC", "Microsoft YaHei", monospace;

  --radius: 2px;
  --shadow-hard: 4px 4px 0 rgba(11, 27, 58, 0.85);
  --container-max: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

/* ---------- 2. Reset 与基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.125rem);
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
  display: block;
}

#main-content {
  display: block;
  scroll-margin-top: 1rem;
}

#main-content:target {
  outline: none;
}

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

ul,
ol {
  list-style: none;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.15;
}

small {
  font-size: 0.85em;
}

::selection {
  background: var(--orange);
  color: var(--white);
}

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

/* ---------- 3. 容器与排版 ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.text-link {
  color: var(--orange);
  border-bottom: 1px solid rgba(255, 107, 0, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.text-link:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

/* ---------- 4. 顶部框架头部 ---------- */
.site-skip {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  transition: top 0.2s ease;
}

.site-skip:focus {
  top: 1rem;
}

.site-header {
  position: relative;
  z-index: 100;
  color: var(--white);
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    var(--navy);
  background-size: 24px 24px;
  border-bottom: 1px solid rgba(176, 184, 196, 0.2);
}

.frame-status {
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid rgba(176, 184, 196, 0.18);
}

.frame-status-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-block: 0.45rem;
  min-height: 2rem;
}

.frame-status-mark {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 0.22rem 0.5rem;
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--silver);
  border: 1px solid rgba(176, 184, 196, 0.3);
  padding: 0.22rem 0.6rem;
  letter-spacing: 0.03em;
  line-height: 1;
}

.status-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--moss);
  flex-shrink: 0;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.1rem;
  min-height: 5.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  background: var(--orange);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-8deg);
}

.brand-mark-ring {
  width: 22px;
  height: 22px;
  border: 3px solid var(--white);
  border-top-color: transparent;
  border-radius: 50%;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 1.5vw + 1rem, 2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.06em;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--silver);
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.nav-toggle:hover {
  border-color: var(--orange);
  background: rgba(255, 107, 0, 0.12);
}

.nav-toggle-box {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
  flex-shrink: 0;
}

.nav-toggle-line {
  height: 2px;
  background: var(--orange);
  display: block;
  width: 100%;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) 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(-6px) rotate(-45deg);
}

.nav-toggle-text {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.site-nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.6rem 0.8rem;
  color: var(--silver);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  border: 1px solid transparent;
  border-radius: var(--radius);
  position: relative;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.site-nav-link::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
}

.site-nav-link .nav-index {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--orange);
  opacity: 0.85;
}

.site-nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

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

.site-nav-link[aria-current="page"] {
  color: var(--white);
  background: var(--orange);
  border-color: var(--orange);
}

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

.site-nav-link[aria-current="page"] .nav-index {
  color: var(--white);
  opacity: 1;
}

.site-nav-link[aria-current="page"]:focus-visible {
  outline-color: var(--white);
}

.frame-rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 1;
}

.frame-rule-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--orange);
}

/* ---------- 5. 底部框架页脚 ---------- */
.site-footer {
  flex-shrink: 0;
  color: var(--silver);
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    var(--navy);
  background-size: 24px 24px;
  border-top: 4px solid var(--orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2.5rem;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  transition: opacity 0.15s ease;
}

.footer-brand-link:hover {
  opacity: 0.85;
}

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

.footer-brand-link .brand-mark-ring {
  width: 18px;
  height: 18px;
  border-width: 3px;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.05em;
}

.footer-brand-tag {
  color: var(--silver);
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
}

.footer-trust {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--rock);
  border-left: 3px solid var(--orange);
  padding-left: 1rem;
  max-width: 42ch;
}

.footer-nav-title,
.footer-contact-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(176, 184, 196, 0.22);
}

.footer-nav-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem 1rem;
}

.footer-nav-link {
  display: inline-block;
  color: var(--silver);
  font-size: 0.92rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-nav-link:hover {
  color: var(--white);
  border-bottom-color: var(--orange);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--rock);
  padding-top: 0.18rem;
  flex-shrink: 0;
  min-width: 3.6em;
}

.footer-contact-value {
  color: var(--white);
  min-width: 0;
}

.footer-contact-note {
  font-size: 0.78rem;
  color: var(--rock);
  line-height: 1.65;
  border: 1px dashed rgba(176, 184, 196, 0.35);
  padding: 0.6rem 0.75rem;
}

.footer-legal {
  border-top: 1px solid rgba(176, 184, 196, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.footer-legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  padding-block: 0.9rem;
  min-height: 3.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--silver);
}

.footer-legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-legal-link {
  font-size: 0.85rem;
  color: var(--silver);
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-bottom-color 0.15s ease;
}

.footer-legal-link:hover {
  color: var(--white);
  border-bottom-color: var(--orange);
}

.footer-icp {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--rock);
}

/* ---------- 6. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  border-radius: var(--radius);
  border: 2px solid;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(2px);
}

.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--navy);
}

.btn-primary:hover {
  background: #e56000;
  box-shadow: 2px 2px 0 var(--navy);
  transform: translate(2px, 2px);
}

.btn-primary:focus-visible {
  outline-color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--rock);
  padding-block: 1rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "\2192";
  color: var(--silver);
  margin-right: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.breadcrumb-link {
  color: var(--navy);
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-bottom-color 0.15s ease;
}

.breadcrumb-link:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.breadcrumb-current {
  color: var(--navy);
  font-weight: 700;
}

/* ---------- 8. 正文分区与网格 ---------- */
.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--rock);
  margin-top: 0.6rem;
  max-width: 52ch;
  line-height: 1.65;
}

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

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

/* ---------- 9. 图片容器基础规则 ---------- */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--blue-gray);
  border: 2px solid var(--navy);
  box-shadow: var(--shadow-hard);
  line-height: 0;
}

.img-frame--16-9 {
  aspect-ratio: 16 / 9;
}

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

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

.img-frame--1-1 {
  aspect-ratio: 1 / 1;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-align: center;
  color: var(--rock);
  background:
    linear-gradient(45deg, rgba(11, 27, 58, 0.06) 25%, transparent 25% 75%, rgba(11, 27, 58, 0.06) 75%),
    var(--blue-gray);
  background-size: 16px 16px;
}

/* ---------- 10. 数据与状态组件 ---------- */
.data-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rock);
  line-height: 1.4;
}

.data-value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.data-value--orange {
  color: var(--orange);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--blue-gray);
  border: 1px solid var(--silver);
  padding: 0.25rem 0.6rem;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  line-height: 1.2;
}

.tag--moss {
  color: var(--moss);
  border-color: var(--moss);
  background: rgba(90, 122, 90, 0.08);
}

.tag--terracotta {
  color: var(--terracotta);
  border-color: var(--terracotta);
  background: rgba(201, 111, 74, 0.08);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moss);
  display: inline-block;
  flex-shrink: 0;
}

.notice-bar {
  background: var(--cream);
  border-left: 4px solid var(--terracotta);
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  color: var(--navy);
  line-height: 1.65;
}

/* ---------- 11. 海报式首屏基底 ---------- */
.page-hero {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  background:
    linear-gradient(120deg, transparent 62%, rgba(255, 107, 0, 0.14) 62.5%, transparent 64%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    var(--navy);
  background-size: auto, 24px 24px, 24px 24px, auto;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  max-width: 16ch;
}

.page-hero-desc {
  color: var(--silver);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 46ch;
  margin-top: 1rem;
  line-height: 1.65;
}

/* ---------- 12. 响应式 ---------- */
@media (min-width: 961px) and (max-width: 1120px) {
  .brand-tag {
    display: none;
  }

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

  .brand-mark-ring {
    width: 18px;
    height: 18px;
  }

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

  .site-nav-link {
    padding: 0.5rem 0.55rem;
    font-size: 0.88rem;
  }

  .site-nav-link::after {
    left: 0.55rem;
    right: 0.55rem;
  }

  .site-nav-link .nav-index {
    font-size: 0.62rem;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 105;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
  }

  .site-nav[data-open="true"] {
    max-height: 460px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .site-nav-list {
    flex-direction: column;
    padding: 0.75rem var(--gutter) 1.25rem;
    gap: 0.15rem;
  }

  .site-nav-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 0.5rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
  }

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

  .site-nav-link[aria-current="page"] {
    background: var(--orange);
  }

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

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

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

@media (max-width: 720px) {
  .footer-legal-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .footer-icp {
    margin-left: 0;
  }

  .footer-nav-list {
    gap: 0.2rem 0.8rem;
  }
}

@media (max-width: 420px) {
  .nav-toggle-text {
    display: none;
  }

  .header-main {
    gap: 1rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-mark-ring {
    width: 16px;
    height: 16px;
    border-width: 3px;
  }

  .frame-status-inner {
    gap: 0.5rem;
  }

  .status-chip {
    font-size: 0.68rem;
    padding: 0.2rem 0.4rem;
  }
}

@media (min-width: 961px) and (max-width: 1200px) {
  .grid-3col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- 13. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .frame-status-mark {
    animation: none;
  }
}
