:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #eef3f9;
  --navy: #0f1b2d;
  --navy-2: #172a46;
  --blue: #1668c1;
  --blue-dark: #11529b;
  --blue-soft: #eaf3ff;
  --orange: #eb6b15;
  --orange-dark: #cf5a0b;
  --orange-soft: #fff2e8;
  --emerald: #059669;
  --emerald-soft: #e6f7f1;
  --violet: #6d28d9;
  --violet-soft: #f2ebff;
  --text: #172033;
  --text-2: #475569;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(15, 27, 45, 0.06);
  --shadow-hover: 0 10px 28px rgba(15, 27, 45, 0.11);
  --maxw: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, p {
  margin-top: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Icons */
.ico {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.ico-sm { width: 16px; height: 16px; }
.ico-xs { width: 14px; height: 14px; }
.ico-emerald { color: var(--emerald); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

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

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.nav-link.is-active {
  color: var(--blue);
  background: var(--blue-soft);
}

.header-search {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  width: 240px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.header-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 104, 193, 0.12);
  background: #fff;
}

.header-search input {
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--text);
  width: 100%;
  min-width: 0;
}

.header-search button {
  border: 0;
  background: var(--blue);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.header-search button:hover {
  background: var(--blue-dark);
}

.mobile-menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer {
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(15, 27, 45, 0.1);
}

.mobile-drawer-inner {
  padding: 14px 20px 18px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

.mobile-search button {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.mobile-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-links a {
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}

.mobile-links a.is-active {
  background: var(--blue-soft);
  color: var(--blue);
}

/* Top Announcement Bar (verbatim required) */
.announce-bar {
  background: linear-gradient(90deg, #eff6ff 0%, #fff7ed 100%);
  border-bottom: 1px solid #dbe7f5;
  font-size: 13px;
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.announce-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.announce-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.announce-text {
  margin: 0;
  color: #1e3a5f;
  font-weight: 600;
  overflow-wrap: break-word;
}

.announce-quick {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--blue);
  font-weight: 600;
}

.announce-quick a:hover {
  text-decoration: underline;
}

.announce-quick .sep {
  color: #cbd5e1;
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.18s, border-color 0.18s;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-orange {
  background: var(--orange);
  color: #fff;
}
.btn-orange:hover {
  background: var(--orange-dark);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-outline {
  background: #fff;
  color: var(--blue);
  border-color: #bfd6f2;
}
.btn-outline:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
}

.btn-sm {
  padding: 7px 13px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-orange { background: var(--orange-soft); color: var(--orange-dark); }
.badge-emerald { background: var(--emerald-soft); color: var(--emerald); }
.badge-violet { background: var(--violet-soft); color: var(--violet); }

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0c192c 0%, #152d50 55%, #193a66 100%);
  color: #fff;
  padding: 42px 0 46px;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(235, 107, 21, 0.24) 0%, rgba(235, 107, 21, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 14px;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
}

.hero-copy h1 {
  font-size: 34px;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.text-gradient {
  background: linear-gradient(90deg, #60b6ff 0%, #ffa24c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 15px;
  color: #cbd5e1;
  margin-bottom: 22px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-hot-games {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.hot-label {
  color: #94a3b8;
}

.hot-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  transition: background 0.16s;
}

.hot-pill:hover {
  background: var(--orange);
  color: #fff;
}

/* Hero Mini Panel */
.hero-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 20px;
  backdrop-filter: blur(8px);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.panel-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #93c5fd;
  font-weight: 700;
}

.panel-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.panel-more {
  font-size: 12px;
  color: #fdba74;
  white-space: nowrap;
}
.panel-more:hover { text-decoration: underline; }

.mini-calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.mini-calc-row label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #cbd5e1;
}

.mini-calc-row input {
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 27, 45, 0.65);
  color: #fff;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 700;
  width: 100%;
}

.mini-calc-out {
  background: rgba(15, 27, 45, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.mini-metric {
  display: flex;
  flex-direction: column;
}

.m-lbl {
  font-size: 11px;
  color: #94a3b8;
}

.m-val {
  font-size: 22px;
  color: #fb923c;
  line-height: 1.2;
}

.m-val-sm {
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 600;
}

.mini-tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-chip {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  transition: background 0.15s;
}

.mini-chip:hover {
  background: var(--blue);
  color: #fff;
}

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

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-ai-band {
  background: linear-gradient(180deg, #eef4fc 0%, #f4f7fb 100%);
  border-top: 1px solid var(--border);
}

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

.section-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text);
}

.section-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
}

.section-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}
.section-more:hover { text-decoration: underline; }

/* Tools 5-Card Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #b7d2f3;
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tool-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tool-icon-blue { background: var(--blue-soft); color: var(--blue); }
.tool-icon-orange { background: var(--orange-soft); color: var(--orange); }
.tool-icon-emerald { background: var(--emerald-soft); color: var(--emerald); }
.tool-icon-violet { background: var(--violet-soft); color: var(--violet); }

.tool-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.tool-card-desc {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 14px;
  flex: 1;
}

.tool-card-foot {
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.tool-games {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-go {
  color: var(--blue);
  font-weight: 700;
  white-space: nowrap;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.game-cover-wrap {
  position: relative;
  aspect-ratio: 24 / 11;
  background: var(--navy);
  overflow: hidden;
}

.game-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 9px;
  border-radius: 6px;
  background: rgba(15, 27, 45, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.game-head h2,
.game-head h3 {
  font-size: 16px;
  margin: 0;
  color: var(--text);
}

.game-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.game-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.game-summary {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 0;
  flex: 1;
}

.game-tip-box {
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--bg);
  font-size: 12px;
  color: var(--text-2);
  border-left: 3px solid var(--orange);
}

/* Category Pills */
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-pill {
  padding: 6px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.16s;
}

.cat-pill:hover,
.cat-pill.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* Two-Column Main + Sidebar Layout */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: start;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  gap: 18px;
  box-shadow: var(--shadow);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.article-card:hover {
  border-color: #b7d2f3;
  box-shadow: var(--shadow-hover);
}

.article-thumb {
  position: relative;
  border-radius: 9px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  align-self: start;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(15, 27, 45, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.article-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.article-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}

.cat-link {
  color: var(--blue);
  font-weight: 700;
}
.cat-link:hover { text-decoration: underline; }

.meta-muted {
  color: var(--muted);
  font-size: 12px;
}

.article-title {
  font-size: 18px;
  line-height: 1.38;
  margin-bottom: 8px;
}

.article-title a {
  color: var(--text);
}

.article-title a:hover {
  color: var(--blue);
}

.article-summary {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 12px;
  flex: 1;
}

.article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

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

.tag-chip {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-2);
}

.tag-chip:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.list-more-wrap {
  margin-top: 22px;
  text-align: center;
}

/* Sidebar */
.content-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.sticky-card {
  position: sticky;
  top: 86px;
}

.side-card-dark {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  border-color: transparent;
}

.side-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.side-card-head h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.side-dark-desc {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 14px;
}

.side-text {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 10px;
}

.text-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}
.text-link:hover { text-decoration: underline; }

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.rank-num {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.rank-num.is-top {
  background: var(--orange);
  color: #fff;
}

.rank-body {
  min-width: 0;
}

.rank-body a {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: block;
}

.rank-body a:hover {
  color: var(--blue);
}

.rank-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.side-tool-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-tool-item {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.16s, color 0.16s;
}

.side-tool-item:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

/* AI Prompts */
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.prompt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.prompt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.prompt-scope {
  font-size: 12px;
  color: var(--muted);
}

.prompt-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.prompt-desc {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 12px;
}

.prompt-code {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 8px;
  background: #0f1b2d;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1;
}

.prompt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Page Banners & Breadcrumbs */
.page-banner {
  background: linear-gradient(135deg, #0f1b2d 0%, #19355c 100%);
  color: #fff;
  padding: 30px 0 32px;
}

.page-banner h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.banner-desc {
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 0;
  max-width: 780px;
}

.banner-link {
  color: #fdba74;
  text-decoration: underline;
}

.banner-pills {
  margin-top: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 10px;
}

.breadcrumb a {
  color: #cbd5e1;
}
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* Article Detail */
.article-hero {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  padding: 22px 0 26px;
}

.article-hero .breadcrumb {
  color: var(--muted);
}
.article-hero .breadcrumb a {
  color: var(--text-2);
}
.article-hero .breadcrumb a:hover { color: var(--blue); }

.article-header-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
}

.detail-title {
  font-size: 26px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.detail-lead {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 14px;
}

.detail-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.detail-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--border);
}

.detail-cover img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}

.prose h2 {
  font-size: 21px;
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--blue);
  scroll-margin-top: 90px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 17px;
  margin: 20px 0 8px;
  color: #1e3a5f;
}

.prose p {
  margin-bottom: 14px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  margin: 0 0 16px;
}

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

.prose .callout {
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  padding: 14px 16px;
  border-radius: 0 8px 8px 0;
  margin: 18px 0;
  font-size: 15px;
}

.prose .callout-warn {
  background: var(--orange-soft);
  border-left-color: var(--orange);
}

.prose .table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0;
}

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

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

.prose th {
  background: var(--surface-alt);
  font-weight: 700;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.detail-tags-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.safety-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--emerald-soft);
  border: 1px solid #b8ebd8;
  font-size: 13px;
  color: #065f46;
}

.safety-notice a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
}

