/* 首页试玩布局 CSS (必须原样写入，禁止省略/改写关键属性/用「同上」代替) */
@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;
  }
}

/* General styles for News Page */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background: #FFFFFF; /* Default body background */
}

.page-news__section {
    padding: 40px 0;
}

.page-news__dark-section {
    background: #017439;
    color: #ffffff;
}

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

.page-news__section-title {
    font-size: 32px;
    font-weight: 700;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
}

.page-news__dark-section .page-news__section-title {
    color: #ffffff;
}

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

.page-news__dark-section .page-news__section-description {
    color: #f0f0f0;
}

/* Hero Section */
.page-news__hero-section {
    padding-top: 10px; /* Small top padding, relying on body padding for header offset */
    background: linear-gradient(135deg, #017439, #005a2e);
    color: #ffffff;
    padding-bottom: 50px;
}

.page-news__container--hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 30px;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 900px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-news__hero-content {
    text-align: center;
    max-width: 800px;
}

.page-news__main-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #ffffff;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-news__btn-primary {
    background: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-news__btn-primary:hover {
    background: #e02020;
    border-color: #e02020;
    transform: translateY(-2px);
}

.page-news__btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-news__btn-secondary:hover {
    background: #ffffff;
    color: #017439;
    transform: translateY(-2px);
}

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

.page-news__article-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

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

.page-news__article-title a {
    color: #017439;
    text-decoration: none;
}

.page-news__article-title a:hover {
    text-decoration: underline;
}

.page-news__article-meta {
    font-size: 14px;
    color: #888888;
    margin-bottom: 15px;
}

.page-news__article-excerpt {
    font-size: 15px;
    color: #555555;
    margin-bottom: 20px;
}

.page-news__read-more-btn {
    display: inline-block;
    background: #017439;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.page-news__read-more-btn:hover {
    background: #005a2e;
}

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

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

.page-news__analysis-item {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding-bottom: 20px;
}

.page-news__analysis-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-news__analysis-title {
    font-size: 22px;
    font-weight: 600;
    color: #017439;
    margin: 0 20px 10px;
    line-height: 1.3;
}

.page-news__analysis-text {
    font-size: 15px;
    color: #555555;
    margin: 0 20px;
}

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

.page-news__category-card {
    display: block;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-news__category-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.page-news__category-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-news__category-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-news__category-count {
    font-size: 14px;
    opacity: 0.9;
}

/* FAQ Section */
details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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: #f5f5f5;
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* CTA Banner */
.page-news__cta-banner {
    background: #017439;
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
}

.page-news__cta-banner .page-news__section-title {
    color: #ffffff;
    margin-bottom: 15px;
}

.page-news__cta-banner .page-news__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-news__cta-banner .page-news__btn-primary {
    background: #C30808;
    color: #FFFF00;
    border-color: #C30808;
}

.page-news__cta-banner .page-news__btn-primary:hover {
    background: #e02020;
    border-color: #e02020;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__hero-section {
    padding-bottom: 30px;
  }
  .page-news__main-title {
    font-size: 28px;
  }
  .page-news__description {
    font-size: 16px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px;
    font-size: 16px;
    margin: 0 auto; /* Center buttons when stacked */
  }

  .page-news__section-title {
    font-size: 28px;
  }
  .page-news__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-news__articles-grid,
  .page-news__analysis-grid,
  .page-news__category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-image-wrapper {
    height: 180px;
  }
  .page-news__article-title {
    font-size: 18px;
  }
  .page-news__analysis-image {
    height: 200px;
  }
  .page-news__analysis-title {
    font-size: 20px;
  }
  .page-news__category-image {
    height: 150px;
  }
  .page-news__category-title {
    font-size: 18px;
  }
  details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
  .page-news__faq-qtext { font-size: 15px; }

  /* Mobile image adaptation */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !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-wrap: wrap !important;
    gap: 10px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
  }
}