/* 响应式设计样式 */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero .container {
        gap: 3rem;
    }
    
    .about-content,
    .contact-content {
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    /* 导航栏移动端样式 */
    .navbar .container {
        padding: 0.75rem 15px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* 首页横幅移动端样式 */
    .hero {
        padding: 100px 0 60px;
        min-height: 80vh;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .hero-placeholder {
        width: 100%;
        max-width: 350px;
        height: 250px;
    }
    
    /* 区块间距调整 */
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    /* 关于我们移动端样式 */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-placeholder {
        width: 100%;
        max-width: 350px;
        height: 250px;
    }
    
    /* 服务项目移动端样式 */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* 案例展示移动端样式 */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-image {
        height: 180px;
    }
    
    /* 团队介绍移动端样式 */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-member {
        padding: 1.5rem;
    }
    
    /* 联系我们移动端样式 */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* 页脚移动端样式 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* 返回顶部按钮移动端样式 */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .navbar .container {
        padding: 0.5rem 10px;
    }
    
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-placeholder {
        height: 200px;
        font-size: 1.25rem;
    }
    
    .about-placeholder {
        height: 200px;
        font-size: 1.25rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .service-card,
    .team-member,
    .contact-form {
        padding: 1rem;
    }
    
    .portfolio-image {
        height: 150px;
    }
    
    .portfolio-placeholder {
        font-size: 1.1rem;
    }
    
    .avatar-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-icon {
        font-size: 1.5rem;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .service-card h3,
    .portfolio-info h3,
    .team-member h3 {
        font-size: 1.1rem;
    }
    
    .service-card p,
    .portfolio-info p,
    .team-member p {
        font-size: 0.9rem;
    }
    
    .about-text h3 {
        font-size: 1.25rem;
    }
    
    .about-text p {
        font-size: 0.9rem;
    }
}

/* 横屏模式优化 */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        margin-bottom: 1rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-placeholder,
    .about-placeholder,
    .portfolio-placeholder,
    .avatar-placeholder {
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .nav-toggle,
    .back-to-top,
    .hero-buttons,
    .contact-form,
    .social-links {
        display: none !important;
    }
    
    .hero {
        padding: 20px 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
        color: black;
    }
    
    .hero-subtitle {
        color: black;
    }
    
    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .section-header h2 {
        color: black;
    }
    
    .section-header p {
        color: black;
    }
    
    .service-card,
    .portfolio-item,
    .team-member {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .footer {
        background: white;
        color: black;
    }
    
    .footer-section h3,
    .footer-section p,
    .footer-section li {
        color: black;
    }
} 