/* Base styles for page-news */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #FFF3E6; /* Text Main */
  background: #0D0E12; /* Background */
  line-height: 1.6;
}

.page-news__section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-news__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding as per instruction */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-news__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  box-sizing: border-box;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  color: #FFF3E6;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-news__intro-text {
  font-size: 1.1em;
  color: #FFF3E6;
  margin-bottom: 30px;
}

.page-news__section-title {
  font-size: 2.5em;
  color: #FF8C1A;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.page-news__section-title--light {
  color: #FFF3E6;
}

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

.page-news__section-description--light {
  color: #FFF3E6;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button--primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border: none;
}

.page-news__cta-button--primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  transform: translateY(-2px);
}

.page-news__cta-button--secondary {
  background: #17191F;
  color: #FF8C1A;
  border: 1px solid #FF8C1A;
  margin-left: 20px;
}

.page-news__cta-button--secondary:hover {
  background: #FF8C1A;
  color: #17191F;
  border-color: #FFA53A;
  transform: translateY(-2px);
}

/* Categories Grid */
.page-news__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-news__category-card {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF3E6;
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.6);
}

.page-news__category-title {
  font-size: 1.6em;
  color: #FFB04D; /* Glow */
  margin-bottom: 15px;
}

.page-news__category-card p {
  font-size: 0.95em;
  color: #FFF3E6;
  margin-bottom: 20px;
}

.page-news__category-link {
  display: inline-block;
  color: #FFA53A;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid #FFA53A;
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-news__category-link:hover {
  color: #FFF3E6;
  border-color: #FFF3E6;
}

/* Platform Highlights */
.page-news__highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.page-news__highlight-item {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  color: #FFF3E6;
}

.page-news__highlight-title {
  font-size: 1.5em;
  color: #FFB04D; /* Glow */
  margin-bottom: 15px;
}

.page-news__highlight-item p {
  font-size: 1em;
  color: #FFF3E6;
}

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

.page-news__news-card {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF3E6;
}

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

.page-news__news-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-news__news-content {
  padding: 20px;
}

.page-news__news-date {
  display: block;
  font-size: 0.85em;
  color: #FFA53A;
  margin-bottom: 10px;
}

.page-news__news-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-news__news-title a {
  color: #FFB04D;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__news-title a:hover {
  color: #FFF3E6;
}

.page-news__news-excerpt {
  font-size: 0.95em;
  color: #FFF3E6;
}

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

/* FAQ Section */
details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #A84F0C;
  overflow: hidden;
  background: #17191F;
  color: #FFF3E6;
}
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: #2a2d37;
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFB04D;
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A;
  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: #2a2d37;
  border-radius: 0 0 8px 8px;
  color: #FFF3E6;
}

.page-news__faq-answer p {
  margin: 0;
  padding: 0;
}

/* Final CTA */
.page-news__cta-final {
  background: #0D0E12; /* Background */
  border-top: 1px solid #A84F0C;
  padding: 60px 20px;
  text-align: center;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1023px) {
  /* This block is required by the prompt for the CSS output, even if this page doesn't use all elements */
  .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;
    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;
  }

  /* News page specific adjustments for tablets */
  .page-news__hero-section {
    padding-top: 0;
  }
  .page-news__hero-image-wrapper {
    max-height: 400px;
  }
  .page-news__main-title {
    font-size: 2.5em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__categories-grid,
  .page-news__highlights-grid,
  .page-news__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (min-width: 1024px) {
  /* This block is required by the prompt for the CSS output, even if this page doesn't use all elements */
  .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;
  }
  /* .page-news__promo-strip { margin-top: 16px; } */ /* Removed as this is for homepage */
}

