/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #f0f0f0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: #86868b;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #1d1d1f;
}

/* Hero区域 */
.hero {
    padding: 150px 0 100px;
    background-color: #f5f5f7;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 600;
    color: #86868b;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 18px;
    color: #6e6e73;
    margin-bottom: 40px;
    line-height: 1.7;
}

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

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #6e6e73;
    color: white;
}

.btn-primary:hover {
    background-color: #5a5a5d;
}

.btn-secondary {
    background-color: transparent;
    color: #6e6e73;
    border: 2px solid #6e6e73;
}

.btn-secondary:hover {
    background-color: #6e6e73;
    color: white;
}

/* 数据统计 */
.stats {
    padding: 80px 0;
    background-color: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    text-align: center;
}

.stat-number {
    font-size: 64px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 18px;
    color: #86868b;
    font-weight: 500;
}

/* 精选项目 */
.featured-projects {
    padding: 80px 0;
    background-color: #f5f5f7;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 600;
    color: #1d1d1f;
}

.view-more {
    color: #86868b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-more:hover {
    color: #1d1d1f;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.project-content {
    padding: 24px;
}

.project-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.project-content p {
    color: #6e6e73;
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background-color: #f5f5f7;
    color: #86868b;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

/* 技术服务 */
.services {
    padding: 80px 0;
    background-color: #ffffff;
}

.section-title {
    font-size: 40px;
    font-weight: 600;
    color: #1d1d1f;
    text-align: center;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.service-card p {
    color: #6e6e73;
    line-height: 1.6;
}

/* 开发理念 */
.philosophy {
    padding: 80px 0;
    background-color: #f5f5f7;
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

blockquote {
    font-size: 28px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 32px;
    line-height: 1.4;
    font-style: italic;
}

.philosophy-content p {
    font-size: 18px;
    color: #6e6e73;
    line-height: 1.7;
}

/* 联系方式 */
.contact {
    padding: 80px 0;
    background-color: #ffffff;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 18px;
    color: #6e6e73;
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    font-size: 16px;
    color: #1d1d1f;
}

.contact-item strong {
    font-weight: 600;
}

/* 页脚 */
.footer {
    background-color: #f5f5f7;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #e5e5e7;
}

.footer p {
    color: #86868b;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        padding: 0 16px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .hero {
        padding: 120px 0 80px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stat-number {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-links {
        gap: 12px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .project-card {
        margin: 0 8px;
    }
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: #1d1d1f;
    transition: all 0.3s ease;
}

/* 移动端导航菜单 */
@media (max-width: 768px) {
    .nav-brand h2 {
        font-size: 20px;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}