/* === 全局样式 — 企微方案专家Agent Web版 === */
/* Apple 简洁风格，大量留白，中性色，Apple蓝强调 */

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

:root {
    --accent-color: #0071e3;         /* Apple 蓝 */
    --accent-hover: #0077ed;
    --accent-light: #e8f1fd;
    --text-primary: #1d1d1f;          /* Apple 深灰黑 */
    --text-secondary: #6e6e73;
    --text-light: #86868b;
    --bg-page: #fbfbfd;               /* Apple 灰白 */
    --bg-card: #ffffff;
    --bg-input: #f5f5f7;              /* 输入框浅灰 */
    --border-color: #d2d2d7;
    --border-radius-card: 18px;
    --border-radius-btn: 980px;       /* 胶囊形 */
    --border-radius-input: 12px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --success-color: #34c759;         /* Apple 绿 */
    --danger-color: #ff3b30;          /* Apple 红 */
    --warning-color: #ff9500;         /* Apple 橙 */
    --info-color: #5ac8fa;            /* Apple 浅蓝 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === 顶部导航 — 毛玻璃 === */
.navbar {
    background: rgba(251, 251, 253, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0 40px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.navbar-brand .logo-icon {
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.navbar-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
}

.navbar-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 980px;
    transition: var(--transition);
    font-weight: 400;
}

.navbar-nav a:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.04);
}

.navbar-nav a.active {
    color: var(--accent-color);
    background: var(--accent-light);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 16px;
}

.navbar-username {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 13px;
}

.navbar-logout {
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    border-radius: 980px;
    padding: 7px 12px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.navbar-logout:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

/* === 账号登录/注册 === */
.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 10%, rgba(0, 113, 227, 0.12), transparent 30%),
        radial-gradient(circle at 85% 25%, rgba(52, 199, 89, 0.10), transparent 28%),
        var(--bg-page);
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.auth-card {
    width: min(100%, 420px);
    background: var(--bg-card);
    border-radius: 18px;
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
}

.auth-brand .logo-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-color);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}

.auth-title {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 650;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.auth-switch {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    margin-top: 22px;
}

.auth-switch a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

/* === 主容器 === */
.container {
    max-width: 880px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* === 卡片 === */
.card {
    background: var(--bg-card);
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-sm);
    padding: 40px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 28px;
    padding-bottom: 0;
    border-bottom: none;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* === 表单 === */
.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-label .required {
    color: var(--danger-color);
    margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: var(--border-radius-input);
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-input);
    transition: var(--transition);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-light);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
    background: var(--bg-card);
}

.form-textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.6;
}

.form-input.error,
.form-select.error {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.1);
}

.form-hint {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 6px;
}

/* === 复选框 === */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-primary);
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-color);
    cursor: pointer;
    border-radius: 6px;
}

/* === 按钮 — 胶囊形 === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--border-radius-btn);
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.01);
}

.btn-primary:disabled {
    background: var(--border-color);
    color: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-light);
}

.btn-outline:disabled {
    color: var(--text-light);
    border-color: var(--border-color);
    cursor: not-allowed;
    background: transparent;
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #e8e8ed;
}

.btn-large {
    padding: 16px 44px;
    font-size: 17px;
}

.btn-block {
    width: 100%;
}

/* === 文件上传区 === */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-card);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-input);
}

.upload-area:hover {
    border-color: var(--accent-color);
    background: var(--accent-light);
}

.upload-area.dragover {
    border-color: var(--accent-color);
    background: var(--accent-light);
    transform: scale(1.01);
}

.upload-icon {
    font-size: 44px;
    color: var(--accent-color);
    margin-bottom: 16px;
    line-height: 1;
}

.upload-text {
    font-size: 15px;
    color: var(--text-secondary);
}

.upload-text strong {
    color: var(--accent-color);
    font-weight: 600;
}

.upload-hint {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 8px;
}

/* === 文件列表 === */
.file-list {
    margin-top: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-input);
    border-radius: var(--border-radius-input);
    margin-bottom: 10px;
    font-size: 14px;
    transition: var(--transition);
}

