/* ========================================
   响应式布局样式
   ======================================== */

/* ========== Tablet (768px - 1024px) ========== */
@media (max-width: 1024px) {
    :root {
        --spacing-xl: 60px;
        --spacing-lg: 36px;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .section-title {
        font-size: 36px;
    }

    .product-item,
    .intro-content,
    .product-overview,
    .solution-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .product-item.reverse .product-image,
    .product-item.reverse .product-content {
        order: initial;
    }

    .solution-content.reverse .solution-image,
    .solution-content.reverse .solution-text {
        order: initial;
    }

    .form-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ========== Mobile (max-width: 768px) ========== */
@media (max-width: 768px) {
    :root {
        --font-size-base: 15px;
        --spacing-xl: 48px;
        --spacing-lg: 32px;
        --spacing-md: 16px;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-white);
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-lg) 0;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-normal);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: var(--spacing-md) 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a::after {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Hero Section */
    .hero {
        min-height: 80vh;
        padding-top: 70px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Sections */
    section {
        padding: var(--spacing-lg) 0;
    }

    .page-header {
        padding: 100px 0 var(--spacing-lg);
    }

    .page-header h1 {
        font-size: 32px;
    }

    .page-header p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    /* Grid Layouts */
    .advantages-grid,
    .culture-grid,
    .honors-grid,
    .scenarios-grid,
    .benefits-grid,
    .services-grid,
    .cases-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    /* Product Items */
    .product-content h3 {
        font-size: 24px;
    }

    .product-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    /* Timeline */
    .timeline::before {
        left: 15px;
    }

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

    .timeline-dot {
        left: 3px;
        width: 20px;
        height: 20px;
    }

    /* Contact Form */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    /* Typography */
    .lead {
        font-size: 18px;
    }

    .product-header h2,
    .solution-text h2 {
        font-size: 28px;
    }

    .overview-content h3,
    .solution-text h3 {
        font-size: 22px;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .cta-content p {
        font-size: 16px;
    }

    /* Value Items */
    .value-items {
        grid-template-columns: 1fr;
    }

    /* Feature Items */
    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-item i {
        font-size: 40px;
    }
}

/* ========== Small Mobile (max-width: 480px) ========== */
@media (max-width: 480px) {
    :root {
        --font-size-base: 14px;
        --spacing-xl: 36px;
        --spacing-lg: 24px;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 32px;
    }

    .logo-text {
        font-size: 20px;
    }

    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .btn-large {
        padding: 12px 32px;
        font-size: 16px;
    }

    .product-placeholder,
    .image-placeholder,
    .solution-placeholder,
    .product-screenshot {
        font-size: 48px;
    }

    .icon-wrapper,
    .culture-icon,
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .advantage-card,
    .culture-card,
    .service-card,
    .contact-card {
        padding: var(--spacing-md);
    }

    .timeline-content h3 {
        font-size: 18px;
    }

    .case-card h3 {
        font-size: 18px;
    }

    .form-intro h2 {
        font-size: 24px;
    }
}

/* ========== Print Styles ========== */
@media print {
    .navbar,
    .hamburger,
    .hero,
    .cta,
    .back-to-top,
    .social-links {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    section {
        page-break-inside: avoid;
    }
}
