/* ============================================================
   龙腾娱乐 · 全站共享样式 /assets/site.css
   结构：令牌 → 基础排版 → 页面网格 → 头部 → 页脚 →
   正文组件 → 动效与无障碍
   ============================================================ */

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

:root {
  --c-deep: #0A1A3F;
  --c-star: #10254B;
  --c-gold: #C9A34E;
  --c-gold-light: #E8DBAF;
  --c-gold-ink: #8A6B28;
  --c-red: #B22222;
  --c-cloud: #F8F7F4;
  --c-ink: #1E1E1E;
  --c-gray: #5A6B8A;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --radius-bevel: 2px 16px 16px 2px;
  --shadow-card: 0 10px 30px rgba(10, 26, 63, .06);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --scroll-progress: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-cloud);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 .45em;
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-deep);
}

h1 { font-size: clamp(28px, 4vw, 36px); }
h2 { font-size: 24px; }
h3 { font-size: 18px; }

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

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

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

hr {
  border: 0;
  margin: 0;
}

::selection {
  background: rgba(201, 163, 78, .35);
  color: var(--c-deep);
}

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

/* ---------- 2. 内容容器与基础工具 ---------- */
.container {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 48px);
}

.site-main,
main#main-content {
  display: block;
  padding: 0 0 88px;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 28px;
}

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

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

/* ---------- 3. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1;
  padding: 12px 22px;
  border-radius: var(--radius-bevel);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}

.btn--gold {
  background: linear-gradient(135deg, #DCC187 0%, var(--c-gold) 65%, #B9903F 100%);
  color: var(--c-deep);
  border-color: rgba(255, 255, 255, .4);
  box-shadow: 0 2px 14px rgba(201, 163, 78, .28);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(201, 163, 78, .4);
}

.btn--ghost {
  background: transparent;
  color: var(--c-cloud);
  border-color: rgba(248, 247, 244, .55);
}

.btn--ghost:hover {
  border-color: var(--c-gold);
  color: var(--c-gold-light);
}

/* ---------- 4. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  font-size: 13px;
  color: var(--c-gray);
}

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

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(10, 26, 63, .25);
}

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

.breadcrumb a:hover {
  color: var(--c-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.breadcrumb__current {
  color: var(--c-deep);
  font-weight: 500;
}

/* ---------- 5. 正文基础组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .26em;
  color: var(--c-gold-ink);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--c-gold);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(24px, 3vw, 32px);
}

.section-title--lg {
  font-size: clamp(28px, 4vw, 36px);
}

.section-title--sm {
  font-size: 20px;
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--c-gold-ink);
  background: rgba(232, 219, 175, .2);
  border: 1px solid rgba(201, 163, 78, .5);
  border-radius: 999px;
}

.panel {
  position: relative;
  padding: 28px;
  background: var(--c-cloud);
  border: 1px solid rgba(10, 26, 63, .1);
  border-radius: var(--radius-bevel);
  box-shadow: var(--shadow-card);
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-gold), rgba(201, 163, 78, .15));
  border-radius: 0 0 3px 0;
}

.panel--dark {
  background: linear-gradient(165deg, var(--c-star), var(--c-deep));
  color: rgba(248, 247, 244, .8);
  border-color: rgba(201, 163, 78, .28);
}

.panel--dark .section-title {
  color: var(--c-cloud);
}

.notice-bar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(201, 163, 78, .16), rgba(201, 163, 78, .03));
  border-left: 3px solid var(--c-gold);
  border-radius: 2px 12px 12px 2px;
  font-size: 14px;
  color: var(--c-ink);
}

.notice-bar p {
  margin: 0;
}

.divider-gold {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(201, 163, 78, .7) 30%, rgba(232, 219, 175, .35) 70%, transparent);
}

/* ---------- 6. 图片占位框 ---------- */
.image-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-bevel);
  border: 1px solid rgba(201, 163, 78, .32);
  background:
    repeating-linear-gradient(115deg, rgba(201, 163, 78, .07) 0, rgba(201, 163, 78, .07) 1px, transparent 1px, transparent 16px),
    linear-gradient(165deg, var(--c-star), var(--c-deep));
  box-shadow: var(--shadow-card);
}

