:root {
  --poki-bg: #eef6ff;
  --poki-card: #ffffff;
  --poki-text: #16324f;
  --poki-muted: #5f7488;
  --poki-primary: #009cff;
  --poki-primary-dark: #007ed1;
  --poki-border: #d9e5f1;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, Arial, sans-serif; color: var(--poki-text); background: linear-gradient(180deg, #f6fbff 0%, #edf6ff 100%); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.poki-container { width: min(1200px, calc(100% - 24px)); margin: 0 auto; }
.poki-page { padding: 22px 0 28px; }
.poki-card { background: var(--poki-card); border: 1px solid var(--poki-border); border-radius: 18px; box-shadow: 0 6px 20px rgba(15, 48, 79, 0.08); }
.poki-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--poki-border); }
.poki-header-inner { display: flex; align-items: center; gap: 14px; min-height: 72px; }
.poki-logo { flex-shrink: 0; display: inline-flex; align-items: center; font-weight: 800; font-size: 1.2rem; color: #002b50; }
.poki-logo img { max-height: 56px; width: auto; }
.poki-nav-desktop { display: flex; align-items: center; gap: 8px; }
.poki-nav-desktop a { padding: 8px 12px; border-radius: 999px; font-size: 14px; color: #0d3b66; border: 1px solid transparent; }
.poki-nav-desktop a:hover { background: #e8f4ff; border-color: #d1e7fb; }
.poki-search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--poki-border); border-radius: 999px; padding: 4px; width: min(430px, 48vw); }
.poki-search input { flex: 1; border: none; background: transparent; outline: none; padding: 8px 10px; color: var(--poki-text); }
.poki-search button { border: none; border-radius: 999px; background: var(--poki-primary); color: #fff; padding: 8px 14px; cursor: pointer; font-weight: 700; }
.poki-search button:hover { background: var(--poki-primary-dark); }
.poki-menu-btn { display: none; border: none; background: var(--poki-primary); color: #fff; border-radius: 10px; padding: 8px 12px; }
.poki-mobile-nav { display: none; position: fixed; inset: 0; background: rgba(6, 25, 45, 0.45); }
.poki-mobile-nav.act { display: block; }
.poki-mobile-panel { margin-left: auto; width: min(320px, 86vw); height: 100%; background: #fff; padding: 16px; }
.poki-mobile-panel nav { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.poki-mobile-panel nav a { padding: 10px 12px; border-radius: 8px; background: #f4f8fc; }
.poki-menu-close { border: none; background: #e5eef8; border-radius: 8px; padding: 8px 10px; }
.poki-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.poki-title { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: #002b50; }
.poki-subtitle { margin: 0; font-size: 14px; color: var(--poki-muted); }
.poki-grid-games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 14px; }
.poki-game-item a { display: block; background: #fff; border: 1px solid var(--poki-border); border-radius: 12px; overflow: hidden; transition: transform .12s ease, box-shadow .12s ease; }
.poki-game-item a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22, 50, 79, 0.12); }
.poki-thumb { aspect-ratio: 1 / 1; background: #e8f2fc; }
.poki-thumb img { width: 100%; height: 100%; object-fit: cover; }
.poki-game-name { margin: 0; padding: 8px 10px 10px; font-size: 13px; font-weight: 700; color: #1f3e5b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poki-sections { display: grid; gap: 18px; }
.poki-pager { margin-top: 18px; display: flex; justify-content: center; align-items: center; gap: 10px; }
.poki-pager a, .poki-pager span { padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--poki-border); color: #274a68; font-size: 13px; }
.poki-categories { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.poki-categories a { display: block; padding: 10px 12px; border-radius: 10px; background: #f5f9ff; border: 1px solid var(--poki-border); font-weight: 600; }
.poki-legal { padding: 20px 20px 24px; background: #ffffff; }
.poki-legal .poki-title-row { margin-bottom: 12px; }
.poki-legal .poki-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 700;
  color: #16324f;
  letter-spacing: -0.02em;
}
.poki-legal .poki-categories {
  margin: 4px 0 14px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  border-bottom: 1px solid rgba(217,229,241,0.9);
}
.poki-legal .poki-categories a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
  color: #1f4f77;
  text-decoration: none;
  background: transparent;
  border: none;
  white-space: nowrap;
}
.poki-legal .poki-categories a[aria-current="page"] {
  color: #009cff;
  border-bottom: 2px solid #009cff;
}
.poki-legal .poki-categories a:hover {
  color: #007ed1;
}
.poki-legal .rich-content, .poki-legal .gp-legal-prose { line-height: 1.75; color: #284760; font-size: 15px; }
.poki-legal .rich-content p, .poki-legal .gp-legal-prose p { margin: 0 0 12px; }
.poki-footer { margin-top: 24px; border-top: 1px solid var(--poki-border); background: #fff; }
.poki-footer-inner { min-height: 78px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 0; }
.poki-footer nav { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.poki-footer nav a { color: #1f4f77; font-size: 14px; }
.poki-footer p { margin: 0; color: #5c7489; font-size: 13px; }
.poki-hero { padding: 16px; }
.poki-about-home { padding: 20px; }
.poki-about-text { margin: 0 0 10px; color: #365775; line-height: 1.7; font-size: 14px; }
.poki-about-text:last-child { margin-bottom: 0; }
@media (max-width: 1024px) { .poki-grid-games { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 767px) {
  .poki-nav-desktop, .poki-search { display: none; }
  .poki-menu-btn { display: inline-block; margin-left: auto; }
  .poki-grid-games { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .poki-categories { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .poki-page { padding: 14px 0 20px; }
  .poki-title { font-size: 1.35rem; }
}

/* —— 移动端首页（与 xiaokaopian home 同结构：Popular / Hot / Categories / About）—— */
.poki-m-home { padding-top: 16px; padding-bottom: 28px; }
.poki-m-home .poki-container { width: min(1200px, calc(100% - 20px)); }
.poki-m-gamebox { margin-bottom: 8px; }
.poki-m-describe-title { padding: 6px 0 12px; }
.poki-m-cat-title { margin: 0; }
.poki-m-cat-heading {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  color: #002b50;
  letter-spacing: -0.02em;
}
@media (max-width: 380px) {
  .poki-m-cat-heading { font-size: 17px; }
}
.poki-m-popular {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
.poki-m-popular-item { margin: 0; }
.poki-m-popular-a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #e8f2fc;
  border: 1px solid var(--poki-border);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.poki-m-popular-a:active { transform: scale(0.98); }
.poki-m-popular-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}
.poki-m-hotlist {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.poki-m-hotlist > li {
  border-bottom: 1px solid rgba(217, 229, 241, 0.95);
}
.poki-m-hotlist > li:last-child { border-bottom: none; }
.poki-m-hotlist > li > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px 10px 0;
  min-height: 64px;
  color: inherit;
  text-decoration: none;
}
.poki-m-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: #e8f2fc;
  border: 1px solid var(--poki-border);
}
.poki-m-thumb img { width: 100%; height: 100%; object-fit: cover; }
.poki-m-hotlist dl {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
}
.poki-m-hotlist dt {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #16324f;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.poki-m-hotlist dd {
  margin: 0;
  flex-shrink: 0;
  color: var(--poki-primary);
  font-size: 22px;
  line-height: 1;
  font-weight: 300;
}
.poki-m-arrow { display: inline-block; }
.poki-m-catelist { padding-bottom: 8px; }
.poki-m-categories {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  background: var(--poki-card);
  border: 1px solid var(--poki-border);
  border-radius: 14px;
  overflow: hidden;
}
.poki-m-categories > li { border-bottom: 1px solid rgba(217, 229, 241, 0.85); }
.poki-m-categories > li:last-child { border-bottom: none; }
.poki-m-categories > li > a {
  display: block;
  padding: 0;
  color: inherit;
  text-decoration: none;
}
.poki-m-categories dl {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 14px 18px;
  min-height: 52px;
}
.poki-m-categories dt {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #16324f;
}
.poki-m-categories dd {
  margin: 0;
  color: var(--poki-primary);
  font-size: 22px;
  line-height: 1;
}
.poki-m-home-seo {
  margin-top: 8px;
  padding: 18px 16px 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--poki-border);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15, 48, 79, 0.06);
}
.poki-m-home-seo__title {
  margin: 0 0 12px;
  font-size: clamp(1.1rem, 3.5vw, 1.35rem);
  font-weight: 800;
  color: #002b50;
}
.poki-m-home-seo__body {
  font-size: 14px;
  line-height: 1.75;
  color: #365775;
}
.poki-m-home-seo__body p { margin: 0 0 12px; }
.poki-m-home-seo__body p:last-child { margin-bottom: 0; }

/* News pages */
.poki-news-page,
.poki-news-article-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px;
  width: 100%;
  max-width: none;
}
.poki-container.poki-news-article-page {
  width: min(1200px, calc(100% - 24px)) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
}
.poki-container.poki-news-article-page > .poki-news-article-card,
.poki-container.poki-news-article-page > .poki-news-related {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.poki-news-hero { padding: 16px; }
.poki-news-breadcrumb { margin: 0 0 8px; color: #6f889f; font-size: 13px; }
.poki-news-breadcrumb a { color: #1f4f77; }
.poki-news-breadcrumb span { color: #6f889f; }
.poki-news-empty { padding: 18px; color: #345877; font-size: 14px; }
.poki-news-grid-wrap { display: block; }
.poki-news-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px !important; }
.poki-news-card { min-width: 0; }
.poki-news-link { display: flex !important; flex-direction: column !important; background: #fff; border: 1px solid var(--poki-border); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(22, 50, 79, 0.08); transition: transform .12s ease, box-shadow .12s ease; height: 100%; }
.poki-news-link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22, 50, 79, 0.12); }
.poki-news-cover { width: 100% !important; height: 210px !important; max-height: 210px !important; object-fit: cover !important; display: block !important; background: #e8f2fc; }
.poki-news-body { padding: 12px 12px 14px; display: grid !important; gap: 7px; }
.poki-news-date { color: #5f7488; font-size: 12px; line-height: 1.2; }
.poki-news-title { margin: 0; color: #16324f; font-size: 16px; line-height: 1.35; font-weight: 800; }
.poki-news-excerpt { margin: 0; color: #335775; font-size: 13px; line-height: 1.6; }
.poki-news-more { margin-top: 4px; color: #009cff; font-size: 13px; font-weight: 700; }

.poki-news-article-card { padding: 18px 0; width: 100%; max-width: 1200px; margin: 0 auto; }
.poki-container.poki-news-article-page .poki-news-article-card {
  max-width: 1200px !important;
}
.poki-news-article-page > .poki-news-related { width: 100%; max-width: none; margin: 0; }
.poki-news-article-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: 12px; margin-top: 12px; }
.poki-news-article-excerpt { margin: 12px 0 0; color: #335775; font-size: 15px; line-height: 1.7; font-weight: 600; }
.poki-news-prose { margin-top: 14px; color: #284760; font-size: 15px; line-height: 1.8; }
.poki-news-prose p { margin: 0 0 12px; }
.poki-news-prose h2, .poki-news-prose h3 { color: #16324f; margin: 1.2em 0 0.55em; }
.poki-news-prose img {
  width: 100%;
  max-width: min(860px, 100%);
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 14px auto;
}
.poki-news-prose,
.poki-news-prose > * { width: 100%; max-width: 100%; box-sizing: border-box; }
.poki-news-article-card > .poki-news-breadcrumb,
.poki-news-article-card > .poki-title,
.poki-news-article-card > .poki-subtitle,
.poki-news-article-card > .poki-news-article-excerpt,
.poki-news-article-card > .poki-news-prose,
.poki-news-article-card > p {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.poki-news-back { color: #009cff; font-weight: 700; }
.poki-news-related { padding: 16px; }
.poki-news-grid-related { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.poki-news-grid-related .poki-news-title { font-size: 14px; }
.poki-news-grid-related .poki-news-cover { height: 170px !important; max-height: 170px !important; }

@media (max-width: 1024px) {
  .poki-news-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .poki-news-grid-related { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width: 767px) {
  .poki-news-grid,
  .poki-news-grid-related { grid-template-columns: 1fr !important; gap: 10px !important; }
  .poki-news-title { font-size: 15px; }
  .poki-news-cover { height: 190px !important; max-height: 190px !important; }
  .poki-news-grid-related .poki-news-cover { height: 180px !important; max-height: 180px !important; }
  .poki-news-article-card,
  .poki-news-related,
  .poki-news-hero { padding: 12px; }
  .poki-news-prose { font-size: 14px; line-height: 1.72; }
}
