/* -------------------------------------------------------------------------- */
/*                            Base & Layout Styles                            */
/* -------------------------------------------------------------------------- */
.page-news {
  background-color: #08160F;
  color: #F2FFF6;
  padding-top: 10px; /* Minimal padding-top, relying on body padding from shared.css */
}

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

.page-news__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #F2C14E; /* Gold for main titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-news__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #2AD16F; /* Button gradient start color */
  border-radius: 2px;
}

/* -------------------------------------------------------------------------- */
/*                                Hero Section                                */
/* -------------------------------------------------------------------------- */
.page-news__hero-section {
  padding: 40px 0;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 30px;
}

.page-news__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-news__hero-title {
  font-size: 48px;
  font-weight: 800;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 18px;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-news__hero-cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__hero-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

/* -------------------------------------------------------------------------- */
/*                           Latest Articles Section                          */
/* -------------------------------------------------------------------------- */
.page-news__latest-articles-section {
  padding: 60px 0;
}

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

.page-news__article-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

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

.page-news__article-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: #F2FFF6; /* Main text color */
}

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

.page-news__article-title a:hover {
  color: #2AD16F; /* Button gradient start color */
}

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

.page-news__article-summary {
  font-size: 16px;
  color: #A7D9B8;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-button {
  display: inline-block;
  background: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__read-more-button:hover {
  background-color: #13994A; /* Button gradient end color */
}

.page-news__view-all-button-container {
  text-align: center;
}

.page-news__view-all-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__view-all-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

/* -------------------------------------------------------------------------- */
/*                           Categories Section                               */
/* -------------------------------------------------------------------------- */
.page-news__categories-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-news__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.page-news__category-card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: #F2FFF6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background-color: #1E3A2A; /* Divider color for subtle hover */
}

.page-news__category-icon {
  width: 100px;
  height: 75px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-news__category-name {
  font-size: 18px;
  font-weight: 600;
  color: #F2FFF6;
}

/* -------------------------------------------------------------------------- */
/*                                CTA Section                                 */
/* -------------------------------------------------------------------------- */
.page-news__cta-section {
  padding: 60px 0;
}

.page-news__cta-box {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-news__cta-title {
  font-size: 32px;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-news__cta-description {
  font-size: 18px;
  color: #A7D9B8;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-news__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

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

.page-news__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  overflow: hidden;
}

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-color: #1E3A2A; /* Divider color for subtle hover */
}

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

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

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 20px;
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 0 0 10px 10px;
  color: #A7D9B8;
  font-size: 16px;
  line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/*                               Responsive Design                            */
/* -------------------------------------------------------------------------- */

/* All images basic responsive styles */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All buttons basic responsive styles */
.page-news__hero-cta-button,
.page-news__read-more-button,
.page-news__view-all-button,
.page-news__cta-button {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__view-all-button-container,
.page-news__cta-box {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 1023px) {
  /* No homepage game trial specific CSS on news page */
  /* If this were homepage, the game trial CSS would be here */
}

@media (min-width: 1024px) {
  /* No homepage game trial specific CSS on news page */
  /* If this were homepage, the game trial CSS would be here */
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 30px 0;
    margin-bottom: 30px;
  }

  .page-news__hero-title {
    font-size: clamp(30px, 8vw, 40px); /* Use clamp for H1 */
  }

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

  .page-news__hero-cta-button {
    font-size: 18px;
    padding: 12px 25px;
  }

  .page-news__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-news__latest-articles-section {
    padding: 40px 0;
  }

  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

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

  .page-news__read-more-button {
    font-size: 15px;
    padding: 8px 15px;
  }

  .page-news__view-all-button {
    font-size: 16px;
    padding: 12px 25px;
  }

  .page-news__categories-section {
    padding: 40px 0;
  }

  .page-news__categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .page-news__category-card {
    padding: 15px;
  }

  .page-news__category-icon {
    width: 80px;
    height: 60px;
    margin-bottom: 10px;
  }

  .page-news__category-name {
    font-size: 16px;
  }

  .page-news__cta-section {
    padding: 40px 0;
  }

  .page-news__cta-box {
    padding: 30px;
  }

  .page-news__cta-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .page-news__cta-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-news__cta-button {
    font-size: 18px;
    padding: 12px 28px;
  }

  .page-news__faq-section {
    padding: 40px 0;
  }

  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px 20px;
  }

  .page-news__faq-qtext {
    font-size: 16px;
  }

  .page-news__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 25px;
  }

  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }

  /* Mobile specific image and container rules */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__container,
  .page-news__section,
  .page-news__article-card,
  .page-news__category-card,
  .page-news__cta-box,
  details.page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile specific button rules */
  .page-news__hero-cta-button,
  .page-news__read-more-button,
  .page-news__view-all-button,
  .page-news__cta-button {
    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__view-all-button-container,
  .page-news__cta-box {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

/* -------------------------------------------------------------------------- */
/*                        Required Game Trial CSS Snippets                    */
/* -------------------------------------------------------------------------- */
/* These snippets are included as per "文件结构要求" and final JSON example, */
/* but are NOT used by the HTML for this News page.                         */
@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;
  }
}

/* The following are general components that might be on a homepage, but are not used on this News page. */
/* The prompt's final JSON example requires these strings to be present. */
.page-news__promo-strip { margin-top: 16px; }
.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__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;}.page-news__reward-modal-close{position:absolute;top:10px;right:10px;background:none;border:none;color:#fff;font-size:24px;cursor:pointer;}