/* ============================================
   XBET 国际官网 · Site Kit 共享样式
   路径 /assets/site.css
   设计概念：极速竞技场 / 对角线动势 / 左右分屏
============================================ */

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

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

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #111111;
  background-color: #F2F2F2;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul,
ol {
  list-style: none;
}

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

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

:focus-visible {
  outline: 2px solid #1BE7FF;
  outline-offset: 3px;
}

::selection {
  background: #D4A843;
  color: #060F18;
}

/* ---------- CSS 变量 ---------- */
:root {
  --x-blue: #0A1B2A;
  --x-gold: #D4A843;
  --x-red: #E63946;
  --x-electric: #1BE7FF;
  --x-teal: #0D3B4F;
  --x-warm: #F2F2F2;
  --x-ink: #111111;
  --x-white: #FFFFFF;
  --x-blue-light: #132A40;
  --x-blue-deep: #060F18;

  --x-font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --x-font-mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;

  --x-container: 72rem;
  --x-header-h: 4.5rem;
  --x-radius: 2px;
  --x-radius-lg: 8px;
  --x-shadow: 0 8px 30px rgba(6, 15, 24, 0.25);
  --x-shadow-lg: 0 16px 48px rgba(6, 15, 24, 0.35);
  --x-shadow-card: 0 4px 20px rgba(6, 15, 24, 0.12);
  --x-transition: 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --x-space-1: 0.25rem;
  --x-space-2: 0.5rem;
  --x-space-3: 1rem;
  --x-space-4: 1.5rem;
  --x-space-5: 2rem;
  --x-space-6: 3rem;
  --x-space-7: 4rem;
  --x-space-8: 6rem;
}

/* ---------- 基础排版 ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  line-height: 1.25;
  color: #0A1B2A;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 1rem;
}

#main-content {
  scroll-margin-top: 5rem;
  min-height: 40vh;
}

/* ---------- 通用容器 ---------- */
.x-container {
  width: min(var(--x-container), calc(100% - 2rem));
  margin-inline: auto;
}

.x-section {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.x-section-head {
  margin-bottom: var(--x-space-5);
  position: relative;
}

.x-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #0A1B2A;
}

.x-title-accent {
  color: #D4A843;
}

.x-title-skew {
  display: inline-block;
  transform: skewX(-6deg);
  background: linear-gradient(130deg, #0A1B2A, #0D3B4F);
  color: #FFFFFF;
  padding: 0.125rem 0.75rem;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.x-subtitle {
  font-size: 1rem;
  color: rgba(17, 17, 17, 0.6);
  max-width: 36rem;
  margin-top: 0.5rem;
}

.x-body-copy {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(17, 17, 17, 0.78);
  max-width: 42rem;
}

.x-body-copy strong {
  color: #0A1B2A;
  font-weight: 700;
}

/* ---------- 跳过链接 ---------- */
.x-skip {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 300;
  padding: 0.75rem 1.25rem;
  background: #D4A843;
  color: #060F18;
  font-weight: 700;
  border-radius: 2px;
  transition: top 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.x-skip:focus-visible {
  top: 0.5rem;
}

/* ---------- 阅读进度条 ---------- */
.x-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #D4A843, #1BE7FF);
  z-index: 400;
  pointer-events: none;
}

/* ---------- 头部 ---------- */
.x-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: linear-gradient(180deg, rgba(6, 15, 24, 0.88), rgba(6, 15, 24, 0.42));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.x-header[data-scrolled] {
  background: rgba(10, 27, 42, 0.97);
  border-bottom-color: rgba(212, 168, 67, 0.4);
  box-shadow: 0 4px 24px rgba(6, 15, 24, 0.4);
}

.x-speedbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    135deg,
    transparent 0 8px,
    rgba(212, 168, 67, 0.7) 8px 16px
  );
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.x-header[data-scrolled] .x-speedbar {
  opacity: 1;
}

.x-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(var(--x-container), calc(100% - 2rem));
  margin-inline: auto;
  min-height: var(--x-header-h);
  padding-block: 0.5rem;
}

/* 品牌 */
.x-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.x-brand-mark {
  font-weight: 900;
  font-size: 1.625rem;
  letter-spacing: 0.02em;
  color: #D4A843;
  background: linear-gradient(135deg, #D4A843, #F0D68A 55%, #D4A843);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.x-brand-mark::after {
  content: "";
  position: absolute;
  right: -0.35rem;
  top: 0.15rem;
  bottom: 0.15rem;
  width: 2px;
  background: #E63946;
  transform: skewX(-15deg);
}

.x-brand-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.18em;
  padding-left: 0.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
}