.file-item:hover {
    background: #ededef;
}

.file-item .file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.file-item .file-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.file-icon.pdf { background: var(--danger-color); }
.file-icon.docx { background: var(--accent-color); }
.file-icon.xlsx { background: var(--success-color); }
.file-icon.image { background: var(--warning-color); }

.file-item .file-name {
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-all;
    font-size: 14px;
}

.file-item .file-size {
    color: var(--text-light);
    font-size: 12px;
    margin-top: 2px;
}

.file-item .file-remove {
    color: var(--text-light);
    cursor: pointer;
    font-size: 22px;
    padding: 4px 8px;
    border: none;
    background: none;
    line-height: 1;
    transition: var(--transition);
}

.file-item .file-remove:hover {
    color: var(--danger-color);
    opacity: 1;
}

/* === 进度页 === */
.progress-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.progress-container > h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.progress-container > p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 32px;
}

.progress-steps {
    list-style: none;
}

.progress-step {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.progress-step:last-child {
    border-bottom: none;
}

.step-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
    background: var(--bg-input);
    color: var(--text-light);
    transition: var(--transition);
}

.progress-step.pending .step-icon {
    background: var(--bg-input);
    color: var(--text-light);
}

.progress-step.running .step-icon {
    background: var(--accent-light);
    color: var(--accent-color);
    animation: pulse 1.5s ease-in-out infinite;
}

.progress-step.completed .step-icon {
    background: var(--success-color);
    color: #fff;
}

.progress-step.failed .step-icon {
    background: var(--danger-color);
    color: #fff;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.step-content {
    flex: 1;
    padding-top: 4px;
}

.step-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.step-message {
    font-size: 14px;
    color: var(--text-secondary);
}

.step-elapsed {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

/* === 整体进度条 === */
.overall-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0 32px;
}

.overall-progress-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.progress-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
}

.progress-header span {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-color);
}

/* === 结果页 === */
.result-summary {
    text-align: center;
    padding: 24px 0;
}

.result-icon {
    font-size: 64px;
    color: var(--success-color);
    margin-bottom: 20px;
    line-height: 1;
}

.result-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.result-desc {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 36px;
    line-height: 1.5;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}

.summary-item {
    background: var(--bg-input);
    padding: 24px 20px;
    border-radius: var(--border-radius-input);
    text-align: center;
    transition: var(--transition);
}

.summary-item:hover {
    background: #ededef;
}

.summary-item .label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.summary-item .value {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* === 历史页表格 === */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th {
    background: transparent;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
    font-size: 13px;
    text-transform: none;
}

.table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.table tr:hover td {
    background: var(--bg-input);
}

.table .empty-row {
    text-align: center;
    color: var(--text-light);
    padding: 56px 16px;
    font-size: 15px;
}

/* === Toast 提示 === */
.toast-container {
    position: fixed;
    top: 70px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 22px;
    border-radius: 14px;
    font-size: 14px;
    color: #fff;
    box-shadow: var(--shadow-md);
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 380px;
    font-weight: 500;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.toast.success { background: var(--success-color); }
.toast.error { background: var(--danger-color); }
.toast.warning { background: var(--warning-color); }
.toast.info { background: var(--accent-color); }

@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* === 空状态 === */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--text-light);
}

.empty-state .empty-icon {
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1;
}

/* === 辅助 === */
.result-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 36px;
    flex-wrap: wrap;
}

.section-list {
    list-style: none;
}

.section-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-list li:last-child {
    border-bottom: none;
}

.section-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    flex-shrink: 0;
}

.download-wrapper {
    text-align: center;
    margin-bottom: 36px;
}

/* === 模型配置页 === */

.model-list {
    margin-bottom: 24px;
}

/* 模型卡片 */
.model-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-input);
    padding: 24px;
    margin-bottom: 16px;
    transition: var(--transition);
    background: var(--bg-card);
}

