/* 响应式设计 */

/* 大屏幕 (1200px 及以上) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
}

/* 中等屏幕 (992px - 1199px) */
@media (max-width: 1199px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-text h2 {
        font-size: 2.5rem;
    }
    
    .hero-text h4 {
        font-size: 2rem;
    }
}

/* 平板横屏 (768px - 991px) */
@media (max-width: 991px) {
    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        height: calc(100vh - 75px);
        transition: left 0.3s ease;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* 主视觉区域调整为单列 */
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 80px;
        padding: 40px 0;
    }
    
    .hero-right {
        padding-left: 0;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .hero-text h2 {
        font-size: 2.3rem;
    }
    
    .hero-text h4 {
        font-size: 2rem;
    }
    
    /* 公司介绍和生产工艺调整为单列 */
    .intro-layout,
    .process-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .intro-layout {
        text-align: center;
    }
    
    .process-layout {
        text-align: center;
    }
    
    /* 产品中心调整为单列 */
    .product-layout {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .product-left h2 {
        font-size: 2.8rem;
    }
    
    .product-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .nav-item {
        max-width: none;
        min-width: 120px;
    }
    
    /* 页脚调整 */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .footer-right {
        text-align: center;
    }
}

/* 平板竖屏 (576px - 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: 60px;
    }
    
    .hero-layout {
        gap: 60px;
        padding: 20px 0;
    }
    
    .golden-towel {
        max-width: 280px;
    }
    
    .podium {
        max-width: 220px;
    }
    
    .plant-img {
        max-width: 200px;
    }
    
    .product-3d {
        max-width: 350px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .hero-text h3 {
        font-size: 1.4rem;
    }
    
    .hero-text h4 {
        font-size: 1.6rem;
    }
    
    .hero-text h5 {
        font-size: 1.4rem;
    }
    
    .company-intro,
    .production-process,
    .product-center,
    .product-categories {
        padding: 80px 0;
    }
    
    .intro-content h3,
    .process-content h3 {
        font-size: 2.2rem;
    }
    
    .product-left h2 {
        font-size: 2.2rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .category-image {
        height: 220px;
    }
    
    .building-photo,
    .production-photo {
        height: 350px;
    }
    
    .social-links {
        gap: 20px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
    }
    
    .social-icon img {
        width: 22px;
        height: 22px;
    }
}

/* 手机横屏 (480px - 575px) */
@media (max-width: 575px) {
    .navbar {
        padding: 12px 0;
    }
    
    .nav-brand .logo {
        height: 40px;
    }
    
    .brand-text {
        font-size: 1.3rem;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .hero-text h3 {
        font-size: 1.2rem;
    }
    
    .hero-text h4 {
        font-size: 1.3rem;
    }
    
    .hero-text h5 {
        font-size: 1.2rem;
    }
    
    .golden-towel {
        max-width: 220px;
    }
    
    .podium {
        max-width: 180px;
    }
    
    .plant-img {
        max-width: 160px;
    }
    
    .intro-content h3,
    .process-content h3 {
        font-size: 1.8rem;
    }
    
    .intro-item h4 {
        font-size: 1.2rem;
    }
    
    .product-left h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .product-nav {
        gap: 12px;
    }
    
    .nav-item {
        padding: 12px 20px;
        font-size: 1rem;
        min-width: 100px;
    }
    
    .product-3d {
        max-width: 280px;
    }
    
    .geo-circle {
        right: -10%;
        max-width: 120px;
    }
    
    .geo-tube {
        left: -15%;
        max-width: 90px;
    }
}

/* 手机竖屏 (最大 479px) */
@media (max-width: 479px) {
    .container {
        padding: 0 12px;
    }
    
    .hero {
        padding-top: 70px;
        padding-bottom: 40px;
    }
    
    .hero-layout {
        gap: 40px;
        padding: 15px 0;
    }
    
    .hero-text h1 {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }
    
    .hero-text h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .hero-text h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .hero-text h4 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .hero-text h5 {
        font-size: 1rem;
    }
    
    .golden-towel {
        max-width: 180px;
    }
    
    .podium {
        max-width: 140px;
    }
    
    .plant-img {
        max-width: 130px;
    }
    
    .plant-decoration {
        margin-bottom: 20px;
    }
    
    .company-intro,
    .production-process,
    .product-center,
    .product-categories {
        padding: 60px 0;
    }
    
    .intro-layout,
    .process-layout {
        gap: 40px;
    }
    
    .intro-content h3,
    .process-content h3 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .intro-list {
        gap: 25px;
    }
    
    .intro-item h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .process-subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .product-layout {
        gap: 40px;
    }
    
    .product-left h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .product-nav {
        gap: 10px;
    }
    
    .nav-item {
        padding: 10px 15px;
        font-size: 0.9rem;
        min-width: 80px;
    }
    
    .product-3d {
        max-width: 220px;
    }
    
    .geo-circle {
        right: -5%;
        max-width: 80px;
    }
    
    .geo-tube {
        left: -10%;
        max-width: 60px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-image {
        height: 200px;
    }
    
    .building-photo,
    .production-photo {
        height: 250px;
    }
    
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-content {
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-logo-img {
        height: 50px;
        margin-bottom: 15px;
    }
    
    .company-name {
        font-size: 1rem;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-icon img {
        width: 18px;
        height: 18px;
    }
    
    .footer-bottom {
        padding-top: 30px;
        font-size: 0.9rem;
    }
}

/* 极小屏幕 (最大 320px) */
@media (max-width: 320px) {
    .hero-text h1 {
        font-size: 1.4rem;
    }
    
    .hero-text h2 {
        font-size: 1.2rem;
    }
    
    .hero-text h4 {
        font-size: 1rem;
    }
    
    .golden-towel {
        max-width: 150px;
    }
    
    .podium {
        max-width: 120px;
    }
    
    .plant-img {
        max-width: 100px;
    }
    
    .product-left h2 {
        font-size: 1.3rem;
    }
    
    .product-3d {
        max-width: 180px;
    }
    
    .nav-item {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 70px;
    }
}

/* 横屏优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 60px;
        padding-bottom: 40px;
    }
    
    .hero-layout {
        min-height: auto;
        gap: 40px;
        padding: 20px 0;
    }
    
    .golden-towel {
        max-width: 200px;
    }
    
    .podium {
        max-width: 160px;
    }
    
    .plant-img {
        max-width: 120px;
    }
}

/* 超大屏幕优化 */
@media (min-width: 1400px) {
    .container,
    .product-container {
        max-width: 1600px;
    }
    
    .hero-text h1 {
        font-size: 4rem;
    }
    
    .hero-text h2 {
        font-size: 3.5rem;
    }
    
    .hero-text h4 {
        font-size: 3rem;
    }
    
    .product-left h2 {
        font-size: 4rem;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .hamburger,
    .social-links,
    .geometric-elements {
        display: none;
    }
    
    .hero {
        padding-top: 0;
        background: white;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
    
    .hero-text h1,
    .hero-text h2,
    .hero-text h3,
    .hero-text h4,
    .hero-text h5 {
        color: black !important;
    }
}  

.music-control {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.music-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1); /* 将图标变为白色 */
}

.music-icon.rotating {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}