.image-frame::before {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 78px;
  height: 78px;
  background: linear-gradient(135deg, transparent 38%, rgba(201, 163, 78, .38) 38% 42%, transparent 42%);
  opacity: .55;
}

.image-frame::after {
  content: attr(data-caption);
  position: absolute;
  left: 16px;
  bottom: 12px;
  font-size: 12px;
  letter-spacing: .14em;
  color: rgba(248, 247, 244, .68);
}

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

.image-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 7. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

[data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* ---------- 8. 无障碍跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 400;
  padding: 10px 18px;
  background: var(--c-gold);
  color: var(--c-deep);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transform: translateY(-220%);
  transition: transform .3s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* ---------- 9. 滚动进度条 ---------- */
.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 300;
  pointer-events: none;
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-light), var(--c-gold));
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
}

/* ---------- 10. 头部侧栏 ---------- */
.site-header {
  position: relative;
  z-index: 100;
  background: linear-gradient(168deg, var(--c-star) 0%, var(--c-deep) 55%, #07112C 100%);
  border-bottom: 1px solid rgba(201, 163, 78, .28);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 91%, rgba(201, 163, 78, .16) 91.6%, transparent 92.2%),
    linear-gradient(115deg, transparent 95%, rgba(201, 163, 78, .07) 95.6%, transparent 96.2%);
  pointer-events: none;
}

.site-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 20px 20px 24px;
}

.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- 10.1 品牌标识 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--c-cloud);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  color: var(--c-gold);
  background: linear-gradient(145deg, rgba(201, 163, 78, .26), rgba(10, 26, 63, .9));
  border: 1px solid rgba(201, 163, 78, .6);
  border-radius: 6px 16px 16px 6px;
  box-shadow: 0 0 22px rgba(201, 163, 78, .14);
}

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

.brand__cn {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
}

.brand__en {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .36em;
  color: var(--c-gold);
  text-transform: uppercase;
  padding-left: .1em;
}

.brand--footer .brand__mark {
  width: 38px;
  height: 38px;
  font-size: 20px;
}

.brand--footer .brand__cn {
  font-size: 17px;
}

/* ---------- 10.2 移动导航按钮 ---------- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font: inherit;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--c-cloud);
  background: rgba(10, 26, 63, .4);
  border: 1px solid rgba(201, 163, 78, .45);
  border-radius: 4px 10px 10px 4px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.nav-toggle:hover {
  border-color: var(--c-gold);
  background: rgba(10, 26, 63, .6);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-gold);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}

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

.nav-toggle__text {
  white-space: nowrap;
}

/* ---------- 10.3 命令式导航 ---------- */
.cmd-nav {
  position: relative;
}

.cmd-nav::after {
  content: "龍";
  position: absolute;
  right: -12px;
  top: 46px;
  font-family: var(--font-serif);
  font-size: 168px;
  line-height: 1;
  color: rgba(201, 163, 78, .055);
  pointer-events: none;
}

.cmd-nav__list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cmd-nav__item {
  margin: 0;
}

.cmd-nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  font-size: 15px;
  letter-spacing: .1em;
  color: rgba(248, 247, 244, .74);
  text-decoration: none;
  border: 1px solid transparent;
  border-left-width: 2px;
  border-radius: 2px 10px 10px 2px;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.cmd-nav__link:hover {
  color: var(--c-cloud);
  background: rgba(201, 163, 78, .08);
  border-color: rgba(201, 163, 78, .3);
  border-left-color: rgba(201, 163, 78, .75);
}

.cmd-nav__link[aria-current="page"] {
  color: var(--c-cloud);
  background: linear-gradient(90deg, rgba(201, 163, 78, .2), rgba(201, 163, 78, .02));
  border-color: rgba(201, 163, 78, .36);
  border-left-color: var(--c-gold);
  box-shadow: inset 0 0 26px rgba(201, 163, 78, .05);
}

.cmd-nav__index {
  min-width: 26px;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-gold);
}

.cmd-nav__link[aria-current="page"] .cmd-nav__index {
  color: var(--c-gold-light);
}

.cmd-nav__name {
  display: block;
}

