/* GLOBAL BODY BACKGROUND & TEXT COLOR */
.page-news {
  color: #FFF6D6; /* Text Main */
  background-color: transparent; /* Body background is handled by shared.css var(--site-bg) */
}

/* Common styles for sections and containers */
.page-news__section {
  padding: 40px 0;
  margin: 0 auto;
  max-width: 1280px;
  width: 100%;
  box-sizing: border-box;
}

.page-news__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-news__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

/* Hero Section */
.page-news__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: #0A0A0A; /* Background color */
  position: relative;
  overflow: hidden;
}

.page-news__hero-section .page-news__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-news__hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
}

.page-news__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Using clamp for responsive H1 */
  font-weight: 800;
  color: #FFD36B; /* Glow color */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: #FFF6D6;
  margin-bottom: 25px;
}

.page-news__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text for light button */
  border: none;
}

.page-news__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Main color */
  border: 2px solid #F2C14E; /* Border color */
}

.page-news__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
}

.page-news__btn-tertiary {
  background: #111111; /* Card BG */
  color: #F2C14E;
  border: 1px solid #3A2A12; /* Border color */
  font-size: 14px;
  padding: 8px 18px;
}

.page-news__btn-tertiary:hover {
  background: #F2C14E;
  color: #111111;
}

.page-news__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Intro Section */
.page-news__intro-section {
  background-color: #0A0A0A; /* Background color */
}

.page-news__intro-section p {
  font-size: 17px;
  line-height: 1.7;
  color: #FFF6D6;
  margin-bottom: 20px;
  text-align: justify;
}

/* Categories Section */
.page-news__categories-section {
  background-color: #0A0A0A;
}

.page-news__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-news__category-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.2);
}

.page-news__category-image {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
}

.page-news__category-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFD36B; /* Glow color */
  padding: 15px 20px 10px;
}

.page-news__category-description {
  font-size: 15px;
  line-height: 1.6;
  color: #FFF6D6;
  padding: 0 20px;
  flex-grow: 1;
}

.page-news__category-card .page-news__btn-tertiary {
  margin: 20px;
  align-self: flex-start;
}

/* Latest Articles Section */
.page-news__latest-articles {
  background-color: #0A0A0A;
}

.page-news__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-news__article-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.2);
}

.page-news__article-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-news__article-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-news__article-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.page-news__article-title a {
  color: #FFD36B; /* Glow color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #F2C14E; /* Main color */
}

.page-news__article-meta {
  font-size: 14px;
  color: #F2C14E; /* Main color */
  margin-bottom: 15px;
}

.page-news__article-summary {
  font-size: 15px;
  line-height: 1.6;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  color: #F2C14E; /* Main color */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.page-news__read-more:hover {
  color: #FFD36B; /* Glow color */
}

.page-news__view-all-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* Benefits Section */
.page-news__benefits-section {
  background-color: #0A0A0A;
}

.page-news__benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-news__benefit-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.2);
}

.page-news__benefit-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFD36B; /* Glow color */
  margin-bottom: 10px;
}

.page-news__benefit-description {
  font-size: 15px;
  line-height: 1.6;
  color: #FFF6D6;
}

/* FAQ Section */
.page-news__faq-section {
  background-color: #0A0A0A;
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #3A2A12; /* Border color */
  overflow: hidden;
  background: #111111; /* Card BG */
}

details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

details.page-news__faq-item summary.page-news__faq-question::-webkit-details-marker {
  display: none;
}

details.page-news__faq-item summary.page-news__faq-question:hover {
  background: rgba(242, 193, 78, 0.1);
}

.page-news__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF6D6;
}

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Main color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: rgba(17, 17, 17, 0.8); /* Slightly darker for contrast */
  border-radius: 0 0 5px 5px;
}

.page-news__faq-answer p {
  font-size: 15px;
  line-height: 1.6;
  color: #FFF6D6;
}

/* CTA Section */
.page-news__cta-section {
  background-color: #0A0A0A;
  padding-bottom: 60px;
}

.page-news__cta-section p {
  font-size: 17px;
  line-height: 1.6;
  color: #FFF6D6;
  text-align: center;
  margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 1023px) {
  .page-news__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-news__hero-brand,
  .page-news__hero-jackpot {
    display: none !important;
  }
  .page-news__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-news__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-news__game-trial-topbar,
  .page-news__game-trial-bottombar {
    display: none !important;
  }
  .page-news__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-news__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-news__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-news__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
  .page-news__hero-image-wrapper {
    aspect-ratio: 4 / 3; /* Adjust for tablet */
    max-width: 700px;
  }
}

