/* =========================================================
   /assets/site.css — 天天娱乐会馆 共享样式
   ========================================================= */

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

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

:root {
  --ink: #07111F;
  --ink-2: #0A1727;
  --char: #10151C;
  --char-2: #141B23;
  --cyan: #28E0D0;
  --orange: #FF8A3D;
  --rose: #F04E8A;
  --amber: #FFC857;
  --violet: #8B5CF6;
  --teal: #0E3B3A;
  --mist: #A9B4C2;
  --snow: #F4F7FA;

  --line: rgba(40, 224, 208, 0.22);
  --line-soft: rgba(169, 180, 194, 0.16);
  --edge: rgba(40, 224, 208, 0.45);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --header-h: 78px;
  --shell: 1220px;

  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--snow);
  background:
    radial-gradient(120% 80% at 88% -12%, rgba(139, 92, 246, 0.20), transparent 58%),
    radial-gradient(90% 70% at 4% 108%, rgba(40, 224, 208, 0.14), transparent 55%),
    var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.06em;
  color: var(--snow);
}

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

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

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

/* ---------- 布局基元 ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 68px 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.section-head h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: 0.09em;
}

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

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(40, 224, 208, 0));
}

.page-title {
  font-size: clamp(30px, 4.6vw, 54px);
  letter-spacing: 0.08em;
  line-height: 1.14;
}

.lede {
  max-width: 68ch;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.85;
  color: var(--mist);
}

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

.divider {
  height: 1px;
  margin: 44px 0;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* ---------- 卡片 / 标签 / 按钮 ---------- */

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}

.card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 100% at 90% 0%, rgba(139, 92, 246, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(14, 59, 58, 0.45), rgba(16, 21, 28, 0.94));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--edge);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(40, 224, 208, 0.07);
  color: var(--snow);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pill:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.pill[aria-pressed="true"],
.pill.is-active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04201E;
}

.tag {
  display: inline-block;
  padding: 3px 11px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.18);
  color: #C9B5FF;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.7;
}

.tag--amber {
  border-color: rgba(255, 200, 87, 0.42);
  background: rgba(255, 200, 87, 0.16);
  color: var(--amber);
}

.tag--rose {
  border-color: rgba(240, 78, 138, 0.42);
  background: rgba(240, 78, 138, 0.16);
  color: #FF9DBF;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 25px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn--accent {
  background: var(--orange);
  color: #0A0F16;
}

.btn--accent:hover {
  background: #FFA262;
  box-shadow: 0 12px 30px rgba(255, 138, 61, 0.32);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--snow);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(40, 224, 208, 0.08);
}

/* ---------- 面包屑 / 正文 ---------- */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.breadcrumbs a:hover { color: var(--cyan); }

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(169, 180, 194, 0.5);
}

.prose {
  max-width: 74ch;
  font-size: 16px;
  line-height: 1.85;
  color: #DCE4EE;
}

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

.prose h2 {
  margin: 1.9em 0 0.6em;
  font-size: clamp(21px, 2.4vw, 28px);
  letter-spacing: 0.07em;
}

.prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: 18px;
  color: var(--cyan);
}

.prose ul,
.prose ol {
  margin: 0.9em 0;
  padding-left: 1.3em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li { margin: 0.35em 0; }

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(40, 224, 208, 0.4);
}

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

.prose blockquote {
  margin: 1.4em 0;
  padding: 16px 22px;
  border-left: 3px solid var(--violet);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(139, 92, 246, 0.10);
  font-family: var(--font-serif);
  color: var(--snow);
}

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

.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(40, 224, 208, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--teal) 0%, #0A1A2A 48%, var(--char) 100%);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(75% 65% at 18% 8%, rgba(40, 224, 208, 0.26), transparent 62%),
    radial-gradient(70% 70% at 88% 94%, rgba(240, 78, 138, 0.20), transparent 60%);
}

.media-frame > img,
.media-frame > svg,
.media-frame > .media-fill {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ---------- 显现 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(10, 23, 39, 0.97), rgba(7, 17, 31, 0.94));
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-frame {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--shell);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: #04201E;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  transform: translateY(-180%);
  transition: transform 0.22s ease;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 8px 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(40, 224, 208, 0.45);
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, var(--teal), #0B2135);
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(40, 224, 208, 0.18), 0 0 14px rgba(40, 224, 208, 0.9);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.brand-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--cyan);
  opacity: 0.9;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--snow);
}

/* 导航 */

.rail-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.rail-nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.rail-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--mist);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rail-idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  opacity: 0.72;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.rail-label { white-space: nowrap; }

