/* ==========================================================================
   财神优选 · 星港大厅  base.css
   深空蓝黑 + 青紫渐变玻璃质感；类名前缀 .gw-
   ========================================================================== */

:root {
  --gw-bg: #070b16;
  --gw-bg-2: #0b1224;
  --gw-ink: #eef2ff;
  --gw-ink-2: #b9c3dd;
  --gw-muted: #7d89a8;
  --gw-line: rgba(255, 255, 255, .09);
  --gw-line-2: rgba(255, 255, 255, .16);
  --gw-glass: rgba(255, 255, 255, .045);
  --gw-glass-2: rgba(255, 255, 255, .07);

  --gw-cyan: #35d6d0;
  --gw-violet: #7c5cff;
  --gw-amber: #ffc46b;
  --gw-grad: linear-gradient(118deg, #35d6d0 0%, #5aa8ff 46%, #7c5cff 100%);
  --gw-grad-soft: linear-gradient(118deg, rgba(53, 214, 208, .18), rgba(124, 92, 255, .18));

  --gw-radius: 14px;
  --gw-radius-lg: 22px;
  --gw-max: 1320px;

  --gw-font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  --gw-mono: "SFMono-Regular", Consolas, "Courier New", monospace;
  --gw-shadow: 0 18px 40px -24px rgba(4, 8, 20, .9);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--gw-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gw-ink-2);
  background-color: var(--gw-bg);
  overflow-x: hidden;
}

/* 深空背景：双光斑 + 细网格 + 顶部渐隐，纯 CSS */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(53, 214, 208, .16), transparent 60%),
    radial-gradient(1100px 800px at 92% 4%, rgba(124, 92, 255, .20), transparent 62%),
    radial-gradient(900px 600px at 50% 108%, rgba(46, 92, 190, .16), transparent 60%),
    linear-gradient(180deg, #070b16 0%, #0a1020 45%, #070b16 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
}

h1, h2, h3 {
  margin: 0;
  color: var(--gw-ink);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -.01em;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

input {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--gw-cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.gw-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 通用按钮 ---------- */
.gw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .24s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

.gw-btn:active {
  transform: translateY(1px) scale(.995);
}

.gw-btn--primary {
  position: relative;
  color: #fff;
  background-image: linear-gradient(120deg, #10b3ba 0%, #3a78ef 54%, #7a4cf0 100%);
  box-shadow: 0 10px 22px -14px rgba(58, 120, 239, .95);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .18);
}

.gw-btn--primary:hover {
  box-shadow: 0 16px 30px -12px rgba(122, 76, 240, .95);
  filter: saturate(1.12) brightness(1.06);
}

.gw-btn--ghost {
  color: #dfe7ff;
  border: 1px solid rgba(255, 255, 255, .2);
  background-color: rgba(255, 255, 255, .05);
}

.gw-btn--ghost:hover {
  border-color: rgba(53, 214, 208, .6);
  background-color: rgba(53, 214, 208, .12);
  color: #eafffe;
}

.gw-btn__arrow {
  font-size: 12px;
  opacity: .8;
}

/* ---------- toast ---------- */
.gw-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 80;
  transform: translate(-50%, 20px);
  padding: 11px 22px;
  border: 1px solid rgba(53, 214, 208, .35);
  border-radius: 999px;
  background-color: rgba(9, 16, 32, .92);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9);
  color: var(--gw-ink);
  font-size: 13px;
  letter-spacing: .02em;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(10px);
  transition: opacity .22s ease, transform .22s ease;
}

.gw-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 首屏入场动画（无滚动依赖，便于稳定出图） */
@keyframes gw-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
