/* style/tin-tuc.css */

:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --page-bg-color: #F5F7FA;
    --border-color: #E0E0E0;
}

.page-tin-tuc {
    font-family: Arial, sans-serif;
    color: var(--text-main-color);
    background-color: var(--page-bg-color);
    line-height: 1.6;
}

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

/* Hero Section */
.page-tin-tuc__hero-section {
    position: relative;
    padding-top: 10px; /* Rely on body padding-top for header offset */
    margin-bottom: 40px;
    overflow: hidden;
}

.page-tin-tuc__hero-image-wrapper {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
}

.page-tin-tuc__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-tin-tuc__hero-content {
    position: relative;
    max-width: 900px;
    margin: -150px auto 0 auto; /* Adjust to slightly overlap the image, but text is below */
    background: rgba(255, 255, 255, 0.95); /* Slightly transparent white background for text */
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 10;
}

.page-tin-tuc__main-title {
    font-size: 2.8em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.page-tin-tuc__description {
    font-size: 1.1em;
    color: var(--text-main-color);
    margin-bottom: 25px;
}

.page-tin-tuc__cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
}

.page-tin-tuc__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    border: none;
}

.page-tin-tuc__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-tin-tuc__btn-secondary {
    background: var(--card-bg-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 15px;
}

.page-tin-tuc__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Section Titles and Descriptions */
.page-tin-tuc__section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-tin-tuc__section-description {
    font-size: 1.1em;
    color: var(--text-main-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* News Categories Section */
.page-tin-tuc__news-categories-section {
    padding: 60px 0;
    background-color: #fcfcfc;
}

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

.page-tin-tuc__category-card {
    background: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-main-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tin-tuc__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-tin-tuc__category-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--primary-color);
    padding: 15px 20px 10px;
}

.page-tin-tuc__category-text {
    font-size: 0.95em;
    padding: 0 20px 20px;
    flex-grow: 1;
}

.page-tin-tuc__button-container {
    text-align: center;
    margin-top: 40px;
}

/* Benefits Section */
.page-tin-tuc__benefits-section {
    padding: 60px 0;
    background-color: var(--page-bg-color);
}

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

.page-tin-tuc__benefit-item {
    background: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
}

.page-tin-tuc__benefit-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    display: block;
}

.page-tin-tuc__benefit-title {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding: 0 20px;
}

.page-tin-tuc__benefit-text {
    font-size: 0.95em;
    color: var(--text-main-color);
    padding: 0 20px;
}

/* Access Guide Section */
.page-tin-tuc__access-guide-section {
    padding: 60px 0;
    background-color: #fcfcfc;
}

.page-tin-tuc__guide-content {
    max-width: 800px;
    margin: 40px auto 0 auto;
    font-size: 1.05em;
    line-height: 1.8;
}

.page-tin-tuc__guide-content p {
    margin-bottom: 15px;
}

.page-tin-tuc__guide-list {
    list-style-type: decimal;
    margin-left: 25px;
    margin-bottom: 20px;
}

.page-tin-tuc__guide-list li {
    margin-bottom: 10px;
}

.page-tin-tuc__guide-list strong {
    color: var(--primary-color);
}

/* FAQ Section */
.page-tin-tuc__faq-section {
    padding: 60px 0;
    background-color: var(--page-bg-color);
}

.page-tin-tuc__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.page-tin-tuc__faq-item {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.page-tin-tuc__faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-tin-tuc__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--text-main-color);
    cursor: pointer;
    list-style: none;
    position: relative;
}

.page-tin-tuc__faq-question::-webkit-details-marker, /* Hide default marker for Chrome/Safari */
.page-tin-tuc__faq-question::marker { /* Hide default marker for Firefox */
    display: none;
}

.page-tin-tuc__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
    color: var(--primary-color);
}

.page-tin-tuc__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.page-tin-tuc__faq-item[open] .page-tin-tuc__faq-toggle {
    transform: rotate(45deg);
}

.page-tin-tuc__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-main-color);
    border-top: 1px solid var(--border-color);
    margin-top: -1px; /* Overlap border to prevent double line */
}

.page-tin-tuc__faq-answer p {
    margin-top: 15px;
}

/* Conclusion Section */
.page-tin-tuc__conclusion-section {
    padding: 60px 0 80px;
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
}

.page-tin-tuc__conclusion-section .page-tin-tuc__section-title {
    color: #ffffff;
}

.page-tin-tuc__conclusion-section .page-tin-tuc__description {
    color: #ffffff;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-tin-tuc__conclusion-section .page-tin-tuc__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid #ffffff;
}

