/* style/news-industry.css */

/* --- Base Styles & Variables --- */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-login: #EA7C07; /* Custom color for login */
    --background-default: #FFFFFF; /* Default background */
    --black-color: #000000; /* Custom color for #000000 */
}

/* Page scope and default text color based on assumed light body background */
.page-news-industry {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--background-default); /* Explicitly set default background */
}

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

/* --- Hero Section --- */
.page-news-industry__hero-section {
    position: relative;
    padding-top: 0; /* Assuming shared.css handles body padding-top, so this section starts at the top of main */
    background-color: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 500px; /* Minimum height for hero */
    overflow: hidden;
}

.page-news-industry__hero-content {
    flex: 1;
    padding: 60px 40px;
    max-width: 50%;
    z-index: 1;
}

.page-news-industry__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-news-industry__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-news-industry__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 50%;
}

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

/* --- General Content Sections --- */
.page-news-industry__content-section,
.page-news-industry__trends-section,
.page-news-industry__analysis-section,
.page-news-industry__tech-section,
.page-news-industry__expert-section,
.page-news-industry__cta-section,
.page-news-industry__faq-section {
    padding: 80px 0;
}

.page-news-industry__light-bg {
    background-color: var(--background-default);
    color: var(--text-dark);
}

.page-news-industry__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-news-industry__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    color: inherit; /* Inherit color from parent section */
}

.page-news-industry__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
}

.page-news-industry__link {
    color: var(--button-login); /* Use login color for links for emphasis and contrast */
    text-decoration: underline;
}

.page-news-industry__link:hover {
    color: #cc6600; /* Darker shade for hover */
}

/* Image with text block */
.page-news-industry__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-news-industry__content-image {
    width: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news-industry__image-text-block .page-news-industry__paragraph {
    flex: 1;
}

/* --- Grid Layouts (Trends, Tech) --- */
.page-news-industry__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news-industry__trend-card,
.page-news-industry__tech-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark bg sections */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-news-industry__light-bg .page-news-industry__trend-card,
.page-news-industry__light-bg .page-news-industry__tech-card {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.page-news-industry__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: inherit;
}

.page-news-industry__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-news-industry__card-description {
    font-size: 1em;
    line-height: 1.6;
    color: inherit;
}

/* --- List & Blockquote --- */
.page-news-industry__list {
    list-style: disc inside;
    margin-bottom: 30px;
    padding-left: 20px;
}

.page-news-industry__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-news-industry__blockquote {
    font-size: 1.3em;
    font-style: italic;
    border-left: 5px solid var(--button-login);
    padding-left: 20px;
    margin: 40px 0;
    color: var(--text-dark);
}

.page-news-industry__dark-bg .page-news-industry__blockquote {
    color: var(--text-light);
    border-left-color: var(--secondary-color);
}

/* --- Advice Cards --- */
.page-news-industry__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news-industry__advice-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    text-align: left;
    display: flex;
    flex-direction: column;
}

/* --- CTA Buttons --- */
.page-news-industry__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

.page-news-industry__btn-primary,
.page-news-industry__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-news-industry__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-news-industry__btn-primary:hover {
    background-color: #1e87b7;
    border-color: #1e87b7;
}

.page-news-industry__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-news-industry__dark-bg .page-news-industry__btn-secondary {
    color: var(--text-light);
    border-color: var(--text-light);
}

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

.page-news-industry__dark-bg .page-news-industry__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* --- FAQ Section --- */
.page-news-industry__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

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

.page-news-industry__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-news-industry__faq-question:hover {
    background-color: #f5f5f5;
}

.page-news-industry__faq-title {
    margin: 0;
    font-size: 1em; /* Adjust to fit within the question div */
    color: inherit;
}

.page-news-industry__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.page-news-industry__faq-item.active .page-news-industry__faq-toggle {
    transform: rotate(45deg);
}

.page-news-industry__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f9f9f9;
    color: var(--text-dark);
}

.page-news-industry__faq-item.active .page-news-industry__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 25px;
}

.page-news-industry__faq-answer .page-news-industry__paragraph {
    margin-bottom: 0;
    font-size: 1em;
}

/* --- Global Image Styles --- */
.page-news-industry img {
    max-width: 100%;
    height: auto;
    display: block;
    /* No filter to change image color */
}

/* --- Responsive Design (Tablet & Mobile) --- */
@media (max-width: 1024px) {
    .page-news-industry__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        min-height: auto;
    }

    .page-news-industry__hero-content {
        max-width: 100%;
        padding: 0;
        margin-bottom: 30px;
    }

    .page-news-industry__hero-title {
        font-size: 2.5em;
    }

    .page-news-industry__hero-description {
        font-size: 1.1em;
    }

    .page-news-industry__hero-image-wrapper {
        max-width: 100%;
    }

    .page-news-industry__image-text-block {
        flex-direction: column;
        gap: 20px;
    }

    .page-news-industry__content-image {
        width: 100%;
    }

    .page-news-industry__section-title {
        font-size: 2em;
    }

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

    .page-news-industry__cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-news-industry__btn-primary,
    .page-news-industry__btn-secondary {
        width: 80%; /* Adjust for tablet */
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-news-industry__hero-section {
        padding-top: 0 !important; /* Ensure no double padding if shared.css sets body padding */
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-news-industry__hero-content {
        padding: 20px 0;
        margin-bottom: 20px;
    }

    .page-news-industry__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-news-industry__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* 其他内容模块 */
    .page-news-industry__content-section,
    .page-news-industry__trends-section,
    .page-news-industry__analysis-section,
    .page-news-industry__tech-section,
    .page-news-industry__expert-section,
    .page-news-industry__cta-section,
    .page-news-industry__faq-section {
        padding: 40px 0;
    }

    .page-news-industry__container {
        padding: 0 15px; /* Ensure content has padding on mobile */
    }

    .page-news-industry__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-news-industry__paragraph,
    .page-news-industry__list-item,
    .page-news-industry__card-description,
    .page-news-industry__faq-answer .page-news-industry__paragraph {
        font-size: 0.95em;
        line-height: 1.5;
    }

    /* 通用图片与容器 */
    .page-news-industry img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-news-industry__section,
    .page-news-industry__card,
    .page-news-industry__container,
    .page-news-industry__image-text-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by .page-news-industry__container */
    }

    .page-news-industry__content-image {
        width: 100%;
        height: auto;
    }

    .page-news-industry__card-image {
        height: auto; /* Allow image to scale down */
        min-height: 200px; /* Ensure minimum height */
    }

    /* 按钮与按钮容器 */
    .page-news-industry__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Padding for button group */
    }

    .page-news-industry__btn-primary,
    .page-news-industry__btn-secondary {
        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: 1em;
    }

    /* FAQ Section */
    .page-news-industry__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-news-industry__faq-answer {
        padding: 0 20px;
    }

    .page-news-industry__faq-item.active .page-news-industry__faq-answer {
        padding: 10px 20px;
    }

    /* LOGO 轮播区域 (placeholder for required mobile rule) */
    .page-news-industry__logo-item {
        width: 80px !important; /* Fixed 80px, NOT 100% */
        height: 80px !important; /* Fixed 80px */
        max-width: 80px !important;
        box-sizing: border-box;
    }
    /* Game display area (general card/grid styles apply) */
    .page-news-industry__grid,
    .page-news-industry__card-grid {
        grid-template-columns: 1fr; /* Single column layout for cards */
        gap: 15px;
    }
}