/* ==========================================================
   鼎利娱乐官网 · 共享样式 /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, figure, blockquote, dl, dd { margin: 0; }

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

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

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

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink: #0A1A2F;
  --ink-deep: #050B14;
  --ink-raised: #0E2440;
  --copper: #C08A3E;
  --copper-bright: #D9A75B;
  --neon: #37E6D4;
  --amber: #F08A3C;
  --slate: #8FA3B8;
  --mist: #F2F6FA;
  --green: #4FD18B;
  --line-soft: rgba(143, 163, 184, .16);
  --line-copper: rgba(192, 138, 62, .4);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --wrap: 1200px;
  --header-h: 74px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ---------- 3. 基础排版 / 底色 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--mist);
  background-color: var(--ink);
  background-image:
    radial-gradient(880px 520px at 8% -12%, rgba(55, 230, 212, .10), transparent 62%),
    radial-gradient(760px 480px at 96% -6%, rgba(192, 138, 62, .16), transparent 64%),
    linear-gradient(180deg, #0A1A2F 0%, #08182C 44%, #050B14 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: .04em;
}

h1 { font-size: clamp(32px, 4.6vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 26px); }
h4 { font-size: 17px; }

code, kbd, samp { font-family: var(--font-mono); font-size: .94em; }

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

::selection { background: var(--copper); color: #08121F; }

/* ---------- 4. 宽屏框架轨道（导航即视觉边框） ---------- */
@media (min-width: 1320px) {
  body::before,
  body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 1px;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(192, 138, 62, .5) 10%, rgba(55, 230, 212, .22) 55%, transparent);
  }
  body::before { left: 28px; }
  body::after { right: 28px; }
}

/* ---------- 5. 容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (max-width: 680px) {
  .wrap { padding-inline: 16px; }
}

/* ---------- 6. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -64px;
  left: 20px;
  z-index: 90;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--neon);
  color: #04211E;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: top .2s var(--ease);
}

.skip-link:focus { top: 16px; }

/* ---------- 7. 头部框架 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(10, 26, 47, .97), rgba(8, 22, 40, .92));
  border-bottom: 1px solid var(--line-copper);
  box-shadow: 0 10px 30px rgba(3, 8, 16, .45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  pointer-events: none;
  opacity: .55;
  background-image: repeating-linear-gradient(90deg, rgba(192, 138, 62, .5) 0 1px, transparent 1px 24px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}

/* ---------- 8. 品牌 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--copper-bright), var(--copper) 46%, var(--amber));
  color: #08121F;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(192, 138, 62, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.brand__text { display: grid; gap: 2px; }

.brand__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--mist);
  white-space: nowrap;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate);
}

.brand--footer .brand__name { font-size: 18px; }

/* ---------- 9. 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  justify-self: end;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(192, 138, 62, .45);
  background: rgba(192, 138, 62, .12);
  color: var(--mist);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.nav-toggle:hover {
  background: rgba(55, 230, 212, .12);
  border-color: rgba(55, 230, 212, .45);
}

.nav-toggle__glyph {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.nav-toggle__label { line-height: 1; }

.nav-toggle[aria-expanded="true"] {
  background: rgba(55, 230, 212, .16);
  border-color: rgba(55, 230, 212, .6);
  color: var(--neon);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__glyph {
  background: var(--neon);
  box-shadow: 0 -6px 0 var(--neon), 0 6px 0 var(--neon);
}

/* ---------- 10. 主导航 ---------- */
.site-nav { justify-self: center; min-width: 0; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__item { display: block; }

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 13px;
  border-radius: var(--radius-pill);
  color: var(--slate);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .03em;
  transition: color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}

.site-nav__link:hover {
  color: var(--mist);
  background: rgba(55, 230, 212, .08);
}

.site-nav__link[aria-current="page"] {
  color: var(--mist);
  background: rgba(192, 138, 62, .16);
  box-shadow: inset 0 0 0 1px rgba(192, 138, 62, .55);
}

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: var(--neon);
  box-shadow: 0 0 10px rgba(55, 230, 212, .8);
}

