/* 宝石娱乐 · 共享站点样式 /assets/site.css */

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

:root {
  --ink: #050A18;
  --panel: #0B1428;
  --facet: #12224A;
  --sapphire: #2F5BFF;
  --deep: #16307A;
  --link: #7F9BFF;
  --jade: #23D18B;
  --jade-deep: #0E7A55;
  --gold: #F0CE8E;
  --gold-line: #A9884C;
  --ice: #EAF1FF;
  --mist: #93A4C9;
  --coral: #FF7A6B;
  --font-display: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gutter: 80px;
  --shell-max: 1400px;
  --radius: 2px;
  --hard-shadow: 8px 8px 0 rgba(0, 0, 0, .55);
}

html {
  background-color: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

.contrast-boost {
  --mist: #C6D3EC;
  --facet: #1A3060;
  --gold-line: #D8B478;
  --link: #9FB5FF;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ice);
  background: transparent;
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 22% 16%, rgba(47, 91, 255, .20), transparent 70%),
    radial-gradient(34% 38% at 82% 10%, rgba(35, 209, 139, .14), transparent 70%),
    radial-gradient(32% 32% at 68% 88%, rgba(240, 206, 142, .10), transparent 72%);
  animation: glimmer 18s ease-in-out infinite alternate;
}

@keyframes glimmer {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(1.5%, 1.5%, 0) scale(1.06);
  }
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.14;
  color: var(--ice);
}

h1 {
  font-size: clamp(38px, 5vw, 52px);
}

h2 {
  font-size: clamp(28px, 3.4vw, 38px);
}

h3 {
  font-size: 22px;
  line-height: 1.3;
}

p {
  margin: 0 0 1.2em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

figure {
  margin: 0;
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

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

/* ---------- 容器 ---------- */

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

.page-main {
  position: relative;
  z-index: 1;
  display: block;
  padding-block: 56px 0;
}

.section {
  margin-bottom: 96px;
}

.section--tight {
  margin-bottom: 56px;
}

/* ---------- 跳过链接 ---------- */

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: top .2s ease;
}

.skip-link:focus {
  top: 12px;
  text-decoration: none;
}

/* ---------- 头部：上层品牌说明条 ---------- */

.site-header {
  position: relative;
  z-index: 40;
}

.topbar {
  background: var(--ink);
  border-bottom: 1px solid var(--gold-line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  font-size: 12.5px;
  color: var(--mist);
}

.topbar__brand {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--gold);
  text-decoration: none;
}

.topbar__brand:hover {
  text-decoration: none;
  color: var(--ice);
}

.topbar__note {
  flex: 1 1 auto;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--mist);
  font-size: 12.5px;
}

.topbar__tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.topbar__lang {
  font-size: 12px;
  color: var(--mist);
}

.topbar__ver {
  padding: 2px 8px;
  border: 1px solid rgba(35, 209, 139, .4);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--jade);
}

.topbar__toggle {
  padding: 3px 10px;
  border: 1px solid var(--facet);
  border-radius: var(--radius);
  background: transparent;
  color: var(--mist);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s;
}

.topbar__toggle:hover {
  color: var(--ice);
  border-color: var(--gold-line);
}

.topbar__toggle[aria-pressed="true"] {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

/* ---------- 头部：下层栏目条 ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 10, 24, .92);
  border-bottom: 2px solid var(--gold-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background .3s ease, box-shadow .3s ease;
}

.site-header[data-stuck] .navbar {
  background: #050A18;
  box-shadow: 0 2px 0 rgba(240, 206, 142, .32);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.navbar__mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ice);
  text-decoration: none;
}

.navbar__mark:hover {
  text-decoration: none;
}

.navbar__gem {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: conic-gradient(from 210deg, var(--sapphire), var(--jade), var(--gold), var(--sapphire));
  clip-path: polygon(50% 0, 100% 32%, 82% 100%, 18% 100%, 0 32%);
  box-shadow: 0 0 12px rgba(47, 91, 255, .65);
}

.navbar__word {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 14px;
  border: 2px solid var(--facet);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ice);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

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

.nav-toggle__bars {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--ice);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ice);
  transition: transform .24s ease, top .24s ease;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item {
  margin: 0;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 22px 2px;
  color: var(--mist);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color .18s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .24s cubic-bezier(.2, .7, .2, 1);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--ice);
  text-decoration: none;
}

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

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

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

.nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 8px rgba(35, 209, 139, .9);
}

.nav__cta {
  flex: 0 0 auto;
  margin-left: 6px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--sapphire);
  border-color: var(--sapphire);
  color: #FFFFFF;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .6);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--deep);
  border-color: var(--link);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .6);
}

.btn--ghost {
  background: transparent;
  border-color: var(--gold-line);
  color: var(--ice);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

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

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 96px;
  padding-top: 64px;
  border-top: 2px solid var(--gold-line);
  background: linear-gradient(180deg, rgba(11, 20, 40, .92), rgba(5, 10, 24, 1));
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr;
  gap: 40px;
  padding-bottom: 56px;
}

.footer__col {
  min-width: 0;
}

.footer__brand {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--ice);
}

.footer__desc {
  max-width: 26em;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

.footer__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--gold-line);
}

.footer__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--gold);
}

.footer__list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.7;
}

.footer__list:last-child {
  margin-bottom: 0;
}

.footer__list a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.footer__list a:hover,
.footer__list a:focus-visible {
  color: var(--ice);
  border-bottom-color: var(--jade);
  text-decoration: none;
}

.footer__list--legal {
  padding-top: 14px;
  border-top: 1px dashed rgba(169, 136, 76, .45);
  font-size: 13px;
}

.footer__list--contact {
  gap: 14px;
  margin-bottom: 16px;
}

.footer__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--gold-line);
}

.footer__value {
  display: block;
  font-size: 14px;
  color: var(--ice);
  word-break: break-word;
}

.footer__hint {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mist);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px 28px;
  border-top: 1px solid rgba(169, 136, 76, .35);
  font-size: 12px;
  color: var(--mist);
}

.footer__bottom p {
  margin: 0;
}

.footer__bottom-note {
  font-family: var(--font-mono);
  letter-spacing: .06em;
  color: var(--gold-line);
}

/* ---------- 通用排版组件 ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--jade);
}

.section-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.14;
  color: var(--ice);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--mist);
}

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

.breadcrumb li+li::before {
  content: "/";
  color: var(--gold-line);
}

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

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--ice);
}

.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ice);
}

.prose p {
  margin: 0 0 1.2em;
}

.prose h2 {
  margin: 1.6em 0 .6em;
  font-size: clamp(24px, 3vw, 28px);
}

.prose h3 {
  margin: 1.4em 0 .5em;
  font-size: 20px;
  color: var(--gold);
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: .4em;
}

.prose a {
  color: var(--link);
  border-bottom: 1px solid rgba(127, 155, 255, .45);
}

.prose a:hover {
  border-bottom-color: var(--gold);
  text-decoration: none;
}

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

/* ---------- 网格 ---------- */

.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

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

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

/* ---------- 面板 / 标签 / 数据 ---------- */

.panel {
  padding: 26px;
  border: 2px solid var(--facet);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--hard-shadow);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(35, 209, 139, .45);
  border-radius: var(--radius);
  background: rgba(14, 122, 85, .16);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--jade);
}