/* 导航 */
.x-nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  counter-reset: x-navcount;
}

.x-nav-item {
  position: relative;
  counter-increment: x-navcount;
}

.x-nav-item::before {
  content: "0" counter(x-navcount);
  display: inline-block;
  font-family: var(--x-font-mono);
  font-size: 0.625rem;
  color: #1BE7FF;
  margin-right: 0.25rem;
  vertical-align: super;
  opacity: 0.7;
  transition: opacity 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.x-nav-item:hover::before {
  opacity: 1;
}

.x-nav-link {
  display: inline-flex;
  align-items: baseline;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  transition: color 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94), background 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.x-nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.1rem;
  height: 2px;
  background: #D4A843;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.x-nav-link:hover,
.x-nav-link:focus-visible {
  color: #FFFFFF;
}

.x-nav-link:hover::after,
.x-nav-link:focus-visible::after {
  transform: scaleX(1);
}

.x-nav-link[aria-current="page"] {
  color: #D4A843;
}

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

/* 移动端菜单按钮 */
.x-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.5rem;
  background: rgba(10, 27, 42, 0.7);
  border: 1px solid rgba(212, 168, 67, 0.5);
  border-radius: 2px;
  transition: border-color 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94), background 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.x-nav-toggle:hover {
  border-color: #D4A843;
  background: #0A1B2A;
}

.x-nav-toggle-line {
  display: block;
  width: 1.375rem;
  height: 2px;
  background: #D4A843;
  border-radius: 1px;
  transition: transform 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 150ms ease;
}

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

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

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

/* ---------- 页脚 ---------- */
.x-footer {
  position: relative;
  background: #0A1B2A;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 6rem;
  overflow: hidden;
}

.x-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent 0 40px,
    rgba(212, 168, 67, 0.03) 40px 80px
  );
  pointer-events: none;
}

.x-footer-accent {
  position: relative;
  height: 4px;
  background: repeating-linear-gradient(
    135deg,
    transparent 0 10px,
    #D4A843 10px 20px
  );
  opacity: 0.85;
}

.x-footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  width: min(var(--x-container), calc(100% - 2rem));
  margin-inline: auto;
  padding-block: 4rem 2rem;
}

.x-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.x-footer-brand .x-brand-mark {
  font-size: 1.875rem;
}

.x-footer-brand .x-brand-name {
  font-size: 0.9375rem;
}

.x-footer-desc {
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  max-width: 24rem;
  border-left: 2px solid #D4A843;
  padding-left: 1rem;
  margin-bottom: 0;
}

.x-footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.x-footer-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #D4A843;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.x-footer-title::before {
  content: "";
  width: 1rem;
  height: 3px;
  background: #D4A843;
  transform: skewX(-30deg);
  flex-shrink: 0;
}

.x-footer-links,
.x-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.x-footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  position: relative;
  padding-left: 1.125rem;
  transition: color 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94), padding-left 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.x-footer-links a::before {
  content: "/";
  position: absolute;
  left: 0;
  color: #1BE7FF;
  font-family: var(--x-font-mono);
  font-size: 0.8125rem;
}

.x-footer-links a:hover,
.x-footer-links a:focus-visible {
  color: #D4A843;
  padding-left: 1.375rem;
}

.x-footer-contact li {
  display: flex;
  gap: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.x-footer-label {
  font-family: var(--x-font-mono);
  font-size: 0.6875rem;
  color: #1BE7FF;
  background: rgba(27, 231, 255, 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 2px;
  flex-shrink: 0;
  height: fit-content;
  margin-top: 0.2rem;
  white-space: nowrap;
}

.x-footer-value {
  color: rgba(255, 255, 255, 0.85);
}

.x-footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.x-footer-copy {
  margin: 0;
}

.x-footer-icp {
  font-family: var(--x-font-mono);
  letter-spacing: 0.1em;
  margin: 0;
}

/* ---------- 按钮 ---------- */
.x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.8125rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  text-align: center;
  transition: transform 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94), background 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94), color 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.x-btn::after {
  content: "";
  position: absolute;
  right: -12px;
  top: -12px;
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.14);
  transform: rotate(45deg);
  transition: transform 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.x-btn:hover::after,
.x-btn:focus-visible::after {
  transform: rotate(45deg) scale(1.25);
}

.x-btn-gold {
  background: linear-gradient(135deg, #D4A843, #B8903A);
  color: #060F18;
  border: 1px solid transparent;
  box-shadow: 0 4px 18px rgba(212, 168, 67, 0.25);
}

.x-btn-gold:hover,
.x-btn-gold:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 168, 67, 0.4);
  background: linear-gradient(135deg, #E0B950, #D4A843);
  color: #060F18;
}

