/* 全局间距变量 */
:root {
    --section-spacing: 50px;
    --section-spacing-mobile: 30px;
    --title-spacing: 30px;
    --content-spacing: 20px;
}

/* 全局统一模块外层间距 */
.featured-products,
.about-us,
.why-choose-us,
.latest-news,
.contact-us,
.factory-workshop {
    padding-top: var(--section-spacing);
    padding-bottom: var(--section-spacing);
}

/* section-header统一间距 */
.section-header {
    margin-top: 0;
    margin-bottom: var(--title-spacing);
    text-align: center;
    position: relative;
}

/* 所有内容区和内容元素底部间距清零 */
.featured-products .row,
.about-content,
.about-cta,
.stats-grid,
.advantages-grid,
.news-grid,
.contact-wrapper,
.product-info,
.company-intro,
.intro-text,
.news-content,
.news-title,
.news-excerpt,
.btn,
.btn-inquiry,
.btn-explore {
    margin-bottom: var(--content-spacing);
    padding-bottom: 0 !important;
}

.featured-products .row:last-child,
.about-content:last-child,
.stats-grid:last-child,
.advantages-grid:last-child,
.news-grid:last-child,
.contact-wrapper:last-child {
    margin-bottom: 0;
}

/* divider、装饰线等上下间距统一 */
.section-divider,
.title-divider {
    margin-top: 0;
    margin-bottom: 20px;
}

/* divider内的line和dot装饰元素上下间距清零 */
.section-divider .line,
.section-divider .dot,
.title-divider .line,
.title-divider .dot {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* 保留必要的背景色设置 */
/* .about-us, .why-choose-us, .latest-news, .contact-us, .factory-workshop 的 background-color 相关样式全部删除 */

/* 5. 轮播图样式 
----------------------------------------*/
/* 5.1 轮播图基础样式 */
#mainCarousel {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.carousel-item {
    width: 100%;
    position: relative;
    padding-top: 44.27%;  /* 默认比例 850/1920 = 44.27% */
}

.carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

/* 响应式设计 */
/* 大屏幕设备 (大于等于1200px) - 桌面端默认样式已覆盖，可省略或用于微调 */
@media (min-width: 1200px) {
    .carousel-item {
        padding-top: 44.27%;  /* 保持原始比例 */
    }
}

/* 平板设备 (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .carousel-item {
        padding-top: 50%;  /* 稍微增加高度比例 */
    }
    .carousel-caption h2 {
        font-size: 3.5rem;
    }
    .carousel-caption p {
        font-size: 1.6rem;
    }
}

/* 手机设备 (小于768px) */
@media (max-width: 767px) {
    .carousel-item {
        padding-top: 66.67%;  /* 更适合手机屏幕的比例 2:3 */
    }
    .carousel-caption h2 {
        font-size: 2.5rem;
    }
    .carousel-caption p {
        font-size: 1.4rem;
    }
    #mainCarousel .carousel-control-prev,
    #mainCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
    .carousel-caption {
        bottom: 15%; /* 调整文字位置 */
        padding: 0 10%; /* 增加左右内边距 */
        gap: 0.8rem;
    }
    .carousel-caption .btn-wrapper {
        margin-top: 1rem; /* 调整按钮与文字间距 */
         transform: translateY(0); /* 移除向上移动效果或调整 */
    }
    .btn-explore {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    .carousel-indicators {
        padding: 10px 0;
    }
    .carousel-indicators [data-bs-target] {
        width: 15px;
        height: 15px;
        margin: 0 6px;
    }
}

/* 小型手机设备 (小于576px) */
@media (max-width: 575px) {
    .carousel-item {
        padding-top: 75%;  /* 更紧凑的比例 4:3 */
    }
    .carousel-caption h2 {
        font-size: 2rem;
        max-width: 95%;
    }
    .carousel-caption p {
        font-size: 1.2rem;
        max-width: 95%;
    }
     .carousel-caption .btn-wrapper {
        margin-top: 0.5rem;
    }
    .btn-explore {
        padding: 10px 25px;
        font-size: 1rem;
    }
}


/* 5.2 轮播图文字样式 */
.carousel-caption {
    bottom: 10%;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    left: 0;
    right: 0;
    z-index: 2;
}

.carousel-caption h2 {
    font-size: 4.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    white-space: nowrap;
    text-align: center;
    max-width: 80%;
    margin: 0 auto 0.5rem auto;
}

.carousel-caption p {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.4;
    opacity: 0.95;
    white-space: nowrap;
    text-align: center;
    max-width: 80%;
    margin: 0 auto 1.5rem auto;
}

/* 5.3 按钮样式 */
.carousel-caption .btn-wrapper {
    margin-top: 2rem;
    text-align: center;
    width: 100%;
    transform: translateY(-20px);  /* 向上移动20px */
}

.btn-explore {
    background-color: var(--soft-gold);
    color: #fff;
    padding: 15px 35px;
    border-radius: 30px;
    border: none;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-block;
    position: relative;
    z-index: 1;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.4);
    transition: all 0.3s ease;
    will-change: transform;
}

