<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/* 产品管理页面样式 */

/* 产品表单 */
.product-form {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 30px;
}

.product-form h2 {
    margin-bottom: 20px;
    color: #24292e;
    border-bottom: 1px solid #e1e4e8;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0366d6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.2);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-buttons button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
}

#saveBtn {
    background-color: #0366d6;
    color: white;
}

#saveBtn:hover {
    background-color: #0256b9;
}

#cancelBtn {
    background-color: #e1e4e8;
    color: #24292e;
}

#cancelBtn:hover {
    background-color: #d1d5da;
}

/* 产品列表 */
.product-list {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.product-list h2 {
    margin-bottom: 20px;
    color: #24292e;
    border-bottom: 1px solid #e1e4e8;
    padding-bottom: 10px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-count {
    font-size: 14px;
    color: #586069;
}

.search-box {
    display: flex;
    gap: 5px;
}

.search-box input {
    padding: 8px 12px;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
}

.search-box button {
    padding: 8px 12px;
    background-color: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    color: #24292e;
}

.search-box button:hover {
    background-color: #e1e4e8;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e4e8;
}

table th {
    background-color: #f6f8fa;
    font-weight: 600;
}

tbody tr:hover {
    background-color: #f6f8fa;
}

.empty-message {
    text-align: center;
    color: #586069;
    padding: 20px 0;
}

/* 产品描述截断 */
.product-description {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 操作按钮 */
.action-btn {
    padding: 6px 10px;
    margin-right: 5px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    border: none;
}

.edit-btn {
    background-color: #2ea44f;
    color: white;
}

.edit-btn:hover {
    background-color: #2c974b;
}

.delete-btn {
    background-color: #cb2431;
    color: white;
}

.delete-btn:hover {
    background-color: #b51d29;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination-btn {
    padding: 8px 12px;
    margin: 0 5px;
    background-color: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    color: #24292e;
    cursor: pointer;
}

.pagination-btn:hover:not(.active) {
    background-color: #e1e4e8;
}

.pagination-btn.active {
    background-color: #0366d6;
    color: white;
    border-color: #0366d6;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        flex-grow: 1;
    }
}

.product-thumbnail {
    max-width: 80px;
    max-height: 80px;
    border-radius: 4px;
    border: 1px solid #ddd;
    object-fit: cover;
}

.form-group input[type="file"] {
    margin: 8px 0;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    width: 100%;
}

#imagePreviewContainer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

#removeImageBtn {
    padding: 4px 8px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

#removeImageBtn:hover {
    background-color: #d32f2f;
} </pre></body></html>