.tag--gold {
  border-color: rgba(240, 206, 142, .5);
  background: rgba(169, 136, 76, .14);
  color: var(--gold);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 14px;
  border-left: 2px solid var(--gold-line);
}

.stat__value {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--gold);
}

.stat__label {
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}

/* ---------- 图片容器基础规则 ---------- */

.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 2px solid rgba(47, 91, 255, .45);
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, rgba(47, 91, 255, .28), rgba(35, 209, 139, .14) 55%, rgba(240, 206, 142, .12)),
    var(--facet);
}

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

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

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

/* ---------- 显现动效 ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: opacity .48s cubic-bezier(.2, .7, .2, 1), transform .48s cubic-bezier(.2, .7, .2, 1);
  }
}

/* ---------- 平板 ---------- */

@media (max-width: 1180px) {
  :root {
    --gutter: 56px;
  }

  .nav {
    gap: 18px;
  }

  .nav__list {
    gap: 16px;
  }

  .footer__grid {
    gap: 32px;
  }
}

@media (max-width: 1024px) {
  :root {
    --gutter: 40px;
  }

  .topbar__note {
    display: none;
  }

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

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

/* ---------- 移动 ---------- */

@media (max-width: 768px) {
  :root {
    --gutter: 20px;
  }

  body {
    font-size: 16px;
    line-height: 1.8;
  }

  .topbar__inner {
    min-height: 42px;
    gap: 12px;
  }

  .topbar__lang {
    display: none;
  }

  .navbar {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .navbar__inner {
    min-height: 62px;
    gap: 14px;
  }

  .navbar__word {
    font-size: 16px;
  }

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

  .nav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 120;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
    background: var(--panel);
    border-top: 2px solid var(--gold-line);
    box-shadow: 0 -18px 40px rgba(0, 0, 0, .65);
    transform: translateY(112%);
    visibility: hidden;
    transition: transform .32s cubic-bezier(.2, .7, .2, 1), visibility .32s linear;
  }

  .nav[data-open] {
    transform: translateY(0);
    visibility: visible;
  }

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

  .nav__item--wide {
    display: none;
  }

  .nav__link {
    display: block;
    padding: 14px 2px;
    font-size: 17px;
    border-bottom: 1px solid var(--facet);
  }

  .nav__link::after {
    display: none;
  }

  .nav__link[aria-current="page"] {
    color: var(--gold);
    border-bottom-color: var(--gold-line);
  }

  .nav__link[aria-current="page"]::before {
    left: auto;
    right: 4px;
    bottom: 50%;
    margin: 0 0 -3px;
  }

  .nav__cta {
    width: 100%;
    margin: 16px 0 0;
  }

  .page-main {
    padding-block: 36px 0;
  }

  .section {
    margin-bottom: 64px;
  }

  .section--tight {
    margin-bottom: 40px;
  }

  .grid,
  .grid--2,
  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .panel {
    padding: 20px;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, .55);
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-bottom: 40px;
  }

  .site-footer {
    margin-top: 64px;
    padding-top: 44px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .stat__value {
    font-size: 30px;
  }
}

/* ---------- 减弱动效 ---------- */

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

  body::before {
    animation: none;
  }

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

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