.btn-explore:hover {
    transform: translateY(-2px);
    background-color: var(--light-gold);
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.5);
    color: #fff;
    text-decoration: none;
}

.btn-explore:active {
    transform: translateY(1px);
    background-color: var(--soft-gold);
    box-shadow: 0 2px 10px rgba(255, 184, 0, 0.4);
}

/* 5.4 轮播图指示器样式 */
.carousel-indicators {
    position: absolute;
    margin: 0;
    bottom: 0;
    padding: 15px 0;
    background-color: var(--light-tiffany);
    width: 100%;
    z-index: 3;
    order: 2;  /* 指示器在下 */
}

.carousel-indicators [data-bs-target] {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid rgba(0,0,0,0.1);
    margin: 0 8px;
    transition: all 0.3s ease;
    opacity: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    will-change: transform;
}

.carousel-indicators .active {
    background-color: var(--soft-gold);
    border-color: var(--soft-gold);
    transform: scale(1.2);
    box-shadow: 0 3px 6px rgba(255, 165, 0, 0.3);
}

/* 5.5 轮播图控制按钮样式 */
#mainCarousel .carousel-control-prev,
#mainCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: var(--dark-tiffany);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 1000;
    will-change: transform;
}

/* 箭头按钮位置 */
#mainCarousel .carousel-control-prev {
    left: 20px;
}

#mainCarousel .carousel-control-next {
    right: 20px;
}

/* 箭头按钮悬停效果 */
#mainCarousel .carousel-control-prev:hover,
#mainCarousel .carousel-control-next:hover {
    background-color: var(--tiffany-blue);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

/* 6. 产品展示区样式 
----------------------------------------*/
.featured-products .row {
    margin: 0 auto;
    max-width: 1300px;
    margin-bottom: 0;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--light-gold);
    margin: 0 auto;
}

/* 6.2 Product Card Styles */
.featured-products .col-lg-4 {
    padding: 15px;
    transition: transform 0.3s ease;
}

.product-card {
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 卡片悬停效果 */
.featured-products .col-lg-4:hover {
    transform: scale(1.05);  /* 放大效果 */
    z-index: 2;  /* 确保放大时在其他卡片上层 */
}

.featured-products .col-lg-4:hover .product-card {
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.15);  /* 悬停时加深阴影 */
}

/* 图片悬停效果 */
.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    min-height: 300px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-products .col-lg-4:hover .product-image img {
    transform: scale(1.03);  /* 图片轻微放大 */
}

.product-info {
    padding: 15px;
    text-align: center;
    flex-shrink: 0;  /* 防止文字部分被压缩 */
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    height: auto;  /* 允许标题自然高度 */
}

.btn-inquiry {
    margin-top: auto;  /* 保持按钮在底部 */
    padding: 8px 20px;
    font-size: 0.95rem;
}

