/* 文件路径: static/website/css/home-sections.css */
/* 
 * 首页各区块特殊样式
 * 包含核心业务、合作伙伴、生产实力等区块的专用样式
 */

/* ===== 核心业务区块样式 ===== */
.feature-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    color: #2c5282;
    margin-bottom: 15px;
}

.feature-card .card-body {
    padding: 2rem;
}

/* ===== 合作伙伴区块样式 ===== */
.partners-section {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
}

.partners-slider {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.partners-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.partner-item {
    flex: 0 0 auto;
    margin: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.partner-item img {
    max-height: 60px;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(50%);
    transition: filter 0.3s ease;
}

.partner-item img:hover {
    filter: grayscale(0%);
}

.partners-slider:hover .partners-track {
    animation-play-state: paused;
}

/* ===== 生产实力区块样式 ===== */
.production-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.production-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.production-image {
    height: 200px;
    overflow: hidden;
}

.production-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.production-card:hover .production-image img {
    transform: scale(1.05);
}

.production-content {
    padding: 20px;
}

.production-content h5 {
    color: #2c5282;
    margin-bottom: 10px;
    font-weight: 600;
}

.production-content p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* ===== 资质认证区块样式 ===== */
.certification-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.certification-placeholder {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c5282;
}

.certification-title {
    color: #2c5282;
    font-weight: 600;
    margin-bottom: 5px;
}

.certification-org {
    margin-bottom: 10px;
}

.certification-year {
    font-size: 0.8rem;
}

/* ===== 最新动态区块样式 ===== */
.news-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-card .card-body {
    padding: 1.5rem;
}

/* ===== CTA行动号召区块样式 ===== */
.cta-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
}

.cta-section h2 {
    color: white;
}

.cta-section .lead {
    color: rgba(255,255,255,0.9);
}

/* ===== 动画定义 ===== */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== 轮播图特殊样式 ===== */
.carousel-top-text {
    margin-bottom: 1rem;
}

.caption-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 1.5rem 0;
}

.caption-features span {
    background: rgba(255,255,255,0.9);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.banner-actions {
    margin-top: 2rem;
}