@media (max-width: 768px) {
  /* This block is required by the prompt for the CSS output, even if this page doesn't use all elements */
  /* 1. 首屏试玩 (Already covered by 1023px block, but ensuring 768px specifics are here for completeness if needed) */
  /* If the above 1023px block is considered sufficient for trial reset, this part might be empty for trial. */
  /* 2. 优惠 __promo-strip (Placeholder, not used on news page but required in output) */
  .page-news__promo-strip-track {
    grid-template-columns: repeat(4, 1fr) !important; /* Example, adjust as needed */
    overflow-x: hidden !important;
  }
  /* 3. 热门 __hot-games (Placeholder, not used on news page but required in output) */
  .page-news__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    /* Hide name/rtp/desc */
    .page-news__hot-games-name, .page-news__hot-games-rtp, .page-news__hot-games-desc {
      display: none !important;
    }
    .page-news__hot-games-thumbnail {
      width: 100% !important;
      height: auto !important;
    }
  }
  /* 4. 品牌 __brand-intro (Placeholder, not used on news page but required in output) */
  .page-news__brand-intro {
    display: block !important; /* Ensure it's visible if it was hidden on desktop */
  }
  /* 5. 中奖条 __winner-ticker (Placeholder, not used on news page but required in output) */
  .page-news__winner-ticker {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
  }
  /* Body/main bottom padding for ticker */
  .page-news {
    padding-bottom: 50px !important; /* Adjust based on ticker height */
  }
  
  /* 6. 通用图片与容器 */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-image-wrapper {
    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;
    margin-left: 0 !important; /* Reset margin for stacking */
    margin-right: 0 !important;
  }
  .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: 15px;
  }
  
  /* 8. 其他模块 (News page specific) */
  .page-news__hero-content {
    position: static;
    transform: none;
    padding: 20px 15px;
    max-width: 100%;
  }
  .page-news__main-title {
    font-size: 2em;
    margin-bottom: 10px;
  }
  .page-news__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-news__section {
    padding: 30px 15px;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-news__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-news__categories-grid,
  .page-news__highlights-grid,
  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__category-card,
  .page-news__highlight-item,
  .page-news__news-card {
    padding: 20px;
  }
  .page-news__category-title,
  .page-news__highlight-title {
    font-size: 1.4em;
  }
  .page-news__news-thumbnail {
    height: 180px;
  }
  .page-news__news-title {
    font-size: 1.15em;
  }
  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px;
  }
  .page-news__faq-qtext {
    font-size: 1em;
  }
  .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__cta-final {
    padding: 40px 15px;
  }
}

/* General styles based on color scheme for body/card/text */
.page-news { 
  color: #FFF3E6; /* Text Main */
  background: #0D0E12; /* Background */
}

.page-news__card { 
  background: #17191F; /* Card BG */
  color: #FFF3E6; /* Text Main */
  border: 1px solid #A84F0C; /* Border */
}

.page-news__dark-section {
  background: #0D0E12;
  color: #FFF3E6;
}

.page-news__light-bg {
  background: #17191F;
  color: #FFF3E6;
}

.page-news__cta-button--primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
}

.page-news__cta-button--secondary {
  background: #17191F;
  color: #FF8C1A;
  border: 1px solid #A84F0C;
}

.page-news__news-title a {
  color: #FFB04D;
}

.page-news__category-link {
  color: #FFA53A;
  border-color: #FFA53A;
}
.page-news__faq-qtext {
  color: #FFB04D;
}
.page-news__faq-toggle {
  color: #FFA53A;
}
.page-news__news-date {
  color: #FFA53A;
}
.page-news__main-title, .page-news__intro-text {
  color: #FFF3E6;
}
.page-news__hero-image {
  filter: brightness(0.5);
}
.page-news__hero-content {
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.page-news__section-title {
  color: #FF8C1A;
}

/* The following are placeholders for homepage-specific CSS as per prompt requirements for the 'css' field. */
/* They are not directly used by news.html but are included to satisfy the strict output format. */
/* .page-news__promo-strip-track { grid-template-columns: repeat(4, 1fr); overflow-x:hidden; } */
/* .page-news__hot-games-grid { grid-template-columns: repeat(2, 1fr); } */
/* .page-news__hero-brand, .page-news__hero-jackpot { display: none; } */
/* .page-news__winner-ticker { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 999; } */
/* body { padding-bottom: 50px; } */ /* This would conflict with shared.css body padding-top, so it's a hypothetical placeholder */