/* 轮播图（首页独有） */
.carousel {
    position: relative;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--secondary-color) 100%);
    font-family: inherit;
}

.carousel-item {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    flex-direction: column;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://picsum.photos/id/1/1920/1080') center/cover;
    opacity: 0.15;
    z-index: 0;
}

/* 轮播图文字容器（修复叠加问题，首页独有） */
.carousel-item > .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.carousel-item.active > .carousel-caption {
    opacity: 1;
}

.carousel-caption h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    white-space: normal;
}

.carousel-caption p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    word-wrap: break-word;
    white-space: normal;
}

.carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50%;
    margin: 0 4px !important;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators button.active {
    background-color: white;
}

/* 产品矩阵（首页独有） */
.product-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.product-card h3 {
    color: var(--dark-blue);
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.product-card h3 i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.product-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* 解决方案（首页独有） */
.solution-card {
    background: white;
    border-radius: 12px;
    padding: 35px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.solution-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.solution-card h4 {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-blue);
}

/* 为什么选择我们（首页独有） */
.feature-item {
    text-align: center;
    padding: 30px 20px;
    transition: all 0.3s ease;
    border-radius: 12px;
    height: 100%;
}

.feature-item:hover {
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.feature-item i {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-item h5 {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-blue);
}

.feature-item p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* 客户案例（首页独有） */
.client-section {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.client-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://picsum.photos/id/3/1920/1080') center/cover;
    opacity: 0.1;
}

.client-box {
    background: rgba(255, 255, 255, 0.1);
    height: 140px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
}

.client-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 认证部分（首页独有） */
.certification-item {
    background: white;
    height: 100px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.certification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* 最新资讯（首页独有） */
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

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

.news-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-blue);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-more {
    align-self: flex-start;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.news-more:hover {
    color: #c82333;
    padding-left: 4px;
}

/* Index 专属响应式调整（仅首页需要的移动端适配） */
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .news-img {
        height: 160px;
    }
}