:root {
    --primary-color: #F2C14E; /* 主色调 */
    --secondary-color: #FFD36B; /* 辅助色 */
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* 按钮渐变 */
    --card-bg: #111111; /* Card BG */
    --site-bg: #0A0A0A; /* 背景 */
    --text-main: #FFF6D6; /* Text Main */
    --border-color: #3A2A12; /* 边框 */
    --glow-color: #FFD36B; /* Glow */
}

/* Base styles for the page content */
.page-news {
    background-color: var(--site-bg);
    color: var(--text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Ensure space above footer */
}

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

/* Section common styles */
.page-news__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary-color); /* Use secondary color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 50px;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5); /* Subtle glow for titles */
}

.page-news__section-description {
    text-align: center;
    max-width: 800px;
    margin: -20px auto 50px auto;
    font-size: 18px;
    color: rgba(255, 246, 214, 0.8);
}

/* Links and buttons common styles */
.page-news a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: var(--site-bg); /* Dark text for light button */
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-news__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

.page-news__cta-button--secondary {
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    margin-left: 20px;
}

.page-news__cta-button--secondary:hover {
    background: rgba(17, 17, 17, 0.8);
    border-color: var(--secondary-color);
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--card-bg); /* Darker background for hero section */
    border-bottom: 1px solid var(--border-color);
}

.page-news__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure full width for flex item */
}

.page-news__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-news__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
}

.page-news__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-news__main-title {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-main); /* Main text color for H1 */
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 211, 107, 0.8);
    line-height: 1.2;
}

.page-news__description {
    font-size: 20px;
    color: rgba(255, 246, 214, 0.9);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured News Section */
.page-news__featured-news-section {
    padding-bottom: 60px;
}

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

.page-news__news-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-news__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

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

.page-news__news-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 250px); /* Adjust height for content */
}

.page-news__news-card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__news-card-title a {
    color: var(--text-main);
    transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
    color: var(--secondary-color);
}

.page-news__news-card-meta {
    font-size: 14px;
    color: rgba(255, 246, 214, 0.6);
    margin-bottom: 15px;
}

.page-news__news-card-excerpt {
    font-size: 16px;
    color: rgba(255, 246, 214, 0.8);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow excerpt to take available space */
}

.page-news__read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--site-bg);
    border-radius: 5px;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
}

.page-news__read-more-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Latest News Section */
.page-news__latest-news-section {
    padding-bottom: 60px;
}

.page-news__news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.page-news__list-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-news__list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
}

.page-news__list-item-image {
    flex-shrink: 0;
    width: 300px; /* Fixed width for list item image */
    height: 200px;
}

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

.page-news__list-item-content {
    padding: 20px 25px;
    flex-grow: 1;
}

.page-news__list-item-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.3;
}

.page-news__list-item-title a {
    color: var(--text-main);
    transition: color 0.3s ease;
}

.page-news__list-item-title a:hover {
    color: var(--secondary-color);
}

.page-news__list-item-meta {
    font-size: 13px;
    color: rgba(255, 246, 214, 0.6);
    margin-bottom: 10px;
}

.page-news__list-item-excerpt {
    font-size: 15px;
    color: rgba(255, 246, 214, 0.8);
    margin-bottom: 15px;
}

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

/* Categories Section */
.page-news__categories-section {
  padding-bottom: 60px;
}

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

.page-news__category-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

.page-news__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.page-news__category-card img {
    width: 100%;
    
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-news__category-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-news__category-excerpt {
    font-size: 15px;
    color: rgba(255, 246, 214, 0.8);
    padding: 0 15px;
    flex-grow: 1;
}


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

.page-news__faq-list {
    margin-top: 40px;
}

details.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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;
    color: var(--text-main);
    font-size: 18px;
    font-weight: 600;
}

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: rgba(17, 17, 17, 0.8);
}

.page-news__faq-qtext {
    flex: 1;
    line-height: 1.5;
    text-align: left;
}

.page-news__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}

details.page-news__faq-item .page-news__faq-answer {
    padding: 0 25px 25px;
    background: rgba(17, 17, 17, 0.6);
    border-radius: 0 0 10px 10px;
    color: rgba(255, 246, 214, 0.8);
    font-size: 16px;
}

/* CTA Section */
.page-news__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.page-news__cta-container {
    max-width: 900px;
}

.page-news__cta-title {
    font-size: 38px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-news__cta-description {
    font-size: 18px;
    color: rgba(255, 246, 214, 0.9);
    margin-bottom: 40px;
}

.page-news__cta-button--large {
    padding: 18px 50px;
    font-size: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-image img {
        height: 500px;
    }
    .page-news__news-card-image img {
        height: 220px;
    }
    .page-news__list-item-image {
        width: 250px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding-top: 10px !important; /* Mobile small top padding */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__main-title {
        font-size: 36px;
    }

    .page-news__description {
        font-size: 16px;
    }

    .page-news__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        margin-top: 20px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0;
        margin-right: 0;
    }
    
    .page-news__cta-button--secondary {
        margin-top: 15px;
        margin-left: 0 !important;
    }

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

    .page-news__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

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

    .page-news__news-card-image img {
        height: 200px;
    }

    .page-news__news-card-title {
        font-size: 18px;
    }

    .page-news__list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-news__list-item-image {
        width: 100%;
        height: 200px;
        border-radius: 12px 12px 0 0;
    }

    .page-news__list-item-content {
        padding: 20px;
        width: 100%;
    }

    .page-news__list-item-title {
        font-size: 18px;
    }
    
    .page-news__list-item-image img,
    .page-news__news-card-image img,
    .page-news__category-card img,
    .page-news__hero-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-news__container,
    .page-news__cta-container,
    .page-news__news-grid,
    .page-news__news-list,
    .page-news__category-grid,
    .page-news__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    details.page-news__faq-item summary.page-news__faq-question {
        padding: 15px;
        font-size: 16px;
    }
    
    .page-news__faq-qtext {
      font-size: 16px;
    }

    .page-news__faq-toggle {
        font-size: 24px;
        width: 24px;
    }

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

    .page-news__cta-title {
        font-size: 30px;
    }

    .page-news__cta-description {
        font-size: 16px;
    }
    
    .page-news__category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-news__category-card img {
        
    }
    .page-news__category-title {
        font-size: 18px;
    }
    .page-news__category-excerpt {
        font-size: 14px;
    }
}