.rail-nav-link:hover {
  color: var(--snow);
  border-color: rgba(40, 224, 208, 0.32);
  background: rgba(40, 224, 208, 0.10);
}

.rail-nav-link:hover .rail-idx { opacity: 1; }

.rail-nav-link[aria-current="page"] {
  color: var(--snow);
  border-color: rgba(40, 224, 208, 0.65);
  background: linear-gradient(180deg, rgba(40, 224, 208, 0.22), rgba(40, 224, 208, 0.07));
  box-shadow: 0 0 18px rgba(40, 224, 208, 0.18);
}

.rail-nav-link[aria-current="page"] .rail-idx {
  color: var(--snow);
  opacity: 1;
}

.rail-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 10px 19px;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: #0A0F16;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.rail-cta::after {
  content: "↗";
  font-size: 13px;
  line-height: 1;
}

.rail-cta:hover {
  background: #FFA262;
  box-shadow: 0 10px 26px rgba(255, 138, 61, 0.32);
}

/* 移动菜单按钮 */

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 10px 14px;
  border: 1px solid rgba(40, 224, 208, 0.35);
  border-radius: 14px;
  background: rgba(40, 224, 208, 0.08);
  color: var(--snow);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s 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 { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle-label { line-height: 1; }

/* 滚动进度光带 */

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 42%, var(--orange) 74%, var(--rose) 100%);
  transition: transform 0.12s linear;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  margin-top: 0;
  padding: 56px 0 26px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 84% 0%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(90% 80% at 2% 100%, rgba(40, 224, 208, 0.12), transparent 56%),
    var(--char);
  color: var(--mist);
}

.footer-frame {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1.2fr;
  gap: 38px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand-line {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.1em;
  color: var(--snow);
  transition: color 0.2s ease;
}

.footer-brand-line:hover { color: var(--cyan); }

.footer-note {
  max-width: 44ch;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 18px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  color: var(--cyan);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-cta:hover {
  background: rgba(40, 224, 208, 0.12);
  border-color: var(--cyan);
  color: var(--snow);
}

.footer-title {
  margin-bottom: 15px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--amber);
}

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

.footer-links a {
  display: inline-block;
  font-size: 14.5px;
  color: rgba(244, 247, 250, 0.86);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--cyan);
  transform: translateX(4px);
}

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

.footer-contact-list li {
  display: grid;
  gap: 3px;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(169, 180, 194, 0.72);
}

.footer-value {
  font-size: 14px;
  line-height: 1.65;
  color: var(--snow);
  word-break: break-word;
}

.footer-value--mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(169, 180, 194, 0.8);
}

.footer-copy {
  font-size: 12.5px;
  color: rgba(169, 180, 194, 0.7);
}

/* =========================================================
   响应式
   ========================================================= */

@media (max-width: 1140px) and (min-width: 961px) {
  .header-frame { gap: 16px; }
  .brand-name { font-size: 16px; letter-spacing: 0.1em; }
  .rail-nav { gap: 10px; }
  .rail-nav-link { gap: 5px; padding: 8px 9px; font-size: 13px; }
  .rail-idx { font-size: 9px; }
  .rail-cta { padding: 9px 14px; font-size: 12.5px; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 70px; }

  .header-frame {
    gap: 14px;
    padding: 0 18px;
  }

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

  .rail-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 16px 18px 26px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(10, 23, 39, 0.99), rgba(7, 17, 31, 0.99));
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  }

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

  .rail-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }

  .rail-nav-link {
    justify-content: flex-start;
    padding: 14px 16px;
    border: 1px solid rgba(169, 180, 194, 0.12);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    font-size: 15.5px;
  }

  .rail-nav-link[aria-current="page"] {
    border-color: rgba(40, 224, 208, 0.7);
  }

  .rail-cta {
    justify-content: center;
    margin-top: 18px;
    padding: 14px 20px;
    font-size: 15px;
  }

  .section { padding: 52px 0; }
}

@media (max-width: 640px) {
  .shell,
  .header-frame,
  .footer-frame { padding: 0 16px; }

  .brand-name { font-size: 16px; letter-spacing: 0.1em; }
  .brand-kicker { font-size: 9px; letter-spacing: 0.18em; }
  .brand-mark { width: 34px; height: 34px; }
  .nav-toggle { padding: 9px 12px; font-size: 12px; }

  .section { padding: 44px 0; }

  .card { padding: 22px; border-radius: 22px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-base { justify-content: flex-start; }
  .footer-brand-line { font-size: 18px; }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card:hover { transform: none; }
}
