.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--background-dark); /* Inherited from shared.css */
}

.page-news__hero-banner {
  padding: 80px 20px;
  background-color: #1E90FF; /* Auxiliary color for banner */
  text-align: center;
  color: #ffffff;
  position: relative;
  padding-top: 0; /* shared already sets body padding-top */
}

.page-news__hero-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-news__hero-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700; /* Gold for main title */
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
  color: #f0f0f0;
}

.page-news__main-content {
  display: flex;
  gap: 30px;
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
}

.page-news__articles-section {
  flex: 3;
}

.page-news__filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  background-color: #1A1A1A;
  padding: 15px;
  border-radius: 8px;
  flex-wrap: wrap;
  gap: 15px;
}

.page-news__categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.page-news__category-btn {
  background-color: #333333;
  color: #ffffff;
  border: 1px solid #555555;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  white-space: nowrap;
}

.page-news__category-btn:hover {
  background-color: #1E90FF;
  border-color: #1E90FF;
}

.page-news__category-btn.active {
  background-color: #FFD700;
  color: #1A1A1A;
  border-color: #FFD700;
}

.page-news__search-box {
  display: flex;
  gap: 10px;
}

.page-news__search-input {
  padding: 10px 15px;
  border: 1px solid #555555;
  border-radius: 20px;
  background-color: #333333;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  width: 200px;
}

.page-news__search-input::placeholder {
  color: #aaaaaa;
}

.page-news__search-btn {
  background-color: #1E90FF;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 14px;
}

.page-news__search-btn:hover {
  background-color: #FFD700;
  color: #1A1A1A;
}

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

.page-news__article-card {
  background-color: #1A1A1A;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333333;
}

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

.page-news__article-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.page-news__article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

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

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

.page-news__article-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-news__article-date {
  font-size: 13px;
  color: #999999;
  display: block;
}

.page-news__pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 10px;
}

.page-news__pagination-link {
  background-color: #333333;
  color: #ffffff;
  border: 1px solid #555555;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-news__pagination-link:hover {
  background-color: #1E90FF;
  border-color: #1E90FF;
}

.page-news__pagination-link.active {
  background-color: #FFD700;
  color: #1A1A1A;
  border-color: #FFD700;
}

.page-news__sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-news__sidebar-block {
  background-color: #1A1A1A;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #333333;
}

.page-news__sidebar-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 10px;
}

.page-news__featured-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-news__featured-list li {
  margin-bottom: 12px;
}

.page-news__featured-list li:last-child {
  margin-bottom: 0;
}

.page-news__featured-list a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
  display: block;
  padding: 5px 0;
}

.page-news__featured-list a:hover {
  color: #1E90FF;
}

.page-news__cta-block p {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-news__btn-primary {
  display: inline-block;
  background-color: #FFD700;
  color: #1A1A1A;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* FAQ Section Styles */
.page-news__faq-list {
  margin-top: 20px;
}

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333333;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1A1A1A;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-news__faq-question:hover {
  background: #2A2A2A;
}

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-news__faq-item.active .page-news__faq-toggle {
  color: #1E90FF;
  transform: rotate(45deg);
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: #2A2A2A;
  color: #cccccc;
  border-top: 1px solid #333333;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-news__faq-answer p {
  margin: 0;
  font-size: 15px;
}

.page-news__bottom-cta {
  background-color: #1E90FF;
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
  margin-top: 40px;
}

.page-news__bottom-cta-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-news__bottom-cta-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-news__bottom-cta-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-news__btn-secondary {
  display: inline-block;
  background-color: #FFD700;
  color: #1A1A1A;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 18px;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__main-content {
    flex-direction: column;
    padding: 0 15px;
  }
  .page-news__hero-title {
    font-size: 36px;
  }
  .page-news__hero-description {
    font-size: 16px;
  }
  .page-news__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-news__sidebar {
    order: -1; /* Sidebar appears above articles on smaller screens */
  }
  .page-news__filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-news__search-box {
    width: 100%;
  }
  .page-news__search-input {
    flex-grow: 1;
    width: auto; /* Allow input to grow */
  }
}

@media (max-width: 768px) {
  /* HERO主图区域 */
  .page-news__hero-banner {
    padding: 60px 15px;
    padding-top: 0 !important; /* shared already sets body padding-top */
  }
  .page-news__hero-title {
    font-size: 28px;
  }
  .page-news__hero-description {
    font-size: 15px;
  }

  /* LOGO 轮播区域 - N/A for news page */

  /* 游戏展示区域 - N/A for news page */

  /* 通用图片与容器 */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__main-content,
  .page-news__bottom-cta-container,
  .page-news__hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__articles-section,
  .page-news__sidebar {
    width: 100%;
    max-width: 100%;
  }

  /* 按钮与按钮容器 */
  .page-news__btn-primary,
  .page-news__btn-secondary {
    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-block,
  .page-news__bottom-cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 其他内容模块 */
  .page-news__filter-bar {
    padding: 10px;
    gap: 10px;
  }
  .page-news__categories {
    justify-content: center;
    width: 100%;
  }
  .page-news__category-btn {
    padding: 8px 15px;
    font-size: 13px;
  }
  .page-news__search-box {
    flex-direction: column;
    width: 100%;
  }
  .page-news__search-input {
    width: 100%;
  }
  .page-news__search-btn {
    width: 100%;
  }
  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-card img {
    
  }
  .page-news__article-title {
    font-size: 18px;
  }
  .page-news__article-excerpt {
    font-size: 14px;
  }
  .page-news__sidebar-block {
    padding: 20px;
  }
  .page-news__sidebar-title {
    font-size: 20px;
  }
  .page-news__featured-list a {
    font-size: 15px;
  }
  .page-news__cta-block p {
    font-size: 15px;
  }
  .page-news__faq-question {
    padding: 15px;
  }
  .page-news__faq-question h3 {
    font-size: 15px;
  }
  .page-news__faq-toggle {
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-news__faq-answer {
    padding: 0 15px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px !important;
  }
  .page-news__bottom-cta {
    padding: 40px 15px;
  }
  .page-news__bottom-cta-title {
    font-size: 28px;
  }
  .page-news__bottom-cta-description {
    font-size: 16px;
  }
}