/* Base Styles for page-news */
.page-news {
  background: #0A0A0A; /* Background */
  color: #FFF6D6; /* Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, relying on body for header-offset */
}

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

.page-news__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #F2C14E; /* Primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-news__section-description {
  font-size: 18px;
  color: #FFF6D6;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: #FFD36B; /* Auxiliary color for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-news p {
  margin-bottom: 15px;
  color: #FFF6D6;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  margin-bottom: 40px;
  padding-top: 0; /* Rely on body padding-top, only 10px for page-news */
}

.page-news__hero-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
}

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

.page-news__hero-content {
  position: relative;
  padding: 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.8) 0%, #0A0A0A 100%); /* Dark overlay for text readability */
  margin-top: -5px; /* Slightly overlap with image for smooth transition */
  border-radius: 0 0 10px 10px;
}

.page-news__main-title {
  font-size: 42px;
  font-weight: 800;
  color: #FFD36B; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__description {
  font-size: 20px;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button */
.page-news__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

/* News Archive Section */
.page-news__archive-section {
  padding: 40px 0;
}

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

.page-news__news-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

.page-news__card-content {
  padding: 25px;
}

.page-news__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-news__card-title a:hover {
  color: #F2C14E; /* Primary color on hover */
}

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

.page-news__card-excerpt {
  font-size: 16px;
  color: #FFF6D6;
  margin-bottom: 20px;
}

.page-news__read-more {
  display: inline-block;
  color: #F2C14E; /* Primary color */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

/* Pagination */
.page-news__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  gap: 10px;
}

.page-news__pagination-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: #111111; /* Card BG */
  color: #FFF6D6;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #3A2A12; /* Border */
}

.page-news__pagination-link:hover {
  background: #F2C14E; /* Primary color */
  color: #0A0A0A;
}

.page-news__pagination-link--active {
  background: #F2C14E; /* Primary color */
  color: #0A0A0A;
  font-weight: 700;
  border-color: #F2C14E;
}

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

.page-news__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-news__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

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

.page-news__cta-description {
  font-size: 18px;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 800px;
}

.page-news__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-news__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-news__btn-secondary {
  background: #111111;
  color: #F2C14E; /* Primary color */
  border: 2px solid #F2C14E; /* Primary color for border */
}

.page-news__btn-secondary:hover {
  background: #F2C14E;
  color: #0A0A0A;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
}

.page-news__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}

details.page-news__faq-item {
  margin-bottom: 0;
  border-radius: 10px;
  border: 1px solid #3A2A12; /* Border */
  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 25px;
  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: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF6D6;
}

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

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 20px;
  background: #0A0A0A; /* Background */
  border-radius: 0 0 10px 10px;
  color: #FFF6D6;
}

/* Content Area */
.page-news__content-area {
  padding: 40px 0;
}

.page-news__content-area p {
  margin-bottom: 20px;
  font-size: 17px;
  color: #FFF6D6;
}

/* Responsive Design */
/* Homepage Trial Layout CSS (as required to be included, though not directly applied to news content) */
@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;
  }
}

