/* ========================================
   响应式设计样式
   ======================================== */

/* 大屏幕 (1400px 及以下) */
@media (max-width: 1400px) {
    .navbar-container {
        max-width: 1200px;
    }
}

/* 中大屏幕 (1200px 及以下) */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 56px;
    }
    
    .about-content,
    .yueyue-hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .about-image {
        order: -1;
    }
}

/* 平板电脑 (1024px 及以下) */
@media (max-width: 1024px) {
    .navbar-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* 平板端也隐藏桌面端操作按钮 */
    .navbar-actions .lang-dropdown {
        display: none;
    }
    
    .navbar-actions .theme-toggle {
        display: none;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .about-hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: -1;
    }
    
    .products-showcase {
        grid-template-columns: 1fr;
    }
}

/* 平板电脑竖屏 (768px 及以下) */
@media (max-width: 768px) {
    :root {
        --spacing-md: 20px;
        --spacing-lg: 32px;
        --spacing-xl: 48px;
    }
    
    .navbar-container {
        height: 60px;
    }
    
    /* 移动端导航栏：隐藏桌面端操作按钮，只保留汉堡菜单 */
    .navbar-actions .lang-dropdown {
        display: none;
    }
    
    .navbar-actions .theme-toggle {
        display: none;
    }
    
    .mobile-menu {
        top: 60px;
    }
    
    .logo-company {
        font-size: 14px;
    }
    
    .logo-slogan {
        font-size: 10px;
    }
    
    .hero {
        min-height: calc(100vh - 60px);
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .about-hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: var(--spacing-lg);
    }
    
    .about-hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    /* 覆盖 about 页面大字号 */
    .about-hero-title {
        font-size: 32px !important;
    }
    
    .about-stat-value {
        font-size: 28px !important;
    }
    
    .about-hero-desc {
        font-size: 16px !important;
    }
    
    .about-text h2 {
        font-size: 28px;
    }
    
    .about-image-placeholder {
        height: 300px;
    }
    
    /* about-hero-card 内部大字号修复 */
    .about-hero-card-icon {
        font-size: 48px !important;
    }
    
    .about-hero-card-title {
        font-size: 20px !important;
    }
    
    /* 移动端 Core Technology 卡片放在文字下方，居中展示 */
    .about-hero-visual {
        margin-top: var(--spacing-md);
        justify-content: center;
    }
    
    .about-hero-card {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .yueyue-hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: var(--spacing-lg);
    }
    
    .yueyue-title {
        font-size: 36px;
    }
    
    .yueyue-tagline {
        font-size: 18px;
    }
    
    .yueyue-phone {
        width: 240px;
        height: 480px;
    }
    
    .products-hero {
        padding-top: 80px;
    }
    
    /* 覆盖 products 页面大字号 */
    .products-hero-title {
        font-size: 36px !important;
    }
    
    .products-hero-subtitle {
        font-size: 16px !important;
    }
    
    .contact-hero {
        padding-top: 80px;
    }
    
    /* 覆盖 contact 页面大字号 */
    .contact-hero-title {
        font-size: 32px !important;
    }
    
    .contact-hero-subtitle {
        font-size: 16px !important;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-showcase {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .culture-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-email-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .beian-info {
        flex-direction: column;
        gap: 8px;
    }
    
    /* CTA 区大字号修复 */
    .cta-title {
        font-size: 28px !important;
    }
}

/* 手机横屏 (640px 及以下) */
@media (max-width: 640px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-content {
        padding: var(--spacing-md);
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-badge {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .contact-form {
        padding: var(--spacing-md);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* about 页面小屏幕字号继续缩小 */
    .about-hero-title {
        font-size: 26px !important;
    }
    
    .products-hero-title {
        font-size: 30px !important;
    }
    
    .contact-hero-title {
        font-size: 26px !important;
    }
}

/* 手机竖屏 (480px 及以下) */
@media (max-width: 480px) {
    :root {
        --spacing-sm: 12px;
        --spacing-md: 16px;
        --spacing-lg: 24px;
        --spacing-xl: 32px;
    }
    
    .navbar-container {
        padding: 0 var(--spacing-sm);
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .logo-company {
        font-size: 13px;
    }
    
    .logo-slogan {
        font-size: 9px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .about-text h2 {
        font-size: 24px;
    }
    
    .about-image-placeholder {
        height: 250px;
        font-size: 36px;
    }
    
    .yueyue-title {
        font-size: 32px;
    }
    
    .yueyue-logo {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .value-card,
    .feature-item,
    .product-content {
        padding: var(--spacing-md);
    }
    
    .value-icon,
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    /* 继续覆盖大字号 */
    .about-hero-title {
        font-size: 22px !important;
    }
    
    .about-stat-value {
        font-size: 24px !important;
    }
    
    .about-stat {
        min-width: 80px;
    }
    
    .products-hero-title {
        font-size: 26px !important;
    }
    
    .contact-hero-title {
        font-size: 22px !important;
    }
    
    /* 悦月按钮区域换行 */
    .yueyue-buttons {
        flex-direction: column;
    }
    
    .yueyue-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .yueyue-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .yueyue-cta-buttons .btn {
        width: 100%;
    }
}

/* 超小屏幕 (360px 及以下) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .yueyue-title {
        font-size: 28px;
    }
    
    .about-hero-title {
        font-size: 20px !important;
    }
    
    .products-hero-title {
        font-size: 24px !important;
    }
    
    .contact-hero-title {
        font-size: 20px !important;
    }
}

/* 横屏模式优化 */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        min-height: auto;
        padding: 100px 0 var(--spacing-lg);
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-icon,
    .value-icon,
    .feature-icon,
    .contact-icon {
        border: 0.5px solid transparent;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .hamburger,
    .mobile-menu,
    .hero-buttons {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* 减少动画模式 */
@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;
    }
}
