/* ===== 全局变量 ===== */
:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #7209b7;
    --accent-color: #f72585;
    --dark-color: #1a1a2e;
    --light-bg: #f8f9fa;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ===== 全局样式 ===== */
body {
    font-family: var(--font-family);
    color: #333;
    overflow-x: hidden;
}

/* ===== 导航栏 ===== */
.navbar {
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: #555;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* ===== 按钮 ===== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.btn-outline-secondary {
    border-radius: 8px;
    font-weight: 500;
}

.btn-light {
    border-radius: 8px;
    font-weight: 500;
}

.btn-light:hover {
    transform: translateY(-2px);
}

/* ===== Hero 区域 ===== */
.hero-section {
    padding-top: 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero-illustration {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.hero-shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 20px;
    right: 40px;
    animation: float 6s ease-in-out infinite;
}

.hero-shape-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary-color);
    bottom: 40px;
    right: 100px;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: 150px;
    height: 150px;
    background: var(--accent-color);
    top: 80px;
    right: 180px;
    animation: float 7s ease-in-out infinite;
}

.hero-icon {
    font-size: 8rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.hero-image {
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
    height: auto;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===== 页面头部 ===== */
.page-header {
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    text-align: center;
}

/* ===== 服务卡片 ===== */
.service-card {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

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

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

/* ===== 统计区域 ===== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-section .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ===== 关于预览 ===== */
.about-preview {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border-radius: 16px;
}

.about-shape {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    opacity: 0.15;
}

.about-preview-icon {
    font-size: 6rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

/* ===== 头像 ===== */
.avatar {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* ===== CTA 区域 ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* ===== 时间线 ===== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-year {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.timeline-content h5 {
    margin-bottom: 0.25rem;
}

/* ===== 团队头像 ===== */
.team-avatar {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    font-weight: 600;
}

/* ===== 价值观图标 ===== */
.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.value-icon i {
    font-size: 1.8rem;
    color: white;
}

/* ===== 服务图片占位 ===== */
.service-image-placeholder {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

/* ===== 关于图片占位 ===== */
.about-image-placeholder {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

/* ===== 技术标签 ===== */
.tech-badge {
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ===== 联系图标 ===== */
.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

/* ===== 表单样式 ===== */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.15);
}

/* ===== 手风琴样式 ===== */
.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: transparent;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

/* ===== 页脚链接 ===== */
footer a:hover {
    color: var(--primary-color) !important;
}

/* ===== 卡片 ===== */
.card {
    border-radius: 12px;
    overflow: hidden;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .d-flex {
        justify-content: center;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .page-header {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-item {
        padding-left: 20px;
    }
}


footer .text-muted {
    color: #fff !important;
}