/* ==========================================================================
   申博娱乐中心 · 共享站点样式
   路径：/assets/site.css
   范围：reset / 变量 / 中文排版 / 头部 / 页脚 / 按钮 / 面包屑 / 容器 / 栅格 / 基础组件
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
blockquote,
ul,
ol,
dl,
dd {
  margin: 0;
}

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

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

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

a {
  color: inherit;
}

/* ---------- 设计变量 ---------- */

:root {
  --ink: #061A2E;
  --harbor: #0B2C46;
  --mist: #9DB4C6;
  --paper: #F2F5F3;
  --coral: #FF6B4A;
  --jade: #24E0B2;
  --gold: #F2B84B;
  --teal: #0E3B45;
  --void: #020A12;

  --dual: linear-gradient(135deg, #FF6B4A 0%, #24E0B2 100%);
  --seam: linear-gradient(90deg, #FF6B4A 0%, #24E0B2 58%, #F2B84B 100%);
  --line: rgba(157, 180, 198, 0.22);
  --line-soft: rgba(157, 180, 198, 0.12);

  --font-display: "Bahnschrift", "DIN Alternate", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Sarasa Mono SC", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;

  --header-h: 78px;
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (max-width: 1080px) {
  :root {
    --header-h: 64px;
  }
}

/* ---------- 页面基座 ---------- */

body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(0deg, var(--line-soft) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 120px);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--paper);
}

::selection {
  background: var(--coral);
  color: var(--void);
}

#main-content {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

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

html.nav-open {
  overflow: hidden;
}

/* ---------- 容器 / 栅格 ---------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

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

.grid--split {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: start;
}

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

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

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

/* ---------- 跳转链接 ---------- */

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 2px solid var(--coral);
  transition: top 0.2s var(--ease);
}

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

/* ---------- 头部 ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(2, 10, 18, 0.9) 0%, rgba(2, 10, 18, 0.08) 100%);
  border-bottom: 1px solid transparent;
  transition: background 0.32s var(--ease), border-color 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(6, 26, 46, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 26px 52px -34px var(--void);
}

.header-inner {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 40px);
}

/* 品牌 */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--paper);
}

.brand-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  width: 34px;
  height: 34px;
  padding: 3px;
  border: 2px solid var(--mist);
  flex: 0 0 auto;
}

.brand-mark i {
  display: block;
  background: var(--mist);
  opacity: 0.5;
}

.brand-mark i:nth-child(2) {
  background: var(--jade);
  opacity: 1;
}

.brand-mark i:nth-child(3) {
  background: var(--coral);
  opacity: 1;
}

.brand-mark i:nth-child(4) {
  background: transparent;
  border: 1px solid rgba(157, 180, 198, 0.55);
  opacity: 1;
}

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

.brand-copy {
  display: block;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.brand-sub {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  color: var(--mist);
}

/* 移动按钮 */

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 13px;
  background: rgba(11, 44, 70, 0.7);
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--jade);
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bars i {
  display: block;
  height: 2px;
  background: var(--jade);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

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

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

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

/* 导航 */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 28px);
  flex: 1 1 auto;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 24px);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--dual);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.26s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--paper);
}

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

.nav-link[aria-current="page"] {
  color: var(--paper);
}

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

/* 客服角标 */

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 10px 17px;
  background: var(--coral);
  border: 2px solid var(--coral);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--void);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.header-cta::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  animation: cta-pulse 2.8s ease-in-out infinite;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--jade);
  border-color: var(--jade);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--void);
}

@keyframes cta-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(6, 26, 46, 0.55);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(6, 26, 46, 0);
  }
}

/* 滚动进度 */

.header-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--seam);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.12s linear;
}

/* 头部断点 */

@media (max-width: 1080px) {
  .site-header {
    background: linear-gradient(180deg, rgba(2, 10, 18, 0.96) 0%, rgba(2, 10, 18, 0.5) 100%);
  }

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

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin-left: 0;
    padding: 10px var(--gutter) 26px;
    background: var(--harbor);
    border-bottom: 2px solid var(--teal);
    box-shadow: 0 34px 60px -30px var(--void);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease), visibility 0.26s var(--ease);
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

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

  .nav-list li + li {
    border-top: 1px solid var(--line-soft);
  }

  .nav-link {
    display: block;
    padding: 15px 4px;
    font-size: 16px;
    color: var(--mist);
  }

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

  .nav-link[aria-current="page"] {
    color: var(--jade);
  }

  .header-cta {
    justify-content: center;
    width: 100%;
    margin-top: 18px;
    padding: 14px 20px;
    font-size: 14px;
  }
}

