:root {
    --primary-color: #364450;
    --text-color: #333;
    --background-color: #f4f4f4;
    --light-gray: #e0e0e0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

#product-extra.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- 通用标题和段落样式 --- */
#product-extra h2 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-top: 0;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

#product-extra .subtitle {
    color: var(--primary-color);
    font-style: italic;
    font-size: 1.2em;
    margin-top: 0;
}

/* --- 桌面端样式 (>= 769px) --- */
@media (min-width: 769px) {
    #product-extra .module {
        display: flex;
        align-items: center;
        gap: 40px;
        margin-bottom: 60px;
        padding: 30px;
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }
    
    #product-extra .module-content {
        flex: 1; 
    }
    
    #product-extra .module-image {
        flex: 0 0 400px; 
        max-width: 45%; 
    }
    
    #product-extra .module-image img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 8px;
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    #product-extra .module-image img:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }
    
    #product-extra .feature-module.reversed {
        flex-direction: row-reverse;
    }
    
    #product-extra .warehouse-module {
        text-align: center;
        padding: 40px 20px;
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    #product-extra .warehouse-module-image {
        margin-top: 30px;
    }
    
    #product-extra .warehouse-module-image img {
        width: 100%;
        height: auto;
        cursor: pointer;
        border-radius: 8px;
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    #product-extra .warehouse-module-image img:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }
}


/* --- 移动端样式 (<= 768px) --- */
@media (max-width: 768px) {
    #product-extra .module {
        display: block;
        margin-bottom: 40px;
        background-color: transparent;
        box-shadow: none;
        position: relative;
    }
    
    #product-extra .module-image img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    #product-extra .module-content {
        padding: 20px 0;
        text-align: center;
    }
    
    #product-extra h2 {
        font-size: 1.8em;
    }
    
    #product-extra .subtitle {
        font-size: 1em;
    }
    
    #product-extra .warehouse-module {
        padding: 20px;
        text-align: center;
    }
    
    #product-extra .warehouse-module-image {
        margin-top: 20px;
    }
    
    #product-extra .warehouse-module-image img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }
}
/*
 * Modal styles do not need the #product-extra prefix as they are not inside the main container.
 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease-in-out;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (min-width: 769px) {
    .modal {
        display: none !important;
    }
}