/* ===========================================================
   SE棋牌 · 共享外壳样式 /assets/site.css
   绒面深绿牌桌 + 霓虹紫光带 + 暖金入口，展览画册式骨架
   =========================================================== */

/* ---------- 1. 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--porcelain);
  background-color: var(--felt);
  background-image:
    radial-gradient(1100px 620px at 8% -12%, rgba(123, 77, 255, 0.26), transparent 62%),
    radial-gradient(900px 520px at 96% 4%, rgba(231, 183, 95, 0.14), transparent 58%),
    radial-gradient(760px 700px at 50% 118%, rgba(7, 35, 26, 0.92), transparent 72%);
  -webkit-font-smoothing: antialiased;
}

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

img { height: auto; }

a {
  color: var(--neon-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:hover { color: var(--gold-light); }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

ul, ol { margin: 0; padding: 0; }

li { list-style: none; }

button { font: inherit; color: inherit; }

::selection { background: var(--neon); color: var(--porcelain); }

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

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 色彩体系 */
  --felt: #0E3B2E;
  --felt-deep: #07231A;
  --neon: #7B4DFF;
  --neon-soft: #B9A4FF;
  --gold: #E7B75F;
  --gold-light: #F7DDA8;
  --porcelain: #F5F2E9;
  --charcoal: #14110E;
  --sage: #6E8C80;

  /* 字体 */
  --font-display: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: var(--font-display);
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;

  /* 形状与阴影 */
  --radius: 10px;
  --shadow-hard: 6px 6px 0 rgba(4, 14, 11, 0.55);
  --shadow-hard-lg: 9px 9px 0 rgba(4, 14, 11, 0.6);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

  /* 布局 */
  --shell: 1240px;
  --header-h: 62px;
}

@media (min-width: 900px) {
  :root { --header-h: 76px; }
}

main { padding-top: var(--header-h); }

/* ---------- 3. 文字层级 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 6.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.h-section {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.h-card {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.12rem, 2vw, 1.375rem);
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.lede {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: rgba(245, 242, 233, 0.82);
  max-width: 62ch;
}

.note {
  font-size: 0.8125rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--sage);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. 布局工具 ---------- */
.shell {
  width: min(var(--shell), 100% - 2.5rem);
  margin-inline: auto;
}

@media (max-width: 640px) {
  .shell { width: min(var(--shell), 100% - 1.5rem); }
}

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

.rule {
  height: 2px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--gold), rgba(231, 183, 95, 0.04));
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.75rem);
  grid-template-columns: minmax(0, 1fr);
}

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

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

/* ---------- 5. 卡片与面板 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.15rem, 2.4vw, 1.65rem);
  background: linear-gradient(160deg, rgba(123, 77, 255, 0.16), rgba(7, 35, 26, 0.5));
  border: 2px solid rgba(110, 140, 128, 0.45);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

.card:hover,
.card:focus-within {
  transform: translateY(-5px);
  border-color: var(--neon-soft);
  box-shadow: var(--shadow-hard-lg), 0 0 0 1px rgba(123, 77, 255, 0.35);
}

.card__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.9vw, 1.3rem);
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.card__body {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: rgba(245, 242, 233, 0.78);
}

.panel {
  padding: clamp(1.15rem, 2.6vw, 1.75rem);
  background: rgba(7, 35, 26, 0.55);
  border: 2px solid rgba(110, 140, 128, 0.35);
  border-radius: var(--radius);
}

.panel--paper {
  background: var(--porcelain);
  color: var(--charcoal);
  border: 3px solid var(--charcoal);
  box-shadow: 8px 8px 0 rgba(20, 17, 14, 0.55);
}

.panel--paper a { color: #4a22c9; }

.panel--paper a:hover { color: #7B4DFF; }

.panel--paper .note { color: #5c5346; }

.panel--paper .card__body { color: #3b352d; }

/* ---------- 6. 按钮 ---------- */
.btn {
  --btn-bg: var(--neon);
  --btn-fg: var(--porcelain);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--btn-fg);
  background-color: var(--btn-bg);
  border: 2px solid var(--charcoal);
  border-radius: 8px;
  box-shadow: 5px 5px 0 rgba(4, 14, 11, 0.7);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(4, 14, 11, 0.72);
  color: var(--btn-fg);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(4, 14, 11, 0.7);
}

.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--charcoal); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--porcelain);
  border-color: var(--neon-soft);
  box-shadow: none;
}

.btn--ghost:hover { --btn-bg: rgba(123, 77, 255, 0.2); }

.btn--block { width: 100%; }

/* ---------- 7. 面包屑 ---------- */
.breadcrumbs {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sage);
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  color: rgba(110, 140, 128, 0.75);
}

.breadcrumbs__link {
  color: var(--neon-soft);
  text-decoration: none;
}

.breadcrumbs__link:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.breadcrumbs__current { color: var(--porcelain); }

/* ---------- 8. 图片容器基础规则 ---------- */
.figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.figure__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 3px solid var(--charcoal);
  border-radius: var(--radius);
  background-color: var(--felt-deep);
  background-image: linear-gradient(140deg, rgba(123, 77, 255, 0.3), rgba(7, 35, 26, 0.75));
  box-shadow: var(--shadow-hard-lg);
}

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

.figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(123, 77, 255, 0.22), transparent 46%, rgba(231, 183, 95, 0.16));
}

