.admin-login-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1117;
    padding: 20px;
}

.admin-login-card {
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(245, 166, 35, 0.2) !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    color: #fff;

    .login-header {
        text-align: center;
        margin-bottom: 40px;

        .admin-logo {
            font-size: 48px;
            color: #f5a623;
            margin-bottom: 15px;
        }

        h2 {
            color: #fff;
            margin-bottom: 8px;
            font-weight: 600;
        }

        p {
            color: rgba(255, 255, 255, 0.5);
            font-size: 14px;
        }
    }

    .ant-steps-item-title {
        color: rgba(255, 255, 255, 0.45) !important;
    }

    .ant-steps-item-process .ant-steps-item-title {
        color: #fff !important;
    }

    .ant-input-affix-wrapper {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);

        input {
            background: transparent;
            color: #fff;
        }

        .anticon {
            color: rgba(255, 255, 255, 0.4);
        }
    }

    .btn-admin-next,
    .btn-admin-login {
        background: linear-gradient(135deg, #f5a623 0%, #e07732 100%);
        border: none;
        height: 48px;
        font-weight: bold;

        &:hover {
            opacity: 0.9;
        }
    }

    .footer-audit {
        margin-top: 30px;
        font-size: 12px;
        color: #ff4d4f;
        text-align: center;
        background: rgba(255, 77, 79, 0.05);
        padding: 8px;
        border-radius: 6px;
    }
}:root {
    --primary-color: #4f46e5;
    --primary-light: #818cf8;
    --primary-dark: #3730a3;
    --secondary-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --bg-body: #f9fafb;
    --bg-card: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.brand-font {
    font-family: 'Outfit', sans-serif;
}

/* --- Layout --- */
.client-query-root {
    position: relative;
    z-index: 1;
    /* 确保自身层级有效 */
}

.header-decoration-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 380px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    clip-path: ellipse(150% 100% at 50% 0%);
    z-index: 1;
}

.page-header {
    background: transparent;
    padding: 3rem 1rem 6rem;
    color: white;
    text-align: center;
    position: relative;
    z-index: 50;
    /* Above main-wrapper (10) */
}

.header-content {
    position: relative;
    z-index: 50;
    max-width: 1400px;
    margin: 0 auto;
    height: 80px;
    display: flex;
    /* Use flex for alignment */
    align-items: center;
    justify-content: center;
}

.header-title-box {
    /* Flex item centering */
    text-align: center;
    width: 100%;
    pointer-events: none;
}

.header-user-box {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    /* Vertical center without transform */
    z-index: 51;
}

.main-wrapper {
    margin-top: -4rem;
    margin-bottom: 4rem;
    z-index: 10;
    position: relative;
}

.container-custom {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Components --- */
.glass-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.step-badge {
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 12px;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* 注册校验相关样式 */
.validation-feedback {
    font-size: 0.8rem;
    margin-top: 4px;
    min-height: 1.2rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.validation-loading {
    color: var(--text-muted);
}

.validation-success {
    color: #10b981;
}

.validation-error {
    color: #ef4444;
}

.recommendation-link {
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s;
}

.recommendation-link:hover {
    color: var(--primary-hover);
}

.spinner-mini {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.input-group-text {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-muted);
}

/* --- Action Buttons --- */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.period-btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.period-btn {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    flex: 1;
    min-width: 100px;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.period-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
    background: #f8fafc;
}

.period-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transform: translateY(-1px);
}

/* --- Score Results --- */
.score-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(to right, #f8fafc, #eff6ff);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px dashed var(--primary-light);
}

.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    margin: 0 auto;
    border: 8px solid var(--primary-light);
}

.score-num {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.score-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.factor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.factor-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.25s ease;
    cursor: default;
}

.factor-card:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.12);
}

.factor-card .factor-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.factor-card .factor-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 8px;
}

