/* PlayNow — 简洁现代 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.25rem;
  --s6: 1.5rem;
  --s8: 2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;
  --bg: #fafafa;
  --card: #ffffff;
  --border: #eee;
  --text: #0a0a0a;
  --muted: #737373;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --accent-soft: rgba(14, 165, 233, 0.1);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--s5) var(--s6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.header-brand { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.logo:hover { color: var(--accent); }
.tagline {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 400;
}
.header-right { display: flex; align-items: center; gap: var(--s4) var(--s6); flex-wrap: wrap; }

.search-form { width: 200px; min-width: 0; }
.search-form input {
  width: 100%;
  padding: var(--s2) var(--s4);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.search-form input::placeholder { color: var(--muted); }
.search-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.nav-links { display: flex; flex-wrap: wrap; gap: var(--s2); }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: var(--s2) var(--s3);
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

main { padding-bottom: var(--s16); }
.main-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s6);
}

/* 布局：主栏 + 右侧边栏 */
.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8) var(--s10);
}
@media (min-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr 260px;
    align-items: start;
  }
  .aside-col { position: sticky; top: var(--s6); }
}
.main-col { min-width: 0; }
.aside-col { min-width: 0; }

/* 广告位：居中且不撑破布局 */
.ad-slot {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 90px;
  margin: var(--s4) 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 28px var(--s4) var(--s4);
  background: #f5f5f5;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-sizing: border-box;
}
.ad-slot::before {
  content: "Advertisement";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ad-slot > * {
  max-width: 100%;
  flex-shrink: 0;
}

.hero-outer { margin-bottom: var(--s8); }
.hero-outer { padding: 0; }
.hero-outer .featured-card {
  display: block;
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
}
.hero-outer .featured-img {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--border);
}
.hero-outer .featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.hero-outer .featured-card:hover .featured-img img { transform: scale(1.02); }
.hero-outer .featured-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--s8) var(--s6) var(--s6);
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: #fff;
}
.hero-outer .featured-title {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 var(--s2);
  line-height: 1.2;
}
.hero-outer .featured-meta {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: var(--s4);
}
.hero-outer .featured-cta {
  display: inline-block;
  padding: var(--s3) var(--s5);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.hero-outer .featured-card:hover .featured-cta { background: var(--accent-hover); }

.section-heading,
.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 var(--s5);
}

.categories-section { margin-bottom: var(--s6); }
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
}
.categories a {
  display: inline-block;
  padding: var(--s2) var(--s4);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.categories a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
/* 边栏内分类竖排 */
.categories--stack {
  flex-direction: column;
  gap: var(--s2);
}
.categories--stack a {
  display: block;
  padding: var(--s3) var(--s4);
}

.trending-section { margin-bottom: var(--s6); }
.trending-list {
  display: flex;
  gap: var(--s4);
  overflow-x: auto;
  padding-bottom: var(--s2);
  scroll-snap-type: x proximity;
}
.trending-list .game-card { flex: 0 0 180px; scroll-snap-align: start; }
@media (min-width: 768px) {
  .trending-list { flex-wrap: wrap; overflow: visible; }
  .trending-list .game-card { flex: 0 0 calc(25% - var(--s4) * 3 / 4); }
}

.about-section { margin-bottom: 0; }
.about-card {
  padding: var(--s5) var(--s6);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}
.about-card p { margin: 0; }
.page-layout .about-card { max-width: none; }

.games-section { margin-bottom: 0; }
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s5);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 640px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s6); }
}
.game-grid > li { margin: 0; }
.game-card {
  margin: 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.game-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.game-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.game-card-thumb,
.game-card .thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--border);
}
.game-card-thumb img,
.game-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.game-card:hover .game-card-thumb img,
.game-card:hover .thumb img { transform: scale(1.05); }
.game-card-body,
.game-card .info {
  display: block;
  padding: var(--s4) var(--s5);
}
.game-card-title,
.game-card .info .title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.game-card-meta,
.game-card .info .meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