/* 产品展示区响应式调整 */
@media (max-width: 1200px) {
    .product-card {
        max-width: 340px; /* 平板和大屏幕之间调整 */
    }
    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) { /* 平板 */
    .product-card {
        max-width: 280px;
    }
    .product-image {
        min-height: 280px;
    }
     .featured-products .row {
        /* 如果需要，可以在平板上调整列数，例如改为每行2个 */
        /* 例如： display: flex; flex-wrap: wrap; justify-content: center; */
    }
    .featured-products .col-lg-4 { /* Bootstrap的列，可能需要调整为其他类或直接选择子元素 */
        /* flex-basis: 50%; max-width: 50%; */ /* 如果改为每行2个 */
    }
}

@media (max-width: 767px) { /* 手机 */
    .featured-products {
        padding: var(--section-spacing-mobile) 0;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .section-divider {
        width: 50px;
    }
    .product-card {
        max-width: 100%;  /* 在移动端占满容器宽度或接近占满 */
        margin-left: 15px; /* 示例：增加左右边距 */
        margin-right: 15px;
    }
    .featured-products .col-lg-4 { /* 在手机上通常每行一个 */
        padding: 10px; /* 调整卡片间距 */
        /* flex-basis: 100%; max-width: 100%; */ /* 如果父元素是flex布局 */
    }
    .product-image {
        min-height: 250px; 
    }
    .product-info {
        padding: 15px;
    }
     .product-info h3 {
        font-size: 1rem;
    }
    .btn-inquiry {
        font-size: 0.9rem;
        padding: 6px 18px;
    }
}


/* 6.3 Button Styles */
.btn-inquiry {
    background-color: var(--soft-gold);
    color: #fff;
    padding: 8px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    width: auto;
    min-width: 120px;
}

.btn-inquiry:hover {
    background-color: #FFB800;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.3);
}

/* 7. About Us Section Styles
----------------------------------------*/
.about-us {
    padding-top: 0 !important;
    padding-bottom: var(--section-spacing) !important;
}

/* 7.2 Section Header
----------------------------------------*/
.section-header {
    text-align: center;
    margin-bottom: var(--content-spacing);
}

.section-title {
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Title Divider */
.title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0 50px;
}

.title-divider .line {
    width: 40px;
    height: 2px;
    background-color: var(--soft-gold);
}

.title-divider .dot {
    width: 8px;
    height: 8px;
    background-color: var(--soft-gold);
    border-radius: 50%;
    margin: 0 10px;
}

/* 7.3 Video Section
----------------------------------------*/
.factory-video-wrapper {
    position: relative;
    padding-left: 20px;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
    will-change: transform;
}

.factory-video {
    position: relative;
    width: 100%;
    background: #000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.factory-video::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 20px;
    bottom: -20px;
    width: 20px;
    background-color: var(--dark-tiffany);
}

.factory-video::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -20px;
    height: 20px;
    width: calc(100% - 20px);
    background-color: var(--dark-tiffany);
}

.factory-video-player {
    width: 100%;
    display: block;
    min-height: 400px;
    background: #000;
    border: none;
}

/* 7.4 Content Section
----------------------------------------*/
/* Company Introduction */
.company-intro {
    margin-bottom: 50px;
}

.intro-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #2C3E50;
    font-weight: 500;
    margin-bottom: 40px;
    letter-spacing: 0.02em;
}

/* 7.5 Stats Grid
----------------------------------------*/
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

/* Stat Card Design */
.stat-card {
    background: var(--pale-tiffany);
    padding: 22px 18px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform-origin: center;
    will-change: transform;
}

/* 卡片悬停效果 */
.stat-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
    z-index: 1;
}

/* 图标样式 */
.stat-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--tiffany-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    will-change: transform;
}

/* 图标悬停效果 */
.stat-card:hover .stat-icon {
    transform: rotate(5deg);
}

.stat-icon i {
    color: #fff;
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}

/* 文字内容区域 */
.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--soft-gold, #FFB800);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    transition: color 0.3s ease;
    display: inline-block;
    min-height: 50px; /* 防止计数过程中高度变化 */
    position: relative;
    /* 添加计数器动画的样式 */
    opacity: 1;
    transform: translateY(0);
}