.page-tin-tuc__conclusion-section .page-tin-tuc__btn-secondary:hover {
    background: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
}

/* General Image Styling */
.page-tin-tuc img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Placeholder for homepage elements CSS, as required by "必写清单" but not used in HTML */
/* The following CSS blocks are included to meet the '移动端 @media (max-width: 768px) 必写清单' requirement, 
   even if the corresponding HTML elements are not present in this specific page's HTML. */
.page-tin-tuc__hero-carousel-section { /* Placeholder for top carousel section */
    padding-top: 10px; /* Example: minimal top padding */
}

.page-tin-tuc__hero-slider { /* Placeholder for slider container */
    position: relative;
    overflow: hidden;
}

.page-tin-tuc__hero-slide { /* Placeholder for individual slide */
    width: 100%;
    height: auto;
    display: none;
}

.page-tin-tuc__hero-slide.is-active {
    display: block;
}

.page-tin-tuc__hero-slider-prev, .page-tin-tuc__hero-slider-next { /* Placeholder for slider navigation */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 100;
}

.page-tin-tuc__hero-slider-prev { left: 10px; }
.page-tin-tuc__hero-slider-next { right: 10px; }

.page-tin-tuc__guide-box { /* Placeholder for guide box */
    padding: 16px 20px 24px;
    background: #f5e6d3; /* Example background */
    border-radius: 4px;
}

