/* 新增：卡片式布局样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}


.product-content-wrapper {
    display: flex;
    align-items: center;
}

.product-image {
    width: 40%;
    height: 200px;
    object-fit: contain;
    display: block;
    margin: 10px auto;
}

.product-info {
    padding: 15px;
    flex: 1;
}

.product-actions {
    text-align: center;
    margin-top: 10px;
}

.product-fields {
    margin: 10px 0;
}

.product-field {
    margin-bottom: 5px;
    display: flex;
}

.product-field-label {
    font-weight: bold;
    min-width: 80px;
    color: #555;
}

.product-field-value {
    flex: 1;
    color: #333;
}

.front-btn,a.front-btn {
    color: #FFF;
    background-color: #008C8C;
    padding: 0.5em 0.5em;
    margin: 0 0 3px 0;
    text-decoration: none;
    border: 1px solid transparent;
    display: inline-block;
    cursor: pointer;
}

.sample-form-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.4);
}

.sample-form-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
}

.sample-form-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.sample-form-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-secondary:hover {
    background-color: #5a6268;
}