/* 响应式设计 */

/* 大屏幕 (1200px 及以上) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-content {
        gap: 6rem;
    }
}

/* 中等屏幕 (768px - 1199px) */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
}

/* 平板 (768px - 1023px) */
@media (max-width: 1023px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text {
        text-align: center;
    }
    
    .features {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
}

/* 手机 (767px 及以下) */
@media (max-width: 767px) {
    /* 导航栏 */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* 英雄区域 */
    .hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    /* 玻璃卡片 */
    .glass-card {
        padding: 1.5rem;
    }
    
    .glass-card.large {
        padding: 2rem;
    }
    
    .card-content i {
        font-size: 2rem;
    }
    
    .card-content h3 {
        font-size: 1.25rem;
    }
    
    /* 产品展示 */
    .products {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .carousel-container {
        margin: 0 1rem;
    }
    
    .carousel-slide {
        padding: 0 0.5rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .product-info h3 {
        font-size: 1.25rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn.prev {
        left: 5px;
    }
    
    .carousel-btn.next {
        right: 5px;
    }
    
    /* 关于我们 */
    .about {
        padding: 3rem 0;
    }
    
    .about-text h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .about-text p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature {
        padding: 1.5rem;
    }
    
    .feature i {
        font-size: 2rem;
    }
    
    .feature h3 {
        font-size: 1.1rem;
    }
    
    /* 联系方式 */
    .contact {
        padding: 3rem 0;
    }
    
    .contact-content {
        margin-top: 2rem;
    }
    
    .contact-info {
        gap: 1rem;
    }
    
    .contact-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin-bottom: 0.5rem;
    }
    
    .contact-map {
        min-height: 300px;
    }
    
    /* 页脚 */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    /* 容器 */
    .container {
        padding: 0 1rem;
    }
    
    /* 渐变球体 */
    .gradient-orb:nth-child(1) {
        width: 200px;
        height: 200px;
        top: 5%;
        right: 5%;
    }
    
    .gradient-orb:nth-child(2) {
        width: 150px;
        height: 150px;
        bottom: 10%;
        left: 5%;
    }
    
    .gradient-orb:nth-child(3) {
        width: 180px;
        height: 180px;
        top: 40%;
        left: 30%;
    }
}

/* 超小屏幕 (480px 及以下) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .about-text h2 {
        font-size: 1.5rem;
    }
    
    .product-info h3 {
        font-size: 1.1rem;
    }
    
    .feature h3 {
        font-size: 1rem;
    }
    
    .contact-item h3 {
        font-size: 1rem;
    }
    
    .nav-logo h2 {
        font-size: 1.25rem;
    }
    
    .gradient-orb:nth-child(1) {
        width: 150px;
        height: 150px;
    }
    
    .gradient-orb:nth-child(2) {
        width: 100px;
        height: 100px;
    }
    
    .gradient-orb:nth-child(3) {
        width: 120px;
        height: 120px;
    }
}

/* 横屏手机 (高度小于宽度且宽度小于768px) */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .btn {
        width: auto;
    }
}

/* 高分辨率屏幕 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .glass-card {
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
    }
    
    .navbar {
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .hero-background,
    .carousel-btn,
    .hamburger {
        display: none;
    }
    
    .hero {
        background: white;
        color: black;
    }
    
    .hero-title,
    .hero-subtitle {
        color: black;
    }
    
    .glass-card {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* 减少动画 (用户偏好) */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .gradient-orb {
        animation: none;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000FF;
        --text-primary: #000000;
        --text-secondary: #333333;
        --background: #FFFFFF;
    }
    
    .glass-card {
        background: white;
        border: 2px solid black;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #FFFFFF;
        --text-secondary: #CCCCCC;
        --background: #1A1A1A;
        --white: #2A2A2A;
    }
    
    .navbar {
        background: rgba(42, 42, 42, 0.8);
    }
    
    .glass-card {
        background: rgba(42, 42, 42, 0.1);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .product-card,
    .feature,
    .contact-map {
        background: var(--white);
    }
} 