.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.pn-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pn-card:hover:not(.is-empty) {
  border-color: var(--blue);
}

.pn-right {
  text-align: right;
}

.pn-label {
  font-size: 12px;
  color: var(--muted);
}

.pn-card strong {
  font-size: 14px;
  color: var(--text);
}

.related-block {
  margin-top: 26px;
}

.related-title {
  font-size: 19px;
  margin-bottom: 14px;
}

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

.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-card:hover {
  border-color: var(--blue);
}

.related-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.related-card h3 {
  font-size: 15px;
  margin: 0;
  line-height: 1.4;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-list a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-2);
  border-left: 2px solid transparent;
}

.toc-list a:hover {
  background: var(--blue-soft);
  color: var(--blue);
  border-left-color: var(--blue);
}

/* Game Detail Hero */
.game-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.game-hero-cover {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-cheatsheet {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--orange);
  font-size: 13px;
  color: #f1f5f9;
}

.other-games-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.other-game-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
}

.other-game-link:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

/* Tools Workbench */
.tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tool-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.tool-tab:hover,
.tool-tab.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.workbench-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.workbench-panel.is-active {
  display: block;
}

.wb-head {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.wb-head h2 {
  font-size: 22px;
  margin: 8px 0 6px;
}

.wb-head p {
  font-size: 14px;
  color: var(--text-2);
  margin: 0;
}

.wb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.wb-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.form-row input,
.form-row select {
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  width: 100%;
  min-width: 0;
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 104, 193, 0.12);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.compare-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.compare-box h3 {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--blue);
}

