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

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f3f7fb 0%, #eef3f6 48%, #f8fafc 100%);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: center;
    gap: 56px;
    max-width: 1060px;
    margin: 0 auto;
    padding: 40px 24px;
}

.login-brand h1 {
    font-size: 42px;
    line-height: 1.18;
    margin: 24px 0 16px;
    font-weight: 700;
}

.login-brand p {
    max-width: 520px;
    color: #5b6675;
    font-size: 17px;
    line-height: 1.8;
}

.brand-mark {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #124f88;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0;
}

.login-panel {
    background: #fff;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(32, 54, 77, .12);
    padding: 32px;
}

.login-panel-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 26px;
}

.login-panel-header h2 {
    font-size: 26px;
    margin: 0;
    font-weight: 700;
}

.login-panel-header span,
.demo-account {
    color: #6b7280;
    font-size: 13px;
}

.language-switch {
    margin-bottom: 16px;
    color: #94a3b8;
    font-size: 13px;
}

.language-switch.inline {
    margin-bottom: 0;
}

.language-switch a {
    color: #124f88;
    text-decoration: none;
}

.form-control {
    min-height: 44px;
}

/* 只读/锁定字段统一样式 */
.field-locked,
.field-locked:focus {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    border-color: #ced4da !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

.btn-primary {
    min-height: 44px;
    background: #124f88;
    border-color: #124f88;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #0d416f;
    border-color: #0d416f;
}

.demo-account {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #edf1f5;
    line-height: 1.8;
}

.admin-page {
    background: #f7f9fb;
    min-height: 100vh;
}

.admin-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: calc(100vh - 57px);
}

.admin-sidebar {
    background: #fff;
    border-right: 1px solid #e4e9f0;
    padding: 18px 12px;
}

.admin-sidebar a {
    display: block;
    color: #334155;
    text-decoration: none;
    padding: 11px 14px;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 14px;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: #eaf2f8;
    color: #124f88;
}

.admin-content {
    padding: 28px;
}

.page-title {
    margin-bottom: 22px;
}

.page-title.with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page-title h1 {
    font-size: 24px;
    margin: 0 0 8px;
    font-weight: 700;
}

.page-title p {
    margin: 0;
    color: #64748b;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.metric-card,
.table-panel {
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 8px;
}

.metric-card {
    padding: 20px;
}

.metric-card span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 10px;
}

.metric-card strong {
    font-size: 20px;
    color: #1f2937;
}

.dashboard-section {
    margin-top: 28px;
}

.dashboard-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px;
}

.dashboard-section-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dashboard-section-form .choices {
    width: 260px;
    margin-bottom: 0;
}

.dashboard-section-form .choices .choices__inner {
    min-height: 38px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.table-panel {
    overflow: auto;
}


.table-panel .table th {
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    background: #f8fafc;
    white-space: nowrap;
}

.table-panel .table td {
    font-size: 14px;
    white-space: nowrap;
}

@media (max-width: 800px) {
    .login-shell {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .login-brand h1 {
        font-size: 32px;
    }

    .login-panel {
        padding: 24px;
    }

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

    .admin-sidebar {
        display: flex;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid #e4e9f0;
    }

    .admin-sidebar a {
        white-space: nowrap;
    }

    .admin-content {
        padding: 20px;
    }

    .page-title.with-action {
        align-items: flex-start;
        flex-direction: column;
    }
}