/* 数字悬停效果 */
.stat-card:hover .stat-number {
    transform: translateY(-2px);
}

/* 7.6 Call-to-Action Buttons
----------------------------------------*/
.about-cta {
    display: flex;
    gap: 20px;
    margin-top: 50px;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    will-change: transform;
}

.btn-contact,
.btn-view {
    background: linear-gradient(to right, var(--soft-gold), var(--light-gold));
    color: #fff;
    border: none;
}

.btn-contact:hover,
.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,167,38,0.3);
}

/* About Us 响应式调整 */
@media (min-width: 993px) { /* 确保内容区在较大屏幕上有左边距 */
    .about-content { /* This class seems to wrap the text content part */
        padding-left: 50px;
    }
}

@media (max-width: 992px) { /* 平板 */
    .about-us .row > .col-lg-6 { /* Assuming Bootstrap grid, make columns stack or adjust width */
       /* flex-basis: 100%; max-width: 100%; */ /* Stack columns */
       margin-bottom: 30px; /* Add space between stacked video and content */
    }
    .about-us .row > .col-lg-6:last-child {
        margin-bottom: 0;
    }
    .about-content {
        padding-left: 0; /* Remove padding when stacked */
        margin-top: 0; /* Was 40px, adjust if video is above */
    }
    .company-intro {
        max-width: 100%; /* Allow full width */
    }
    .intro-text {
        font-size: 1.2rem; /* Slightly smaller text */
    }
    .stats-grid {
        gap: 10px; /* Smaller gap */
        /* grid-template-columns: 1fr; */ /* Optionally stack stat cards on tablet */
    }
    .stat-card:hover {
        transform: scale(1.03); /* Less pronounced hover effect */
    }
    .factory-video-wrapper {
        padding-left: 15px;
        padding-bottom: 15px;
    }
    .factory-video-player {
        min-height: 320px;
    }
}

@media (max-width: 767px) { /* 手机 */
    .about-us {
        padding-top: var(--section-spacing-mobile) !important; /* Use mobile spacing */
        padding-bottom: var(--section-spacing-mobile) !important;
    }
    .section-title {
        font-size: 2.2rem; /* Smaller section title */
    }
    .factory-video-wrapper {
        padding-left: 0; /* No decorative padding */
        padding-bottom: 0;
    }
    .factory-video::before, .factory-video::after {
        display: none; /* Hide decorative borders */
    }
    .factory-video-player {
        min-height: 250px; /* Adjust video height */
    }
    .intro-text {
        font-size: 1.1rem; /* Smaller intro text */
        line-height: 1.7;
        margin-bottom: 30px;
    }
    .stats-grid {
        grid-template-columns: 1fr; /* Stack stat cards */
        gap: 15px;
    }
    .stat-card {
        padding: 18px 15px;
    }
    .stat-number {
        font-size: 1.6rem;
    }
    .about-cta {
        flex-direction: column; /* Stack CTA buttons */
        gap: 15px;
        margin-top: 30px;
    }
    .about-cta .btn {
        width: 100%; /* Full-width buttons */
        text-align: center;
        font-size: 1rem;
        padding: 12px 20px;
    }
}

@media (max-width: 575px) { /* 小型手机 */
    .intro-text {
        font-size: 1rem;
    }
    .stats-grid { /* On very small screens, maybe ensure it's still 1 column if not already */
        grid-template-columns: 1fr;
    }
    .stat-card {
        padding: 15px 12px;
        gap: 10px;
    }
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    .stat-icon i {
        font-size: 1.5rem;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .factory-video-player {
        min-height: 200px;
    }
}


/* 8. Why Choose Us Styles
----------------------------------------*/
.why-choose-us {
    padding-top: 0 !important;
    padding-bottom: var(--section-spacing) !important;
}

/* 8.1 Advantages Grid Layout */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: var(--content-spacing);
    margin-bottom: 0;
}

