/* PokerStars 扑克之星 · 下载站 portal.css */
:root {
  --bg: #0a0f1a;
  --bg-elev: #121a2b;
  --bg-card: #152036;
  --bg-soft: #1a2740;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e8edf7;
  --muted: #9aa8c0;
  --red: #e10600;
  --red-dark: #9b0000;
  --red-glow: rgba(225, 6, 0, 0.35);
  --white: #ffffff;
  --max: 1120px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #ff6b63;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #ff938d;
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* —— Top / Brand / Nav —— */
.top {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10, 15, 26, 0.88);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
}

.brand span {
  font-size: 1.05rem;
}

.brand em {
  font-style: normal;
  color: var(--red);
  margin-left: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px 18px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 6px 0;
  position: relative;
}

.nav a:hover,
.nav a.is-active {
  color: var(--white);
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

[data-nav-toggle] {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-elev);
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

[data-nav-toggle] i {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  box-shadow: 0 10px 28px var(--red-glow);
}

.btn-primary:hover {
  color: var(--white);
  box-shadow: 0 14px 34px var(--red-glow);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(225, 6, 0, 0.55);
  color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.86rem;
}

/* —— Hero —— */
.dl-hero {
  position: relative;
  padding: 64px 0 48px;
  overflow: hidden;
}

.dl-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(225, 6, 0, 0.28), transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(40, 90, 180, 0.22), transparent 50%);
  pointer-events: none;
}

.dl-hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.dl-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.dl-hero .lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38rem;
}

.dl-hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.dl-hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.dl-hero .meta strong {
  color: var(--text);
  font-weight: 600;
}

.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-card);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

figure {
  margin: 0;
}

figcaption {
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--line);
}

/* —— Sections —— */
.section {
  padding: 56px 0;
}

