/* Custom Colors */
:root {
    --primary-color: #C91F17;
    --secondary-color: #E53935;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --card-bg: #D32F2F;
    --background-general: #B71C1C;
    --text-main: #FFF5E1;
    --border-color: #F2B544;
    --glow-color: #FFCC66;
    --gold-color: #F4D344; /* Adjusted from F4D34D to avoid conflict with border-color or similar appearance */
    --deep-red: #7A0E0E;
    --text-dark: #333333; /* For light backgrounds */
    --text-light: #ffffff; /* For dark backgrounds */
}

/* General page styling */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default for light body background */
    background-color: var(--background-color, #f5f5f5); /* Fallback to light grey if shared var is not set */
    padding-top: 10px; /* Small top padding, relying on body padding for header offset */
}

/* Ensure text color is appropriate for the body background */
/* Assuming --background-color from shared.css is generally light for this page */
/* If body background is dark, this would be overridden by a more specific class or shared style */
.page-news__dark-bg {
    background: var(--background-general); /* Deep red background */
    color: var(--text-light); /* White text for dark background */
}
.page-news__dark-section .page-news__section-description,
.page-news__dark-section .page-news__article-body p,
.page-news__dark-section .page-news__article-body h3 {
    color: var(--text-light);
}


/* Containers and Sections */
.page-news__section {
    padding: 60px 0;
    text-align: center;
}

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

.page-news__flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Titles and Descriptions */
.page-news__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Use clamp for H1 */
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-news__section-description,
.page-news__description {
    font-size: 1.1rem;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 30px;
}
.page-news__hero-content .page-news__description {
    color: var(--text-light);
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding-top: 10px; /* Rely on body padding for header offset */
    background-color: var(--deep-red); /* Fallback if image doesn't load */
}

.page-news__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

.page-news__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Buttons */
.page-news__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Base for responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background: var(--button-gradient);
    color: var(--deep-red); /* Using deep-red for text on gold button for contrast */
    border: none;
}

.page-news__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-news__btn-secondary {
    background: var(--deep-red); /* Deep red background */
    color: var(--text-light); /* White text */
    border: 2px solid var(--border-color); /* Gold border */
}

.page-news__btn-secondary:hover {
    background: var(--primary-color);
    border-color: var(--gold-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__btn-block {
    width: 100%;
    max-width: 300px; /* Limit width for block buttons in desktop */
    margin-left: auto;
    margin-right: auto;
}

/* Article Grid */
.page-news__article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-news__article-card {
    background: var(--card-bg); /* Card BG color */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    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.2);
}

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

.page-news__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: var(--text-main); /* Text Main color */
}

.page-news__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-news__card-title a {
    color: var(--text-main); /* Text Main color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: var(--gold-color); /* Gold color on hover */
}

.page-news__card-meta {
    font-size: 0.9rem;
    color: rgba(255, 245, 225, 0.7); /* Lighter version of Text Main */
    margin-bottom: 15px;
}

.page-news__card-excerpt {
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more-link {
    display: inline-block;
    color: var(--gold-color); /* Gold color */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-news__read-more-link:hover {
    color: var(--border-color); /* Border color on hover */
    text-decoration: underline;
}

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

/* Article Body for Industry Updates */
.page-news__content-wrapper {
    text-align: left;
    margin-top: 40px;
}

.page-news__article-body {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-light); /* White text for dark section */
}

.page-news__article-body h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--gold-color); /* Gold color for subheadings */
}

.page-news__article-body p {
    margin-bottom: 20px;
}

.page-news__article-figure {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 30px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-news__faq-list {
    margin-top: 40px;
    text-align: left;
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color); /* Gold border */
  overflow: hidden;
  background: var(--card-bg); /* Card BG color */
  color: var(--text-main); /* Text Main color */
}
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: var(--deep-red); /* Deep red on hover */
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold-color); /* Gold color */
  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: var(--deep-red); /* Deep red background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--text-light);
}
details.page-news__faq-item .page-news__faq-answer p {
    margin: 0;
}


/* --- Responsive Styles --- */