/* ---------- 10.4 状态面板 ---------- */
.status-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(10, 26, 63, .45);
  border: 1px solid rgba(201, 163, 78, .32);
  border-radius: 4px 12px 12px 4px;
}

.status-chip__dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 0 0 rgba(201, 163, 78, .5);
  animation: status-pulse 2.4s var(--ease) infinite;
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 163, 78, .5);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(201, 163, 78, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 163, 78, 0);
  }
}

.status-chip[data-status="busy"] .status-chip__dot {
  background: var(--c-red);
  box-shadow: 0 0 0 0 rgba(178, 34, 34, .55);
  animation-name: status-pulse-red;
}

@keyframes status-pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(178, 34, 34, .55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(178, 34, 34, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(178, 34, 34, 0);
  }
}

.status-chip__label {
  margin: 0;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--c-gold-light);
}

.rail-note {
  margin: 0;
  padding-left: 14px;
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(248, 247, 244, .44);
  border-left: 1px solid rgba(201, 163, 78, .32);
}

/* ---------- 10.5 移动端折叠状态 ---------- */
.cmd-nav,
.status-chip,
.rail-note {
  display: none;
}

.cmd-nav[data-open] {
  display: block;
}

.cmd-nav[data-open] ~ .status-chip {
  display: flex;
}

.cmd-nav[data-open] ~ .rail-note {
  display: block;
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  background:
    radial-gradient(circle at 82% 0%, rgba(201, 163, 78, .14), transparent 38%),
    linear-gradient(180deg, var(--c-star) 0%, var(--c-deep) 100%);
  color: rgba(248, 247, 244, .8);
  border-top: 1px solid rgba(201, 163, 78, .32);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 219, 175, .85), transparent);
}

.site-footer__inner {
  max-width: 1240px;
  margin-inline: auto;
  padding: 52px clamp(22px, 4vw, 48px) 30px;
}

.footer-grid {
  display: grid;
  gap: 40px 36px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.35fr 1fr 1fr 1.2fr;
    gap: 32px 44px;
  }
}

.footer-col--brand {
  display: flex;
  flex-direction: column;
}

.footer-col__title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--c-gold-light);
  border-bottom: 1px solid rgba(201, 163, 78, .2);
}

.footer-links,
.footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 10px;
}

.footer-links a {
  display: inline-block;
  font-size: 14px;
  color: rgba(248, 247, 244, .72);
  text-decoration: none;
  transition: color .2s, transform .2s var(--ease);
}

.footer-links a:hover {
  color: var(--c-gold-light);
  transform: translateX(3px);
}

.footer-contact {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(248, 247, 244, .72);
}

.footer-brand__note {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(248, 247, 244, .6);
}

.footer-brand__trust {
  margin: 16px 0 0;
  padding-left: 14px;
  font-size: 13px;
  letter-spacing: .03em;
  color: rgba(232, 219, 175, .72);
  border-left: 2px solid var(--c-gold);
}

.footer-divider {
  margin: 36px 0 18px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 18px;
  padding-top: 18px;
  margin-top: 6px;
  border-top: 1px solid rgba(201, 163, 78, .16);
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  letter-spacing: .03em;
  color: rgba(248, 247, 244, .46);
}

.footer-bottom__copy {
  font-variant-numeric: tabular-nums;
}

.footer-bottom__icp {
  font-variant-numeric: tabular-nums;
}

/* ---------- 12. 桌面端整体网格 ---------- */
@media (min-width: 1024px) {
  body {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    grid-template-areas:
      "header main"
      "header footer";
    min-height: 100vh;
  }

  .site-header {
    grid-area: header;
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid rgba(201, 163, 78, .28);
    border-bottom: none;
  }

  .site-header__inner {
    height: 100%;
    padding: 30px 22px 24px;
    gap: 26px;
  }

  .cmd-nav {
    display: block;
    flex: 1;
  }

  .status-chip {
    display: flex;
  }

  .rail-note {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .site-main,
  main#main-content {
    grid-area: main;
  }

  .site-footer {
    grid-area: footer;
  }
}

/* ---------- 13. 减弱动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .progress-track {
    display: none;
  }

  [data-reveal],
  [data-reveal][data-revealed] {
    opacity: 1;
    transform: none;
  }
}
