/* style/news.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #017439;
  --register-btn-bg: #C30808;
  --login-btn-bg: #C30808;
  --register-login-text: #FFFF00;
}

.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
}

.page-news__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--bg-dark);
}

.page-news__hero-image-container {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
}

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

.page-news__hero-content {
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-light);
  box-sizing: border-box;
}

.page-news__main-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-news__btn-primary {
  background-color: var(--register-btn-bg);
  color: var(--register-login-text);
  border: 2px solid var(--register-btn-bg);
}

.page-news__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-news__btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-news__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

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

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

.page-news__section-title {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-news__overview-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-news__trends-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-news__trends-section .page-news__section-title {
  color: var(--text-light);
}

.page-news__games-platforms-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-news__promotions-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-news__promotions-section .page-news__section-title {
  color: var(--text-light);
}

.page-news__guides-tips-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-news__cta-bottom {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-news__cta-bottom .page-news__section-title {
  color: var(--text-light);
}

.page-news__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-news__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-news__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
}

.page-news__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-news__card-text {
  font-size: 1em;
  line-height: 1.5;
}

.page-news__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-news__game-card,
.page-news__tip-card {
  background-color: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  color: var(--text-dark);
  border: 1px solid #e0e0e0;
}

.page-news__game-image,
.page-news__tip-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-news__game-title,
.page-news__tip-title {
  font-size: 1.4em;
  margin: 20px 15px 10px;
  color: var(--primary-color);
}

.page-news__game-title a,
.page-news__tip-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-news__game-title a:hover,
.page-news__tip-title a:hover {
  text-decoration: underline;
}

.page-news__game-description,
.page-news__tip-description {
  font-size: 0.95em;
  padding: 0 15px 20px;
  line-height: 1.5;
}

.page-news__promotion-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-news__promotion-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  color: var(--text-light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-news__promotion-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-news__promotion-description {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* Mobile responsive styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.4em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__hero-content {
    padding: 30px 15px;
  }
  .page-news__section {
    padding: 40px 0;
  }
  .page-news__game-image, .page-news__tip-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO 主图区域 */
  .page-news__hero-section {
    padding-top: 10px !important;
  }
  .page-news__main-title {
    font-size: 2em !important;
    margin-bottom: 15px !important;
  }
  .page-news__hero-description {
    font-size: 1em !important;
    margin-bottom: 20px !important;
  }

  /* 按钮与按钮容器 */
  .page-news__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .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 img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__container,
  .page-news__section,
  .page-news__card,
  .page-news__trend-cards,
  .page-news__games-grid,
  .page-news__promotion-list,
  .page-news__tip-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 产品展示图区域 (General card/grid layout for non-homepage) */
  .page-news__trend-cards,
  .page-news__games-grid,
  .page-news__promotion-list,
  .page-news__tip-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-news__game-image, .page-news__tip-image {
    height: 180px !important; /* Adjust for mobile view */
  }

  /* 其他内容模块 */
  .page-news__section-title {
    font-size: 1.6em !important;
    margin-bottom: 30px !important;
  }
  .page-news__text-block {
    font-size: 1em !important;
  }
  .page-news__card-title, .page-news__promotion-title, .page-news__game-title, .page-news__tip-title {
    font-size: 1.2em !important;
  }
  .page-news__card, .page-news__promotion-item, .page-news__game-card, .page-news__tip-card {
    padding: 20px !important;
  }
  .page-news__section {
    padding: 30px 0 !important;
  }
}