/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* 容器 */
.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.main-header {
    background-color: #2d3e50;
    color: #fff;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-header .logo {
    font-size: 24px;
    font-weight: bold;
    padding: 20px 0;
}

.main-header .main-nav ul {
    list-style: none;
    display: flex;
}

.main-header .main-nav ul li {
    margin-left: 20px;
}

.main-header .main-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.main-header .main-nav ul li a:hover {
    color: #1abc9c;
}

/* 页脚样式 */
.main-footer {
    background-color: #2d3e50;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
}

/* 页面标题 */
h2 {
    font-size: 26px;
    margin-bottom: 20px;
    text-align: center;
    color: #2c3e50;
}

/* 消息通知 */
.notification {
    text-align: center;
    margin-bottom: 20px;
}

.notification .success {
    color: #27ae60;
    font-weight: bold;
}

.notification .error {
    color: #e74c3c;
    font-weight: bold;
}

/* 搜索表单 */
.search-form {
    margin-bottom: 15px;
}

.search-form .form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.search-form input[type="text"],
.search-form select,
.search-form input[type="date"] {
    width: 15%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-form label {
    font-size: 14px;
    margin-right: 5px;
}

.search-form button {
    padding: 4px 10px;
    font-size: 12px;
    background-color: #2980b9;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-form button:hover {
    background-color: #1f618d;
}

/* 表格样式 */
.order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 15px;
}

.order-table th,
.order-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.order-table th {
    background-color: #ecf0f1;
    font-weight: bold;
}

.order-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.order-table a {
    color: #2980b9;
    text-decoration: none;
}

.order-table a:hover {
    text-decoration: underline;
}

.order-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* 批量操作 */
.batch-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.batch-actions select {
    padding: 8px;
    font-size: 14px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.batch-actions button {
    padding: 10px 14px;
    font-size: 14px;
    background-color: #27ae60;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.batch-actions button:hover {
    background-color: #229954;
}

/* 分页导航 */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px;
    font-size: 14px;
    color: #2980b9;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination .current-page {
    background-color: #2980b9;
    color: #fff;
    border-color: #2980b9;
}

.pagination a:hover {
    background-color: #ecf0f1;
}

/* 每页显示选项 */
.page-limit {
    text-align: right;
    margin-top: 10px;
}

.page-limit label {
    font-size: 14px;
    margin-right: 5px;
}

.page-limit select {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* 按钮样式：将默认按钮的padding和字体大小改小一些 */
button,
.btn {
    padding: 6px 12px;      /* 改小这里的内边距 */
    font-size: 14px;        /* 或可改成13px再小些 */
    margin-right: 5px;
    margin-bottom: 5px;
    color: #fff;
    background-color: #2980b9;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover,
.btn:hover {
    background-color: #1f618d;
}

button[disabled],
button[disabled]:hover {
    background-color: #7f8c8d;
    cursor: not-allowed;
}

/* 新增小号按钮示例：可自由调整数值或命名 */
.btn-sm {
    padding: 3px 8px;
    font-size: 12px;
}

/* 表单样式 */
form label {
    font-weight: bold;
}

form input[type="text"],
form input[type="password"],
form input[type="date"],
form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* 链接样式 */
a {
    color: #2980b9;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-form .form-row input[type="text"],
    .search-form .form-row select,
    .search-form .form-row input[type="date"] {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-form button {
        width: 100%;
    }

    .order-table th,
    .order-table td {
        padding: 8px;
    }

    .main-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-header .main-nav ul {
        flex-direction: column;
        margin-top: 10px;
    }

    .main-header .main-nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }
}
