/* =============================================
   海鸥竞界 · 共享样式 /assets/site.css
   ============================================= */

/* ---------- 设计变量 ---------- */
:root {
  --bg-body: #0A1F3C;
  --bg-panel: #102A43;
  --bg-raised: #143352;
  --accent: #FF6B35;
  --accent-2: #38FF8D;
  --accent-3: #00D4FF;
  --text-main: #E6E8EA;
  --text-dim: #B0BCC7;
  --line: #2A4560;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sidebar-w: 280px;
  --bar-h: 64px;
  --max-w: calc(1440px - var(--sidebar-w));
  --radius: 4px 14px 4px 14px;
  --ease: 0.2s ease;
  --shadow: 0 8px 30px rgba(3, 12, 27, 0.45);
}

/* ---------- Reset 与基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-left: var(--sidebar-w);
  background: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
}

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

h1 {
  font-size: clamp(32px, 5vw, 60px);
}

h2 {
  font-size: clamp(24px, 3.4vw, 44px);
}

h3 {
  font-size: clamp(19px, 2vw, 24px);
}

h4 {
  font-size: 18px;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent-3);
  text-underline-offset: 3px;
  transition: color var(--ease);
}

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

button {
  font-family: inherit;
}

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

::selection {
  background: var(--accent);
  color: var(--bg-body);
}

/* ---------- 顶部滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 500;
  pointer-events: none;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-3) 55%, var(--accent-2) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--bg-body);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-220%);
  transition: transform 0.25s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- 移动端顶栏 ---------- */
.mobile-bar {
  display: none;
}

.mobile-bar__brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  text-decoration: none;
}

.mobile-bar__name {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--text-main);
}

.mobile-bar__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 9px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
}

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

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s 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);
}

/* ---------- 抽屉遮罩 ---------- */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(4, 12, 27, 0.74);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* ---------- 侧边轨道导航 / 抽屉 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: var(--sidebar-w);
  height: 100vh;
  height: 100dvh;
  background:
    repeating-linear-gradient(135deg, rgba(0, 212, 255, 0.03) 0 1px, transparent 1px 14px),
    var(--bg-panel);
  border-right: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ---------- 品牌块 ---------- */
.brand-block {
  display: block;
  padding: 28px 24px 24px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.brand-block__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  background: var(--accent);
  color: var(--bg-body);
  font-size: 21px;
  font-weight: 900;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.brand-block__en {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-3);
}

.brand-block__name {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: var(--text-main);
}

.brand-block__tagline {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  border: 1px solid rgba(255, 107, 53, 0.55);
  background: rgba(255, 107, 53, 0.08);
  border-radius: 2px 8px 2px 8px;
}

/* ---------- 轨道导航 ---------- */
.site-nav {
  position: relative;
  flex: 1 1 auto;
  padding: 18px 0;
  overflow-y: auto;
}

.site-nav::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 24px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--line) 18%, var(--line) 82%, var(--accent-3) 100%);
  opacity: 0.6;
}

.site-nav__list {
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px 13px 48px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--ease), background var(--ease);
}

.site-nav__link::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.site-nav__index {
  min-width: 20px;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--line);
  transition: color var(--ease);
}

.site-nav__label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.site-nav__link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.site-nav__link:hover::before {
  border-color: var(--accent-3);
  background: var(--accent-3);
}

.site-nav__link[aria-current="page"] {
  color: var(--text-main);
  background: linear-gradient(90deg, rgba(255, 107, 53, 0.16), transparent 72%);
}

.site-nav__link[aria-current="page"] .site-nav__index {
  color: var(--accent);
}

.site-nav__link[aria-current="page"]::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.55);
}

/* ---------- 侧栏底部状态区 ---------- */
.site-header__foot {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line);
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
}

.live-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 255, 141, 0.45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(56, 255, 141, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56, 255, 141, 0);
  }
}

.site-header__support {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
}

.site-header__support:hover {
  color: var(--accent);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  flex-shrink: 0;
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
}

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

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 48px);
}

.site-footer__en {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-3);
}