.model-card:hover {
    box-shadow: var(--shadow-sm);
}

.model-card-active {
    border-color: var(--accent-color);
    background: var(--accent-light);
}

.model-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 16px;
}

.model-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.model-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* 徽章 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.4;
}

.badge.active {
    background: rgba(52, 199, 89, 0.15);
    color: var(--success-color);
}

.badge.inactive {
    background: var(--bg-input);
    color: var(--text-light);
}

/* 模型卡片操作按钮 */
.model-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

/* 模型卡片内容区 */
.model-card-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px 24px;
}

.model-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.model-field-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.model-field-value {
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-all;
}

.model-field-value.mono {
    font-family: "SF Mono", "Menlo", "Consolas", monospace;
    font-size: 13px;
    background: var(--bg-input);
    padding: 4px 8px;
    border-radius: 6px;
}

/* 添加模型按钮 */
.model-add-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-style: dashed;
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.model-add-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: var(--accent-light);
}

/* 弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--bg-card);
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-lg);
    padding: 36px;
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-confirm {
    max-width: 400px;
    text-align: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.modal-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 28px;
}

.modal-confirm .modal-actions {
    justify-content: center;
}

/* 弹窗内表单 */
.form-inline .form-group {
    margin-bottom: 20px;
}

.form-inline .form-row {
    display: flex;
    gap: 16px;
}

.form-inline .form-row .form-group {
    flex: 1;
}

/* API Key 输入框等宽字体 */
.sensitive-input {
    font-family: "SF Mono", "Menlo", "Consolas", monospace;
    font-size: 14px;
    letter-spacing: 0.02em;
}

/* 危险按钮 */
.btn-danger {
    background: var(--danger-color);
    color: #fff;
}

.btn-danger:hover {
    opacity: 0.9;
    transform: scale(1.01);
}

/* === 企业画像 === */
.profile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.profile-header .card-title {
    margin-bottom: 8px;
}

.profile-header-actions {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.profile-close {
    flex: 0 0 auto;
    border-radius: 8px;
    background: var(--bg-input);
}

.profile-meta {
    color: var(--text-secondary);
    font-size: 13px;
}

.profile-actions,
.customer-prefill-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    margin-bottom: 22px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.06);
}

.profile-actions > div,
.customer-prefill-notice > div {
    display: grid;
    gap: 4px;
}

.profile-actions strong,
.customer-prefill-notice strong {
    color: var(--text-primary);
    font-size: 14px;
}

.profile-actions span,
.customer-prefill-notice span {
    color: var(--text-secondary);
    font-size: 13px;
}

.customer-prefill-notice[hidden] {
    display: none;
}

.score-badge {
    min-width: 132px;
    padding: 12px 16px;
    border-radius: 14px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    background: var(--bg-input);
    color: var(--text-primary);
    flex-shrink: 0;
}

.score-badge.good {
    background: rgba(52, 199, 89, 0.14);
    color: #167a32;
}

.score-badge.medium {
    background: rgba(255, 149, 0, 0.16);
    color: #9a5a00;
}

.score-badge.low {
    background: rgba(255, 59, 48, 0.12);
    color: #b42318;
}

.notice {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
}

.notice.warning {
    background: rgba(255, 149, 0, 0.12);
    color: #8a4f00;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.info-item {
    background: var(--bg-input);
    border-radius: 12px;
    padding: 14px 16px;
}

.info-item .label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.info-item .value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 26px 0 12px;
    color: var(--text-primary);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--accent-light);
    color: var(--accent-color);
    font-size: 13px;
    line-height: 1.4;
}

.tag-list.risk .tag {
    background: rgba(255, 59, 48, 0.1);
    color: #b42318;
}

.compact-list {
    padding-left: 22px;
    color: var(--text-primary);
}

.compact-list li {
    margin-bottom: 8px;
    line-height: 1.65;
}

.script-box {
    background: var(--bg-input);
    border-radius: 14px;
    padding: 16px;
    color: var(--text-primary);
    line-height: 1.75;
    font-size: 15px;
}