/* 8.2 Advantage Card Styles */
.advantage-card {
    background: var(--pale-tiffany);
    border-radius: 6px;
    padding: 30px;
    display: flex;
    gap: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    will-change: transform;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Icon Styles */
.advantage-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--tiffany-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon i {
    font-size: 28px;
    color: #fff;
}

/* Content Styles */
.advantage-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 12px;
}

.advantage-text {
    font-size: 1rem;
    color: #2C3E50;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* List Styles */
.advantage-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advantage-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #2C3E50;
    font-size: 0.95rem;
}

.advantage-list li::before {
    content: '•';
    color: var(--soft-gold);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

/* Section Title Styles for Why Choose Us - check if global .section-title is sufficient */
/* .section-title { color: #2C3E50; } */
/* .title-divider .line { background-color: var(--soft-gold); } */
/* .title-divider .dot { background-color: var(--soft-gold); } */


/* Why Choose Us 响应式调整 */
@media (max-width: 992px) { /* 平板 */
    .advantages-grid {
        grid-template-columns: 1fr; /* Stack advantage cards */
        gap: 25px;
    }
    .advantage-card {
        padding: 25px; /* Adjust padding */
    }
    .advantage-icon {
        width: 50px;
        height: 50px;
    }
    .advantage-icon i {
        font-size: 24px;
    }
    .advantage-title {
        font-size: 1.3rem;
    }
    .advantage-text {
        font-size: 0.95rem;
    }
    .advantage-list li {
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) { /* 手机 */
    .why-choose-us {
         padding-top: var(--section-spacing-mobile) !important;
         padding-bottom: var(--section-spacing-mobile) !important;
    }
    .advantage-card {
        padding: 20px;
        gap: 20px;
    }
     .advantage-title {
        font-size: 1.2rem;
    }
    .advantage-text {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
     .advantage-list li {
        font-size: 0.85rem;
        margin-bottom: 6px;
        padding-left: 18px;
    }
    .advantage-list li::before {
        font-size: 1.1rem;
    }
}


@media (max-width: 575px) { /* 小型手机 */
    .advantage-card {
        flex-direction: column; /* Stack icon and content within card */
        gap: 15px;
        text-align: center; /* Center content if stacked */
    }
    .advantage-icon {
        margin: 0 auto; /* Center icon when stacked */
    }
    .advantage-list li {
        padding-left: 0; /* Remove padding for centered list */
        text-align: center;
    }
    .advantage-list li::before {
        display: none; /* Hide bullet for centered list, or adjust position */
    }
}


/* 9. Latest News Section Styles
----------------------------------------*/
.latest-news {
    padding-top: 0 !important;
    padding-bottom: var(--section-spacing) !important;
}

/* 9.1 News Grid Layout */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: var(--content-spacing);
    margin-bottom: 0;
}

/* 9.2 News Card Design */
.news-card {
    background: var(--pale-tiffany);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    will-change: transform;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* News Image Container */
.news-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    will-change: transform;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

/* News Date Badge */
.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--tiffany-blue);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    color: #fff;
}

.news-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
}

/* News Content */
.news-content {
    padding: 25px;
}

.news-title {
    font-size: 1.2rem;
    color: #2C3E50;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.news-excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Read More Link */
.read-more {
    color: var(--soft-gold);
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.read-more i {
    transition: transform 0.3s ease;
    will-change: transform;
}

.read-more:hover {
    color: var(--light-gold);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Latest News 响应式调整 */
@media (max-width: 992px) { /* 平板 */
    .news-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 news items per row */
        gap: 25px;
    }
}

@media (max-width: 767px) { /* 手机 */
    .latest-news {
         padding-top: var(--section-spacing-mobile) !important;
         padding-bottom: var(--section-spacing-mobile) !important;
    }
    .news-grid {
        grid-template-columns: 1fr; /* 1 news item per row */
        gap: 30px; /* Can be larger if items are stacked */
    }
    .news-content {
        padding: 20px; /* Adjust padding in card */
    }
    .news-title {
        font-size: 1.1rem; /* Adjust title font size */
    }
    .news-excerpt {
        font-size: 0.9rem; /* Adjust excerpt font size */
        margin-bottom: 15px;
    }
    .news-date {
        padding: 8px;
        top: 10px;
        right: 10px;
    }
    .news-date .day {
        font-size: 1.3rem;
    }
    .news-date .month {
        font-size: 0.7rem;
    }
}

/* 10. Contact Us Section Styles
----------------------------------------*/
.contact-us {
    padding-top: 0 !important;
    padding-bottom: var(--section-spacing) !important;
}

/* 10.1 Contact Wrapper */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Default: info left, form right */
    gap: 40px;
    margin-top: var(--content-spacing);
}

/* 10.2 Contact Info Styles */
.contact-info-section {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 100%; /* Ensure it takes full height of its grid cell */
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    min-height: 450px; /* Minimum height for the image and details */
}

.contact-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Adjust as needed */
}

