/* 响应式设计 */

/* 平板设备 */
@media (max-width: 1024px) {
    .container { padding: 0 15px; }
    .hero-title { font-size: 3rem; }
    .section-title { font-size: 2rem; }
    .about-content, .contact-content { gap: 40px; }
    .footer-content { gap: 30px; }
    
    /* 案例轮播 */
    .case-item {
        flex: 0 0 calc(50% - 20px);
    }
}

/* 移动设备 */
@media (max-width: 768px) {
    /* 导航 */
    .nav-container { padding: 1rem; }
    .nav-logo { flex-shrink: 0; }
    .company-name { font-size: 1.1rem; }
    .nav-menu {
        position: fixed; left: -100%; top: 70px;
        flex-direction: column; background-color: var(--bg-white);
        width: 100%; text-align: center; transition: 0.3s;
        box-shadow: var(--shadow); padding: 2rem 0; z-index: 1000;
    }
    .nav-menu.active { left: 0; }
    .nav-item { margin: 12px 0; }
    .nav-link { font-size: 1rem; padding: 10px 16px; }
    .nav-toggle { display: flex; }
    .nav-toggle.active .bar:nth-child(2) { opacity: 0; }
    .nav-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .dropdown-menu {
        position: static; opacity: 1; visibility: visible;
        transform: none; box-shadow: none;
        background-color: var(--bg-light); margin-top: 10px;
    }
    
    /* 轮播图 */
    .hero-section { height: 70vh; min-height: 500px; }
    .hero-title { font-size: 2.5rem; line-height: 1.3; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; align-items: center; gap: 15px; }
    .hero-buttons .btn { padding: 12px 24px; width: 200px; }
    .hero-nav-btn { width: 40px; height: 40px; font-size: 1rem; }
    .hero-nav-btn.prev { left: 15px; }
    .hero-nav-btn.next { right: 15px; }
    
    /* 布局 */
    .about-section, .services-section, .stats-section,
    .advantages-section, .cases-section, .news-section,
    .contact-section { padding: 60px 0; }
    
    .about-content { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .about-features { grid-template-columns: 1fr; text-align: left; }
    .services-grid, .advantages-grid, .news-grid { grid-template-columns: 1fr; gap: 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .service-card { padding: 30px 20px; }
    .stat-number { font-size: 2.5rem; }
    .advantage-item { padding: 20px; text-align: center; flex-direction: column; align-items: center; }
    
    /* 案例轮播 */
    .case-item {
        flex: 0 0 calc(100% - 20px);
    }
    
    /* 表单和页脚 */
    .contact-content { grid-template-columns: 1fr; gap: 40px; }
    .contact-form { padding: 30px 20px; }
    .form-row { grid-template-columns: 1fr; gap: 15px; }
    .footer { padding: 40px 0 20px; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-logo, .social-links { justify-content: center; }
    .back-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .container { padding: 0 10px; }
    .nav-container { padding: 0.75rem; }
    .company-name { font-size: 1.1rem; white-space: nowrap; }
    .logo-img { height: 35px; margin-right: 8px; }
    .nav-link { font-size: 0.9rem; padding: 8px 12px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons .btn { padding: 10px 20px; font-size: 0.9rem; width: 180px; }
    .section-title { font-size: 1.75rem; }
    .section-subtitle { font-size: 1rem; }
    .service-card { padding: 25px 15px; }
    .service-card h3 { font-size: 1.25rem; }
    .stats-grid { grid-template-columns: 1fr; gap: 20px; }
    .stat-number { font-size: 2rem; }
    .advantage-item { padding: 15px; }
    .advantage-icon { width: 50px; height: 50px; }
    .advantage-icon i { font-size: 1.25rem; }
    .contact-form { padding: 20px 15px; }
    .contact-item { flex-direction: column; text-align: center; gap: 0.5rem; }
    
    /* 案例轮播 */
    .case-item {
        margin: 0 5px;
    }
}

/* 超小屏幕 */
@media (max-width: 360px) {
    .hero-title { font-size: 1.75rem; }
    .section-title { font-size: 1.5rem; }
    .hero-buttons .btn { width: 150px; padding: 8px 16px; }
    .service-card, .contact-form { padding: 20px 10px; }
    .back-to-top { width: 40px; height: 40px; bottom: 15px; right: 15px; }
    .company-name { font-size: 1rem; }
    .logo-img { height: 30px; margin-right: 6px; }
    
    /* 案例轮播 */
    .case-item {
        flex: 0 0 calc(100% - 10px);
        margin: 0 5px;
    }
}

/* 横屏和打印 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section { height: 90vh; }
    .hero-title { font-size: 2rem; }
    .hero-buttons { flex-direction: row; gap: 10px; }
    .hero-buttons .btn { padding: 8px 16px; font-size: 0.9rem; }
}

@media print {
    .navbar, .hero-nav, .hero-indicators, .back-to-top, .contact-form { display: none; }
    .hero-section { height: auto; page-break-after: always; }
    .slide-content { position: static; color: black; }
    body { font-size: 12pt; line-height: 1.4; }
    .section-title { font-size: 18pt; color: black; }
    .btn { display: none; }
}