/* ============================================ */
/* 四喜娱乐免费 — /assets/site.css              */
/* 深空蓝 × 亮金 × 切角信息板                    */
/* ============================================ */

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

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

body {
  margin: 0;
}

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

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

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

input, button, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

/* ---------- Design Tokens ---------- */
:root {
  --color-bg-deep: #0A1128;
  --color-bg-panel: #111C3A;
  --color-bg-card: #1A2745;
  --color-gold: #F5C518;
  --color-gold-strong: #FFD84D;
  --color-orange: #FF8C42;
  --color-text: #F2F4F8;
  --color-text-sub: #B3C0DE;
  --color-rule: #32D3A4;
  --color-line: rgba(179, 192, 222, 0.12);

  --font-headline: 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Songti SC', 'SimSun', serif;
  --font-mono: 'SF Mono', 'Roboto Mono', monospace;

  --container-max: 1240px;
  --container-pad: clamp(18px, 4vw, 32px);
  --transition: 180ms ease;
}

/* ---------- Base Typography ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg-deep);
  background-image:
    radial-gradient(ellipse 46% 32% at 88% -2%, rgba(245, 197, 24, 0.10), transparent 62%),
    radial-gradient(ellipse 40% 28% at 4% 104%, rgba(50, 211, 164, 0.07), transparent 64%),
    linear-gradient(180deg, var(--color-bg-deep) 0%, #0D1530 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 800;
  line-height: 1.12;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(34px, 5.4vw, 64px); }
h2 { font-size: clamp(24px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2.2vw, 26px); }
h4 { font-size: 18px; }

::selection {
  background: rgba(245, 197, 24, 0.30);
  color: #FFFFFF;
}

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

/* ---------- Skip Link ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-bg-deep);
  background: var(--color-gold);
  padding: 10px 20px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: top 180ms ease;
}

.skip-link:focus-visible {
  top: 16px;
}

/* ---------- Container & Section ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: clamp(64px, 8vw, 112px);
}

.section--tight {
  padding-block: clamp(40px, 5vw, 64px);
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section__eyebrow::before {
  content: "";
  width: 30px;
  height: 9px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-orange));
  clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
}

.section__title {
  margin-bottom: 14px;
}

.section__lead {
  font-size: 18px;
  color: var(--color-text-sub);
  max-width: 640px;
}

.section__body {
  margin-top: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.04em;
  padding: 14px 24px;
  color: var(--color-text);
  text-decoration: none;
  border: 1px solid transparent;
  background: var(--color-bg-card);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn__label {
  display: inline-block;
}

.btn__arrow {
  display: inline-block;
  font-size: 1.1em;
  line-height: 1;
  transition: transform 180ms ease;
}

.btn--cta {
  background: linear-gradient(135deg, var(--color-orange), #F76B1C);
  color: #FFFFFF;
}

.btn--cta:hover .btn__arrow {
  transform: translateX(3px);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(245, 197, 24, 0.55);
  color: var(--color-gold);
}

.btn--ghost:hover {
  background: rgba(245, 197, 24, 0.10);
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10, 17, 40, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245, 197, 24, 0.20);
}

.site-header__inner {
  padding-block: 14px 12px;
  transition: padding 280ms ease;
}

.site-header.is-scrolled .site-header__inner {
  padding-block: 8px 6px;
}

.site-header__top {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
}

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}

.brand__mark {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--color-gold-strong), var(--color-gold) 55%, #D9A804);
  clip-path: polygon(0 16%, 16% 0, 100% 0, 100% 84%, 84% 100%, 0 100%);
  transition: width 180ms ease, height 180ms ease;
}

.brand__glyph {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 24px;
  color: var(--color-bg-deep);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--color-text);
  white-space: nowrap;
}

.brand__slogan {
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--color-text-sub);
  white-space: nowrap;
  max-height: 24px;
  overflow: hidden;
  opacity: 1;
  transition: opacity 180ms ease, max-height 180ms ease, margin 180ms ease;
}

.site-header.is-scrolled .brand__mark {
  width: 38px;
  height: 38px;
}

.site-header.is-scrolled .brand__slogan {
  opacity: 0;
  max-height: 0;
  margin: 0;
}

.brand--footer .brand__mark {
  width: 42px;
  height: 42px;
}

.brand--footer .brand__glyph {
  font-size: 21px;
}

.brand--footer .brand__name {
  font-size: 18px;
}

/* ---------- Utility Nav ---------- */
.utility-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(179, 192, 222, 0.06);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.utility-nav__link {
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: var(--color-text-sub);
  text-decoration: none;
  padding: 7px 14px;
  transition: background 180ms ease, color 180ms ease;
}