.x-btn-ghost {
  background: transparent;
  border: 1px solid rgba(212, 168, 67, 0.6);
  color: #D4A843;
}

.x-btn-ghost:hover,
.x-btn-ghost:focus-visible {
  background: rgba(212, 168, 67, 0.1);
  border-color: #D4A843;
  color: #D4A843;
  transform: translateY(-2px);
}

/* ---------- 标签 ---------- */
.x-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--x-font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  background: #E63946;
  color: #FFFFFF;
  transform: skewX(-8deg);
  border-radius: 2px;
  letter-spacing: 0.08em;
}

.x-tag > span {
  display: inline-block;
  transform: skewX(8deg);
}

.x-tag-outline {
  background: transparent;
  border: 1px solid #E63946;
  color: #E63946;
}

.x-tag-outline > span {
  display: inline-block;
  transform: skewX(8deg);
}

.x-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #D4A843;
}

.x-label::before {
  content: "/";
  font-family: var(--x-font-mono);
  font-size: 1rem;
  color: #E63946;
  font-weight: 900;
  line-height: 1;
}

/* ---------- 提示条 ---------- */
.x-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(27, 231, 255, 0.06);
  border-left: 3px solid #1BE7FF;
  border-radius: 2px;
  font-size: 0.875rem;
  color: #0A1B2A;
  margin-bottom: 1rem;
}

.x-note::before {
  content: "i";
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: #1BE7FF;
  color: #060F18;
  font-weight: 900;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

/* ---------- 卡片 ---------- */
.x-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 1.5rem;
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(6, 15, 24, 0.12);
  transition: transform 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.x-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 0;
  height: 0;
  border-top: 24px solid #D4A843;
  border-right: 24px solid transparent;
  opacity: 0.75;
  transition: opacity 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.x-card:hover,
.x-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(6, 15, 24, 0.25);
  border-color: rgba(212, 168, 67, 0.4);
}

