/*
    hero
*/
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-section img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.hero-overlay div {
    font-family: "Source-Sans-Pro-Bold-2";
    color: #ffffff;
    font-size: clamp(2rem, 20vw, 3.75rem) !important;
    line-height: 65px;
    font-weight: bold;
    text-align: center;
    padding: 0 1rem;
    white-space: break-spaces;
    -webkit-text-size-adjust: none !important; /* Safari/iOS */
    text-size-adjust: none !important; /* 标准属性 */
}


/*
    company
*/
.company-intro {
    padding: 100px 0;
    position: relative;
}

.company-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/static/images/tmpl-xyt/line-bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
    opacity: 0.3;
    z-index: -1;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.intro-content .intro-text h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--brand-dark);
    margin-bottom: 24px;
    line-height: 1.2;
}

.intro-content .intro-text p {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 32px;
    white-space: break-spaces;
}

.intro-content .intro-text .stats-slogan {
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-content .intro-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.intro-content .intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 750px) {
    .intro-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .intro-content .intro-text h2 {
        font-size: 2rem;
    }
}


/*
    stats
 */
.stats-section {
    padding: 5rem 0;
}

.stats-section .stat-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.stats-section .stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: white;
    border-radius: 16px;
    padding: 1rem 1rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-section .stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.stats-section .stat-number {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 7rem;
    /*flex-grow: 1;*/
    font-family: "AbrilFatface-Regular-2", sans-serif !important;
    font-size: clamp(2rem, 4.6vw, 3.5rem);
    font-weight: 700;
    color: var(--compare-color);
    margin-bottom: 12px;
    line-height: 1;
    text-align: center;
    width: 100%;
}

.stats-section .stat-label {
    font-family: "AbrilFatface-Regular-2", sans-serif !important;
    font-size: 1.1rem;
    color: #101010;
    font-weight: 500;
}

/* 小于750px - 手机 */
@media (max-width: 750px) {

    .stats-section .stat-list {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .stats-section .stat-number {
        min-height: 4rem;
        aspect-ratio: 3 / 2;
    }
}


/*
    products
*/
.products-section {
    padding: 5rem 0;
}

.section-title {
    font-family: "AbrilFatface-Regular-2", sans-serif !important;
    font-size: 3rem;
    font-weight: 350;
    text-align: center;
    color: var(--brand-dark);
    margin-bottom: 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 2rem;
}

.product-card {
    background: white;
}

.product-image {
    aspect-ratio: 3/2;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 10px 0;
}

.product-title {
    font-family: "AbrilFatface-Regular-2", "AiDianFengYaHei", sans-serif !important;
    font-size: 1.25rem;
    color: var(--brand-dark);
    margin-bottom: 8px;
    font-weight: 400;
}

.product-desc {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 小于750px - 手机 */
@media (max-width: 750px) {

    .section-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}




/*
    news
*/
.news-section {
    padding: 5rem 0;
    background: white;
}

.news-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(3, 1fr);
}

.news-card {
    display: flex;
    flex-direction: column;
    background: white;
}

.news-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.news-image {
    aspect-ratio: 16/9;
    background: #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    padding: 24px 0;
}

.news-title {
    flex-grow: 1;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #64748b;
    font-size: 0.9rem;
}

.news-category {
    background: var(--brand-main);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 小于750px - 手机 */
@media (max-width: 750px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}