.site-footer__name {
  margin: 0;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.site-footer__tagline {
  display: inline-block;
  margin: 10px 0 0;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  border: 1px solid rgba(255, 107, 53, 0.5);
  border-radius: 2px 8px 2px 8px;
}

.site-footer__trust {
  margin: 18px 0 0;
  max-width: 30em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
}

.site-footer__heading {
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-main);
  border-bottom: 1px solid var(--line);
}

.site-footer__heading::before {
  content: "/";
  margin-right: 6px;
  color: var(--accent);
  font-weight: 900;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links li {
  margin-bottom: 4px;
}

.site-footer__links a {
  display: inline-block;
  padding: 4px 0;
  color: var(--text-dim);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--ease), transform var(--ease);
}

.site-footer__links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.site-footer__contact {
  font-size: 14px;
}

.site-footer__contact-line,
.site-footer__contact-note {
  margin: 0 0 6px;
  color: var(--text-dim);
  line-height: 1.6;
}

.site-footer__contact-note {
  font-size: 13px;
  color: rgba(176, 188, 199, 0.65);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-dim);
}

.site-footer__copyright,
.site-footer__icp {
  margin: 0;
}

/* ---------- 内容容器 ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

.section {
  padding: clamp(44px, 6vw, 88px) 0;
}

/* ---------- 网格 ---------- */
.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));
}

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

.grid--aside {
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.7fr);
  align-items: start;
  gap: 32px 40px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--accent);
  color: var(--bg-body);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: transform var(--ease), background var(--ease), box-shadow var(--ease);
}

.btn:hover {
  background: #ff8250;
  color: var(--bg-body);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.35);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

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

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

.btn--small {
  padding: 9px 18px;
  font-size: 13px;
}

/* ---------- 面板 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 26px;
  height: 3px;
  background: var(--accent-3);
  border-radius: 0 0 4px 0;
}

/* ---------- 章节眉标与标题 ---------- */
.section-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-3);
}

.section-index::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  margin: 0 0 18px;
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 900;
  line-height: 1.12;
  color: var(--text-main);
}

/* ---------- 数据数字 ---------- */
.data-stat {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  line-height: 1;
  color: var(--accent-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.data-stat--lg {
  font-size: clamp(36px, 5vw, 52px);
}

.data-stat--sm {
  font-size: 22px;
}

/* ---------- 标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 2px 8px 2px 8px;
  color: var(--accent-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  margin: 0 0 24px;
  font-size: 13px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--line);
}

.breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
}

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

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

/* ---------- 页面首屏 ---------- */
.page-hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--line);
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-3) 35%, transparent 70%);
}

/* ---------- 图片容器 ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.media--16-9 {
  aspect-ratio: 16 / 9;
}

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

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

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

.media__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 140px;
  background:
    repeating-linear-gradient(135deg, rgba(0, 212, 255, 0.07) 0 1px, transparent 1px 12px),
    var(--bg-panel);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- 桌面端布局 ---------- */
@media (min-width: 1200px) {
  .nav-scrim {
    display: none !important;
  }
}

/* ---------- 平板 / 移动端：抽屉导航 ---------- */
@media (max-width: 1199px) {
  body {
    padding-left: 0;
    padding-top: var(--bar-h);
  }

  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .mobile-bar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--bar-h);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px 0 18px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--line);
    z-index: 300;
  }

  .site-header {
    top: var(--bar-h);
    height: calc(100vh - var(--bar-h));
    height: calc(100dvh - var(--bar-h));
    width: min(320px, 88vw);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0s linear 0.35s;
  }

  .site-header[data-open] {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.35s ease, visibility 0s;
    box-shadow: var(--shadow);
  }
}

/* ---------- 页脚响应式 ---------- */
@media (max-width: 991px) {
  .site-footer__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px 28px;
  }
}

@media (max-width: 599px) {
  .site-footer__main {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

/* ---------- 网格响应式 ---------- */
@media (max-width: 991px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

/* ---------- 小屏抽屉内品牌压缩 ---------- */
@media (max-width: 599px) {
  .brand-block {
    padding: 16px 20px;
  }

  .brand-block__mark {
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
    font-size: 17px;
  }

  .brand-block__name {
    font-size: 22px;
  }

  .site-nav__link {
    padding: 11px 16px 11px 44px;
  }

  .site-header__foot {
    padding: 14px 20px 18px;
  }
}

/* ---------- 减少动态效果 ---------- */
@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;
  }
}
