/* EV扑克 / EVpoker — 浅色专业游戏下载站 */
:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --card: #eef2f0;
  --ink: #14241c;
  --muted: #5a6b62;
  --brand: #0d3b2e;
  --accent: #16a34a;
  --accent-soft: #dcfce7;
  --line: #d5ddd8;
  --shadow: 0 10px 30px rgba(13, 59, 46, 0.08);
  --radius: 14px;
  --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(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Top nav —— */
.site-top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand-ev {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--brand);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-ev img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-ev span {
  white-space: nowrap;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1.05rem;
}

.nav-main a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav-main a:hover,
.nav-main a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.menu-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* —— Hero —— */
.dl-hero {
  padding: 3.2rem 0 2.4rem;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(22, 163, 74, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 80%, rgba(13, 59, 46, 0.06), transparent 50%),
    var(--bg);
}

.dl-hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.dl-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  line-height: 1.2;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.dl-hero .lead {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.dl-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.45rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.28);
}

.btn-primary:hover {
  background: #15803d;
  color: #fff;
}

.btn-ghost {
  background: var(--surface);
  color: var(--brand);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.dl-hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.dl-hero .meta strong {
  color: var(--brand);
}

.dl-hero .visual {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
  border: 1px solid var(--line);
}

.dl-hero .visual img {
  width: 100%;
}

/* —— Sections —— */
.section {
  padding: 2.75rem 0;
}

.section-head {
  margin-bottom: 1.6rem;
}

.section-head h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: var(--brand);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.section.alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

/* —— OS cards —— */
.os-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.os-cards article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem 1.35rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.os-cards article:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.os-cards .pic {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.9rem;
  object-fit: contain;
}

.os-cards h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--brand);
}

.os-cards p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.os-cards .btn {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}

/* —— Pros —— */
.pros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pros article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.pros .pic {
  width: 48px;
  height: 48px;
  margin-bottom: 0.85rem;
  object-fit: contain;
}

.pros h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  color: var(--brand);
}

.pros p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* —— Feature / game rows —— */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 2rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse .copy {
  order: 2;
}

.feature-row .pic,
.feature-row .media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: 100%;
  background: var(--surface);
}

.feature-row h3 {
  margin: 0 0 0.55rem;
  color: var(--brand);
  font-size: 1.25rem;
}

.feature-row p {
  margin: 0;
  color: var(--muted);
}

.badge {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #166534;
  font-size: 0.78rem;
  font-weight: 700;
}

/* —— News / preview cards —— */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}

.news-card:hover {
  border-color: var(--accent);
}

.news-card .pic {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background: var(--card);
}

.news-card .body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.news-card .tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-card h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--brand);
  line-height: 1.35;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  flex: 1;
}

.news-card .more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

/* —— Pager —— */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.pager button {
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--brand);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.pager button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pager button.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.news-card[hidden] {
  display: none !important;
}

/* —— Page hero (inner) —— */
.page-hero {
  padding: 2.4rem 0 1.5rem;
  background: linear-gradient(180deg, #e8f5ee 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  color: var(--brand);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

/* —— Content —— */
.prose {
  max-width: 48rem;
}

.prose h2 {
  margin: 2rem 0 0.65rem;
  color: var(--brand);
  font-size: 1.35rem;
}

.prose h3 {
  margin: 1.4rem 0 0.45rem;
  color: var(--brand);
  font-size: 1.1rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.prose li {
  margin: 0.35rem 0;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand);
}

.faq details[open] summary {
  margin-bottom: 0.55rem;
}

.faq p {
  margin: 0;
  color: var(--muted);
}

.install-steps {
  display: grid;
  gap: 1rem;
}

.install-steps article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.step-num {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.gallery .pic {
  border-radius: 12px;
  border: 1px solid var(--line);
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--card);
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.note-box {
  background: var(--accent-soft);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: #166534;
  margin: 1rem 0;
}

/* —— Footer —— */
.site-foot {
  margin-top: 2rem;
  background: var(--brand);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
}

.site-foot a {
  color: rgba(255, 255, 255, 0.9);
}

.site-foot a:hover {
  color: #86efac;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.site-foot h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #fff;
}

.site-foot p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-foot .links {
  display: grid;
  gap: 0.4rem;
}

.site-foot .links a {
  font-size: 0.9rem;
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* —— 404 —— */
.error-box {
  text-align: center;
  padding: 4rem 0 5rem;
}

.error-box h1 {
  margin: 0 0 0.5rem;
  font-size: 3rem;
  color: var(--brand);
}

.error-box p {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .dl-hero .wrap,
  .feature-row,
  .feature-row.reverse .copy,
  .split-2,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .copy {
    order: 0;
  }

  .os-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .pros,
  .news-grid,
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav-main {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 0.85rem;
    box-shadow: var(--shadow);
  }

  .nav-main.is-open {
    display: flex;
  }

  .nav-main a {
    padding: 0.7rem 0.35rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-main a:last-child {
    border-bottom: 0;
  }

  .site-top {
    position: sticky;
  }

  .site-top .wrap {
    position: relative;
  }
}

@media (max-width: 640px) {
  .os-cards,
  .pros,
  .news-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .dl-hero {
    padding-top: 2rem;
  }

  .dl-actions {
    flex-direction: column;
  }

  .dl-actions .btn {
    width: 100%;
  }
}
