/* ===== 首页样式 ===== */
.main-content {
    min-height: calc(100vh - 70px - 300px);
}

/* Hero Section - 主视觉区域 */
.hero-section {
    background: url('../assets/官网icon/首页背景底图.jpg') center center / cover no-repeat;
    color: var(--text-primary);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

/* 装饰性背景元素 */
.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(114, 112, 83, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(114, 112, 83, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* 网格背景装饰 */
.hero-section .grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(114, 112, 83, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(114, 112, 83, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #303133 0%, #727053 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--brand-color);
    letter-spacing: 0.02em;
}

.hero-desc {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.hero-desc .highlight {
    color: var(--brand-color);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-actions .btn-primary {
    background: #303133;
    color: white;
    border: none;
}

.hero-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(48, 49, 51, 0.3);
    background: #4a4a4a;
}

/* 服务概览 */
.services-overview {
    position: relative;
    overflow: visible;
    padding-bottom: 60px;
}

.services-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* 服务概览下方的椭圆装饰 */
.services-overview::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    height: 120px;
    background: #7F6EB;
    border-radius: 50%;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.services-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.service-card {
    flex: 1;
    background: var(--bg-white);
    padding: 32px 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 卡片顶部装饰线 */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: var(--transition);
}

/* 卡片背景装饰 */
.service-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(114, 112, 83, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

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

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    font-size: 56px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card:hover .service-icon img {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.service-link {
    font-size: 14px;
    color: var(--brand-color);
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.service-link::after {
    content: '→';
    transition: var(--transition);
}

.service-link:hover {
    color: var(--brand-dark);
    gap: 8px;
}

/* 基座能力图 */
.base-capability-section {
    padding: 80px 0 60px;
    position: relative;
}

.base-capability-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.capability-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.capability-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.capability-diagram {
    display: flex;
    justify-content: center;
    position: relative;
}

.core-items {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.core-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: #F7F6EB;
    padding: 32px 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(114, 112, 83, 0.1);
}

.core-item-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.core-item-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 响应式 */
@media (max-width: 1200px) {
    .services-grid {
        flex-wrap: wrap;
    }

    .service-card {
        flex: 0 0 calc((100% - 24px) / 3);
    }

    .core-items {
        flex-wrap: wrap;
        gap: 16px;
    }

    .core-item {
        min-width: calc(50% - 8px);
        padding: 24px 20px;
    }

    .core-item-text {
        font-size: 16px;
    }

    .core-item-desc {
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 48px;
    }

    .services-grid {
        flex-wrap: wrap;
    }

    .service-card {
        flex: 0 0 calc((100% - 24px) / 3);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 40px;
    }

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

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

    .hero-actions {
        flex-direction: column;
        padding: 0;
    }

    .hero-actions .btn-primary {
        width: 100%;
    }

    .services-grid {
        flex-wrap: wrap;
    }

    .service-card {
        flex: 0 0 calc((100% - 16px) / 2);
        padding: 28px 18px;
    }

    .base-capability-section {
        padding: 60px 0 40px;
    }

    .capability-title {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .capability-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .core-items {
        flex-direction: column;
        gap: 12px;
    }

    .core-item {
        min-width: 100%;
        padding: 24px 20px;
    }

    .core-item-text {
        font-size: 17px;
    }

    .core-item-desc {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 32px;
    }

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

    .hero-desc {
        font-size: 15px;
    }

    .hero-actions {
        padding: 0;
    }

    .service-card {
        flex: 0 0 100%;
        padding: 28px 20px;
    }

    .base-capability-section {
        padding: 40px 0 30px;
    }

    .capability-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .capability-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .core-items {
        gap: 12px;
    }

    .core-item {
        padding: 20px 18px;
    }

    .core-item-text {
        font-size: 16px;
    }

    .core-item-desc {
        font-size: 13px;
    }
}