.x-card-dark {
  background: linear-gradient(150deg, #0D3B4F, #0A1B2A);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

.x-card-dark:hover,
.x-card-dark:focus-within {
  border-color: rgba(212, 168, 67, 0.5);
}

.x-card-light {
  background: #F2F2F2;
  border-color: rgba(10, 27, 42, 0.15);
  color: #111111;
}

.x-card-light:hover,
.x-card-light:focus-within {
  border-color: rgba(212, 168, 67, 0.5);
}

.x-card-title {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.x-card-text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: inherit;
  opacity: 0.8;
  margin-bottom: 0;
}

/* ---------- 数字 ---------- */
.x-stat {
  font-family: var(--x-font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: #E63946;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

.x-stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
  display: block;
  margin-top: 0.375rem;
}

/* ---------- 栅格 ---------- */
.x-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

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

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

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

/* ---------- 左右分屏 ---------- */
.x-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.x-split-aside {
  background: linear-gradient(150deg, #060F18, #0A1B2A 70%, #0D3B4F);
  color: #FFFFFF;
  padding: 2.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.x-split-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent 0 24px,
    rgba(212, 168, 67, 0.04) 24px 48px
  );
  pointer-events: none;
}

.x-split-aside > * {
  position: relative;
  z-index: 1;
}

.x-split-main {
  background: #F2F2F2;
  padding: 2.5rem 1.5rem;
}

/* ---------- 步骤 ---------- */
.x-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.875rem;
  counter-reset: x-step;
}

.x-step {
  position: relative;
  padding: 1.25rem 1.5rem 1.25rem 3.5rem;
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: 8px;
  background: #FFFFFF;
  counter-increment: x-step;
  transition: border-color 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.x-step:hover {
  border-color: #D4A843;
  transform: translateX(4px);
}

.x-step::before {
  content: counter(x-step, decimal-leading-zero);
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  font-family: var(--x-font-mono);
  font-weight: 800;
  font-size: 1.125rem;
  color: #D4A843;
}

.x-step + .x-step::after {
  content: "";
  position: absolute;
  left: 1.625rem;
  top: -0.875rem;
  width: 2px;
  height: 0.875rem;
  background: linear-gradient(180deg, #D4A843, transparent);
}

.x-step-title {
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.x-step-desc {
  font-size: 0.875rem;
  color: rgba(17, 17, 17, 0.65);
  margin-bottom: 0;
}

/* ---------- 图片容器 ---------- */
.x-img-frame {
  position: relative;
  background: linear-gradient(150deg, #0D3B4F, #060F18);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 168, 67, 0.25);
}

.x-img-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 65%, rgba(10, 27, 42, 0.55)),
    repeating-linear-gradient(
      120deg,
      transparent 0 16px,
      rgba(27, 231, 255, 0.08) 16px 32px
    );
  pointer-events: none;
}

.x-img-frame::after {
  content: "XBET / IMG";
  position: absolute;
  bottom: 0.75rem;
  right: 1rem;
  font-family: var(--x-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(6, 15, 24, 0.5);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  border: 1px solid rgba(212, 168, 67, 0.3);
  pointer-events: none;
}

.x-img-frame[data-ratio="4/3"] {
  aspect-ratio: 4 / 3;
}

.x-img-frame[data-ratio="1/1"] {
  aspect-ratio: 1 / 1;
}

.x-img-frame[data-ratio="21/9"] {
  aspect-ratio: 21 / 9;
}

/* ---------- 装饰 ---------- */
.x-speedline {
  position: relative;
  overflow: hidden;
}

.x-speedline::before {
  content: "";
  position: absolute;
  top: -10%;
  right: 10%;
  width: 120%;
  height: 120%;
  background: repeating-linear-gradient(
    115deg,
    transparent 0 32px,
    rgba(27, 231, 255, 0.06) 32px 64px,
    transparent 64px 96px,
    rgba(212, 168, 67, 0.04) 96px 128px
  );
  transform: rotate(5deg);
  pointer-events: none;
}

.x-divider {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #D4A843;
  font-size: 0.8125rem;
  font-family: var(--x-font-mono);
  letter-spacing: 0.2em;
  margin: 1.5rem 0;
}

.x-divider::before,
.x-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.5), transparent);
}

/* ---------- 面包屑 ---------- */
.x-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  padding: 1.25rem 0 0;
}

.x-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.x-breadcrumb a:hover,
.x-breadcrumb a:focus-visible {
  color: #D4A843;
}

.x-breadcrumb span[aria-current="page"] {
  color: #1BE7FF;
}

.x-breadcrumb-sep {
  color: #D4A843;
  font-family: var(--x-font-mono);
}

/* ---------- 高对比大标题区 ---------- */
.x-hero-dark {
  background: linear-gradient(145deg, #060F18, #0A1B2A 60%, #0D3B4F);
  color: #FFFFFF;
  padding: calc(var(--x-header-h) + 3rem) 0 4rem;
  position: relative;
  overflow: hidden;
}

.x-hero-dark::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 45%;
  background: repeating-linear-gradient(
    135deg,
    transparent 0 28px,
    rgba(212, 168, 67, 0.05) 28px 56px
  );
  pointer-events: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 47.9375em) {
  :root {
    --x-header-h: 4rem;
  }

  .x-nav-toggle {
    display: flex;
  }

  .x-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0.5rem;
    right: 0.5rem;
    z-index: 150;
    background: #0A1B2A;
    border: 1px solid rgba(212, 168, 67, 0.35);
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    box-shadow: 0 16px 48px rgba(6, 15, 24, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s linear 180ms;
  }

  .x-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .x-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .x-nav-item::before {
    display: none;
  }

  .x-nav-link {
    display: block;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
  }

  .x-nav-link:last-child {
    border-bottom: none;
  }

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

  .x-nav-link[aria-current="page"] {
    background: rgba(212, 168, 67, 0.1);
    color: #D4A843;
  }

  .x-brand-mark {
    font-size: 1.375rem;
  }

  .x-brand-name {
    font-size: 0.6875rem;
  }

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

  .x-footer-grid {
    gap: 2rem;
    padding-block: 3rem 1.5rem;
  }

  .x-stat {
    font-size: 2rem;
  }

  .x-hero-dark {
    padding: calc(var(--x-header-h) + 2rem) 0 3rem;
  }
}

@media (min-width: 48em) and (max-width: 63.9375em) {
  .x-grid-cols-3,
  .x-grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

@media (min-width: 48em) {
  .x-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    width: min(var(--x-container), calc(100% - 2rem));
    margin-inline: auto;
    padding-inline: 0;
    padding-block: 1.5rem;
  }

  .x-footer-bottom p {
    margin: 0;
  }
}

@media (min-width: 64em) {
  .x-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 3rem;
  }

  .x-split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .x-split-aside {
    padding: 4rem 2.5rem;
  }

  .x-split-main {
    padding: 4rem 2.5rem;
  }
}

/* ---------- 无障碍与减少动效 ---------- */
@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;
  }
}