/* Tablet and smaller desktops (up to 1024px) */
@media (max-width: 1024px) {
    .page-news__section {
        padding: 40px 0;
    }

    .page-news__container {
        padding: 0 15px;
    }

    .page-news__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-news__section-title {
        font-size: clamp(1.6rem, 4vw, 2.4rem);
    }

    .page-news__description,
    .page-news__section-description {
        font-size: 1rem;
    }

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

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

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

    .page-news__card-title {
        font-size: 1.2rem;
    }

    .page-news__article-body {
        font-size: 1rem;
    }

    .page-news__article-body h3 {
        font-size: 1.4rem;
    }

    .page-news__hero-section {
        min-height: 400px;
    }
}

/* Mobile devices (up to 768px) - MUST include all required blocks */
@media (max-width: 768px) {
    .page-news {
        padding-top: 10px; /* Small top padding for mobile */
        font-size: 16px;
        line-height: 1.6;
    }

    /* HERO 主图区域 */
    .page-news__hero-section {
        min-height: 300px;
        padding-top: 10px !important; /* Force small top padding */
    }
    .page-news__hero-image-wrapper {
        height: 100%; /* Ensure wrapper takes full height */
    }
    .page-news__hero-image {
        object-fit: contain !important; /* Prevents image cropping */
        aspect-ratio: unset !important; /* Allows height to adjust */
        width: 100% !important;
        height: auto !important; /* Ensure image scales correctly */
    }
    .page-news__hero-content {
        padding: 20px 15px;
    }
    .page-news__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-news__description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    /* 通用图片与容器 */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-news__section,
    .page-news__container,
    .page-news__card-content,
    .page-news__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__section {
        padding: 30px 0;
    }

    /* 按钮与按钮容器 */
    .page-news__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
        margin-top: 20px;
    }
    .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: 12px 20px;
        font-size: 0.95rem;
    }
    .page-news__btn-block {
        max-width: 100%;
    }

    /* 产品展示图区域 (News page doesn't have 6-card gameshow, but ensure general card grid adapts) */
    .page-news__article-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }
    .page-news__article-card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .page-news__article-image {
        height: auto;
    }
    .page-news__card-title {
        font-size: 1.1rem;
    }
    .page-news__card-excerpt {
        font-size: 0.95rem;
    }
    .page-news__view-all-wrapper {
        margin-top: 30px;
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-news__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 15px;
    }
    .page-news__section-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    .page-news__content-wrapper {
        margin-top: 20px;
    }
    .page-news__article-body {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    .page-news__article-body h3 {
        font-size: 1.3rem;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-news__article-figure {
        margin: 20px auto;
    }

    /* FAQ Section */
    details.page-news__faq-item summary.page-news__faq-question {
        padding: 15px;
    }
    .page-news__faq-qtext {
        font-size: 1rem;
    }
    .page-news__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    details.page-news__faq-item .page-news__faq-answer {
        padding: 0 15px 15px;
    }
}

/* Ensure no small icons are used anywhere */
.page-news img {
    min-width: 200px;
    min-height: 200px;
}
/* Override for specific elements if they were meant to be smaller but are now forced larger */
.page-news__article-image {
    min-width: unset; /* Allow cards to have smaller image width if container dictates */
    min-height: 180px; /* But keep a minimum height for visual impact */
}

/* Ensure no filter is used on images */
.page-news img {
    filter: none !important;
}

/* Contrast Fixes */
.page-news__dark-bg {
  background: var(--background-general);
  color: var(--text-light);
}
.page-news__dark-section {
  background: var(--background-general);
  color: var(--text-light);
}
.page-news__btn-primary {
  background: var(--button-gradient);
  color: var(--deep-red);
}
.page-news__btn-secondary {
  background: var(--deep-red);
  color: var(--text-light);
  border: 2px solid var(--border-color);
}
.page-news__card {
  background: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.page-news p, .page-news li {
    color: var(--text-dark);
}
.page-news__hero-content .page-news__description {
    color: var(--text-light);
}
.page-news__hero-content .page-news__main-title {
    color: var(--text-light);
}
.page-news__faq-qtext {
    color: var(--text-main);
}
.page-news__faq-toggle {
    color: var(--gold-color);
}