/* style/tintc.css */
:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B;
}

.page-tintc {
    background-color: var(--deep-navy); /* From shared.css, dark background */
    color: var(--text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* General bottom padding for the page content */
}

/* Hero Section */
.page-tintc__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as body handles header offset */
    padding-bottom: 40px;
    color: var(--text-main);
    text-align: center;
    overflow: hidden; /* Ensure content doesn't spill out */
}

.page-tintc__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for aesthetic */
    overflow: hidden;
    position: relative;
}

.page-tintc__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image slightly for text readability */
}

.page-tintc__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    max-width: 800px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-tintc__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Flexible font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--gold); /* Use gold for prominence */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-tintc__subtitle {
    font-size: clamp(1em, 1.5vw, 1.3em);
    margin-bottom: 30px;
    color: var(--text-secondary);
    max-width: 600px;
}

/* CTA Buttons */
.page-tintc__cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-tintc__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    margin-right: 15px;
}

.page-tintc__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-tintc__btn-secondary {
    background: #ffffff;
    color: var(--primary-color); /* #113B7A */
    border: 2px solid var(--primary-color);
}

.page-tintc__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

/* News List Section */
.page-tintc__news-list-section {
    padding: 60px 0;
    background-color: var(--deep-navy);
    color: var(--text-main);
}

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

.page-tintc__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--gold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

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

.page-tintc__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-tintc__news-card {
    background-color: var(--card-bg); /* #10233F */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-tintc__news-card-image-wrapper {
    width: 100%;
    height: 220px; /* Fixed height for consistent card appearance */
    overflow: hidden;
}

.page-tintc__news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-tintc__news-card:hover .page-tintc__news-card-image {
    transform: scale(1.05);
}

.page-tintc__news-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-tintc__news-card-date {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.page-tintc__news-card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

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

.page-tintc__news-card-title a:hover {
    color: var(--gold);
}

.page-tintc__news-card-excerpt {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-tintc__news-card-readmore {
    display: inline-block;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
    align-self: flex-start;
}

.page-tintc__news-card-readmore:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.page-tintc__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.page-tintc__pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--card-bg);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-tintc__pagination-link:hover:not(.page-tintc__pagination-active) {
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-tintc__pagination-active {
    background: var(--button-gradient);
    color: #ffffff;
    cursor: default;
}

.page-tintc__pagination-next {
    width: auto;
    padding: 0 15px;
}

.page-tintc__content-summary {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 50px auto 0 auto;
    padding: 0 20px;
}

/* CTA Section at bottom */
.page-tintc__cta-section {
    background-color: var(--primary-color); /* #113B7A */
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

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

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

.page-tintc__cta-description {
    font-size: 1.15em;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
}

.page-tintc__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    overflow: hidden;
}

/* General image and container styles for responsiveness */
.page-tintc img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Media Queries for Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-tintc__hero-section {
        padding-bottom: 30px;
    }
    .page-tintc__hero-image-wrapper {
        max-height: 550px;
    }
    .page-tintc__main-title {
        font-size: 3em;
    }
    .page-tintc__subtitle {
        font-size: 1.2em;
    }
    .page-tintc__news-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
        gap: 25px;
    }
    .page-tintc__news-card-image-wrapper {
        height: 200px;
    }
    .page-tintc__news-card-title {
        font-size: 1.3em;
    }
    .page-tintc__cta-section {
        padding: 60px 0;
    }
    .page-tintc__cta-title {
        font-size: 2.5em;
    }
}

/* Media Queries for Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-tintc__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 30px;
    }

    .page-tintc__hero-image-wrapper {
        max-height: 400px;
    }

    .page-tintc__hero-content {
        position: static; /* Remove absolute positioning on mobile */
        transform: none;
        padding: 20px 15px;
        text-align: center;
        background: linear-gradient(rgba(8, 22, 43, 0.7), var(--deep-navy)); /* Add a subtle gradient background to content */
    }

    .page-tintc__main-title {
        font-size: 2em; /* Smaller H1 for mobile */
        margin-bottom: 10px;
    }

    .page-tintc__subtitle {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* 通用图片与容器 */
    .page-tintc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-tintc__container,
    .page-tintc__news-list-section,
    .page-tintc__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 产品展示图区域 (News Grid in this case) */
    .page-tintc__news-grid {
        grid-template-columns: 1fr; /* Single column for news cards */
        gap: 20px;
    }

    .page-tintc__news-card-image-wrapper {
        height: 180px; /* Adjust height for mobile */
    }

    .page-tintc__news-card-content {
        padding: 20px;
    }

    .page-tintc__news-card-title {
        font-size: 1.2em;
    }

    /* 按钮与按钮容器 */
    .page-tintc__cta-button,
    .page-tintc__btn-primary,
    .page-tintc__btn-secondary,
    .page-tintc a[class*="button"],
    .page-tintc a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 0 10px 0 !important; /* Stack buttons vertically */
    }
    
    .page-tintc__cta-buttons,
    .page-tintc__button-group,
    .page-tintc__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        flex-direction: column !important; /* Stack buttons */
        gap: 10px;
    }

    /* 其他内容模块 */
    .page-tintc__section-title {
        font-size: 1.8em;
    }

    .page-tintc__section-description,
    .page-tintc__content-summary,
    .page-tintc__cta-description {
        font-size: 0.95em;
        padding: 0 5px;
    }

    .page-tintc__pagination {
        gap: 5px;
    }

    .page-tintc__pagination-link {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }
}