/* ---------- 11. 头部状态区 ---------- */
.header-status {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

.header-status__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--slate);
  white-space: nowrap;
}

.header-status__label { color: var(--slate); }

.header-status__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--amber);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(79, 209, 139, .16), 0 0 10px rgba(79, 209, 139, .6);
  animation: dotPulse 2.8s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* ---------- 12. 阅读进度条 ---------- */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--copper) 70%, var(--amber));
  box-shadow: 0 0 12px rgba(55, 230, 212, .55);
  transition: width .12s linear, opacity .3s var(--ease);
}

/* ---------- 13. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.btn--primary {
  background: linear-gradient(135deg, var(--copper-bright), var(--amber));
  color: #08121F;
  box-shadow: 0 12px 28px rgba(192, 138, 62, .28);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(240, 138, 60, .34);
}

.btn--ghost {
  background: rgba(55, 230, 212, .07);
  color: var(--neon);
  border-color: rgba(55, 230, 212, .4);
}

.btn--ghost:hover {
  background: rgba(55, 230, 212, .16);
  border-color: rgba(55, 230, 212, .7);
  transform: translateY(-2px);
}

.btn--quiet {
  background: transparent;
  color: var(--slate);
  border-color: var(--line-soft);
}

.btn--quiet:hover {
  color: var(--mist);
  border-color: rgba(143, 163, 184, .4);
  transform: translateY(-2px);
}

.btn--sm { padding: 8px 15px; font-size: 12.5px; letter-spacing: .05em; }

/* ---------- 14. 版式区块 ---------- */
.section { padding: 72px 0; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}

.section__title { font-size: clamp(24px, 3.2vw, 38px); letter-spacing: .04em; }

.section__lead { max-width: 62ch; font-size: 16px; color: var(--slate); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--copper);
}

.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; }

@media (max-width: 768px) {
  .section { padding: 48px 0; }
}

/* ---------- 15. 网格 ---------- */
.grid { display: grid; gap: 20px; }
.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)); }

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

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

/* ---------- 16. 卡片 / 统计 / 标签 ---------- */
.card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(158deg, rgba(18, 42, 70, .94), rgba(9, 22, 40, .94));
  border: 1px solid var(--line-soft);
  box-shadow: 0 18px 40px rgba(3, 8, 16, .32);
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  width: 46px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, var(--copper), transparent);
}

.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(55, 230, 212, .42);
  box-shadow: 0 24px 52px rgba(3, 8, 16, .44);
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card__title { font-size: 18px; letter-spacing: .04em; }

.card__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--slate);
}

.card__body { font-size: 15px; color: var(--slate); }

.stat { display: grid; gap: 6px; }

.stat__value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
}

.stat__delta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--green);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  background: rgba(143, 163, 184, .12);
  color: var(--slate);
  border: 1px solid rgba(143, 163, 184, .22);
}

.tag--neon {
  background: rgba(55, 230, 212, .12);
  color: var(--neon);
  border-color: rgba(55, 230, 212, .35);
}

.tag--amber {
  background: rgba(240, 138, 60, .12);
  color: var(--amber);
  border-color: rgba(240, 138, 60, .35);
}

/* ---------- 17. 图片容器（页面阶段放置占位图） ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(192, 138, 62, .28);
  aspect-ratio: 16 / 9;
  background-color: #071426;
  background-image:
    linear-gradient(140deg, rgba(14, 36, 64, .95), rgba(5, 11, 20, .95)),
    repeating-linear-gradient(90deg, rgba(55, 230, 212, .05) 0 1px, transparent 1px 28px);
  box-shadow: inset 0 0 60px rgba(55, 230, 212, .06);
}

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

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

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

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 18px 14px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--mist);
  background: linear-gradient(180deg, rgba(5, 11, 20, 0), rgba(5, 11, 20, .9));
}

@media (max-width: 700px) {
  .media--tall { aspect-ratio: 4 / 3; }
}

/* ---------- 18. 面板 / 正文 / 数字 ---------- */
.panel {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(9, 23, 42, .72);
  border: 1px solid var(--line-soft);
}

