/*
Theme Name: 江苏施迈达电子科技有限公司
Theme URI: http://example.com/js-smida-theme
Author: 袁斌
Author URI: http://example.com
Description: A simple, empty WordPress theme for 江苏施迈达电子科技有限公司.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: js-smida-theme
*/


.product-container {
    margin: 10px 0 30px 0;
    border-radius: 8px;
    overflow: hidden;
}

.product-tabs {
    display: flex;
    margin-bottom: 40px;
    margin-top: 20px;
}

.product-tab {
    padding: 15px 30px;
    cursor: pointer;
    color: #213c59;
    border: 1px solid #213c59;
    background-color: #f8f9fa;
    transition: background-color 0.3s, color 0.3s;
}

.product-tab:hover {
    background-color: #e2e6ea;
}

.product-tab.active {
    background-color: #213c59;
    color: white;
    font-weight: 900;
}

.product-content {
    display: none;
    transition: opacity 0.5s;
}

.product-content.active {
    display: block;
    opacity: 1;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.product-item {
    flex: 1 1 calc(33.333% - 20px); /* 三列布局 */
    box-sizing: border-box;
    margin: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #fff;
    text-align: center;
}

.product-item:hover {
    background-color: #f1f1f1;
}

.product-item img {
    width: 100%;
    object-fit: cover; /* 保持图片比例，并填充整个框架 */
}

.product-item h3 {
    margin: 15px 0 15px 0;
}

.product-item p {
    margin: 0 0 10px 0;
}

.product-item a {
    display: inline-block;
    padding: 10px 15px;
    background-color: #213c59;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.product-item a:hover {
    background-color: #0056b3;
}