/* CrazyPokiGame custom styles (Bootstrap 5 based, Tailwind-like feel) */
:root { --cpg-bg: #020617; --cpg-bg-soft: #020617; --cpg-surface: #020617; --cpg-surface-soft: #020617; --cpg-surface-strong: #0b1120; --cpg-border-subtle: rgba(148, 163, 184, 0.35); --cpg-text-main: #e5e7eb; --cpg-text-muted: #9ca3af; --cpg-accent: #6366f1; --cpg-accent-soft: rgba(99, 102, 241, 0.12); --cpg-accent-strong: #4f46e5; --cpg-danger: #f97373; --cpg-radius-lg: 1.25rem; --cpg-radius-xl: 1.75rem; --cpg-radius-pill: 999px; --cpg-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.85); }
html, body { height: 100%; }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif; background: radial-gradient(circle at top, #1e293b 0, #020617 45%, #000 100%); color: var(--cpg-text-main); }
.cpg-page { min-height: 100vh; display: flex; flex-direction: column; }
.cpg-navbar { background-color: rgba(15, 23, 42, 0.9); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(148, 163, 184, 0.18); }
.cpg-navbar-brand { font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 2rem; }
.cpg-navbar-brand span { background: linear-gradient(120deg, #22d3ee, #6366f1, #e879f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cpg-main { flex: 1; padding-top: 5.25rem; padding-bottom: 3rem; }
.cpg-footer { border-top: 1px solid rgba(148, 163, 184, 0.18); background: radial-gradient(circle at top, #1e293b 0, #020617 55%, #000 100%); color: var(--cpg-text-muted); }
/* Hero */
.cpg-hero { border-radius: var(--cpg-radius-xl); background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.45), transparent 60%), radial-gradient(circle at top right, rgba(236, 72, 153, 0.35), transparent 55%), linear-gradient(135deg, #020617 0, #0b1120 40%, #020617 100%); border: 1px solid rgba(148, 163, 184, 0.28); box-shadow: var(--cpg-shadow-soft); }
.cpg-hero-eyebrow { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; color: #93c5fd; }
.cpg-hero-title { font-weight: 800; letter-spacing: -0.03em; }
.cpg-hero-subtitle { color: var(--cpg-text-muted); }
.cpg-hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cpg-badge-pill { border-radius: var(--cpg-radius-pill); padding: 0.25rem 0.7rem; font-size: 0.75rem; color: #e5e7eb; border: 1px solid rgba(148, 163, 184, 0.4); background: rgba(15, 23, 42, 0.7); }
.cpg-badge-soft { border-radius: 999px; padding: 0.2rem 0.6rem; font-size: 0.7rem; color: #bfdbfe; background-color: rgba(37, 99, 235, 0.2); }
/* Buttons */
.btn-cpg-primary { border-radius: var(--cpg-radius-pill); border: none; padding: 0.7rem 1.6rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; font-size: 0.8rem; background-image: linear-gradient(120deg, #22d3ee, #6366f1, #ec4899); color: #0b1120; box-shadow: 0 18px 45px rgba(56, 189, 248, 0.45); }
.btn-cpg-primary:hover { color: #020617; filter: brightness(1.08); box-shadow: 0 22px 55px rgba(56, 189, 248, 0.6); }
.btn-cpg-ghost { border-radius: var(--cpg-radius-pill); border: 1px solid rgba(148, 163, 184, 0.45); padding: 0.6rem 1.5rem; font-weight: 500; color: var(--cpg-text-main); background: rgba(15, 23, 42, 0.6); }
.btn-cpg-ghost:hover { border-color: rgba(191, 219, 254, 0.8); background: rgba(15, 23, 42, 0.95); color: #e5e7eb; }
/* Game cards */
.cpg-card { background: radial-gradient(circle at top, rgba(15, 23, 42, 0.2), transparent 65%), linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.93)); border-radius: var(--cpg-radius-lg); border: 1px solid rgba(75, 85, 99, 0.75); box-shadow: 0 16px 35px rgba(15, 23, 42, 0.7); overflow: hidden; transition: transform 180ms ease, box-shadow 180ms ease, border-color 140ms ease, background 180ms ease; }
.cpg-card:hover { transform: translateY(-5px) scale(1.01); box-shadow: 0 22px 50px rgba(15, 23, 42, 0.85); border-color: rgba(96, 165, 250, 0.95); }
.cpg-card-thumb-wrapper { position: relative; overflow: hidden; }
.cpg-card-thumb { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.cpg-card-pill { position: absolute; inset: auto 0.75rem 0.75rem 0.75rem; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.cpg-card-meta { font-size: 0.75rem; color: var(--cpg-text-muted); max-height: 3.75rem; overflow: hidden; }
.cpg-card-title { font-size: 1rem; font-weight: 600; }
.cpg-tag { border-radius: var(--cpg-radius-pill); border: 1px solid rgba(148, 163, 184, 0.4); padding: 0.2rem 0.7rem; font-size: 0.72rem; color: #e5e7eb; background: rgba(15, 23, 42, 0.9); }
.cpg-tag:hover { border-color: rgba(129, 140, 248, 0.9); background: rgba(30, 64, 175, 0.9); color: #eff6ff; }
.cpg-tag-large { border-radius: var(--cpg-radius-pill); border: 1px solid rgba(148, 163, 184, 0.5); padding: 0.5rem 1.2rem; font-size: 0.9rem; font-weight: 600; color: #e5e7eb; background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9)); display: inline-block; transition: all 180ms ease; }
.cpg-tag-large:hover { border-color: rgba(129, 140, 248, 0.95); background: linear-gradient(135deg, rgba(30, 64, 175, 0.95), rgba(37, 99, 235, 0.9)); color: #eff6ff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4); }
.cpg-tag-count { color: var(--cpg-text-muted); font-weight: 500; }
/* Filters / pills */
.cpg-filter-bar { background: rgba(15, 23, 42, 0.98); border-radius: var(--cpg-radius-lg); border: 1px solid rgba(148, 163, 184, 0.45); }
.cpg-filter-pill { border-radius: var(--cpg-radius-pill); border: 1px solid transparent; padding: 0.3rem 0.9rem; font-size: 0.8rem; color: var(--cpg-text-muted); background: transparent; }
.cpg-filter-pill.active, .cpg-filter-pill:hover { border-color: rgba(129, 140, 248, 0.98); color: #e5e7eb; background: rgba(30, 64, 175, 0.9); }
/* Breadcrumbs */
.cpg-breadcrumb { font-size: 0.8rem; color: var(--cpg-text-muted); }
.cpg-breadcrumb a { color: #bfdbfe; text-decoration: none; }
.cpg-breadcrumb a:hover { text-decoration: underline; }
/* Article / game detail */
.cpg-game-shell { border-radius: var(--cpg-radius-xl); background: radial-gradient(circle at top, rgba(15, 23, 42, 0.6), transparent 70%), linear-gradient(160deg, #020617, #020617 40%, #020617 100%); border: 1px solid rgba(148, 163, 184, 0.4); box-shadow: var(--cpg-shadow-soft); }
.cpg-game-frame { position: relative; background: radial-gradient(circle at top, #1f2937 0, #020617 60%); border-radius: calc(var(--cpg-radius-xl) - 0.5rem); border: 1px solid rgba(148, 163, 184, 0.55); overflow: hidden; }
.cpg-game-placeholder { display: flex; align-items: center; justify-content: center; min-height: min(70vh, 640px); color: var(--cpg-text-muted); font-size: 0.9rem; }
.iframe-container { display: flex; align-items: center; justify-content: center; width: 100%; min-height: min(70vh, 640px); color: var(--cpg-text-muted); font-size: 0.9rem; position: relative; }
.iframe-wrapper { width: 100%; max-width: 1200px;     /* 可选：限制最大宽度 */ height: 100%; flex: 1; position: relative; margin: 0 auto;     /* 居中 */ }
.iframe-container iframe { width: 100%; height: 100%; border: none; display: block; position: absolute; top: 0; left: 0; box-sizing: border-box; }
.cpg-game-meta { color: var(--cpg-text-muted); font-size: 0.85rem; }
.cpg-section-title { font-size: 1.05rem; font-weight: 600; }
.cpg-prose p { color: var(--cpg-text-muted); font-size: 0.95rem; line-height: 1.7; }
.cpg-prose p.lead { font-size: 1.05rem; color: #e5e7eb; margin-bottom: 1.5rem; }
.cpg-prose h2, .cpg-prose h3 { color: #e5e7eb; margin-top: 1.75rem; margin-bottom: 0.75rem; font-weight: 600; }
.cpg-prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.cpg-prose h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.cpg-prose ul, .cpg-prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.cpg-prose li { margin-bottom: 0.5rem; color: var(--cpg-text-muted); line-height: 1.6; }
.cpg-prose a { color: #60a5fa; text-decoration: underline; text-decoration-color: rgba(96, 165, 250, 0.4); transition: color 150ms ease, text-decoration-color 150ms ease; }
.cpg-prose a:hover { color: #93c5fd; text-decoration-color: rgba(147, 197, 253, 0.6); }
.cpg-prose strong { color: #e5e7eb; font-weight: 600; }
.cpg-prose hr { border: none; border-top: 1px solid rgba(148, 163, 184, 0.3); margin: 2rem 0; }
/* Tag chip cloud */
.cpg-tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }
/* Layout helpers */
.cpg-chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cpg-scroll-x { overflow-x: auto; scrollbar-width: thin; }
.cpg-scroll-x::-webkit-scrollbar { height: 6px; }
.cpg-scroll-x::-webkit-scrollbar-thumb { background-color: rgba(148, 163, 184, 0.6); border-radius: 999px; }
.cpg-text-xs { font-size: 0.75rem; }
.cpg-text-sm { font-size: 0.85rem; }
.cpg-fw-600 { font-weight: 600; }
.cpg-border-subtle { border-color: rgba(148, 163, 184, 0.35) !important; }
.cpg-muted { color: var(--cpg-text-muted); }
.cpg-badge-category { border-radius: 999px; font-size: 0.7rem; padding: 0.25rem 0.7rem; background: rgba(30, 64, 175, 0.9); color: #e0f2fe; }
.cpg-badge-category.io { background: linear-gradient(120deg, #22d3ee, #6366f1); color: #0f172a; }
.cpg-badge-category.multiplayer { background: linear-gradient(120deg, #34d399, #22c55e); color: #022c22; }
.cpg-badge-category.shooting { background: linear-gradient(120deg, #fb7185, #f97316); color: #451a03; }
/* Responsive */
@media (max-width:767.98px) {
.cpg-main { padding-top: 4.75rem; }
.cpg-hero { border-radius: 1.4rem; }
}
