/* GJMS 智杰工業 - 响应式样式文件 */

/* 平板电脑 (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    /* 导航栏调整 */
    .navbar-brand {
        font-size: 28px;
    }
    
    .navbar-nav .nav-link {
        font-size: 14px;
        padding: 6px 12px;
        white-space: nowrap;
    }
    
    /* 首页横幅调整 */
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    /* 产品卡片调整 */
    .product-card {
        margin-bottom: 25px;
    }
    
    .product-image {
        height: 180px;
    }
}

/* 手机端 (小于768px) */
@media (max-width: 767px) {
    /* 基础布局 */
    .main-container {
        padding-top: 100px;
    }
    
    /* 语言切换栏 */
    .language-bar {
        padding: 5px 0;
        font-size: 0.8rem;
    }
    
    .language-bar .container {
        justify-content: center;
    }
    
    /* 导航栏 */
    .navbar {
        padding: 10px 0;
        top: 32px;
    }
    
    .navbar-brand {
        font-size: 24px;
    }
    
    .navbar-nav .nav-link {
        font-size: 16px;
        padding: 10px 15px;
        margin: 5px 0;
        text-align: center;
        white-space: nowrap;
        justify-content: center;
    }
    
    .navbar-toggler {
        border: none;
        color: #ffffff;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    /* 首页横幅 */
    .hero-banner {
        padding: 40px 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .hero-features {
        gap: 12px;
        margin-top: 25px;
    }
    
    .feature-item {
        font-size: 0.95rem;
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 30px;
    }
    
    /* 产品展示区域 */
    .products-showcase {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* 产品卡片 */
    .product-card {
        margin-bottom: 20px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .product-category,
    .product-description {
        font-size: 0.85rem;
    }
    
    /* 公司优势区域 */
    .company-advantages {
        padding: 40px 0;
        margin-top: 40px;
    }
    
    .advantage-item {
        padding: 25px 15px;
        margin-bottom: 20px;
    }
    
    .advantage-icon i {
        font-size: 2.5rem;
    }
    
    .advantage-item h5 {
        font-size: 1.1rem;
    }
    
    .advantage-item p {
        font-size: 0.9rem;
    }
    
    /* 公司简介页面 */
    .company-intro {
        padding: 40px 0;
        text-align: center;
    }
    
    .company-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .company-description p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .feature-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .feature-box {
        text-align: center;
        padding: 15px;
    }
    
    .feature-box i {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .feature-box h5 {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }
    
    .feature-box p {
        font-size: 0.8rem;
    }
    
    .company-image {
        margin-top: 30px;
    }
    
    /* 公司位置区域 */
    .company-location {
        padding: 30px 0;
    }
    
    .location-title {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 25px;
    }
    
    .map-container {
        margin-bottom: 25px;
    }
    
    .map-container iframe {
        height: 250px;
    }
    
    .contact-details h5 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .contact-item {
        margin-bottom: 12px;
        font-size: 0.9rem;
    }
    
    /* 新品专区页面 */
    .product-categories {
        padding: 20px 0;
    }
    
    .category-sidebar {
        margin-bottom: 30px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        padding: 20px;
    }
    
    .sidebar-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .category-item {
        margin-bottom: 10px;
    }
    
    .category-header {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .subcategory-item {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .content-header {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .content-header h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .view-options {
        justify-content: center;
    }
    
    /* 产品列表视图 */
    .product-item-list {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .product-image-list {
        width: 100%;
        height: 150px;
        margin-bottom: 15px;
    }
    
    .product-info-list {
        width: 100%;
    }
    
    .product-actions {
        margin-top: 15px;
    }
    
    /* 产品网格视图 */
    .product-card-grid {
        margin-bottom: 20px;
    }
    
    .product-card-grid .product-image {
        height: 150px;
    }
    
    .product-card-grid .product-info {
        padding: 12px;
    }
    
    .product-card-grid h5 {
        font-size: 1rem;
    }
    
    /* 模态框调整 */
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-body .row {
        flex-direction: column;
    }
    
    .modal-body .col-md-6:first-child {
        margin-bottom: 20px;
    }
    
    /* 底部 */
    .site-footer {
        padding: 30px 0 15px;
        text-align: center;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-text,
    .contact-item {
        font-size: 0.9rem;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 15px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .copyright {
        font-size: 0.8rem;
        text-align: center;
    }
    
    /* 按钮调整 */
    .btn-lg {
        font-size: 1rem;
        padding: 12px 25px;
    }
    
    .view-details {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* 超小屏幕 (小于480px) */
@media (max-width: 479px) {
    /* 进一步缩小字体和间距 */
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .advantage-icon i {
        font-size: 2rem;
    }
    
    .company-title {
        font-size: 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .navbar-brand {
        font-size: 20px;
    }
    
    .modal-dialog {
        margin: 5px;
    }
}

/* 横屏模式调整 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-banner {
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .company-advantages {
        padding: 30px 0;
    }
    
    .advantage-item {
        padding: 15px 10px;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .language-bar,
    .view-options,
    .product-actions,
    .site-footer,
    .modal {
        display: none !important;
    }
    
    .main-container {
        padding-top: 0;
    }
    
    .hero-banner,
    .products-showcase,
    .company-advantages {
        break-inside: avoid;
    }
    
    .product-card {
        break-inside: avoid;
        margin-bottom: 15px;
    }
} 