.rule {
  height: 1px;
  border: 0;
  margin: 34px 0;
  background: linear-gradient(90deg, rgba(192, 138, 62, .55), rgba(192, 138, 62, .08) 60%, transparent);
}

.note { font-size: 12.5px; line-height: 1.75; color: var(--slate); }

.prose { max-width: 72ch; color: var(--slate); }

.prose > * + * { margin-top: 16px; }

.prose strong { color: var(--mist); }

.numeric {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

.data-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .05em;
  color: var(--slate);
}

/* ---------- 19. 面包屑 ---------- */
.breadcrumb { margin-top: 22px; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--slate);
}

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

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(143, 163, 184, .45);
}

.breadcrumb__link { color: var(--slate); transition: color .2s var(--ease); }

.breadcrumb__link:hover { color: var(--neon); }

.breadcrumb__current { color: var(--mist); }

/* ---------- 20. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  background: linear-gradient(180deg, #08182C 0%, var(--ink-deep) 100%);
  border-top: 1px solid var(--line-copper);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  pointer-events: none;
  opacity: .5;
  background-image: repeating-linear-gradient(90deg, rgba(192, 138, 62, .55) 0 1px, transparent 1px 24px);
}

.footer-grid {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 36px;
}

.footer-brand { display: grid; gap: 16px; align-content: start; }

.footer-brand__desc {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}

.footer-note {
  padding: 12px 14px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border-left: 2px solid rgba(240, 138, 60, .7);
  background: rgba(240, 138, 60, .06);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--slate);
}

.footer-col { display: grid; gap: 14px; align-content: start; }

.footer-col__title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--copper);
}

.footer-links { display: grid; gap: 11px; }

.footer-link {
  display: inline-block;
  font-size: 14.5px;
  color: var(--slate);
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.footer-link:hover { color: var(--neon); transform: translateX(5px); }

.footer-contact { display: grid; gap: 12px; font-size: 14px; }

.footer-contact__row { display: flex; gap: 12px; align-items: baseline; }

.footer-contact__key {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--copper);
}

.footer-contact__val { color: var(--slate); word-break: break-word; }

.footer-bottom {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 20px 24px 40px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 12.5px;
  color: var(--slate);
}

.footer-bottom__text { letter-spacing: .03em; }

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

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

/* ---------- 22. 平板 / 移动端头部 ---------- */
@media (max-width: 1180px) and (min-width: 901px) {
  .site-nav__link { padding: 10px 10px; font-size: 14px; }
  .header-status__label { display: none; }
}

@media (max-width: 1040px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 900px) {
  .site-header__inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 12px;
  }

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

  .header-status { display: none; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    display: none;
    padding: 16px 20px 22px;
    background: linear-gradient(180deg, #0C2140, #071426);
    border-bottom: 1px solid var(--line-copper);
    box-shadow: 0 28px 48px rgba(2, 6, 12, .62);
  }

  .site-nav[data-open] {
    display: block;
    animation: navIn .22s var(--ease);
  }

  .site-nav__list { flex-direction: column; align-items: stretch; gap: 8px; }

  .site-nav__item { width: 100%; }

  .site-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-radius: var(--radius-md);
    background: rgba(143, 163, 184, .06);
    font-size: 16px;
  }

  .site-nav__link[aria-current="page"] { background: rgba(192, 138, 62, .18); }

  .site-nav__link[aria-current="page"]::after { display: none; }

  @keyframes navIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 48px; }
  .footer-bottom { padding-bottom: 32px; }
  .brand__sub { display: none; }
}

/* ---------- 23. 降级动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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

  .card:hover,
  .card:focus-within,
  .btn:hover,
  .footer-link:hover { transform: none; }
}
