/* 响应式样式 */

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .header, .main-content, .footer {
        width: 100%;
    }
    
    .nav {
        padding: 0 20px;
    }
    
    .nav-items {
        gap: 30px;
    }
    
    .about-image, .commitment-img, .oranges-img {
        width: 100%;
        height: auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .testimonials-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .testimonial-card {
        width: calc(50% - 20px);
    }
    
    .footer-container {
        padding: 0 20px;
    }
}

/* 移动设备 (小于768px) */
@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }
    
    .header {
        padding: 15px 0;
        position: relative;
    }
    
    /* 汉堡菜单样式 */
    .hamburger-menu {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 200;
        cursor: pointer;
    }
    
    .hamburger-line {
        width: 30px;
        height: 3px;
        background-color: #333;
        margin: 6px 0;
        transition: 0.4s;
    }
    
    .hamburger-menu.active .hamburger-line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger-menu.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active .hamburger-line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .nav {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .nav-items {
        display: none;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        text-align: center;
        padding: 20px 0;
        background-color: rgba(255, 255, 255, 0.95);
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 100;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* 确保首页移动端菜单文字颜色 */
    .nav-items .nav-item {
        color: #333;
    }
    
    .nav-items.active {
        display: flex;
    }
    
    .hero-section {
        height: auto;
        padding: 100px 20px 50px;
        flex-direction: column;
    }
    
    .decoration-left, .decoration-right {
        display: none;
    }
    
    .center-content {
        width: 100%;
        padding: 0 20px;
    }
    
    .logo {
        font-size: 60px;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .login-btn {
        margin-top: 20px;
    }
    
    .about-section {
        padding: 40px 0;
    }
    
    .about-content {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }
    
    .about-title-container, .about-text {
        max-width: 100%;
    }
    
    .about-title {
        font-size: 36px;
    }
    
    .about-description {
        font-size: 16px;
    }
    
    .more-btn {
        right: 20px;
        bottom: 20px;
        padding: 10px 20px;
    }
    
    .products-section {
        padding: 40px 0;
    }
    
    .products-container {
        padding: 0 20px;
    }
    
    .products-title {
        font-size: 36px;
        margin-bottom: 30px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .more-products-btn {
        margin-top: 30px;
    }
    
    .commitment-section {
        padding: 40px 0;
        position: relative;
    }
    
    .commitment-content {
        flex-direction: column-reverse;
        padding: 0 20px;
        gap: 40px;
    }
    
    .commitment-text {
        width: 100%;
        margin-top: 20px;
    }
    
    .commitment-image {
        width: 100%;
        height: auto;
        max-height: 300px;
        overflow: hidden;
        margin-bottom: 20px;
    }
    
    .commitment-img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }
    
    .commitment-title {
        font-size: 36px;
    }
    
    .services-btn {
        margin-top: 30px;
        position: relative;
        display: inline-block;
        float: right;
        margin-right: 20px;
    }
    
    /* 清除浮动 */
    .commitment-section:after {
        content: "";
        display: table;
        clear: both;
    }
    
    .testimonials-section {
        padding: 40px 0;
    }
    
    .testimonials-title {
        font-size: 36px;
        padding: 0 20px;
    }
    
    .testimonials-container {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .testimonial-card {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .testimonials-more-btn {
        margin-top: 20px;
    }
    
    .footer {
        padding: 40px 0;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-left, .footer-center, .footer-right {
        width: 100%;
    }
    
    .footer-right {
        flex-direction: column;
        gap: 20px;
    }
}

/* 超小屏幕设备 (小于480px) */
@media (max-width: 479px) {
    .logo {
        font-size: 40px;
    }
    
    .main-title {
        font-size: 20px;
    }
    
    .about-title, .products-title, .commitment-title, .testimonials-title {
        font-size: 28px;
    }
    
    .feature-title {
        font-size: 18px;
    }
    
    .feature-description, .about-description, .product-description {
        font-size: 14px;
    }
    
    .more-btn, .more-products-btn, .services-btn, .testimonials-more-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
} 