:root {
  --bg: #080a12;
  --bg-soft: #0f1220;
  --panel: #12162a;
  --line: rgba(140, 160, 255, 0.14);
  --text: #e9ecf8;
  --muted: #98a0bf;
  --accent: #35f0c0;
  --accent-2: #7c5cff;
  --accent-3: #ff5c9d;
  --warning: #ffcc66;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(800px 460px at 92% 0%, rgba(53, 240, 192, 0.14), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 10, 18, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(53, 240, 192, 0.45);
}

.logo span em {
  font-style: normal;
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
  color: var(--muted);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
}

.header-cta {
  margin-left: auto;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: #06110d;
  background: linear-gradient(135deg, var(--accent), #6ff0d6);
  box-shadow: 0 8px 26px rgba(53, 240, 192, 0.28);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding: 76px 0 64px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(53, 240, 192, 0.35);
  border-radius: 999px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.4px;
  background: rgba(53, 240, 192, 0.07);
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.22;
  margin: 18px 0 16px;
  letter-spacing: 0.5px;
}

.hero h1 .hl {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 38em;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  color: #06110d;
  background: linear-gradient(135deg, var(--accent), #59e6c4);
  box-shadow: 0 12px 32px rgba(53, 240, 192, 0.25);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

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

.hero-art {
  position: relative;
}

.hero-art img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-badge {
  position: absolute;
  left: -18px;
  bottom: 22px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(18, 22, 42, 0.92);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  backdrop-filter: blur(8px);
}

.hero-badge strong {
  display: block;
  color: var(--text);
  font-size: 20px;
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 56px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 0;
  letter-spacing: 0.4px;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.section-head .more {
  color: var(--accent);
  font-size: 14px;
}

/* ---------- 游戏卡片 ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(28, 33, 58, 0.9), rgba(14, 17, 31, 0.95));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(53, 240, 192, 0.45);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

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

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(53, 240, 192, 0.1);
  border: 1px solid rgba(53, 240, 192, 0.25);
}

.tag.dim {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.game-card h3 {
  margin: 0;
  font-size: 20px;
}

.game-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
}

.score {
  color: var(--warning);
  font-weight: 700;
}

.card-link {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- 特色 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(18, 22, 42, 0.6);
}

.feature .ico {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 20px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.35), rgba(53, 240, 192, 0.2));
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 内容区 / 文章 ---------- */
.prose {
  padding: 32px clamp(20px, 4vw, 44px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 24, 44, 0.75), rgba(11, 13, 24, 0.85));
}

.prose h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.prose h3 {
  margin: 30px 0 10px;
  font-size: 19px;
  color: var(--accent);
}

.prose p {
  margin: 0 0 14px;
  color: #c3c9e2;
  font-size: 15.5px;
}

.prose ul,
.prose ol {
  color: #c3c9e2;
  font-size: 15.5px;
  padding-left: 22px;
  margin: 0 0 14px;
}

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

.prose a {
  color: var(--accent);
  border-bottom: 1px solid rgba(53, 240, 192, 0.35);
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 20px 0 0;
}

.breadcrumb ol {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  opacity: 0.5;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* ---------- 详情页 ---------- */
.detail-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 34px 0 10px;
}

.detail-hero h1 {
  font-size: clamp(30px, 3.6vw, 44px);
  margin: 12px 0 12px;
}

.detail-hero .lead {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 20px;
}

.detail-hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.meta-list {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  padding: 18px 22px;
  margin: 26px 0 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(18, 22, 42, 0.55);
}

.meta-list div span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.meta-list div strong {
  font-size: 15px;
}

.faq {
  margin-top: 8px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
  background: rgba(18, 22, 42, 0.55);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
}

.faq details[open] summary {
  color: var(--accent);
  margin-bottom: 8px;
}

.faq p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.related {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.related a {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(18, 22, 42, 0.55);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.related a:hover {
  border-color: rgba(53, 240, 192, 0.45);
  transform: translateY(-2px);
}

.related img {
  width: 76px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.related strong {
  display: block;
  font-size: 15px;
}

.related small {
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------- 评论 ---------- */
.comments {
  margin-top: 40px;
  padding: 30px clamp(18px, 3vw, 34px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 24, 44, 0.8), rgba(11, 13, 24, 0.9));
}

.comments-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.comments-head h2 {
  margin: 0;
  font-size: 22px;
}

.comment-count {
  color: var(--muted);
  font-size: 14px;
}

.comment-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
}

.comment-form {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.comment-form .row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

input[type="text"],
textarea {
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: rgba(8, 10, 18, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input[type="text"]:focus,
textarea:focus {
  border-color: rgba(53, 240, 192, 0.6);
  box-shadow: 0 0 0 3px rgba(53, 240, 192, 0.12);
}

.comment-form .name-field {
  width: min(280px, 100%);
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.counter {
  font-size: 12.5px;
  color: var(--muted);
  margin-right: auto;
}

.hint {
  font-size: 13px;
  min-height: 20px;
}

.hint.error {
  color: #ff7a8a;
}

.hint.ok {
  color: var(--accent);
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.comment-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(8, 10, 18, 0.55);
  border: 1px solid var(--line);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #06110d;
  background: linear-gradient(135deg, var(--accent), #6ff0d6);
}

.comment-main {
  flex: 1;
  min-width: 0;
}

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.comment-meta strong {
  font-size: 14.5px;
}

.comment-meta time {
  font-size: 12.5px;
  color: var(--muted);
}

.comment-body {
  margin: 0;
  font-size: 14.5px;
  color: #cdd3ea;
  white-space: pre-wrap;
  word-break: break-word;
}

.comments-empty {
  color: var(--muted);
  font-size: 14px;
  padding: 18px 0;
}

.demo-badge {
  display: none;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--warning);
  border: 1px solid rgba(255, 204, 102, 0.35);
  background: rgba(255, 204, 102, 0.08);
}

.demo-badge.show {
  display: inline-block;
}

/* ---------- 官方产品中心表格 ---------- */
.product-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 22, 42, 0.45);
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}

.product-table th,
.product-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.product-table thead th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  white-space: nowrap;
  background: rgba(6, 8, 14, 0.5);
}

.product-table tbody tr:last-child td {
  border-bottom: 0;
}

.product-table tbody tr:hover td {
  background: rgba(53, 240, 192, 0.04);
}

.product-table .p-name {
  font-weight: 700;
  white-space: nowrap;
}

.product-table .p-meta {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.product-table .p-dl {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- 地区玩法关键词（评论区） ---------- */
.hot-keywords {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 2;
  color: #8a93a8;
}

.hot-keywords strong { color: var(--accent); font-weight: 700; }

.comment-note a { color: var(--accent); font-weight: 700; text-decoration: underline; }

/* ---------- 在线客服悬浮按钮（页面右侧垂直居中） ---------- */
.kefu-btn {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px 14px 16px;
  border-radius: 999px 0 0 999px;
  font-size: 14px;
  font-weight: 800;
  color: #06110d;
  background: linear-gradient(135deg, var(--accent), #59e6c4);
  box-shadow: -8px 0 26px rgba(53, 240, 192, 0.32);
  transform: translateY(-50%);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.kefu-btn:hover {
  transform: translateY(-50%) translateX(-3px);
  box-shadow: -12px 0 32px rgba(53, 240, 192, 0.48);
}

.kefu-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.kefu-btn .kefu-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #067a5c;
  box-shadow: 0 0 0 3px rgba(6, 122, 92, 0.18);
}

@media (max-width: 640px) {
  .kefu-btn {
    right: 0;
    padding: 11px 14px 11px 12px;
    font-size: 13px;
  }

  .kefu-btn svg {
    width: 17px;
    height: 17px;
  }
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(6, 8, 14, 0.85);
  padding: 44px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 30px;
}

.footer-grid h3 {
  font-size: 15px;
  margin: 0 0 12px;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  font-size: 14px;
  display: block;
  margin: 0 0 8px;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .detail-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 26px;
  }

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

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

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .hero {
    padding: 46px 0 40px;
  }

  .hero-art {
    order: -1;
  }

  .hero-badge {
    left: 12px;
    bottom: 12px;
  }

  .game-grid,
  .feature-grid,
  .related,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    gap: 14px;
    font-size: 14px;
    order: 3;
    width: 100%;
    padding-bottom: 10px;
    overflow-x: auto;
  }

  .header-cta {
    margin-left: 0;
    order: 2;
  }

  .section {
    padding: 40px 0;
  }

  .prose {
    padding: 24px 18px;
  }
}