.code-textarea {
    min-height: 180px;
    white-space: pre;
    overflow: auto;
}

.advanced-config {
    margin: 18px 0 22px;
}

.advanced-config summary {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.advanced-config[open] summary {
    color: var(--accent-color);
}

/* === 管理后台 === */
.admin-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.admin-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.admin-hero h1 {
    font-size: 34px;
    font-weight: 650;
    letter-spacing: 0;
    margin: 4px 0 8px;
}

.admin-hero-desc,
.muted-text {
    color: var(--text-secondary);
    font-size: 15px;
}

.eyebrow {
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.metric-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}

.metric-label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 6px;
}

.metric-card strong {
    font-size: 28px;
    line-height: 1;
}

.admin-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.admin-sidebar,
.admin-main-card {
    padding: 28px;
}

.role-list {
    display: grid;
    gap: 10px;
}

.role-item {
    width: 100%;
    text-align: left;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    padding: 14px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.role-item:hover,
.role-item.active {
    border-color: var(--accent-color);
    background: var(--accent-light);
}

.role-name,
.role-meta {
    display: block;
}

.role-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.role-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.admin-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.admin-card-header .card-title {
    margin-bottom: 4px;
}

.role-editor.empty-state {
    color: var(--text-secondary);
    padding: 28px;
    background: var(--bg-input);
    border-radius: 12px;
}

.data-scope-panel,
.permission-module {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    background: #ffffff;
}

.data-scope-panel h3,
.permission-module h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.scope-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.scope-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    background: var(--bg-input);
    cursor: pointer;
}

.scope-option input {
    margin-top: 3px;
    accent-color: var(--accent-color);
}

.scope-option strong,
.scope-option em {
    display: block;
}

.scope-option strong {
    font-size: 14px;
    color: var(--text-primary);
}

.scope-option em {
    font-style: normal;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 3px;
}

.permission-module-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.permission-module-head p {
    color: var(--text-secondary);
    font-size: 13px;
}

.module-check {
    flex-shrink: 0;
}

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

.permission-toggle {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bg-input);
    font-size: 13px;
    cursor: pointer;
}

.permission-toggle input {
    accent-color: var(--accent-color);
}

.permission-toggle span {
    flex: 1;
}

.permission-toggle b {
    color: #b45309;
    background: #fff7ed;
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 11px;
}