.figure__caption {
  font-size: 0.8125rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--sage);
}

.figure--wide .figure__media { aspect-ratio: 21 / 9; }

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

.figure--square .figure__media { aspect-ratio: 1 / 1; }

/* ---------- 9. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  transform: translateY(-200%);
  padding: 0.7rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  background-color: var(--gold);
  border: 2px solid var(--charcoal);
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

/* ---------- 10. 页头：透明叠加 → 实色阅读态 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background-color: transparent;
  border-bottom: 2px solid transparent;
  transition: background-color 0.24s var(--ease), border-color 0.24s var(--ease),
    box-shadow 0.24s var(--ease);
}

.site-header.is-scrolled {
  background-color: var(--felt-deep);
  border-bottom-color: rgba(123, 77, 255, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  width: min(var(--shell), 100% - 2.5rem);
  margin-inline: auto;
}

@media (max-width: 640px) {
  .site-header__bar { width: min(var(--shell), 100% - 1.5rem); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--porcelain);
}

.brand__mark {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--porcelain);
  background-image: linear-gradient(150deg, var(--neon), #3d1a9e);
  border: 2px solid var(--gold);
  border-radius: 7px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.brand__tagline {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  line-height: 1.4;
  color: var(--gold-light);
}

.site-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.site-nav__link {
  display: inline-block;
  padding: 0.45rem 0.6rem;
  font-size: 0.875rem;
  letter-spacing: 0.07em;
  color: rgba(245, 242, 233, 0.88);
  text-decoration: none;
  border-radius: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.site-nav__link:hover {
  color: var(--gold-light);
  background-color: rgba(123, 77, 255, 0.2);
}

.site-nav__link[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background-color: rgba(231, 183, 95, 0.1);
}

.quick-list {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.quick-list__item {
  display: inline-block;
  padding: 0.38rem 0.68rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--neon-soft);
  text-decoration: none;
  border: 2px solid rgba(185, 164, 255, 0.6);
  border-radius: 999px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.quick-list__item:hover {
  background-color: var(--neon-soft);
  border-color: var(--neon-soft);
  color: var(--charcoal);
}

.quick-list__item--gold {
  color: var(--gold-light);
  border-color: var(--gold);
  background-color: rgba(231, 183, 95, 0.14);
}

.quick-list__item--gold:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--charcoal);
}

@media (min-width: 900px) and (max-width: 1079px) {
  .quick-list { display: none; }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  color: var(--porcelain);
  background-color: rgba(123, 77, 255, 0.16);
  border: 2px solid var(--neon-soft);
  border-radius: 8px;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

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

.nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
}

.site-header[data-open] .nav-toggle {
  color: var(--charcoal);
  background-color: var(--gold);
  border-color: var(--charcoal);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background-image: linear-gradient(90deg, var(--neon), var(--gold));
  will-change: transform;
}

/* 移动端抽屉 */
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1.1rem;
    padding: 1.1rem 1.25rem 1.75rem;
    background-color: var(--felt-deep);
    border-top: 3px solid var(--neon);
    border-bottom: 4px solid var(--charcoal);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.5);
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }

  .site-header[data-open] .site-nav { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    width: 100%;
  }

  .site-nav__link {
    display: block;
    padding: 0.8rem 0.7rem;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(245, 242, 233, 0.12);
  }

  .site-nav__link[aria-current="page"] {
    border-bottom-color: var(--gold);
    background-color: rgba(231, 183, 95, 0.1);
  }

  .quick-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .quick-list__item {
    padding: 0.7rem 0.9rem;
    font-size: 0.8125rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .brand__tagline { display: none; }
  .nav-toggle__text { display: none; }
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3.5rem, 8vw, 6rem);
  background-color: var(--felt-deep);
  color: var(--porcelain);
}

.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background-image: linear-gradient(90deg, var(--neon), var(--gold) 55%, var(--neon));
}

.site-footer__inner {
  width: min(var(--shell), 100% - 2.5rem);
  margin-inline: auto;
  padding-block: clamp(2.5rem, 5vw, 3.75rem) 1.75rem;
}

@media (max-width: 640px) {
  .site-footer__inner { width: min(var(--shell), 100% - 1.5rem); }
}

.site-footer__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  grid-template-columns: minmax(0, 1fr);
}

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

@media (min-width: 1080px) {
  .site-footer__grid { grid-template-columns: 1.5fr 0.9fr 0.9fr 0.8fr 1.4fr; }
}

.footer-brand {
  max-width: 40ch;
}

.footer-brand__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: var(--porcelain);
}

.footer-brand__mark::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 0.55rem;
  background-image: linear-gradient(90deg, var(--neon), var(--gold));
}

.footer-brand__text {
  margin-top: 0.9rem;
  font-size: 0.875rem;
  line-height: 1.85;
  color: rgba(245, 242, 233, 0.7);
}

.footer-col__title {
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col__link {
  display: inline-block;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  color: rgba(245, 242, 233, 0.82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-col__link:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.footer-contact__row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.8rem;
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
}

.footer-contact__value {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(245, 242, 233, 0.9);
  word-break: break-word;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(110, 140, 128, 0.3);
}

.footer-legal__text {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: rgba(245, 242, 233, 0.6);
}

.footer-legal__text--dim { color: var(--sage); }

/* ---------- 12. 减弱动效 ---------- */
@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;
  }

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

  .figure__media::after { background: none; }
}