@media (max-width: 460px) {
  .brand-sub {
    display: none;
  }
}

/* ---------- 页脚 ---------- */

.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  background: var(--void);
  color: var(--mist);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--seam);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(160px, 0.85fr) minmax(240px, 1.25fr);
  gap: clamp(26px, 4vw, 64px);
  padding-block: clamp(40px, 6vw, 76px) clamp(28px, 4vw, 46px);
}

.footer-brand,
.footer-col {
  min-width: 0;
}

.footer-title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--paper);
}

.footer-note {
  margin-top: 10px;
  max-width: 38ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--mist);
}

.footer-heading {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--jade);
}

.footer-list {
  display: grid;
  gap: 8px;
}

.footer-link {
  display: inline-block;
  padding-block: 2px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--coral);
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 13.5px;
  line-height: 1.7;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--jade);
}

.contact-value {
  color: var(--paper);
  word-break: break-word;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  padding-block: 22px 30px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--mist);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-legal .footer-link {
  font-size: 12.5px;
}

.footer-copy,
.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn--primary {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--void);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--jade);
  border-color: var(--jade);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--void);
}

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

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--jade);
  color: var(--ink);
}

.btn--quiet {
  background: var(--harbor);
  border-color: var(--line);
  color: var(--paper);
}

.btn--quiet:hover,
.btn--quiet:focus-visible {
  border-color: var(--mist);
  color: var(--jade);
}

/* ---------- 面包屑 ---------- */

.breadcrumbs {
  padding-block: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs-list li:not(:last-child)::after {
  content: "/";
  color: rgba(255, 107, 74, 0.7);
}

.breadcrumbs-list a {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.breadcrumbs-list a:hover,
.breadcrumbs-list a:focus-visible {
  color: var(--jade);
}

.breadcrumbs-list [aria-current="page"] {
  color: var(--paper);
}

/* ---------- 章节与标题 ---------- */

.section {
  padding-block: clamp(40px, 7vw, 88px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: var(--jade);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--coral);
  flex: 0 0 auto;
}

/* ---------- 正文 ---------- */

.prose {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.9;
  color: var(--paper);
}

.prose h2,
.prose h3 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

.prose h2 {
  font-size: clamp(22px, 3vw, 30px);
}

.prose h3 {
  font-size: clamp(18px, 2.2vw, 22px);
}

.prose p + p {
  margin-top: 1.05em;
}

.prose ul,
.prose ol {
  margin-block: 1em;
  padding-left: 1.3em;
}

.prose ul {
  list-style: square;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 0.45em;
}

.prose a {
  color: var(--jade);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.prose strong {
  color: var(--gold);
  font-weight: 700;
}

.rule-text {
  font-family: var(--font-mono);
  font-size: 14.5px;
  line-height: 1.9;
  letter-spacing: 0.01em;
  color: var(--mist);
}

.rule-text + .rule-text {
  margin-top: 1em;
}

/* ---------- 档案卡 / 标签 / 编号 ---------- */

.card {
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--harbor);
  border: 2px solid var(--line);
  box-shadow: 8px 8px 0 rgba(2, 10, 18, 0.9);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: var(--jade);
  border: 1px solid var(--jade);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
}

.tag--coral {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--void);
}

.tag--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--void);
}

.tag--outline {
  background: transparent;
  border-color: rgba(157, 180, 198, 0.45);
  color: var(--mist);
}

.numeral {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 140px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(36, 224, 178, 0.55);
  text-stroke: 2px rgba(36, 224, 178, 0.55);
  user-select: none;
}

/* ---------- 提示条 ---------- */

.notice {
  padding: 14px 18px;
  background: rgba(242, 184, 75, 0.12);
  border-left: 4px solid var(--gold);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--paper);
}

/* ---------- 图片容器 ---------- */

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--harbor);
  border: 2px solid var(--line);
  box-shadow: 10px 10px 0 rgba(2, 10, 18, 0.9);
}

.media-frame img,
.media-frame > picture,
.media-frame > picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(62% 62% at 72% 26%, rgba(36, 224, 178, 0.2), transparent 72%);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(36, 224, 178, 0.07) 0 1px, transparent 1px 4px);
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

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

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

/* ---------- 滚动显现 ---------- */

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 降低动效 ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

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