@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;
  }
  /* Placeholder for other PC modules as requested, e.g., __promo-strip, __hot-games */
  .page-news__promo-strip { margin-top: 16px; }
  .page-news__promo-strip-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1280px; margin: 0 auto; padding: 0 15px; }
  .page-news__promo-card { background: #111111; border: 1px solid #3A2A12; border-radius: 10px; overflow: hidden; display: flex; flex-direction: row; align-items: center; padding: 15px; }
  .page-news__promo-card-image { width: 80px; height: 80px; object-fit: cover; border-radius: 5px; margin-right: 15px; }
  .page-news__promo-card-content { flex: 1; }
  .page-news__promo-card-title { font-size: 18px; color: #FFD36B; margin-bottom: 5px; }
  .page-news__promo-card-desc { font-size: 14px; color: #FFF6D6; }

  .page-news__hot-games-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; max-width: 1280px; margin: 0 auto; padding: 0 15px; text-align: center; }
  .page-news__hot-games-card { background: #111111; border: 1px solid #3A2A12; border-radius: 10px; overflow: hidden; padding: 15px; }
  .page-news__hot-games-image { width: 100%; height: auto; object-fit: cover; border-radius: 5px; margin-bottom: 10px; }
  .page-news__hot-games-name { font-size: 16px; font-weight: 600; color: #FFD36B; margin-bottom: 5px; }
  .page-news__hot-games-rtp { font-size: 14px; color: #F2C14E; margin-bottom: 5px; }
  .page-news__hot-games-desc { font-size: 12px; color: #FFF6D6; display: block; }

  .page-news__hero-brand, .page-news__hero-jackpot { display: block; }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__hero-content {
    padding: 30px 20px;
  }
  .page-news__main-title {
    font-size: clamp(28px, 7vw, 36px);
    margin-bottom: 15px;
  }
  .page-news__description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 1. 首屏试玩: Covered by 1023px block, but ensuring general rules */
  .page-news__hero-section .page-news__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 2. 优惠 __promo-strip */
  .page-news__promo-strip-track {
    grid-template-columns: repeat(1, 1fr) !important; /* Single column */
    gap: 15px !important;
    overflow-x: hidden !important;
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__promo-card {
    flex-direction: column !important; /* Stack image and text */
    text-align: center;
    padding: 20px !important;
  }
  .page-news__promo-card-image {
    margin-right: 0 !important;
    margin-bottom: 15px !important;
    width: 100px !important;
    height: 100px !important;
  }
  .page-news__promo-card-title { font-size: 18px !important; }
  .page-news__promo-card-desc { font-size: 14px !important; }

  /* 3. 热门 __hot-games */
  .page-news__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns */
    gap: 15px !important;
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__hot-games-name { font-size: 14px !important; }
  .page-news__hot-games-rtp { font-size: 12px !important; }
  .page-news__hot-games-desc { display: none !important; } /* Hide description */

  /* 4. 品牌 __brand-intro */
  .page-news__brand-intro {
    padding: 30px 15px !important;
    text-align: center;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__brand-intro-title { font-size: 24px !important; }
  .page-news__brand-intro-text { font-size: 15px !important; }

  /* 5. 中奖条 __winner-ticker */
  .page-news__winner-ticker {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    padding: 10px 15px !important;
    box-sizing: border-box !important;
  }
  body {
    padding-bottom: 50px; /* Adjust body padding for fixed ticker */
  }

  /* 6. 通用图片与容器 */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__container,
  .page-news__hero-container,
  .page-news__news-card,
  .page-news__cta-container,
  .page-news__faq-item,
  .page-news__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 7. 按钮与按钮容器 */
  .page-news__cta-button,
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important;
    gap: 10px;
  }

  /* 8. 其他模块 (FAQ) */
  details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
  .page-news__faq-qtext { font-size: 16px; }
  .page-news__faq-toggle { font-size: 24px; width: 24px; height: 24px; margin-left: 10px; }
  details.page-news__faq-item .page-news__faq-answer { padding: 0 15px 15px; }

  .page-news__section-title { font-size: 28px; padding-top: 30px; }
  .page-news__section-description { font-size: 16px; margin-bottom: 30px; }
  .page-news__news-grid { grid-template-columns: repeat(1, 1fr); }
  .page-news__news-card-image { height: 180px; }
  .page-news__card-title { font-size: 20px; }
  .page-news__card-content { padding: 20px; }
  .page-news__cta-title { font-size: 28px; }
  .page-news__cta-description { font-size: 16px; }
  .page-news__cta-container { padding: 30px; }
}

/* Color Contrast Fixes (as required for safety) */
.page-news {
  color: #FFF6D6; /* Text Main */
}
.page-news__card,
.page-news__news-card {
  background: #111111; /* Card BG */
  color: #FFF6D6; /* Text Main */
  border: 1px solid #3A2A12; /* Border */
}
.page-news__dark-section {
  background: #0A0A0A;
  color: #FFF6D6;
}
.page-news__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
}
.page-news__btn-secondary {
  background: #111111;
  color: #F2C14E;
  border: 2px solid #F2C14E;
}
.page-news a {
  color: #FFD36B; /* Default link color, Glow */
}
.page-news a:hover {
  color: #F2C14E; /* Primary on hover */
}

/* Reward Modal CSS */
.page-news__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-news__reward-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.page-news__reward-modal-content {
  background: #111111;
  border-radius: 15px;
  padding: 40px;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.page-news__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #FFF6D6;
  cursor: pointer;
  transition: color 0.3s ease;
}
.page-news__reward-modal-close:hover {
  color: #F2C14E;
}
.page-news__reward-modal-title {
  font-size: 28px;
  color: #FFD36B;
  margin-bottom: 20px;
}
.page-news__reward-modal-text {
  font-size: 18px;
  color: #FFF6D6;
  margin-bottom: 30px;
}
.page-news__reward-modal-button {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
}
.page-news__reward-modal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.6);
}
.page-news--reward-open { overflow: hidden; } /* Prevent body scroll when modal open */