.permission-toggle.sensitive {
    border: 1px solid #fed7aa;
    background: #fffbeb;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* === 字段内容管理 === */
.field-sidebar-head,
.field-editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.field-sidebar-head {
    margin-bottom: 16px;
}

.field-sidebar-head .card-title {
    margin: 0;
}

.field-count {
    color: var(--text-secondary);
    font-size: 12px;
}

.field-list {
    display: grid;
    gap: 8px;
}

.field-item {
    width: 100%;
    padding: 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.field-item:hover {
    background: var(--bg-input);
}

.field-item.active {
    border-color: rgba(7, 193, 96, 0.28);
    background: var(--accent-light);
}

.field-name,
.field-meta {
    display: block;
}

.field-name {
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 600;
}

.field-meta {
    color: var(--text-secondary);
    font-size: 12px;
}

.field-usage {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 9px;
    border-radius: 6px;
    background: var(--bg-input);
    color: var(--text-secondary);
    font-size: 12px;
}

.field-editor-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.field-editor.empty-state,
.field-empty {
    padding: 32px;
    border-radius: 12px;
    background: var(--bg-input);
    color: var(--text-secondary);
    text-align: center;
}

.field-editor-toolbar {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.field-editor-toolbar strong,
.field-editor-toolbar span {
    display: block;
}

.field-editor-toolbar strong {
    font-size: 15px;
}

.field-editor-toolbar span {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 12px;
}

.field-option-list {
    display: grid;
    gap: 10px;
}

.field-option-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 64px 52px;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #ffffff;
}

.field-option-order {
    display: grid;
    gap: 4px;
}

.icon-btn {
    min-width: 32px;
    min-height: 30px;
    padding: 5px 7px;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    background: #ffffff;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

.icon-btn:hover:not(:disabled) {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.icon-btn:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.icon-btn.danger:hover {
    border-color: #dc2626;
    color: #dc2626;
}

.field-option-content {
    min-width: 0;
}

.field-option-content .form-input,
.field-option-content .form-textarea {
    width: 100%;
}

.field-child-input {
    min-height: 76px;
    margin-top: 8px;
    resize: vertical;
}

.field-row-hint {
    display: block;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 11px;
}

.field-enabled-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
}

.field-enabled-toggle input {
    accent-color: var(--accent-color);
}

.admin-help-card {
    margin-top: 20px;
}

.admin-help-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.admin-help-grid strong,
.admin-help-grid span {
    display: block;
}

.admin-help-grid strong {
    margin-bottom: 5px;
    font-size: 14px;
}

.admin-help-grid span {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.metric-card .metric-text {
    display: block;
    padding-top: 2px;
    font-size: 15px;
    line-height: 1.3;
}

.field-suggestion-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
}

.field-suggestion-label {
    color: var(--text-secondary);
    font-size: 12px;
}

.field-suggestion {
    padding: 5px 9px;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    background: #ffffff;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.field-suggestion:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: var(--accent-light);
}

/* === 统一管理中心 === */
.management-center {
    max-width: 1220px;
}

.management-hero {
    margin-bottom: 20px;
}

.management-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    padding: 5px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.management-tab {
    flex: 1;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.management-tab:hover {
    color: var(--text-primary);
    background: var(--bg-input);
}

.management-tab.active {
    color: var(--accent-color);
    background: var(--accent-light);
}

.management-panel[hidden] {
    display: none;
}

.management-section-card {
    padding: 28px;
}

.management-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.management-section-head .card-title {
    margin-bottom: 5px;
}

.management-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.connection-status {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 7px;
    background: var(--bg-input);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.connection-status.ready {
    background: #ecfdf3;
    color: #15803d;
}

.connection-status.warning {
    background: #fff7ed;
    color: #b45309;
}

.permission-chip-list,
.approval-list {
    display: grid;
    gap: 10px;
}

.permission-chip,
.approval-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-input);
    border-radius: 10px;
}

.permission-chip strong,
.approval-item strong {
    font-size: 14px;
}

.permission-chip em,
.approval-item span {
    color: var(--text-secondary);
    font-size: 12px;
    font-style: normal;
}

/* === 客户管理 === */
.customer-container {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    padding: 40px 0 72px;
}

.customer-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.customer-head h1 {
    margin: 0 0 8px;
    color: var(--text-primary);
    font-size: 28px;
    letter-spacing: 0;
}

.customer-head p {
    margin: 0;
    color: var(--text-secondary);
}

.customer-profile-card {
    padding: 22px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.customer-profile-query {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.customer-profile-query h2 {
    margin: 0 0 6px;
    color: var(--text-primary);
    font-size: 18px;
}

.customer-profile-query p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.customer-profile-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: min(620px, 55%);
}

.customer-profile-controls .form-input {
    flex: 1;
    margin: 0;
}

.customer-profile-controls .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.customer-profile-result {
    padding-top: 24px;
    margin-top: 22px;
    border-top: 1px solid var(--border-color);
}

.customer-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    margin-bottom: 20px;
}

.customer-metrics div {
    min-width: 0;
    padding: 18px 22px;
    border-right: 1px solid var(--border-color);
}

.customer-metrics div:last-child { border-right: 0; }
.customer-metrics span { display: block; color: var(--text-secondary); font-size: 13px; }
.customer-metrics strong { display: block; margin-top: 5px; color: var(--text-primary); font-size: 25px; }

.customer-card { padding: 0; overflow: hidden; border-radius: 8px; }
.customer-toolbar { display: flex; align-items: flex-end; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--border-color); }
.customer-toolbar label { display: grid; gap: 6px; min-width: 180px; color: var(--text-secondary); font-size: 12px; }
.customer-toolbar .customer-search { flex: 1; max-width: 420px; }
.customer-toolbar input, .customer-toolbar select { height: 40px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-input); padding: 0 12px; color: var(--text-primary); font: inherit; }
.customer-table-wrap { overflow-x: auto; }
.customer-table { min-width: 1320px; }
.customer-table td strong, .customer-table td small { display: block; }
.customer-table td small { margin-top: 4px; color: var(--text-secondary); font-size: 12px; }
.stage-badge { display: inline-block; padding: 4px 9px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 12px; white-space: nowrap; }
.stage-badge.hot { background: #fff7ed; color: #c2410c; }
.stage-badge.won { background: #eff6ff; color: #1d4ed8; }
.stage-badge.paused { background: #f3f4f6; color: #6b7280; }
.customer-actions { white-space: nowrap; }
.customer-actions button { border: 0; background: transparent; color: var(--accent-color); cursor: pointer; padding: 5px 7px; font: inherit; }
.customer-actions button.solution-action { border-radius: 5px; background: var(--accent-color); color: #fff; }
.customer-actions button.danger { color: #dc2626; }
.customer-solution-cell { min-width: 220px; max-width: 300px; }
.customer-solution-cell a { display: block; color: var(--accent-color); font-weight: 650; text-decoration: none; }
.customer-solution-cell small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.solution-empty { color: var(--text-secondary); font-size: 13px; }

.history-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.history-actions .btn {
    padding: 6px 14px;
    font-size: 13px;
}

.customer-modal[hidden] { display: none; }
.customer-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px; }
.customer-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .52); }
.customer-dialog { position: relative; width: min(680px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; border-radius: 8px; background: var(--bg-card); box-shadow: 0 24px 60px rgba(15, 23, 42, .24); }
.customer-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border-color); }
.customer-dialog-head h2 { margin: 0; font-size: 20px; letter-spacing: 0; }
.customer-dialog-head p { margin: 5px 0 0; color: var(--text-secondary); font-size: 13px; }
.icon-close { width: 34px; height: 34px; border: 0; background: transparent; color: var(--text-secondary); font-size: 26px; line-height: 1; cursor: pointer; }
.customer-dialog form { padding: 22px 24px 24px; }
.customer-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.customer-form-grid label { display: grid; gap: 7px; min-width: 0; color: var(--text-secondary); font-size: 13px; }
.customer-form-grid .span-2 { grid-column: 1 / -1; }
.customer-form-grid input, .customer-form-grid select, .customer-form-grid textarea { width: 100%; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-input); padding: 10px 11px; color: var(--text-primary); font: inherit; box-sizing: border-box; }
.customer-form-grid input, .customer-form-grid select { height: 42px; }
.customer-form-grid textarea { resize: vertical; }
.customer-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.customer-detail-dialog { width: min(820px, 100%); }
.customer-detail-content { padding: 4px 24px 26px; }
.customer-detail-section { padding: 20px 0; border-bottom: 1px solid var(--border-color); }
.customer-detail-section:last-child { border-bottom: 0; }
.customer-detail-section h3 { margin: 0 0 12px; font-size: 16px; }
.customer-detail-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.solution-kpi-grid { display: grid; grid-template-columns: 1.4fr 1fr .6fr; gap: 10px; }
.solution-kpi-grid div { padding: 14px; border-radius: 7px; background: var(--bg-secondary); }
.solution-kpi-grid span, .solution-kpi-grid strong { display: block; }
.solution-kpi-grid span { margin-bottom: 6px; color: var(--text-secondary); font-size: 12px; }
.solution-kpi-grid strong { font-size: 14px; }
.customer-detail-list { margin: 0; padding-left: 22px; color: var(--text-primary); }
.customer-detail-list li + li { margin-top: 7px; }
.customer-solution-history { display: grid; gap: 8px; }
.customer-solution-history div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 13px; border-radius: 6px; background: var(--bg-secondary); }
.customer-solution-history a { color: var(--accent-color); font-weight: 650; text-decoration: none; }
.modal-open { overflow: hidden; }