.featured { margin-bottom: var(--s8); }
.featured-card {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}
.featured-card:hover { box-shadow: var(--shadow-md); }
.featured-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--border); }
.featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--s6) var(--s6) var(--s5);
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: #fff;
}
.featured-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 var(--s2); }
.featured-meta { font-size: 0.8125rem; opacity: 0.9; margin-bottom: var(--s3); }
.featured-cta {
  display: inline-block;
  padding: var(--s2) var(--s4);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.featured-card:hover .featured-cta { background: var(--accent-hover); }

.page-title {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 var(--s6);
  color: var(--text);
}

main .main-wrap { padding-top: var(--s8); }
.detail-hero {
  display: grid;
  gap: var(--s8);
  margin-bottom: var(--s10);
}
.detail-hero .thumb-wrap {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-md);
}
.detail-hero .thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-hero .meta h1 {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 var(--s4);
}
.detail-hero .meta .play-btn {
  display: inline-block;
  padding: var(--s3) var(--s6);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-sm);
  text-decoration: none;
  margin-bottom: var(--s4);
  transition: background 0.2s;
}
.detail-hero .meta .play-btn:hover { background: var(--accent-hover); }
.detail-hero .meta .desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 var(--s2);
  line-height: 1.5;
}
.detail-hero .meta .game-desc {
  margin-top: var(--s5);
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
}
.detail-hero .meta .game-desc p {
  margin: 0 0 var(--s4);
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}
.detail-hero .meta .game-desc p:last-child { margin-bottom: 0; }

.share-block {
  margin-top: var(--s5);
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
}
.share-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--s3);
}
.share-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); }
.share-links a,
.share-copy {
  display: inline-block;
  padding: var(--s2) var(--s4);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}
.share-links a:hover,
.share-copy:hover { background: var(--accent); color: #fff; }
.share-block-footer { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--border); }
.share-block-footer .share-label { margin-bottom: var(--s2); }

.comments-section {
  margin-top: var(--s10);
  padding-top: var(--s8);
  border-top: 1px solid var(--border);
}
.comments-section h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 var(--s5);
}
.comment-form input[type="text"],
.comment-form textarea {
  width: 100%;
  padding: var(--s3) var(--s4);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: var(--s4);
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.comment-form textarea { min-height: 100px; resize: vertical; }
.comment-form button {
  padding: var(--s3) var(--s5);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.comment-form button:hover { background: var(--accent-hover); }
.comment-list { margin-top: var(--s5); }
.comment-item {
  padding: var(--s5);
  background: var(--card);
  border-radius: var(--radius-sm);
  margin-bottom: var(--s4);
  box-shadow: var(--shadow);
}
.comment-item .author { font-size: 0.9375rem; font-weight: 600; margin-bottom: 4px; }
.comment-item .body { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
.comment-item .date { font-size: 0.75rem; color: var(--muted); margin-top: var(--s2); }

.search-result-count { font-size: 0.9375rem; color: var(--muted); margin-bottom: var(--s5); }
.empty-state {
  text-align: center;
  padding: var(--s12) var(--s6);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.empty-state .icon { font-size: 2.5rem; margin-bottom: var(--s4); display: block; opacity: 0.6; }
.empty-state a { color: var(--accent); text-decoration: none; font-weight: 500; }
.empty-state a:hover { text-decoration: underline; }

.tag-desc {
  margin-bottom: var(--s8);
  padding: var(--s5) var(--s6);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}
.tag-desc p { margin: 0; }

.legal-content,
.about-content,
.contact-content {
  max-width: 62ch;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
}
.legal-content h2,
.about-content h2,
.contact-content h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: var(--s8) 0 var(--s3);
}
.legal-content h2:first-of-type,
.about-content h2:first-of-type,
.contact-content h2:first-of-type { margin-top: var(--s4); }
.legal-content p,
.about-content p,
.contact-content p { margin: 0 0 var(--s4); }
.contact-content a { color: var(--accent); text-decoration: none; }
.contact-content a:hover { text-decoration: underline; }

.faq-content { max-width: 62ch; }
.faq-list { margin: 0; padding: 0; }
.faq-item {
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 var(--s2);
}
.faq-a { margin: 0; font-size: 0.9375rem; color: var(--muted); line-height: 1.65; }
.faq-a a { color: var(--accent); text-decoration: none; }
.faq-a a:hover { text-decoration: underline; }

.site-footer {
  margin-top: var(--s16);
  padding: var(--s8) var(--s6) var(--s6);
  border-top: 1px solid var(--border);
  background: var(--card);
}
.site-footer .inner { max-width: var(--max); margin: 0 auto; }
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6) var(--s8);
  margin-bottom: var(--s6);
}
@media (min-width: 640px) {
  .footer-cols { grid-template-columns: 1fr 1fr auto; }
}
.footer-col h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 var(--s3);
}
.footer-nav,
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  font-size: 0.9375rem;
}
.footer-nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.footer-nav a:hover,
.footer-links a:hover { color: var(--text); }
.footer-copy,
.site-footer .copy {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 767px) {
  .hero-outer .featured-content { padding: var(--s6) var(--s5) var(--s5); }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
}
@media (min-width: 640px) {
  .detail-hero { grid-template-columns: 1.2fr 1fr; align-items: start; }
}
