/* ===================== 全局 ===================== */
html {
    scroll-behavior: smooth;
}

body {
    padding-top: 64px;
}
@media (min-width: 768px) {
    body {
        padding-top: 80px;
    }
}

/* ===================== 导航 ===================== */
.nav-link {
    color: #4b5563;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-block;
}
.nav-link:hover, .nav-link.active {
    color: #2563eb;
    background-color: #eff6ff;
}

.mobile-nav-link {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: #4b5563;
    border-radius: 0.5rem;
    transition: all 0.2s;
    text-decoration: none;
}
.mobile-nav-link:hover {
    background-color: #eff6ff;
    color: #2563eb;
}
.mobile-nav-link.active {
    color: #2563eb;
    background-color: #eff6ff;
    font-weight: 600;
}

/* ===================== Hero 轮播 ===================== */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 70vh;
    min-height: 420px;
    max-height: 650px;
}
.hero-slide {
    position: absolute;
    inset: 0;
    transition: opacity 0.7s ease-in-out;
}
.hero-overlay {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.85) 0%, rgba(29, 78, 216, 0.70) 50%, rgba(37, 99, 235, 0.40) 100%);
}
.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.hero-dot.active {
    background: #fff;
    width: 32px;
    border-radius: 6px;
}

/* ===================== 通用组件 ===================== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 36rem;
    margin: 0 auto;
}

/* ===================== 服务卡片 ===================== */
.service-card {
    display: block;
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.3s;
    text-decoration: none;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(37,99,235,0.15);
}
.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s;
}

/* ===================== 案例网格 ===================== */
.case-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .case-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================== 渐变背景 ===================== */
.bg-gradient-blue {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}
.cta-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

/* ===================== 动画 ===================== */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
