/* ==================== 首页样式 ==================== */

/* Banner */
.banner {
    position: relative;
    margin-top: 70px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.banner-wrapper {
    position: relative;
}

/* 服务卡片 */
.services {
    background: var(--bg-gray);
}

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

.service-card {
    background: #fff;
    padding: 32px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: #fff;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.service-list {
    margin-bottom: 20px;
}

.service-list li {
    font-size: 14px;
    color: var(--text-gray);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.service-more {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

.service-more:hover {
    text-decoration: underline;
}

/* 关于我们 */
.about-section {
    background: #fff;
}

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

.about-images {
    position: relative;
}

.about-img-main {
    margin-bottom: 20px;
}

.about-img-main .img-placeholder,
.about-img-secondary .img-placeholder {
    border-radius: 8px;
    background: linear-gradient(135deg, #e8f4fc, #d4e9f7);
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 55%;
}

.about-badge {
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: #fff;
    padding: 24px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.badge-num {
    display: block;
    font-size: 36px;
    font-weight: 700;
}

.badge-text {
    font-size: 14px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.about-feature {
    display: flex;
    gap: 16px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.feature-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 14px;
    color: var(--text-gray);
}

.about-stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
}

/* 核心优势 */
.advantages-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}

.advantages-section .section-title {
    color: #fff;
}

.advantages-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

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

.advantage-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 32px;
    transition: var(--transition);
}

.advantage-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.advantage-num {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-light);
    opacity: 0.5;
    margin-bottom: 16px;
}

.advantage-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.advantage-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

/* 客户案例 */
.cases-section {
    background: var(--bg-gray);
}

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

.cases-grid .case-card-lg {
    grid-row: span 2;
}

.case-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.case-img {
    position: relative;
    overflow: hidden;
}

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

.cases-grid .case-card-lg .case-img {
    height: 100%;
    min-height: 440px;
}

.case-card:not(.case-card-lg) .case-img {
    height: 180px;
}

.case-img .img-placeholder {
    height: 100%;
    border-radius: 0;
}

.case-info {
    padding: 20px;
}

.case-tag {
    display: inline-block;
    font-size: 12px;
    color: var(--primary-color);
    background: rgba(26, 92, 158, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.case-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.case-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.cases-more {
    text-align: center;
    margin-top: 40px;
}

/* 荣誉资质 */
.honors-section {
    background: #fff;
}

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

.honor-card {
    text-align: center;
}

.honor-img {
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.honor-img .img-placeholder {
    background: linear-gradient(135deg, #f0f4f8, #e2e8f0);
}

.honor-title {
    font-size: 14px;
    color: var(--text-gray);
}

/* 新闻动态 */
.news-tabs {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}

.news-tab {
    font-size: 16px;
    color: var(--text-gray);
    padding: 8px 24px;
    border-radius: 20px;
    transition: var(--transition);
}

.news-tab.active {
    background: var(--primary-color);
    color: #fff;
}

.news-tab:hover:not(.active) {
    color: var(--primary-color);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
}

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

.news-img {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.news-img .img-placeholder {
    border-radius: 8px;
}

.news-content {
    flex: 1;
}

.news-date {
    font-size: 14px;
    color: var(--text-light);
}

.news-title {
    font-size: 20px;
    font-weight: 600;
    margin: 12px 0;
    line-height: 1.4;
}

.news-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-item {
    display: flex;
    gap: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
    /* border-bottom: none; */
    /* padding-bottom: 0; */
}

.news-item .news-date {
    flex-shrink: 0;
    width: 80px;
}

.news-item-media {
    /* flex: 0 0 120px; */
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-gray);
}
.news-item-media img {
    display: block;
    width: 100%;
    height: auto;
    /* aspect-ratio: 16 / 10; */
    object-fit: cover;
}

.news-item-content {
    flex: 1;
}

.news-item-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-desc {
    font-size: 14px;
    color: var(--text-gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-more {
    text-align: center;
    margin-top: 40px;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
}

.cta-wrapper {
    text-align: center;
    color: #fff;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* 图片占位符 */
.img-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #e8f4fc 0%, #d4e9f7 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    border: 2px dashed #ccc;
}

.img-placeholder span {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.img-placeholder small {
    font-size: 12px;
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-item a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
}

.mobile-nav-item.active a {
    color: var(--primary-color);
}

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

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cases-grid .case-card-lg {
        grid-row: span 1;
    }

    .honors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-img-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        width: 60%;
        margin-top: -60px;
        margin-left: auto;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .news-tabs {
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 28px;
    }

    .news-tab {
        padding: 8px 16px;
    }

    .about-badge {
        left: 0;
    }

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

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

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

    .honors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .banner-title {
        font-size: 28px;
    }

    .banner-desc {
        font-size: 16px;
    }

    .banner-btns {
        flex-direction: column;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .cta-btns {
        flex-direction: column;
        align-items: center;
    }
}