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

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    padding: 25px 35px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* 导航栏样式 */
.tab-nav, .admin-nav {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    background: #fafafa;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.tab-link, .admin-link {
    padding: 12px 24px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-link.active, .admin-link.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background: #fff;
}

.tab-link:hover, .admin-link:hover {
    background: #e9e9e9;
}

h1 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

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

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #34495e;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border 0.3s;
}

input:focus,
textarea:focus {
    border-color: #3498db;
    outline: none;
}

textarea {
    resize: vertical;
}

.btn {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 14px 25px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-block;
    text-decoration: none;
}

.btn:hover {
    background: #2980b9;
}

.btn.small {
    padding: 6px 12px;
    font-size: 13px;
    margin-right: 5px;
}

.btn.reject {
    background: #e74c3c;
}

.btn.reject:hover {
    background: #c0392b;
}

.btn.cancel {
    background: #95a5a6;
    margin-left: 10px;
}

/* 新增删除按钮样式，使用深红色 */
.btn.delete {
    background: #c0392b;
}

.btn.delete:hover {
    background: #a93226;
}

.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
}

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

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

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

.footer a {
    color: #3498db;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

table.complaint-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

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

table.complaint-table th {
    background: #3498db;
    color: #fff;
}

table.complaint-table tr:hover {
    background: #f1f1f1;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.pending {
    background: #f39c12;
    color: #fff;
}

.badge.approved {
    background: #27ae60;
    color: #fff;
}

.badge.rejected {
    background: #e74c3c;
    color: #fff;
}

.complaint-detail p {
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: 4px;
}

.complaint-detail strong {
    display: inline-block;
    width: 120px;
    color: #2c3e50;
}