* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #1f2937;
    background: #f4f6f8;
    font-family: Arial, "Microsoft YaHei", sans-serif;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #111827, #243447);
}

.login-card {
    width: 100%;
    max-width: 380px;
    padding: 34px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
}

.brand {
    font-size: 28px;
    font-weight: 800;
}

.sub {
    margin: 8px 0 28px;
    color: #6b7280;
    font-size: 14px;
}

.alert {
    margin-bottom: 18px;
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #b91c1c;
    background: #fff1f2;
    font-size: 14px;
}

label {
    display: block;
    margin-bottom: 16px;
}

label span {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-size: 14px;
}

input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
}

input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

button {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: #2563eb;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 28px;
    color: #fff;
    background: #111827;
}

.title {
    font-size: 22px;
    font-weight: 800;
}

.muted {
    margin-top: 4px;
    color: #9ca3af;
    font-size: 13px;
}

.userbox {
    display: flex;
    align-items: center;
    gap: 14px;
}

.userbox a {
    color: #bfdbfe;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 48px;
}

.profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

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

.profile-line {
    margin-top: 6px;
    font-size: 18px;
    font-weight: 700;
}

.tag {
    padding: 6px 10px;
    border-radius: 999px;
    color: #047857;
    background: #d1fae5;
    font-size: 13px;
    font-weight: 700;
}

.filter {
    display: flex;
    align-items: end;
    gap: 14px;
    margin-bottom: 18px;
    padding: 18px 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.filter-title {
    align-self: center;
    margin-right: auto;
    font-size: 18px;
    font-weight: 800;
}

.filter label {
    min-width: 180px;
    margin: 0;
}

.filter button {
    width: 96px;
}

.clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    font-weight: 700;
}

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

.card {
    min-height: 142px;
    padding: 22px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.card-label {
    color: #6b7280;
    font-size: 14px;
}

.card-value {
    margin-top: 14px;
    color: #111827;
    font-size: 34px;
    font-weight: 800;
}

.card-hint {
    margin-top: 10px;
    color: #9ca3af;
    font-size: 13px;
}

@media (max-width: 820px) {
    .topbar,
    .profile,
    .filter {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .filter-title {
        margin-right: 0;
    }

    .filter label,
    .filter button,
    .clear-btn {
        width: 100%;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}
