* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #e8f4f8;
    color: #333;
    line-height: 1.6;
}

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

/* 头部样式 */
header {
    background-color: #232f3e;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

header nav {
    display: flex;
    gap: 20px;
}

header nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    background-color: #4a6ea9;
    border-radius: 4px;
    transition: background-color 0.3s;
}

header nav a:hover {
    background-color: #5a7eb9;
}

/* 主要内容样式 */
main {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 查询区域样式 */
.search-section {
    margin-bottom: 30px;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #232f3e;
    border-bottom: 2px solid #4a6ea9;
    padding-bottom: 10px;
    text-align: center;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: end;
    margin-bottom: 20px;
}

.result-section {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.result-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #232f3e;
    border-bottom: 2px solid #4a6ea9;
    padding-bottom: 10px;
    text-align: center;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4a6ea9;
}

.search-btn,
.reset-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn {
    background-color: #f0c14b;
    color: #111;
    font-weight: bold;
}

.search-btn:hover {
    background-color: #e6b325;
}

.reset-btn {
    background-color: #ccc;
    color: #333;
}

.reset-btn:hover {
    background-color: #bbb;
}

/* 结果区域样式 */
.result-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #232f3e;
    border-bottom: 2px solid #4a6ea9;
    padding-bottom: 10px;
}

.result-list {
    width: 100%;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.result-table th,
.result-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
    word-wrap: break-word;
    white-space: normal;
    vertical-align: top;
}

.result-table th {
    background-color: #232f3e;
    color: white;
    font-weight: bold;
    text-align: center;
}

.result-table td {
    text-align: center;
}

.result-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.result-table tr:hover {
    background-color: #e9ecef;
}

.result-table td:first-child {
    font-weight: bold;
    color: #232f3e;
}

.result-table .remote-yes {
    color: #dc3545;
    font-weight: bold;
    background-color: #fff5f5;
}

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

/* 无结果样式 */
.no-result {
    text-align: center;
    padding: 40px;
    color: #888;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    header nav {
        margin-top: 10px;
        width: 100%;
        justify-content: space-between;
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .warehouse-info {
        grid-template-columns: 1fr;
    }
}

/* 页脚样式 */
footer {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #232f3e;
    color: white;
    border-radius: 8px;
    font-size: 14px;
}

/* 后台管理样式 */
.admin-section {
    margin-bottom: 30px;
}

.admin-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #232f3e;
    border-bottom: 2px solid #4a6ea9;
    padding-bottom: 10px;
}

.add-form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
}

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.data-table th {
    background-color: #232f3e;
    color: white;
    font-weight: bold;
}

.data-table tr:hover {
    background-color: #f5f5f5;
}

.action-btn {
    padding: 6px 12px;
    margin: 0 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.edit-btn {
    background-color: #4a6ea9;
    color: white;
}

.edit-btn:hover {
    background-color: #5a7eb9;
}

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

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

.success-msg {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.error-msg {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}