/* ============================================
   响应式样式 - 适配PC/平板/手机
   ============================================ */

/* 大屏幕 (最大1200px) */
@media (max-width: 1200px) {
    :root {
        --container-padding: 1.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-description {
        margin: 0 auto 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-grid-reverse {
        direction: ltr;
    }
}

/* 平板端 (最大992px) */
@media (max-width: 992px) {
    :root {
        --container-padding: 1.25rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero {
        padding: 7rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-list {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .cta-button {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid,
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .page-hero {
        padding: 8rem 0 3rem;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* 小平板端 (最大768px) */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .hero {
        padding: 6rem 0 2.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-button-primary,
    .hero-button-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .rating-badge {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .features-grid,
    .industries-grid {
        grid-template-columns: 1fr;
    }
    
    .workflow-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .workflow-step:not(:last-child)::after {
        display: none;
    }
    
    .clients-grid {
        gap: 2rem;
    }
    
    .client-logo {
        width: 120px;
        height: 60px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .faq-question {
        font-size: 0.9375rem;
        padding: 1rem 1.25rem;
    }
    
    .faq-answer {
        padding: 0 1.25rem 1rem;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* 手机端 (最大576px) */
@media (max-width: 576px) {
    :root {
        --container-padding: 0.875rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 5rem 0 2rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .hero-image img {
        border-radius: var(--radius-xl);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .workflow-grid {
        grid-template-columns: 1fr;
    }
    
    .page-hero {
        padding: 6rem 0 2rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero p {
        font-size: 1rem;
    }
    
    .content-section {
        padding: 3rem 0;
    }
    
    .content-text h2 {
        font-size: 1.5rem;
    }
    
    .tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-button {
        border: 2px solid var(--bg-gray);
        border-radius: var(--radius-lg);
        margin-bottom: 0.5rem;
    }
    
    .tab-button.active {
        background: var(--primary-color);
        color: var(--text-white);
        border-color: var(--primary-color);
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-brand p {
        max-width: none;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        padding: 0.625rem 0.75rem;
        font-size: 0.9375rem;
    }
    
    .form-button {
        padding: 0.875rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* 移动端横屏 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 4rem 0 2rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .page-hero {
        padding: 4rem 0 2rem;
    }
    
    .page-hero h1 {
        font-size: 1.75rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .nav-item:hover .dropdown {
        opacity: 0;
        visibility: hidden;
    }
    
    .dropdown.active {
        opacity: 1;
        visibility: visible;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
    
    .industry-card:hover {
        transform: none;
    }
    
    .industry-card:active {
        transform: scale(0.98);
    }
    
    .faq-item.active .faq-answer {
        max-height: none;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0040dd;
        --text-primary: #000000;
        --text-secondary: #333333;
    }
}

/* 打印样式 */
@media print {
    .header,
    .footer,
    .back-to-top,
    .cta-section,
    .mobile-nav {
        display: none !important;
    }
    
    .hero {
        padding: 2rem 0;
        min-height: auto;
        background: none;
    }
    
    .hero::before {
        display: none;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        text-decoration: underline;
    }
    
    .service-card,
    .industry-card,
    .feature-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