.wb-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.res-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.res-card-primary {
  background: linear-gradient(135deg, #104a8e 0%, #1668c1 100%);
  color: #fff;
  border-color: transparent;
}

.res-card-orange {
  background: linear-gradient(135deg, #c75308 0%, #eb6b15 100%);
  color: #fff;
  border-color: transparent;
}

.res-card-emerald {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  color: #fff;
  border-color: transparent;
}

.res-label {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 4px;
  font-weight: 600;
}

.res-big {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}

.res-sub {
  font-size: 13px;
  opacity: 0.92;
}

.res-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.res-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.res-tips {
  font-size: 13px;
  color: var(--text-2);
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 12px 14px;
  border-radius: 9px;
}

.prompt-textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  background: #fff;
  color: var(--text);
  resize: vertical;
}

.tool-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

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

.faq-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.faq-card p {
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
}

/* Search & About & Pagination */
.big-search-form {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin-top: 16px;
}

.big-search-form input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border-radius: 9px;
  border: 0;
  padding: 0 14px;
  font-size: 15px;
}

.search-hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
  color: #94a3b8;
}

.search-hot-tags a {
  color: #e2e8f0;
  text-decoration: underline;
}

.empty-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
}

.empty-box p {
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.page-btn {
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}

.page-btn:hover,
.page-btn.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 900px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
}

.about-card h2 {
  font-size: 19px;
  margin-bottom: 12px;
  color: var(--blue-dark);
}

.about-card p {
  font-size: 15px;
  color: var(--text-2);
}

.check-list,
.step-list {
  padding-left: 20px;
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

.check-list li,
.step-list li {
  margin-bottom: 8px;
}

.check-list a,
.step-list a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.9fr;
  gap: 28px;
  padding-top: 42px;
  padding-bottom: 34px;
}

.footer-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 14px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.f-badge {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  font-size: 13px;
  color: #94a3b8;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-beian a {
  color: #cbd5e1;
}

.footer-beian a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Copy Toast */
.qx-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 999;
}

.qx-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-search {
    width: 190px;
  }
}

@media (max-width: 900px) {
  .main-nav,
  .header-search,
  .announce-quick {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .hero-grid,
  .content-layout,
  .game-hero-grid,
  .wb-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .prompt-grid {
    grid-template-columns: 1fr;
  }
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .games-grid-lg {
    grid-template-columns: repeat(2, 1fr);
  }
  .sticky-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }
  .header-inner {
    height: 60px;
  }
  .brand-logo img {
    height: 40px;
  }
  .hero-section {
    padding: 28px 0 32px;
  }
  .hero-copy h1 {
    font-size: 25px;
  }
  .section {
    padding: 28px 0;
  }
  .tools-grid,
  .games-grid,
  .games-grid-lg,
  .related-grid,
  .prev-next,
  .res-pair,
  .tool-faq-grid {
    grid-template-columns: 1fr;
  }
  .article-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }
  .prose {
    padding: 18px 16px;
    font-size: 15px;
  }
  .article-header-card {
    padding: 18px 16px;
  }
  .detail-title {
    font-size: 21px;
  }
  .workbench-panel {
    padding: 18px 14px;
  }
  .form-row-2,
  .form-row-3 {
    grid-template-columns: 1fr;
  }
  .mini-calc-out {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .big-search-form {
    flex-direction: column;
  }
  .pn-right {
    text-align: left;
  }
}