.contact-details {
    position: absolute;
    bottom: 30px;
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center horizontally */
    width: calc(100% - 60px); /* Adjust width, leave some space from edges */
    max-width: 350px; /* Max width for the details box */
    background: rgba(224, 242, 241, 0.9); /* Semi-transparent background */
    backdrop-filter: blur(8px); /* Frosted glass effect */
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(129, 216, 208, 0.2); /* Soft divider */
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-item i {
    color: var(--soft-gold);
    font-size: 18px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9); /* White icon background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-text h3 {
    font-size: 0.9rem;
    color: #2C3E50;
    margin-bottom: 2px;
    font-weight: 600;
}

.contact-text p {
    color: #2C3E50;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0; /* Remove default p margin */
}


/* 10.3 Contact Form Styles */
.contact-form {
    background: var(--pale-tiffany);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for name/email, etc. */
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px; /* Spacing for single inputs like subject/message */
}
.form-row .form-group { /* No bottom margin if group is inside a row already managing gaps */
    margin-bottom: 0;
}


.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid transparent; /* Transparent border initially */
    border-radius: 10px;
    background: #fff; /* White background for inputs */
    font-size: 1rem;
    color: #2C3E50;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8; /* Placeholder text color */
}

.form-group textarea {
    height: 150px; /* Default textarea height */
    resize: vertical; /* Allow vertical resize */
    min-height: 120px; /* Min height */
    max-height: 300px; /* Max height */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none; /* Remove default focus outline */
    border-color: var(--tiffany-blue); /* Highlight border on focus */
    background: #fff;
    box-shadow: 0 4px 15px rgba(129, 216, 208, 0.15); /* Soft shadow on focus */
}

.form-button-container {
    display: flex;
    justify-content: center; /* Center the submit button */
    margin-top: 30px;
}

.submit-btn {
    background: var(--soft-gold);
    color: #fff;
    border: none;
    padding: 16px 40px; /* Generous padding */
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,184,0,0.2);
    will-change: transform;
}

.submit-btn:hover {
    background: var(--light-gold);
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 6px 20px rgba(255,184,0,0.3);
}

/* Contact Us 响应式调整 */
@media (max-width: 1200px) { /* Slightly larger tablets / smaller desktops */
    .contact-wrapper {
        grid-template-columns: 1fr 1.2fr; /* Adjust column ratio */
        gap: 30px;
    }
}