.page-tin-tuc__guide-grid { /* Placeholder for guide grid */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.page-tin-tuc__guide-card { /* Placeholder for guide card */
    flex: 0 0 20%;
    max-width: 20%;
}

.page-tin-tuc__guide-card img { /* Placeholder for guide card image */
    aspect-ratio: 250/350;
    object-fit: contain;
    width: 100%;
    height: auto;
}

.page-tin-tuc__guide-card--pos-1, .page-tin-tuc__guide-card--pos-5 { /* Placeholder for specific card positions */
    padding-top: 50px;
}

.page-tin-tuc__guide-card--pos-2, .page-tin-tuc__guide-card--pos-4 { /* Placeholder for specific card positions */
    padding-top: 25px;
}

.page-tin-tuc__home-content-box { /* Placeholder for home content box */
    max-width: 91%;
    margin: 0 auto;
    padding: 10px 16px;
    border: 5px solid #3477c9; /* Example border */
    border-radius: 15px;
    box-shadow: 0 0 20px #3477c9;
    height: 700px;
    overflow: hidden;
}

.page-tin-tuc__home-content-inner { /* Placeholder for home content inner scrollable area */
    height: 100%;
    overflow-y: auto;
}

.page-tin-tuc__blog-section { /* Placeholder for blog section */
    padding: 60px 0;
}

.page-tin-tuc__blog-grid { /* Placeholder for blog grid */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* --- Media Queries --- */

@media (max-width: 1024px) {
    .page-tin-tuc__container {
        padding: 15px;
    }

    .page-tin-tuc__main-title {
        font-size: 2.5em;
    }

    .page-tin-tuc__section-title {
        font-size: 2em;
    }

    .page-tin-tuc__hero-content {
        margin-top: -100px;
        padding: 25px 30px;
    }

    .page-tin-tuc__category-image {
        height: 180px;
    }

    .page-tin-tuc__benefit-image {
        height: 220px;
    }

    .page-tin-tuc__category-grid, .page-tin-tuc__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

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

    .page-tin-tuc__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-tin-tuc__hero-section {
        padding-top: 10px !important; /* Fixed top padding for mobile */
        margin-bottom: 20px;
    }

    .page-tin-tuc__hero-image-wrapper {
        padding-bottom: 75%; /* Adjust aspect ratio for mobile hero */
    }

    .page-tin-tuc__hero-content {
        margin-top: -80px;
        padding: 20px;
        border-radius: 5px;
    }

    .page-tin-tuc__main-title {
        font-size: 1.8em;
        margin-bottom: 10px;
    }

    .page-tin-tuc__description {
        font-size: 1em;
        margin-bottom: 15px;
    }

    .page-tin-tuc__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        padding: 10px 15px;
        margin-left: 0 !important;
        margin-bottom: 10px;
    }
    
    .page-tin-tuc__button-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .page-tin-tuc__btn-secondary {
        margin-left: 0;
    }

    .page-tin-tuc__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-tin-tuc__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* News Categories Section Mobile */
    .page-tin-tuc__news-categories-section {
        padding: 40px 0;
    }

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

    .page-tin-tuc__category-image {
        height: 150px;
    }

    .page-tin-tuc__category-title {
        font-size: 1.2em;
        padding: 10px 15px 5px;
    }

    .page-tin-tuc__category-text {
        font-size: 0.9em;
        padding: 0 15px 15px;
    }

    /* Benefits Section Mobile */
    .page-tin-tuc__benefits-section {
        padding: 40px 0;
    }

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

    .page-tin-tuc__benefit-image {
        height: 180px;
    }

    .page-tin-tuc__benefit-title {
        font-size: 1.1em;
    }

    .page-tin-tuc__benefit-text {
        font-size: 0.9em;
    }

    /* Access Guide Section Mobile */
    .page-tin-tuc__access-guide-section {
        padding: 40px 0;
    }

    .page-tin-tuc__guide-content {
        margin-top: 20px;
        font-size: 1em;
    }

    .page-tin-tuc__guide-list {
        margin-left: 20px;
    }

    /* FAQ Section Mobile */
    .page-tin-tuc__faq-section {
        padding: 40px 0;
    }

    .page-tin-tuc__faq-list {
        margin-top: 20px;
    }

    .page-tin-tuc__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-tin-tuc__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }

    /* Conclusion Section Mobile */
    .page-tin-tuc__conclusion-section {
        padding: 40px 0 60px;
    }

    /* Mandatory mobile image adaptation */
    .page-tin-tuc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-tin-tuc__hero-image-wrapper,
    .page-tin-tuc__category-card,
    .page-tin-tuc__benefit-item,
    .page-tin-tuc__faq-item,
    .page-tin-tuc__container,
    .page-tin-tuc__news-categories-section,
    .page-tin-tuc__benefits-section,
    .page-tin-tuc__access-guide-section,
    .page-tin-tuc__faq-section,
    .page-tin-tuc__conclusion-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }

    /* Placeholder for homepage elements CSS, as required by "必写清单" but not used in HTML */
    /* 1. 顶区轮播 */
    .page-tin-tuc__hero-carousel-section {
        padding-top: 10px !important;
    }
    .page-tin-tuc__hero-slider { /* Adjust slider for single frame mobile */
        /* specific styles for mobile slider */
    }
    .page-tin-tuc__hero-slide { /* Ensure slides adapt */
        /* specific styles for mobile slide */
    }
    .page-tin-tuc__hero-slider-prev, .page-tin-tuc__hero-slider-next {
        padding: 8px 12px;
        font-size: 1.2em;
    }

    /* 2. 操作指引外框 + 五张 `team` 竖型卡 */
    .page-tin-tuc__guide-box {
        padding: 10px;
    }
    .page-tin-tuc__guide-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 5px;
    }
    .page-tin-tuc__guide-card {
        padding-top: 0 !important; /* Reset specific desktop padding */
        flex: none;
        max-width: none;
    }
    .page-tin-tuc__guide-card--pos-1, .page-tin-tuc__guide-card--pos-2 {
        grid-column: span 3; /* Top two cards span 3 columns each */
    }
    .page-tin-tuc__guide-card--pos-3, .page-tin-tuc__guide-card--pos-4, .page-tin-tuc__guide-card--pos-5 {
        grid-column: span 2; /* Bottom three cards span 2 columns each */
    }
    .page-tin-tuc__guide-card img {
        aspect-ratio: 250/350;
        object-fit: contain;
        width: 100%;
        height: auto;
    }

    /* 3. `home_content` 外框 */
    .page-tin-tuc__home-content-box {
        max-width: 100% !important;
        height: auto !important; /* Auto height on mobile */
        padding: 10px;
        border-radius: 10px;
        box-shadow: none;
        border: 2px solid #3477c9;
    }
    .page-tin-tuc__home-content-inner {
        height: auto !important;
        overflow: visible !important; /* Allow content to expand */
    }

    /* 4. 博客卡片区 */
    .page-tin-tuc__blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* 5. 通用图片与按钮 (already covered by .page-tin-tuc img and .page-tin-tuc__cta-button) */
}

@media (max-width: 480px) {
    .page-tin-tuc__main-title {
        font-size: 1.5em;
    }
    .page-tin-tuc__section-title {
        font-size: 1.5em;
    }
    .page-tin-tuc__hero-content {
        margin-top: -60px;
    }
    .page-tin-tuc__category-grid {
        grid-template-columns: 1fr;
    }
    .page-tin-tuc__benefits-grid {
        grid-template-columns: 1fr;
    }
    .page-tin-tuc__category-image {
        height: 120px;
    }
    .page-tin-tuc__benefit-image {
        height: 150px;
    }
    /* Mobile Blog Grid 1 column */
    .page-tin-tuc__blog-grid {
        grid-template-columns: 1fr;
    }
}