.factor-card .factor-name {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.factor-card .factor-score {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 等级标签样式 */
.grade-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    margin-left: 0.75rem;
}

.grade-a {
    background: #dcfce7;
    color: #16a34a;
}

.grade-b {
    background: #dbeafe;
    color: #2563eb;
}

.grade-c {
    background: #fef3c7;
    color: #d97706;
}

.grade-d {
    background: #fee2e2;
    color: #dc2626;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .factor-grid {
        grid-template-columns: 1fr;
    }

    .score-display {
        flex-direction: column;
        text-align: center;
    }

    .score-display>div:last-child {
        margin-top: 1.5rem;
    }
}

/* --- Status Bar --- */
.status-bar {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.status-healthy {
    background-color: var(--success-color);
}

.status-warning {
    background-color: var(--warning-color);
}

.status-error {
    background-color: var(--danger-color);
}

/* --- Animations --- */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: slideUp 0.4s ease-out forwards;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .page-header {
        padding: 2rem 1rem 4rem;
    }

    .header-content {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .header-title-box {
        position: static;
        transform: none;
        width: auto;
        pointer-events: auto;
    }

    .header-user-box {
        position: static;
        transform: none;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .score-display {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .period-btn-group {
        flex-direction: column;
    }

    .score-num {
        font-size: 2.5rem;
    }
}

/* --- OCR & Image Preview Enhancement --- */
.ocr-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.ocr-loading::after {
    content: "正在智能识别...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 10;
}

.ocr-highlight {
    animation: highlight-pulse 2s;
    border-color: #f59e0b !important;
    background-color: #fffbeb !important;
}

@keyframes highlight-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

.preview-container {
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8fafc;
    cursor: zoom-in;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-container img {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.preview-container.zoomed {
    cursor: zoom-out;
}

.preview-container.zoomed img {
    transform: scale(2);
}

/* Error Message Styling */
.error-message-box {
    background-color: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* --- Added for New Query UI --- */
.step-badge {
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 12px;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.period-btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.period-btn {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    flex: 1;
    min-width: 100px;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.period-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
    background: #f8fafc;
}

.period-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transform: translateY(-1px);
}/* stylelint-disable */
html,
body {
  width: 100%;
  height: 100%;
}
input::-ms-clear,
input::-ms-reveal {
  display: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -ms-overflow-style: scrollbar;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  margin: 0;
}
[tabindex='-1']:focus {
  outline: none;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 500;
}
p {
  margin-top: 0;
  margin-bottom: 1em;
}
abbr[title],
abbr[data-original-title] {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
  border-bottom: 0;
  cursor: help;
}
address {
  margin-bottom: 1em;
  font-style: normal;
  line-height: inherit;
}
input[type='text'],
input[type='password'],
input[type='number'],
textarea {
  -webkit-appearance: none;
}
ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1em;
}
ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}
dt {
  font-weight: 500;
}
dd {
  margin-bottom: 0.5em;
  margin-left: 0;
}
blockquote {
  margin: 0 0 1em;
}
dfn {
  font-style: italic;
}
b,
strong {
  font-weight: bolder;
}
small {
  font-size: 80%;
}
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
pre,
code,
kbd,
samp {
  font-size: 1em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}
pre {
  margin-top: 0;
  margin-bottom: 1em;
  overflow: auto;
}
figure {
  margin: 0 0 1em;
}
img {
  vertical-align: middle;
  border-style: none;
}
a,
area,
button,
[role='button'],
input:not([type='range']),
label,
select,
summary,
textarea {
  touch-action: manipulation;
}
table {
  border-collapse: collapse;
}
caption {
  padding-top: 0.75em;
  padding-bottom: 0.3em;
  text-align: left;
  caption-side: bottom;
}
input,
button,
select,
optgroup,
textarea {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
html [type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
  padding: 0;
  border-style: none;
}
input[type='radio'],
input[type='checkbox'] {
  box-sizing: border-box;
  padding: 0;
}
input[type='date'],
input[type='time'],
input[type='datetime-local'],
input[type='month'] {
  -webkit-appearance: listbox;
}
textarea {
  overflow: auto;
  resize: vertical;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.5em;
  padding: 0;
  color: inherit;
  font-size: 1.5em;
  line-height: inherit;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
  height: auto;
}
[type='search'] {
  outline-offset: -2px;
  -webkit-appearance: none;
}
[type='search']::-webkit-search-cancel-button,
[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}
output {
  display: inline-block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none !important;
}
