* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f7fb;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    color: #1f2937;
}

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

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

h2 {
    margin: 0;
    font-size: 20px;
}

.search-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #4b5563;
    font-size: 14px;
}

input,
select {
    width: 100%;
    height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 10px;
    outline: none;
    background: #ffffff;
}

input:focus,
select:focus {
    border-color: #2563eb;
}

.actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

button {
    border: none;
    background: #2563eb;
    color: white;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

button.success {
    background: #16a34a;
}

button.secondary {
    background: #6b7280;
}

.section-title {
    margin: 20px 0 10px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.section-title span {
    color: #6b7280;
    font-size: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 14px;
}

th {
    background: #f3f4f6;
    color: #374151;
}

.empty {
    text-align: center;
    color: #9ca3af;
}

@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        display: block;
    }

    .section-title span {
        display: block;
        margin-top: 6px;
    }
}


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

.top-bar h1 {
    margin-bottom: 0;
}

.logout-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
}

.logout-link:hover {
    text-decoration: underline;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
}

.login-card h1 {
    margin: 0 0 8px;
    text-align: center;
}

.login-subtitle {
    margin: 0 0 24px;
    text-align: center;
    color: #6b7280;
}

.login-form button {
    width: 100%;
    margin-top: 16px;
}

.login-msg {
    margin-top: 14px;
    min-height: 22px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

.login-msg.success {
    color: #16a34a;
}

.login-msg.error {
    color: #dc2626;
}