@media (min-width: 1024px) {
  .page-news__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-news__hero-brand,
  .page-news__hero-jackpot,
  .page-news__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-news__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-news__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-news__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-news__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-news__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

@media (max-width: 768px) {
  /* General mobile adaptations */
  .page-news__section {
    padding: 30px 0;
  }

  .page-news__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  /* Hero Section */
  .page-news__hero-section .page-news__container {
    gap: 20px;
  }

  .page-news__main-title {
    font-size: 28px;
  }

  .page-news__hero-description {
    font-size: 16px;
  }

  .page-news__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news__btn-tertiary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 15px !important;
  }

  .page-news__hero-image-wrapper {
    aspect-ratio: 16 / 9;
  }

  /* Intro Section */
  .page-news__intro-section p {
    font-size: 15px;
  }

  /* Categories Section */
  .page-news__category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__category-title {
    font-size: 20px;
  }

  .page-news__category-description {
    font-size: 14px;
  }

  /* Latest Articles Section */
  .page-news__article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__article-image {
    height: 200px;
  }

  .page-news__article-title {
    font-size: 18px;
  }

  .page-news__article-summary {
    font-size: 14px;
  }

  /* Benefits Section */
  .page-news__benefits-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__benefit-title {
    font-size: 18px;
  }

  .page-news__benefit-description {
    font-size: 14px;
  }

  /* FAQ Section */
  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px;
  }
  .page-news__faq-qtext {
    font-size: 15px;
  }
  .page-news__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 15px 15px;
  }
  .page-news__faq-answer p {
    font-size: 14px;
  }

  /* CTA Section */
  .page-news__cta-section p {
    font-size: 15px;
  }

  /* Image responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* No promo strip, hot games, brand intro for news page */
  /* These are for homepage only, but must be included if explicitly mentioned as '必写清单' */
  /* The general rule for 768px for promo/hot games is not applicable here as these modules are not on this page. */
  /* The prompt mentions '优惠 `__promo-strip`' and '热门 `__hot-games`' specifically for homepage. */
  /* However, the instruction states '必须包含以下每一类对应的 `@media (max-width: 768px) { ... }` 完整代码块，不得合并为一段、不得用「同上」代替、不得省略任一模块'. */
  /* Since this is a news page, these elements are not present. I will omit the specific styles for them to avoid generating unused CSS, assuming the '必写清单' refers to elements that are actually present on a given page, OR, if they are not present, that a minimal placeholder for the media query block is sufficient. Given the strictness, it's safer to include the generic rules for images and buttons which ARE present. */
  /* If the system expects the *exact* CSS for promo/hot games even if not on page, this is a conflict. I will prioritize page content specific CSS. */
  /* Re-reading: '返回的 `css` 字段中**必须**包含以下每一类对应的 `@media (max-width: 768px) { ... }` 完整代码块... 缺少以上任一类即视为未按要求完成，必须逐段输出。' This is extremely strict. I must include them. */

  /* 优惠 `__promo-strip` - Placeholder for strict requirement */
  .page-news__promo-strip-track {
    grid-template-columns: repeat(4, 1fr);
    overflow-x: hidden;
    padding: 0 15px;
  }
  .page-news__promo-card {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .page-news__promo-card-image {
    width: 100%;
    height: auto;
  }
  .page-news__promo-card-title {
    font-size: 16px;
  }
  .page-news__promo-card-description {
    font-size: 14px;
  }

  /* 热门 `__hot-games` - Placeholder for strict requirement */
  .page-news__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
  }
  .page-news__hot-games-card {
    text-align: center;
  }
  .page-news__hot-games-image {
    width: 100%;
    height: auto;
  }
  .page-news__hot-games-name,
  .page-news__hot-games-rtp,
  .page-news__hot-games-desc {
    display: none;
  }

  /* 品牌 `__brand-intro` (Placeholder) */
  .page-news__brand-intro {
    padding: 20px 15px;
  }
  .page-news__brand-intro-content {
    text-align: center;
  }
  .page-news__brand-intro-title {
    font-size: 22px;
  }

  /* 中奖条 `__winner-ticker` (Placeholder) */
  .page-news__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    padding: 10px 0;
    z-index: 999;
  }
  body {
    padding-bottom: 40px; /* Adjust body padding for fixed ticker */
  }
}

/* Game Trial specific CSS from prompt - required to be included */
.page-news__game-trial-overlay{z-index:5;pointer-events:auto;}
.page-news__game-trial-overlay.is-hidden{display:none!important;pointer-events:none!important;}.page-news__game-trial-start{z-index:6;pointer-events:auto;touch-action:manipulation;}.page-news__game-trial-shell{border:1px solid rgba(212,175,55,.45);border-radius:10px;overflow:hidden;}.page-news__reward-modal{position:fixed;inset:0;z-index:10000;}