.section-head {
  margin-bottom: 28px;
  max-width: 40rem;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* —— Soft cards / platforms —— */
.soft-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.soft-card {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg-card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.soft-card:hover {
  border-color: rgba(225, 6, 0, 0.45);
  transform: translateY(-3px);
}

.soft-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(225, 6, 0, 0.12);
  color: #ff6b63;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.soft-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.soft-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* —— Feature grid —— */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feat-grid article,
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feat-grid article:hover,
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.feat-grid .body,
.card .body {
  padding: 18px;
}

.feat-grid h3,
.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feat-grid p,
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.feat-grid img,
.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* —— Card list / news —— */
.card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.news-item img {
  width: 140px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
}

.news-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.news-item h3 a {
  color: var(--text);
}

.news-item h3 a:hover {
  color: #ff6b63;
}

.news-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.news-item .date {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: #7d8aa3;
}

/* —— Pager —— */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.pager-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
}

.pager-btn:hover:not(:disabled) {
  border-color: var(--red);
  color: var(--white);
}

.pager-btn.is-current {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.pager-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* —— Article / longform —— */
.article {
  max-width: 760px;
  margin: 0 auto;
}

.article h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25;
}

.article .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.article h2 {
  margin: 36px 0 12px;
  font-size: 1.35rem;
}

.article h3 {
  margin: 24px 0 10px;
  font-size: 1.1rem;
}

.article p {
  margin: 0 0 14px;
  color: #c5d0e4;
}

.article ul,
.article ol {
  margin: 0 0 16px;
  padding-left: 1.25rem;
  color: #c5d0e4;
}

.article li {
  margin-bottom: 6px;
}

.article figure {
  margin: 22px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.article figcaption {
  text-align: center;
}

.prose-wide {
  max-width: none;
}

.prose-wide .article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

/* —— FAQ —— */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* —— Download anchors —— */
.dl-panel {
  scroll-margin-top: 88px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.dl-panel h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.dl-panel p {
  margin: 0;
  color: var(--muted);
}

.dl-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.dl-jump a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.88rem;
  background: var(--bg-elev);
}

.dl-jump a:hover {
  border-color: var(--red);
  color: var(--white);
}

/* —— CTA band —— */
.cta-band {
  margin: 24px 0 0;
  padding: 36px 28px;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(225, 6, 0, 0.22), rgba(18, 26, 43, 0.9) 45%),
    var(--bg-elev);
  border: 1px solid rgba(225, 6, 0, 0.28);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta-band h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

/* —— Page hero (inner) —— */
.page-hero {
  padding: 42px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

/* —— Footer —— */
.foot {
  margin-top: 64px;
  padding: 40px 0 28px;
  border-top: 1px solid var(--line);
  background: #070b14;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.foot h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--white);
}

.foot p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.foot a {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.foot a:hover {
  color: var(--white);
}

.foot-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #6d7a93;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* —— Utilities —— */
.muted {
  color: var(--muted);
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.safe-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.safe-list li {
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.safe-list {
  margin: 0;
  padding: 0;
}

.safe-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
}

.safe-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* —— 404 —— */
.error-box {
  text-align: center;
  padding: 80px 0 60px;
}

.error-box .code {
  font-size: 4rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 12px;
}

/* —— Responsive —— */
@media (max-width: 980px) {
  .dl-hero .wrap,
  .two-col,
  .prose-wide .article-grid,
  .foot-grid {
    grid-template-columns: 1fr;
  }

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

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

  .dl-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  [data-nav-toggle] {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 68px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 20px;
    background: rgba(10, 15, 26, 0.98);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 68px);
    overflow: auto;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
  }

  .soft-grid,
  .feat-grid,
  .card-list,
  .safe-list {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
  }

  .news-item img {
    width: 100%;
    height: 160px;
  }

  .dl-hero {
    padding-top: 36px;
  }

  .section {
    padding: 40px 0;
  }
}

/* —— Compat for detail/list pages —— */
.btn-red{background:linear-gradient(135deg,var(--red),var(--red-dark));color:var(--white);box-shadow:0 10px 28px var(--red-glow)}
.btn-red:hover{color:var(--white);box-shadow:0 14px 34px var(--red-glow)}
.nav a.on{color:var(--white)}
.nav a.on::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--red);border-radius:2px}
.top-cta{margin-left:8px;padding:10px 18px;font-size:.86rem;flex-shrink:0}
.brand span{display:inline-flex;flex-direction:column;line-height:1.15;gap:2px}
.brand span b{font-size:1rem;font-weight:700}
.brand span small{font-size:.72rem;color:var(--muted);font-weight:500;letter-spacing:.04em}
.nav-toggle{display:none}
.nav-toggle:not(:has(i)){gap:0}
.nav-toggle:not(:has(i))::before{content:"";display:block;width:18px;height:2px;background:#fff;box-shadow:0 -6px 0 #fff,0 6px 0 #fff;margin:0 auto}
.crumbs{font-size:.86rem;color:var(--muted);margin:18px 0 10px}
.crumbs a{color:var(--muted)}
.crumbs a:hover{color:var(--white)}
.section-head{margin-bottom:22px;max-width:760px}
.section-head h1{margin:0 0 10px;font-size:clamp(1.6rem,3vw,2.2rem)}
.section-head .muted,.section-head p.muted{color:var(--muted)}
.card{display:flex;flex-direction:column;color:inherit}
.card:hover{color:inherit}
.card .thumb{overflow:hidden;background:#000}
.card .thumb img{width:100%;aspect-ratio:16/9;object-fit:cover}
.card .meta,.article .meta{font-size:.78rem;color:#f0c14b;margin:0 0 6px}
.card .more{display:inline-block;margin-top:12px;font-size:.86rem;font-weight:700;color:var(--white)}
.article .cover{margin:0 0 20px;border-radius:var(--radius);overflow:hidden;border:1px solid var(--line)}
.article .cover img{width:100%;aspect-ratio:21/9;object-fit:cover}
.article .pic,.pic{margin:16px 0;border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);background:#000}
.pic img{width:100%;aspect-ratio:16/10;object-fit:cover}
.pic-cap,.pic figcaption{font-size:.78rem;color:var(--muted);padding:8px 12px;background:rgba(0,0,0,.35)}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:var(--radius);margin:16px 0}
table{width:100%;border-collapse:collapse;background:var(--bg-card);min-width:560px}
th,td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left;font-size:.9rem}
th{background:var(--bg-soft);color:var(--white)}
td{color:var(--muted)}
td.ok{color:#7dffa5}
.foot h4{margin:0 0 12px;font-size:.9rem;color:var(--white)}
.foot .muted{color:var(--muted)}
.foot-bar{border-top:1px solid var(--line);padding:14px 0 22px;color:var(--muted);font-size:.82rem}
.panel{background:var(--bg-card);border:1px solid var(--line);border-radius:var(--radius);padding:22px}
@media(max-width:760px){
  .nav-toggle,[data-nav-toggle].nav-toggle{display:inline-flex}
  .top-cta{display:none}
}
