body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.form-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
}

input[type="text"] {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* maxImages输入框特定样式 */
input[type="number"]#max-images {
    padding: 12px; /* 增加内边距使输入框更高 */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 25%; /* 宽度设置为25% */
    height: 44px; /* 设置明确的高度 */
    box-sizing: border-box;
}

input[type="submit"] {
    padding: 12px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

input[type="submit"]:hover {
    background: #2980b9;
}

.result-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.result-info {
    margin: 20px 0;
    padding: 15px;
    border-radius: 4px;
}

.result-info.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result-info.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.back-link {
    margin-bottom: 20px;
}

.back-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.back-link a:hover {
    text-decoration: underline;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f5f5f5;
}

.download-link {
    margin-top: 20px;
    text-align: center;
}

.download-link a {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.download-link a:hover {
    background: #219653;
}

/* 导出选中产品按钮样式 */
.export-btn {
    background: #3498db;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-left: 10px;
}

.export-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.export-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    color: #7f8c8d;
    font-size: 14px;
}

/* 增大产品列表单选框样式 */
input[type="checkbox"] {
    transform: scale(1.5); /* 增大1.5倍 */
    margin-right: 8px;
    cursor: pointer;
}

/* 表头的全选框可以稍微再大一点 */
thead input[type="checkbox"] {
    transform: scale(1.8);
}

/* 确保单元格内有足够的空间容纳增大的复选框 */
table td:first-child,
table th:first-child {
    width: 50px;
    text-align: center;
}

/* 价格区间过滤样式 */
.filter-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #eaeaea;
}

.filter-container h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
}

.price-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.price-filter input[type="number"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 120px;
}

.price-filter span {
    color: #7f8c8d;
    font-weight: bold;
}

.filter-btn,
.clear-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.filter-btn {
    background: #3498db;
    color: white;
}

.filter-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.clear-btn {
    background: #95a5a6;
    color: white;
}

.clear-btn:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(149, 165, 166, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .price-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .price-filter input[type="number"] {
        width: 100%;
    }
    
    .filter-btn,
    .clear-btn {
        width: 100%;
        margin-top: 5px;
    }
}