@media (max-width: 992px) { /* Tablets */
    .contact-wrapper {
        grid-template-columns: 1fr; /* Stack info and form */
        gap: 30px; /* Gap between stacked elements */
    }
    .contact-info-section {
        min-height: 400px; /* Adjust height when stacked */
        height: auto; /* Allow content to define height */
    }
    .contact-details {
        position: relative; /* Make it part of the flow */
        bottom: auto;
        left: auto;
        right: auto;
        transform: none;
        margin: 20px; /* Add margin when it's part of the flow */
        max-width: none; /* Allow full width within its container */
        width: auto;
    }
    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 767px) { /* Mobile phones */
    .contact-us {
        padding-top: var(--section-spacing-mobile) !important;
        padding-bottom: var(--section-spacing-mobile) !important;
    }
    .form-row {
        grid-template-columns: 1fr; /* Stack form fields in a row */
        gap: 0; /* Remove gap, rely on form-group margin */
    }
    .form-row .form-group {
        margin-bottom: 20px; /* Add margin back to stacked fields */
    }
    .form-row .form-group:last-child {
        margin-bottom: 0;
    }
    .contact-form {
        padding: 25px;
    }
    .form-group input, .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }
    .submit-btn {
        width: 100%; /* Full-width submit button */
        font-size: 1rem;
        padding: 14px 20px;
    }
    .contact-details {
        margin: 15px;
        padding: 15px;
    }
     .contact-item {
        gap: 10px;
    }
    .contact-item i {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    .contact-text h3 {
        font-size: 0.85rem;
    }
    .contact-text p {
        font-size: 0.8rem;
    }
}


/* 全局统一背景色 */
body {
    background-color: var(--light-tiffany);
}

section { /* Default section padding, can be overridden by specific sections or media queries */
    padding-top: var(--section-spacing);
    padding-bottom: var(--section-spacing);
}

@media (max-width: 767px) {
    section {
        padding-top: var(--section-spacing-mobile);
        padding-bottom: var(--section-spacing-mobile);
    }
}


/* Factory Workshop 图片标题样式和悬停放大效果 */
.workshop-caption {
    margin-top: 0;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #333;
    text-align: center;
    font-weight: 500;
    line-height: 1.4;
    background: var(--pale-tiffany);
    width: 100%;
    border-radius: 0 0 8px 8px;
}

.workshop-image {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    margin-bottom: 0; /* Was 0, check if .factory-workshop .row needs margin */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 保证图片和caption分隔 */
}

.workshop-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    border-radius: 8px 8px 0 0;
}

.workshop-image:hover img {
    transform: scale(1.07);
}

/* Factory workshop 响应式 (assuming these are inside a .factory-workshop section with a .row) */
@media (max-width: 992px) {
    /* If workshop images are in columns, they might go to 2 per row */
    /* .factory-workshop .col-md-4 (or similar) { flex-basis: 50%; max-width: 50%; } */
}
@media (max-width: 767px) {
    /* .factory-workshop .col-sm-6 (or similar) { flex-basis: 100%; max-width: 100%; } */
    .workshop-image {
        margin-bottom: var(--content-spacing); /* Add spacing between stacked images */
    }
    .factory-workshop .row > *:last-child .workshop-image { /* Remove margin from the last item */
        margin-bottom: 0;
    }
    .workshop-caption {
        height: 40px;
        font-size: 0.9rem;
    }
}


.btn,
.btn-inquiry,
.btn-explore,
.submit-btn,
.btn-contact,
.btn-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    /* 固定高度，去掉padding-top/bottom，左右padding可保留 */
    height: 48px; /* 你可以根据实际视觉调整，比如44px/50px */
    padding: 0 32px; /* 只留左右内边距 */
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: none;
    transition: all 0.3s;
    text-decoration: none; /* Ensure no underlines */
}
.btn:hover,
.btn-inquiry:hover,
.btn-explore:hover,
.submit-btn:hover {
    color: #fff; /* Maintain text color on hover for these buttons if background changes */
    text-decoration: none;
}


/* 让左侧视频区域在父容器内垂直居中 (from original, for .about-us) */
.about-us .row.align-items-center > .col-lg-6:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* height: 100%; */ /* This can cause issues if content on right is taller */
    /* min-height: 100%; */
}

@media (max-width: 992px) {
    .about-us .row.align-items-center > .col-lg-6:first-child {
        /* Reset flex centering if stacking */
        display: block; /* Or whatever the default for col-lg-6 is */
    }
}

.product-card,
.advantage-card,
.news-card,
.stat-card {
    border-radius: 6px !important;
}

.btn,
.btn-inquiry,
.btn-explore,
.submit-btn,
.btn-contact,
.btn-view {
    border-radius: 8px !important;
}