.utility-nav__link:hover {
  color: var(--color-text);
}

.utility-nav__link.is-active {
  background: linear-gradient(135deg, var(--color-gold-strong), var(--color-gold));
  color: var(--color-bg-deep);
}

/* ---------- Header CTA & Toggle ---------- */
.site-header__cta {
  flex: none;
  padding: 12px 20px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--color-bg-card);
  color: var(--color-text);
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(245, 197, 24, 0.28);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

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

.nav-toggle__bar {
  height: 2px;
  background: var(--color-gold);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle__bar:nth-child(1) { width: 100%; }
.nav-toggle__bar:nth-child(2) { width: 75%; }
.nav-toggle__bar:nth-child(3) { width: 50%; }

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

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

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

/* ---------- Main Nav ---------- */
.site-nav {
  margin-top: 12px;
  border-top: 1px solid var(--color-line);
  padding-top: 4px;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 32px);
  list-style: none;
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  display: inline-block;
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text-sub);
  text-decoration: none;
  padding: 10px 0;
  position: relative;
  transition: color 180ms ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-orange));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

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

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

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

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #080D1F 0%, #04070F 100%);
  border-top: 1px solid rgba(245, 197, 24, 0.22);
  margin-top: clamp(72px, 10vw, 128px);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(240px, 36vw);
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-orange));
  clip-path: polygon(0 0, 100% 0, calc(100% - 34px) 100%, 0 100%);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(280px, 1.3fr) repeat(3, minmax(130px, 0.7fr));
  gap: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px);
  padding-block: clamp(48px, 6vw, 84px) 20px;
}

.site-footer__brand {
  min-width: 0;
}

.site-footer__statement {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--color-text-sub);
  max-width: 420px;
}

.site-footer__col {
  min-width: 0;
}

.site-footer__title {
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--color-gold);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.site-footer__links {
  list-style: none;
}

.site-footer__links li {
  margin-bottom: 2px;
}

.site-footer__link {
  display: inline-block;
  font-size: 15px;
  color: var(--color-text-sub);
  text-decoration: none;
  line-height: 2.1;
  transition: color 180ms ease, transform 180ms ease;
}

.site-footer__link:hover {
  color: var(--color-text);
  transform: translateX(4px);
}

.site-footer__meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  margin-top: clamp(16px, 3vw, 32px);
  padding-top: 22px;
  border-top: 1px solid var(--color-line);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-sub);
}

.site-footer__contact,
.site-footer__icp,
.site-footer__copyright {
  margin: 0;
}

.site-footer__icp {
  color: var(--color-gold);
}

.site-footer__copyright {
  margin-left: auto;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  margin-bottom: 24px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  list-style: none;
  font-family: var(--font-headline);
  font-size: 13px;
}

.breadcrumb__link {
  color: var(--color-text-sub);
  text-decoration: none;
  transition: color 180ms ease;
}

.breadcrumb__link:hover {
  color: var(--color-gold);
}

.breadcrumb__sep {
  color: rgba(245, 197, 24, 0.70);
  margin-inline: 6px;
}

.breadcrumb__item[aria-current="page"] .breadcrumb__link {
  color: var(--color-text);
  pointer-events: none;
}

/* ---------- Bento Grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.4vw, 24px);
}

.bento-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 200px;
  padding: clamp(20px, 2.6vw, 30px);
  background: var(--color-bg-panel);
  border: 1px solid var(--color-line);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.bento-cell--bg-card {
  background: var(--color-bg-card);
}

.bento-cell--span2 { grid-column: span 2; }
.bento-cell--span3 { grid-column: span 3; }
.bento-cell--span4 { grid-column: span 4; }

.bento-cell--row2 {
  grid-row: span 2;
  min-height: 424px;
}

/* ---------- Panels & Cards ---------- */
.panel {
  position: relative;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-line);
  padding: clamp(22px, 3vw, 32px);
}

.panel--gold::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  background: linear-gradient(180deg, var(--color-gold), var(--color-orange));
}

