/* ========================================
   Intakelife - 响应式样式表
   ======================================== */

/* 平板设备 (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .philosophy-grid {
        gap: var(--spacing-md);
    }
    
    .craftsmanship-content,
    .custom-content,
    .story-content {
        gap: var(--spacing-md);
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 小平板设备 (max-width: 768px) */
@media screen and (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .nav-container {
        height: 70px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(250, 248, 243, 0.98);
        flex-direction: column;
        padding: var(--spacing-md);
        gap: 0;
        border-bottom: 1px solid var(--color-border-light);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid var(--color-border-light);
        width: 100%;
        text-align: center;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content {
        left: var(--spacing-sm);
        right: var(--spacing-sm);
        max-width: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-dots {
        left: var(--spacing-sm);
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .philosophy-item {
        padding: var(--spacing-sm);
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .product-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .craftsmanship-content {
        grid-template-columns: 1fr;
    }
    
    .craftsmanship-image {
        order: -1;
    }
    
    .custom-content {
        grid-template-columns: 1fr;
    }
    
    .custom-text {
        padding-right: 0;
    }
    
    .custom-image-grid {
        height: 350px;
    }
    
    .story-content {
        grid-template-columns: 1fr;
    }
    
    .story-text {
        padding-left: 0;
        padding-top: var(--spacing-md);
    }
    
    .story-badge {
        width: 90px;
        height: 90px;
        bottom: -15px;
        right: -15px;
    }
    
    .badge-year {
        font-size: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .service-panel {
        width: calc(100vw - 40px);
        right: 0;
    }
}

/* 手机设备 (max-width: 480px) */
@media screen and (max-width: 480px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2.5rem;
        --spacing-xl: 3rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .hero-banner {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .custom-image-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 150px);
        height: auto;
    }
    
    .custom-img-item.large {
        grid-row: span 1;
    }
    
    .craft-steps {
        gap: var(--spacing-sm);
    }
    
    .craft-step {
        gap: 0.75rem;
    }
    
    .step-number {
        font-size: 1.25rem;
        min-width: 35px;
    }
    
    .step-content h4 {
        font-size: 1rem;
    }
    
    .step-content p {
        font-size: 0.9rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .customer-service {
        bottom: 20px;
        right: 20px;
    }
    
    .service-toggle {
        width: 50px;
        height: 50px;
    }
}

/* 小屏手机设备 (max-width: 360px) */
@media screen and (max-width: 360px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .product-info {
        padding: 0.75rem;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
}

/* 横屏模式 */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero-banner {
        min-height: 500px;
        height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-content {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        padding: 0 var(--spacing-md);
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* 高分辨率屏幕优化 */
@media screen and (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .customer-service,
    .scroll-indicator,
    .hero-dots {
        display: none !important;
    }
    
    .hero-banner {
        height: auto;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-content {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        color: var(--color-text-primary);
    }
    
    .hero-overlay {
        display: none;
    }
    
    body {
        background: white;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* 深色模式支持（可选） */
@media (prefers-color-scheme: dark) {
    /* 保持品牌色调，不强制切换 */
}

/* ========================================
   Customer Reviews Responsive
   ======================================== */

/* 平板设备 (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .review-card {
        flex: 0 0 calc(50% - var(--spacing-md));
    }
}

/* 小平板设备 (max-width: 768px) */
@media screen and (max-width: 768px) {
    .customer-reviews .section-header h2 {
        font-size: 1.8rem;
    }
    
    .reviews-slider {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .slider-prev,
    .slider-next {
        position: static;
        transform: none;
        margin: var(--spacing-sm) 0;
    }
    
    .reviews-track {
        flex-direction: column;
        overflow-x: visible;
    }
    
    .review-card {
        flex: 1;
    }
}

/* 手机设备 (max-width: 480px) */
@media screen and (max-width: 480px) {
    .customer-reviews {
        padding: var(--spacing-lg) 0;
    }
    
    .customer-reviews .section-header {
        margin-bottom: var(--spacing-md);
    }
    
    .customer-reviews .section-header h2 {
        font-size: 1.5rem;
    }
    
    .review-card {
        padding: var(--spacing-sm);
    }
    
    .reviewer-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
}