/* === 响应式 === */
@media (max-width: 768px) {
    .navbar {
        gap: 8px;
        padding: 0 10px;
        height: 52px;
    }

    .navbar-brand {
        flex: 0 0 30px;
        gap: 0;
        width: 30px;
        overflow: hidden;
        font-size: 0;
    }

    .navbar-nav a {
        flex: 0 0 auto;
        padding: 6px 10px;
        font-size: 13px;
        white-space: nowrap;
    }

    .navbar-nav {
        flex: 1 1 auto;
        gap: 2px;
        min-width: 0;
        overflow-x: auto;
        max-width: none;
        scrollbar-width: none;
    }

    .navbar-nav::-webkit-scrollbar { display: none; }
    .navbar-user { flex: 0 0 auto; margin-left: 0; }
    .navbar-username { display: none; }
    .navbar-logout { padding: 7px 9px; white-space: nowrap; }

    .container {
        padding: 32px 16px 64px;
    }

    .admin-container {
        padding: 28px 16px 64px;
    }

    .customer-container {
        width: calc(100% - 32px);
        padding: 28px 0 64px;
    }

    .customer-head {
        align-items: stretch;
        flex-direction: column;
    }

    .customer-profile-query,
    .customer-profile-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .customer-profile-controls {
        min-width: 0;
        width: 100%;
    }

    .customer-profile-controls .btn {
        width: 100%;
    }

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

    .customer-metrics div:nth-child(2) { border-right: 0; }
    .customer-metrics div:nth-child(-n+2) { border-bottom: 1px solid var(--border-color); }
    .customer-toolbar { align-items: stretch; flex-direction: column; }
    .customer-toolbar label, .customer-toolbar .customer-search { max-width: none; width: 100%; }
    .customer-form-grid { grid-template-columns: 1fr; }
    .customer-form-grid .span-2 { grid-column: auto; }
    .customer-modal { padding: 12px; }
    .customer-dialog { max-height: calc(100vh - 24px); }

    .admin-hero,
    .admin-card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-hero h1 {
        font-size: 26px;
    }

    .admin-metrics,
    .admin-layout,
    .admin-grid,
    .scope-grid,
    .permission-grid {
        grid-template-columns: 1fr;
    }

    .field-editor-actions {
        width: 100%;
    }

    .field-editor-actions .btn {
        flex: 1;
    }

    .field-option-row {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .field-enabled-toggle,
    .field-option-row > .icon-btn.danger {
        grid-column: 2;
    }

    .field-option-row > .icon-btn.danger {
        justify-self: start;
    }

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

    .management-tabs {
        overflow-x: auto;
    }

    .management-tab {
        min-width: 104px;
    }

    .management-section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .management-section-head .btn {
        width: 100%;
    }

    .management-action-row {
        flex-direction: column;
    }

    .management-action-row .btn {
        width: 100%;
        text-align: center;
    }

    .progress-container {
        padding: 32px 16px 64px;
    }

    .card {
        padding: 24px;
        border-radius: 14px;
    }

    .card-title {
        font-size: 19px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

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

    .btn-large {
        padding: 14px 32px;
        font-size: 16px;
    }

    .result-title {
        font-size: 24px;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions .btn {
        width: 100%;
    }

    .profile-header {
        flex-direction: column;
    }

    .profile-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .profile-actions,
    .customer-prefill-notice {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-actions .btn,
    .customer-prefill-notice .btn {
        width: 100%;
        text-align: center;
    }

    .score-badge {
        width: 100%;
        text-align: left;
    }

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

    .table {
        font-size: 13px;
    }

    .table th,
    .table td {
        padding: 10px 8px;
    }
}

/* 后台生成状态提示 */
.generation-banner {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 42px;
    padding: 8px 16px;
    background: #0f766e;
    color: #ffffff;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}

.generation-banner-link {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 768px) {
    .generation-banner {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}
