/* ==========================================
   首页样式 - Home Page Styles
   ========================================== */

/* 首屏轮播 Hero Banner */
.hero-banner {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 61, 130, 0.8) 0%, rgba(0, 102, 204, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 100px 0 60px;
    text-align: center;
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 轮播控制 */
.hero-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.hero-prev,
.hero-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.hero-prev:hover,
.hero-next:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #0066cc;
    border-color: #fff;
}

/* 轮播指示器 */
.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 15px;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicator.active {
    background-color: #fff;
    width: 40px;
    border-radius: 6px;
}

/* 公司核心优势统计 */
.home-stats {
    background: linear-gradient(135deg, #003d82 0%, #0066cc 100%);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 153, 0, 0.2);
    border-radius: 50%;
    font-size: 32px;
    color: #ff9900;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-number::after {
    content: '+';
    font-size: 32px;
    margin-left: 5px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* 核心业务领域 */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.business-item {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.business-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
}

.business-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0066cc 0%, #003d82 100%);
    border-radius: 50%;
    font-size: 36px;
    color: #fff;
    transition: all 0.3s ease;
}

.business-item:hover .business-icon {
    background: linear-gradient(135deg, #ff9900 0%, #e68a00 100%);
    transform: rotateY(360deg);
}

.business-title {
    font-size: 22px;
    font-weight: 600;
    color: #003d82;
    margin-bottom: 15px;
}

.business-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.business-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0066cc;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
}

.business-link:hover {
    gap: 12px;
}

.business-link i {
    transition: transform 0.3s ease;
}

.business-link:hover i {
    transform: translateX(5px);
}

/* 精品项目案例 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.project-image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 61, 130, 0) 0%, rgba(0, 61, 130, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.project-tag {
    background-color: #ff9900;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-view-btn {
    background-color: #fff;
    color: #003d82;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.project-view-btn:hover {
    background-color: #0066cc;
    color: #fff;
    transform: translateY(-2px);
}

.project-info {
    padding: 25px;
}

.project-title {
    font-size: 20px;
    font-weight: 600;
    color: #003d82;
    margin-bottom: 12px;
    line-height: 1.4;
}

.project-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #999;
}

.project-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-meta-item i {
    color: #0066cc;
}

.project-brief {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* 资质荣誉 */
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.credential-item {
    background-color: #fff;
    padding: 35px 25px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.credential-item:hover {
    border-color: #0066cc;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.1);
}

.credential-icon {

    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f4ff 0%, #d0e8ff 100%);
    border-radius: 50%;
    font-size: 32px;
    color: #0066cc;
    transition: all 0.3s ease;
}

.credential-item:hover .credential-icon {
    background: linear-gradient(135deg, #0066cc 0%, #003d82 100%);
    color: #fff;
    transform: rotateY(360deg);
}

.credential-title {
    font-size: 18px;
    font-weight: 600;
    color: #003d82;
    margin-bottom: 10px;
}

.credential-desc {
    font-size: 14px;
    color: #666;
}

.credentials-quote {
    background: linear-gradient(135deg, #003d82 0%, #0066cc 100%);
    color: #fff;
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.credentials-quote::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.credentials-quote-icon {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 20px;
}

.credentials-quote-text {
    font-size: 24px;
    font-weight: 300;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* 新闻动态 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.news-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #0066cc;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

.news-content {
    padding: 30px;
    position: relative;
}

.news-date {
    position: absolute;
    top: -30px;
    right: 30px;
    background-color: #ff9900;
    color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(255, 153, 0, 0.3);
}

.news-day {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.news-month {
    font-size: 12px;
    margin-top: 3px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: #003d82;
    margin-bottom: 15px;
    margin-top: 30px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: #0066cc;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    color: #0066cc;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.news-read-more:hover {
    gap: 12px;
}

.news-read-more i {
    transition: transform 0.3s ease;
}

.news-read-more:hover i {
    transform: translateX(5px);
}

/* Footer社交媒体 */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #bbb;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #0066cc;
    color: #fff;
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-banner {
        height: 500px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .projects-grid,
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 450px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-item {
        padding: 20px;
    }

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

    .projects-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .credentials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .credentials-quote {
        padding: 30px 20px;
    }

    .credentials-quote-text {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 400px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-controls {
        padding: 0 10px;
    }

    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

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

