/* 响应式设计补充样式 */

/* 平板设备 */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-timeline {
        gap: 15px;
    }
    
    .process-arrow {
        font-size: 18px;
    }
}

/* 手机设备 */
@media (max-width: 768px) {
    /* 导航栏移动端样式 */
    .navbar .container {
        position: relative;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        margin-bottom: 15px;
    }
    
    .cta-button {
        display: none;
    }
    
    /* 英雄区移动端 */
    .hero-section {
        height: 80vh;
        padding: 0 20px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 15px;
    }
    
    .trust-item {
        justify-content: center;
    }
    
    /* 优势区块移动端 */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .advantage-card {
        padding: 30px 20px;
    }
    
    /* 服务标签移动端 */
    .services-tabs {
        margin: 0 20px;
    }
    
    .tab-buttons {
        flex-direction: column;
        gap: 0;
        border-bottom: none;
    }
    
    .tab-button {
        padding: 15px 0;
        font-size: 14px;
        border-bottom: 1px solid var(--medium-gray);
        justify-content: flex-start;
    }
    
    .service-content {
        padding: 30px 20px;
    }
    
    .service-features {
        gap: 10px;
    }
    
    /* 流程时间轴移动端 */
    .process-timeline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .process-step {
        flex-direction: row;
        text-align: left;
        padding: 20px;
        background: var(--white);
        border-radius: var(--border-radius);
        margin-bottom: 15px;
        box-shadow: var(--shadow-sm);
        gap: 20px;
    }
    
    .step-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .step-content {
        flex: 1;
    }
    
    .process-arrow {
        display: none;
    }
    
    /* 专家团队移动端 */
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .expert-photo {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    /* 证言轮播移动端 */
    .testimonials-slider {
        height: auto;
        min-height: 300px;
    }
    
    .testimonial-card {
        position: relative;
        padding: 30px 20px;
    }
    
    /* 博客卡片移动端 */
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card {
        margin-bottom: 20px;
    }
    
    /* 表单移动端 */
    .consultation-form {
        margin: 0 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    /* 页脚移动端 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* 导航品牌 */
    .logo {
        font-size: 20px;
    }
    
    .slogan {
        font-size: 11px;
    }
    
    /* 英雄区 */
    .hero-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-cta-button {
        padding: 15px 25px;
        font-size: 16px;
    }
    
    /* 区块标题 */
    .section-title {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    /* 优势卡片 */
    .advantage-card {
        padding: 25px 15px;
    }
    
    .advantage-icon {
        width: 50px;
        height: 50px;
    }
    
    .advantage-title {
        font-size: 18px;
    }
    
    /* 服务内容 */
    .service-content h3 {
        font-size: 20px;
    }
    
    .service-content {
        padding: 25px 15px;
    }
    
    .feature-tag {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    /* 流程步骤 */
    .process-step {
        padding: 15px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
        top: -8px;
        right: -8px;
    }
    
    .step-content h3 {
        font-size: 16px;
    }
    
    .step-content p {
        font-size: 13px;
    }
    
    /* 专家卡片 */
    .expert-card {
        padding: 25px 15px;
    }
    
    .expert-photo {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .expert-name {
        font-size: 18px;
    }
    
    .expert-credentials,
    .expert-specialty {
        font-size: 13px;
    }
    
    /* 证言卡片 */
    .testimonial-card {
        padding: 25px 15px;
    }
    
    .testimonial-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .testimonial-text {
        font-size: 14px;
    }
    
    /* 博客卡片 */
    .blog-title {
        font-size: 16px;
        padding: 10px 15px 0;
    }
    
    .blog-excerpt {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .blog-meta {
        padding: 0 15px 10px;
        font-size: 11px;
    }
    
    .blog-read-more {
        padding: 10px 15px 15px;
        font-size: 13px;
    }
    
    /* CTA区域 */
    .cta-title {
        font-size: 24px;
    }
    
    .cta-subtitle {
        font-size: 16px;
    }
    
    .consultation-form {
        margin: 0 10px;
    }
    
    .form-checkbox {
        font-size: 13px;
    }
    
    /* 页脚 */
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-title {
        font-size: 20px;
    }
    
    .footer-subtitle {
        font-size: 16px;
    }
    
    .contact-item {
        font-size: 14px;
    }
}

/* 超小屏设备 */
@media (max-width: 360px) {
    .hero-title {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .trust-indicators {
        gap: 10px;
    }
    
    .trust-text {
        font-size: 12px;
    }
    
    .tab-button {
        padding: 12px 0;
        font-size: 13px;
    }
    
    .advantage-title {
        font-size: 16px;
    }
    
    .advantage-desc {
        font-size: 14px;
    }
    
    .expert-photo {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .testimonial-text {
        font-size: 13px;
    }
    
    .blog-title {
        font-size: 15px;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
        padding: 80px 20px 20px;
    }
    
    .hero-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .hero-cta-button {
        padding: 12px 24px;
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .trust-indicators {
        gap: 20px;
        flex-direction: row;
    }
}

/* 高分辨率屏幕优化 */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 42px;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 打印样式 */
@media print {
    .header,
    .hero-section,
    .final-cta,
    .footer {
        display: none;
    }
    
    .advantages-section,
    .services-overview,
    .process-section,
    .team-preview,
    .testimonials,
    .blog-preview {
        page-break-inside: avoid;
        margin-bottom: 30px;
    }
    
    .section-title {
        color: #000 !important;
        font-size: 24px;
    }
    
    .advantage-card,
    .expert-card,
    .testimonial-card,
    .blog-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .tab-button {
        color: #000;
    }
    
    .service-content {
        background: #f5f5f5;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --light-gray: #2d2d2d;
        --medium-gray: #404040;
        --dark-gray: #e5e5e5;
        --black: #ffffff;
    }
    
    .header {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .advantage-card,
    .expert-card,
    .testimonial-card,
    .blog-card,
    .service-content {
        background: var(--light-gray);
        color: var(--dark-gray);
    }
    
    .form-group input,
    .form-group textarea {
        background: rgba(255, 255, 255, 0.1);
        color: var(--white);
    }
    
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }
}

/* 减少动画效果（用户偏好） */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .advantage-card,
    .expert-card,
    .testimonial-card,
    .blog-card {
        border: 2px solid var(--primary-blue);
    }
    
    .cta-button,
    .hero-cta-button,
    .service-detail-btn,
    .team-more-btn,
    .blog-more-btn,
    .form-submit-btn {
        border: 2px solid var(--white);
    }
}
