/* PokerStars 亮色企业官网 — site.css */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #0b1f3a;
  --ink-soft: #3a4d66;
  --muted: #6b7c93;
  --line: #e2e8f0;
  --accent: #e10600;
  --accent-dark: #b80500;
  --navy: #0b1f3a;
  --navy-mid: #16345a;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --shadow-sm: 0 4px 14px rgba(11, 31, 58, 0.06);
  --max: 1120px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-mid);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.25;
  color: var(--ink);
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Topbar —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo-box {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.logo-box img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.logo-box span {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.logo-box em {
  font-style: normal;
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--navy);
  background: #eef2f8;
}

.main-nav a.cta-nav {
  background: var(--accent);
  color: #fff;
  margin-left: 0.35rem;
}

.main-nav a.cta-nav:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* —— Hero —— */
.hero-soft {
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(225, 6, 0, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 80%, rgba(11, 31, 58, 0.06), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-soft .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero-soft h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin-bottom: 0.85rem;
}

.hero-soft .lead {
  font-size: 1.08rem;
  max-width: 36em;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.hero-media {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.trust-row span::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 800;
}

/* —— Sections —— */
.section {
  padding: 3.25rem 0;
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
}

.section-head p {
  margin-bottom: 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

/* —— Download tiles —— */
.dl-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.dl-tiles article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dl-tiles article:hover {
  border-color: #c5d0e0;
  box-shadow: var(--shadow);
}

.dl-tiles .platform {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.dl-tiles h3 {
  font-size: 1.15rem;
  margin: 0;
}

.dl-tiles p {
  font-size: 0.92rem;
  flex: 1;
  margin: 0;
}

.dl-tiles .meta {
  font-size: 0.8rem;
  color: var(--muted);
}

/* —— Benefits —— */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.benefit {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.benefit .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0b1f3a, #16345a);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.benefit h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.benefit p {
  font-size: 0.92rem;
  margin: 0;
}

/* —— Media blocks —— */
.media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.media:last-child {
  margin-bottom: 0;
}

.media.reverse {
  direction: rtl;
}

.media.reverse > * {
  direction: ltr;
}

.media .media-copy h3 {
  font-size: 1.35rem;
}

.media .media-copy p {
  margin-bottom: 0.85rem;
}

.media .media-fig {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
  border: 1px solid var(--line);
}

.media .media-fig img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.checklist {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.checklist li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

/* —— Posts / previews —— */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.post {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.post:hover {
  box-shadow: var(--shadow);
}

.post img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e8eef6;
}

.post .post-body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.post .tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.post h3 {
  font-size: 1.02rem;
  margin: 0;
}

.post h3 a {
  color: var(--ink);
}

.post h3 a:hover {
  color: var(--accent);
}

.post p {
  font-size: 0.9rem;
  margin: 0;
  flex: 1;
}

.post .more {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-mid);
  margin-top: 0.35rem;
}

/* —— Pager —— */
.pager-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.pager-bar button {
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.pager-bar button:hover {
  border-color: var(--navy);
}

.pager-bar button.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.post.is-hidden {
  display: none;
}

/* —— FAQ —— */
.faq-list {
  display: grid;
  gap: 0.85rem;
  max-width: 820px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.95rem;
}

/* —— Brand / longform —— */
.prose {
  max-width: 720px;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
}

.figure-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.figure-row figure,
.single-fig {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.figure-row figcaption,
.single-fig figcaption {
  padding: 0.65rem 0.9rem 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.single-fig {
  margin: 1.5rem 0;
}

.single-fig img,
.figure-row img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* —— Page banner —— */
.page-banner {
  padding: 2.5rem 0 1.75rem;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.page-banner h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.5rem;
}

.page-banner p {
  max-width: 40rem;
  margin: 0;
}

/* —— CTA band —— */
.cta-band {
  padding: 2.75rem 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
  max-width: 36rem;
}

.cta-band .btn-primary {
  background: var(--accent);
}

.cta-band .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-band .btn-secondary:hover {
  border-color: #fff;
  color: #fff;
}

/* —— Footer —— */
.footer-bar {
  background: #071526;
  color: rgba(255, 255, 255, 0.75);
  padding: 2.75rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-bar h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.footer-bar p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-bar a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  display: block;
  padding: 0.25rem 0;
}

.footer-bar a:hover {
  color: #fff;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

.footer-brand strong {
  color: #fff;
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* —— 404 —— */
.error-box {
  text-align: center;
  padding: 4rem 0 5rem;
}

.error-box .code {
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* —— Utilities —— */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }

/* —— Responsive —— */
@media (max-width: 960px) {
  .hero-grid,
  .media,
  .media.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .dl-tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-grid,
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 0.75rem 0.85rem;
  }

  .main-nav a.cta-nav {
    margin-left: 0;
    text-align: center;
  }

  .topbar {
    position: sticky;
  }

  .topbar-inner {
    position: relative;
  }

  .dl-tiles,
  .benefit-grid,
  .post-grid,
  .figure-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-soft {
    padding-top: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .post,
  .dl-tiles article {
    transition: none;
  }
}