.rule-card {
  position: relative;
  background: var(--color-bg-card);
  padding: 22px 24px 20px;
  margin-bottom: 16px;
}

.rule-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: linear-gradient(180deg, var(--color-gold), rgba(245, 197, 24, 0.35));
}

.rule-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.rule-card__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.rule-card__meta {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-text-sub);
}

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 6px 12px;
  background: var(--color-bg-panel);
  color: var(--color-text-sub);
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}

.tag--updated {
  background: rgba(50, 211, 164, 0.14);
  color: var(--color-rule);
}

.tag--gold {
  background: rgba(245, 197, 24, 0.14);
  color: var(--color-gold-strong);
}

.tag--hot {
  background: rgba(255, 140, 66, 0.14);
  color: var(--color-orange);
}

/* ---------- Data & Decorative ---------- */
.data-list {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--color-text-sub);
}

.data-list__item {
  position: relative;
  padding: 8px 0 8px 22px;
  border-bottom: 1px dashed rgba(179, 192, 222, 0.16);
}

.data-list__item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  transform: translateY(-50%) rotate(45deg);
}

.divider {
  display: block;
  width: 120px;
  height: 8px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-orange));
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
  margin: 24px 0;
  border: 0;
}

/* ---------- Image Placeholder ---------- */
.img-placeholder {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 220px;
  background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-panel) 100%);
  border: 1px solid var(--color-line);
}

.img-placeholder::before {
  content: "";
  position: absolute;
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  background:
    linear-gradient(135deg, transparent 48%, rgba(245, 197, 24, 0.10) 49.5%, rgba(245, 197, 24, 0.10) 50.5%, transparent 52%),
    radial-gradient(circle at 72% 28%, rgba(245, 197, 24, 0.08) 0%, transparent 44%);
  pointer-events: none;
}

.img-placeholder::after {
  content: "";
  position: absolute;
  right: 10%;
  top: 12%;
  width: 86px;
  height: 86px;
  border: 2px solid rgba(245, 197, 24, 0.30);
  transform: rotate(45deg);
}

.img-placeholder--hero { min-height: clamp(320px, 48vh, 560px); }
.img-placeholder--card { min-height: 180px; }
.img-placeholder--tall { min-height: 340px; }

/* ---------- Split Grid ---------- */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  z-index: 300;
  background: linear-gradient(90deg, var(--color-gold), var(--color-orange));
  pointer-events: none;
  transition: width 60ms linear;
}

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 560ms ease, transform 560ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Tablet (≤1024px) ---------- */
@media (max-width: 1024px) {
  .utility-nav {
    display: none;
  }

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

  .site-footer__brand {
    grid-column: 1 / -1;
  }

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

  .bento-cell--span2 {
    grid-column: span 2;
  }

  .bento-cell--span3,
  .bento-cell--span4 {
    grid-column: span 2;
  }

  .bento-cell--row2 {
    min-height: 200px;
  }

  .split-grid {
    gap: clamp(24px, 4vw, 44px);
  }
}

/* ---------- Mobile (≤767px) ---------- */
@media (max-width: 767px) {
  .site-header__top {
    gap: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .brand__glyph {
    font-size: 19px;
  }

  .brand__name {
    font-size: 17px;
  }

  .brand__slogan {
    display: none;
  }

  .site-header__cta {
    padding: 10px 12px;
    font-size: 13px;
  }

  .site-header__cta .btn__arrow {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    padding: 8px 10px;
  }

  .utility-nav {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0;
    padding-inline: var(--container-pad);
    background: rgba(10, 17, 40, 0.98);
    border-top: 1px solid rgba(245, 197, 24, 0.25);
    border-bottom: 1px solid rgba(245, 197, 24, 0.25);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
    max-height: 0;
    overflow: hidden;
    transition: max-height 260ms ease;
  }

  .site-nav[data-open] {
    max-height: 480px;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
  }

  .site-nav__link {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(179, 192, 222, 0.08);
  }

  .site-nav__link::after {
    display: none;
  }

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

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-cell--span2,
  .bento-cell--span3,
  .bento-cell--span4 {
    grid-column: span 1;
  }

  .bento-cell--row2 {
    grid-row: span 1;
    min-height: 200px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .site-footer__copyright {
    margin-left: 0;
  }

  .split-grid {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

  .scroll-progress {
    transition: none;
  }
}
