/* 管理后台样式 */
:root {
    --admin-primary: #4f46e5;
    --admin-primary-hover: #4338ca;
    --admin-bg: #f8fafc;
    --admin-sidebar-bg: #1e293b;
    --admin-sidebar-text: #94a3b8;
    --admin-sidebar-active: #ffffff;
    --admin-card-bg: #ffffff;
    --admin-border: #e2e8f0;
    --admin-text: #1e293b;
    --admin-text-muted: #64748b;
    --admin-success: #10b981;
    --admin-danger: #ef4444;
    --admin-warning: #f59e0b;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--admin-bg);
    color: var(--admin-text);
    min-height: 100vh;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.admin-sidebar {
    width: 240px;
    background: var(--admin-sidebar-bg);
    color: var(--admin-sidebar-text);
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.admin-logo h1 {
    font-size: 18px;
    color: #fff;
    font-weight: 600;
}

.admin-logo span {
    font-size: 12px;
    color: var(--admin-sidebar-text);
}

.admin-logo-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.admin-i18n-switcher {
    display: inline-block;
}

.admin-nav {
    list-style: none;
}

.admin-nav li {
    margin: 4px 12px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--admin-sidebar-text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
}

.admin-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.admin-nav a.active {
    background: var(--admin-primary);
    color: #fff;
}

.admin-nav a svg {
    width: 20px;
    height: 20px;
}

/* 主内容区 */
.admin-main {
    flex: 1;
    margin-left: 240px;
    padding: 20px 30px;
}

/* 顶部栏 */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-name {
    font-size: 14px;
    color: var(--admin-text-muted);
}

.admin-logout {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--admin-text-muted);
    transition: all 0.2s;
}

.admin-logout:hover {
    border-color: var(--admin-danger);
    color: var(--admin-danger);
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--admin-card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-card-label {
    font-size: 14px;
    color: var(--admin-text-muted);
    margin-bottom: 8px;
}

.stat-card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--admin-text);
}

.stat-card-value.primary {
    color: var(--admin-primary);
}

.stat-card-value.success {
    color: var(--admin-success);
}

.stat-card-actions {
    margin-top: 8px;
}

/* 模型分析区域 */
.model-analysis-section {
    margin-top: 30px;
}

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

.model-analysis-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--admin-text-primary);
}

.time-range-tabs {
    display: flex;
    gap: 4px;
}

.time-range-tabs button {
    padding: 6px 16px;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    background: var(--admin-card-bg);
    color: var(--admin-text-muted);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.time-range-tabs button:hover {
    border-color: var(--admin-primary);
    color: var(--admin-primary);
}

.time-range-tabs button.active {
    background: var(--admin-primary);
    color: #fff;
    border-color: var(--admin-primary);
}

.model-analysis-table .model-row {
    cursor: pointer;
    font-weight: 600;
}

.model-analysis-table .model-row:hover {
    background: #f1f5f9;
}

.model-analysis-table .provider-row {
    background: #f8fafc;
    font-weight: 400;
}

.model-analysis-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.model-analysis-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 16px;
}

.model-analysis-filters {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 16px;
    background: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
}

.model-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.model-filter-group.grow {
    flex: 1;
    min-width: 0;
}

.model-filter-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.model-filter-label {
    color: var(--admin-text);
    font-size: 13px;
    font-weight: 600;
}

.model-date-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-date-input {
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    color: var(--admin-text);
    background: #fff;
    font-size: 13px;
}

.model-date-separator {
    color: var(--admin-text-muted);
}

.text-link-btn {
    border: 0;
    background: transparent;
    color: var(--admin-primary);
    cursor: pointer;
    font-size: 12px;
    padding: 0;
}

.model-selector-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.model-selector-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 180px;
    padding: 6px 10px;
    border: 1px solid var(--admin-border);
    border-radius: 999px;
    background: #fff;
    color: var(--admin-text-muted);
    cursor: pointer;
    font-size: 12px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-selector-chip.active {
    border-color: var(--chip-color);
    color: var(--admin-text);
    background: color-mix(in srgb, var(--chip-color) 10%, white);
}

.chip-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--chip-color);
}

.model-stat-card {
    background: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-left: 4px solid var(--admin-primary);
    border-radius: 8px;
    padding: 16px;
}

.model-stat-card.success { border-left-color: var(--admin-success); }
.model-stat-card.failed { border-left-color: var(--admin-danger); }
.model-stat-card.rate { border-left-color: var(--admin-warning); }

.model-stat-label {
    color: var(--admin-text-muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.model-stat-value {
    color: var(--admin-text);
    font-size: 26px;
    font-weight: 700;
}

.model-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 16px;
}

.model-chart-card {
    background: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 18px;
    min-height: 260px;
}

.model-chart-card.wide {
    grid-row: span 2;
}

.model-chart-card.full {
    grid-column: 1 / -1;
    min-height: 280px;
}

.model-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.model-chart-title {
    color: var(--admin-text);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.model-chart-head .model-chart-title {
    margin-bottom: 0;
}

.chart-mode-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--admin-border);
    border-radius: 7px;
    background: #f8fafc;
}

.chart-mode-tabs button {
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--admin-text-muted);
    cursor: pointer;
    font-size: 12px;
    padding: 5px 10px;
}

.chart-mode-tabs button.active {
    background: var(--admin-primary);
    color: #fff;
}

.model-echart {
    width: 100%;
    height: 310px;
}

.model-echart-large {
    height: 360px;
}

.model-rate-chart,
.model-usage-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.model-daily-rate-chart,
.model-daily-volume-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
    align-items: end;
    gap: 14px;
    min-height: 190px;
}

.model-daily-rate-item,
.model-daily-volume-item {
    display: grid;
    grid-template-rows: 1fr auto auto;
    align-items: end;
    gap: 6px;
    min-width: 0;
}

.model-daily-rate-bar,
.model-daily-volume-bar {
    height: 130px;
    border-radius: 8px;
    background: #eef2f7;
    display: flex;
    flex-direction: column-reverse;
    overflow: hidden;
}

.model-daily-rate-fill,
.model-daily-volume-success,
.model-daily-volume-fail {
    width: 100%;
    transition: height 0.3s ease;
}

.model-daily-rate-fill.rate-high {
    background: linear-gradient(180deg, #34d399, #10b981);
}

.model-daily-rate-fill.rate-medium {
    background: linear-gradient(180deg, #fbbf24, #f59e0b);
}

.model-daily-rate-fill.rate-low {
    background: linear-gradient(180deg, #f87171, #ef4444);
}

.model-daily-volume-success {
    background: var(--admin-success);
}

.model-daily-volume-fail {
    background: var(--admin-danger);
}

.model-daily-rate-value,
.model-daily-volume-value {
    color: var(--admin-text);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.model-daily-label {
    color: var(--admin-text-muted);
    font-size: 11px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-rate-meta,
.model-usage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.model-rate-name,
.model-usage-head span {
    color: var(--admin-text);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-rate-value,
.model-usage-head strong {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
}

.model-rate-value.rate-high { color: var(--admin-success); }
.model-rate-value.rate-medium { color: var(--admin-warning); }
.model-rate-value.rate-low { color: var(--admin-danger); }

.model-rate-track,
.model-usage-track {
    height: 9px;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
}

.model-rate-fill,
.model-usage-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.model-rate-fill.rate-high {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.model-rate-fill.rate-medium {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.model-rate-fill.rate-low {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.model-usage-fill {
    background: linear-gradient(90deg, var(--admin-primary), #818cf8);
}

.model-donut-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.model-donut {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.model-donut-center {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--admin-card-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px var(--admin-border);
}

.model-donut-center strong {
    color: var(--admin-text);
    font-size: 22px;
}

.model-donut-center span {
    color: var(--admin-text-muted);
    font-size: 12px;
}

.model-donut-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    color: var(--admin-text-muted);
    font-size: 13px;
}

.legend-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 6px;
}

.legend-dot.success { background: var(--admin-success); }
.legend-dot.fail { background: var(--admin-danger); }

.expand-icon {
    margin-right: 8px;
    font-size: 10px;
    color: var(--admin-text-muted);
}

.provider-count {
    font-size: 12px;
    font-weight: 400;
    color: var(--admin-text-muted);
    margin-left: 4px;
}

.provider-name {
    padding-left: 36px !important;
    font-weight: 400;
    color: var(--admin-text-muted);
}

.provider-impl-id {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 4px;
}

.rate-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-bar {
    height: 8px;
    border-radius: 4px;
    min-width: 4px;
    max-width: 120px;
    transition: width 0.3s ease;
}

.rate-bar.rate-high { background: var(--admin-success); }
.rate-bar.rate-medium { background: #f59e0b; }
.rate-bar.rate-low { background: #ef4444; }

.rate-text {
    font-size: 13px;
    font-weight: 500;
    min-width: 48px;
}

.avg-duration {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 4px;
}

.text-success { color: var(--admin-success); }
.text-danger { color: #ef4444; }

/* 表格容器 */
.table-container {
    background: var(--admin-card-bg);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--admin-border);
}

.table-header h3 {
    font-size: 16px;
    font-weight: 600;
}

/* 搜索和筛选 */
.table-filters {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--admin-border);
    flex-wrap: wrap;
}

.filter-input {
    padding: 8px 12px;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    font-size: 14px;
    min-width: 180px;
}

.filter-input:focus {
    outline: none;
    border-color: var(--admin-primary);
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    min-width: 120px;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--admin-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-btn:hover {
    background: var(--admin-primary-hover);
}

/* 表格 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--admin-border);
    font-size: 14px;
}

.admin-table th {
    background: #f8fafc;
    font-weight: 600;
    color: var(--admin-text-muted);
}

.admin-table tr:hover {
    background: #f8fafc;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.marketing-review-thumb {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    background: #f1f5f9;
}

.marketing-review-prompt {
    max-height: 84px;
    overflow: hidden;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.account-cell {
    min-width: 180px;
}

.account-type {
    display: inline-block;
    margin-right: 6px;
    color: var(--admin-text-muted);
    font-size: 12px;
}

.role-config-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 38px;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.admin {
    background: #e0e7ff;
    color: #3730a3;
}

/* 实现方使用中标签 */
.implementation-in-use-label {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    margin-left: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.implementation-in-use-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    margin-right: 4px;
    animation: pulse 2s infinite;
}

/* 操作按钮 */
.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 6px;
}

.action-btn.primary {
    background: #e0e7ff;
    color: var(--admin-primary);
}

.action-btn.primary:hover {
    background: var(--admin-primary);
    color: #fff;
}

.action-btn.success {
    background: #dcfce7;
    color: #166534;
}

.action-btn.success:hover {
    background: var(--admin-success);
    color: #fff;
}

.action-btn.danger {
    background: #fee2e2;
    color: #991b1b;
}

.action-btn.danger:hover {
    background: var(--admin-danger);
    color: #fff;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid var(--admin-border);
}

.page-btn {
    padding: 8px 14px;
    border: 1px solid var(--admin-border);
    background: #fff;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--admin-primary);
    color: var(--admin-primary);
}

.page-btn.active {
    background: var(--admin-primary);
    color: #fff;
    border-color: var(--admin-primary);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: var(--admin-text-muted);
    margin: 0 12px;
}

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--admin-border);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--admin-text-muted);
    line-height: 1;
}

.modal-close:hover {
    color: var(--admin-text);
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--admin-primary);
}

.form-hint {
    font-size: 12px;
    color: var(--admin-text-muted);
    margin-top: 4px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--admin-border);
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn.cancel {
    background: #fff;
    border: 1px solid var(--admin-border);
    color: var(--admin-text-muted);
}

.modal-btn.cancel:hover {
    background: #f8fafc;
}

.modal-btn.confirm {
    background: var(--admin-primary);
    border: 1px solid var(--admin-primary);
    color: #fff;
}

.modal-btn.confirm:hover {
    background: var(--admin-primary-hover);
}

.modal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--admin-text-muted);
}

.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--admin-border);
    border-top-color: var(--admin-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--admin-text-muted);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* 消息提示 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background: var(--admin-text);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000;
    animation: slideIn 0.3s ease;
}

.toast.success {
    background: var(--admin-success);
}

.toast.error {
    background: var(--admin-danger);
}

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

/* 响应式 */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 60px;
        padding: 10px 0;
    }
    
    .admin-logo h1,
    .admin-logo span,
    .admin-nav a span {
        display: none;
    }
    
    .admin-nav a {
        justify-content: center;
        padding: 12px;
    }
    
    .admin-main {
        margin-left: 60px;
        padding: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table-filters {
        flex-direction: column;
    }
    
    .filter-input,
    .filter-select {
        width: 100%;
    }

    .model-analysis-stats,
    .model-chart-grid {
        grid-template-columns: 1fr;
    }

    .model-analysis-filters,
    .model-chart-head {
        flex-direction: column;
        align-items: stretch;
    }

    .model-date-inputs {
        flex-wrap: wrap;
    }

    .model-date-input {
        flex: 1;
        min-width: 130px;
    }

    .model-chart-card.wide {
        grid-row: auto;
    }

    .model-echart,
    .model-echart-large {
        height: 300px;
    }
}

/* ==================== 系统配置样式 ==================== */

/* 表格操作按钮组 */
.table-actions {
    display: flex;
    gap: 8px;
}

/* 配置值单元格 */
.config-value {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    color: var(--admin-text-muted);
}

/* 类型标签 */
.type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.type-badge.string {
    background: #e0f2fe;
    color: #0369a1;
}

.type-badge.int,
.type-badge.float {
    background: #fef3c7;
    color: #b45309;
}

.type-badge.bool {
    background: #dcfce7;
    color: #166534;
}

.type-badge.json {
    background: #f3e8ff;
    color: #7c3aed;
}

/* 敏感配置标签 */
.status-badge.sensitive {
    background: #fef3c7;
    color: #b45309;
}

/* 配置键代码样式 */
.admin-table td code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    color: var(--admin-primary);
}

/* 宽模态框 */
.modal.modal-wide {
    max-width: 700px;
}

/* 开关样式 */
.switch-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 26px;
}

.switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.switch input:checked + .slider {
    background-color: var(--admin-success);
}

.switch input:checked + .slider:before {
    transform: translateX(24px);
}

/* 历史记录时间线 */
.history-timeline {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--admin-border);
}

.history-item:last-child {
    border-bottom: none;
}

.history-time {
    flex-shrink: 0;
    width: 140px;
    font-size: 13px;
    color: var(--admin-text-muted);
}

.history-content {
    flex: 1;
}

.history-change {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.history-change .old-value,
.history-change .new-value {
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-change .old-value {
    background: #fee2e2;
    color: #991b1b;
}

.history-change .new-value {
    background: #dcfce7;
    color: #166534;
}

.history-change .arrow {
    color: var(--admin-text-muted);
    font-weight: bold;
}

.history-user {
    margin-top: 4px;
}

.sensitive-tag {
    display: inline-block;
    padding: 2px 6px;
    background: #fef3c7;
    color: #b45309;
    border-radius: 4px;
    font-size: 11px;
}

/* 禁用按钮样式 */
.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Warning 按钮样式 */
.action-btn.warning {
    background: #fef3c7;
    color: #b45309;
}

.action-btn.warning:hover {
    background: var(--admin-warning);
    color: #fff;
}

/* 小尺寸按钮样式 */
.action-btn.small {
    padding: 4px 8px;
    font-size: 12px;
    margin-left: 8px;
}

/* ==================== 快速配置样式 ==================== */

/* 配置组 */
.config-group {
    background: #f8fafc;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.config-group:last-child {
    margin-bottom: 0;
}

.config-group-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--admin-border);
}

.config-group-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--admin-text);
    margin-bottom: 4px;
}

.config-group-desc {
    font-size: 12px;
    color: var(--admin-text-muted);
}

.config-group .form-group {
    margin-bottom: 12px;
}

.config-group .form-group:last-child {
    margin-bottom: 0;
}

/* 底部版本信息 */
.admin-footer {
    position: fixed;
    bottom: 0;
    left: 240px;
    right: 0;
    padding: 12px 24px;
    background: var(--admin-bg);
    border-top: 1px solid var(--admin-border);
    text-align: center;
    font-size: 12px;
    color: var(--admin-text-muted);
    z-index: 100;
}
/* ==================== 实现方算力配置样式 ==================== */

/* 时长算力列表 */
.duration-power-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.duration-power-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.duration-label {
    color: var(--admin-text-muted);
    min-width: 45px;
    font-weight: 500;
}

.power-input {
    width: 70px;
    padding: 4px 8px;
    border: 1px solid var(--admin-border);
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
    transition: border-color 0.2s;
}

.power-input:focus {
    outline: none;
    border-color: var(--admin-primary);
}

.power-input:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
}

.power-unit {
    color: var(--admin-text-muted);
    font-size: 12px;
}

.power-hint {
    color: var(--admin-text-muted);
    font-size: 12px;
}

.default-power {
    color: var(--admin-text-muted);
}

.updating-indicator {
    color: var(--admin-warning);
    font-size: 11px;
    margin-left: auto;
}

/* ==================== 实现方分组表格样式 ==================== */

.implementation-groups {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.implementation-group {
    background: var(--admin-card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.group-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.group-count {
    font-size: 12px;
    opacity: 0.9;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 12px;
}

.group-table {
    margin: 0;
    border-radius: 0;
}

.group-table thead {
    background: #f8fafc;
}

/* 排序列样式 */
.sort-order-column {
    width: 100px;
    text-align: center;
    padding: 8px !important;
}

.sort-input {
    width: 80px;
    padding: 4px 8px;
    border: 1px solid var(--admin-border);
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sort-input:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.sort-input:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 签到管理页面样式 */
.checkin-config-form {
    padding: 16px 8px;
}

.checkin-config-form .form-group {
    margin-bottom: 20px;
}

.checkin-config-form .form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--admin-text);
    margin-bottom: 6px;
}

.checkin-config-form .form-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.action-btn.zjt-token-btn {
    width: 54px;
    padding: 6px 0;
    text-align: center;
    white-space: nowrap;
}

.streak-bonus-table {
    background: #f8fafc;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 12px;
    max-width: 420px;
}

.streak-bonus-row {
    display: grid;
    grid-template-columns: 100px 100px 80px;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.streak-bonus-row.header {
    font-size: 12px;
    color: var(--admin-muted);
    font-weight: 500;
    margin-bottom: 10px;
}

.streak-bonus-row .filter-input {
    width: 100%;
    padding: 6px 10px;
    font-size: 13px;
}

/* ==================== 快速配置弹窗 - 两栏布局 ==================== */

.modal.qc-modal-wide {
    max-width: 1100px;
    width: 95vw;
}

/* Header */
.qc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--admin-border);
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.qc-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--admin-text);
}

.qc-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qc-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--admin-muted);
}

.qc-progress strong {
    font-size: 14px;
}

.qc-progress strong.selected {
    color: #3b82f6;
}

.qc-progress strong.configured {
    color: #22c55e;
}

.qc-progress-bar {
    width: 100px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.qc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #22c55e);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.qc-quick-setup-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.qc-quick-setup-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.qc-guide-link {
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    text-decoration: none;
}

.qc-guide-link:hover {
    background: linear-gradient(135deg, #db2777, #be185d);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
    color: white;
}

/* Body - Two Panel Layout */
.qc-body {
    display: flex;
    gap: 0;
    max-height: 72vh;
    min-height: 480px;
}

/* Left Panel */
.qc-left-panel {
    width: 320px;
    min-width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--admin-border);
    background: #f8fafc;
}

.qc-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: #e2e8f0;
    border-radius: 8px;
    padding: 3px;
    margin: 12px 12px 0;
}

.qc-tab {
    padding: 8px 4px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: #64748b;
    position: relative;
    transition: all 0.2s;
    white-space: nowrap;
}

.qc-tab:hover {
    color: #334155;
    background: rgba(255, 255, 255, 0.5);
}

.qc-tab.active {
    background: white;
    color: #1e293b;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.qc-tab-check {
    position: absolute;
    top: -4px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.qc-cards-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.qc-category-desc {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 10px;
    padding: 0 2px;
}

/* Provider Cards */
.qc-provider-card {
    width: 100%;
    text-align: left;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.qc-provider-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.qc-provider-card.selected {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.12);
}

.qc-provider-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
}

.qc-provider-card.disabled:hover {
    border-color: #e2e8f0;
    box-shadow: none;
}

.qc-card-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.qc-card-icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.qc-card-info {
    flex: 1;
    min-width: 0;
}

.qc-card-name {
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.qc-card-desc {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.4;
}

.qc-card-impacts {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 6px;
}

.qc-card-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 8px;
}

/* Badges */
.qc-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.6;
    white-space: nowrap;
}

.qc-badge-official {
    background: #f3e8ff;
    color: #7c3aed;
}

.qc-badge-recommended {
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
}

.qc-badge-impact {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.qc-badge-done {
    background: #22c55e;
    color: white;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
}

.qc-badge-commercial {
    background: #fef3c7;
    color: #92400e;
}

.qc-check {
    color: #3b82f6;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

/* Toggle Panel Button */
.qc-toggle-panel {
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    color: #64748b;
    font-size: 12px;
    flex-shrink: 0;
    transition: background 0.2s;
    border-right: 1px solid var(--admin-border);
}

.qc-toggle-panel:hover {
    background: #e2e8f0;
    color: #334155;
}

/* Right Panel */
.qc-right-panel {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding: 20px;
}

/* Empty State */
.qc-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #94a3b8;
}

.qc-empty-icon {
    font-size: 40px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.qc-empty-state p {
    margin: 4px 0;
    font-size: 14px;
}

.qc-empty-hint {
    font-size: 13px !important;
    color: #cbd5e1;
}

/* Config Cards (Right Panel) */
.qc-config-card {
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    margin-bottom: 16px;
    background: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.qc-config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-bottom: 1px solid #bfdbfe;
}

.qc-config-header h4 {
    margin: 0;
    font-size: 15px;
    color: #1e293b;
}

.qc-config-header p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #64748b;
}

.qc-config-fields {
    padding: 16px 18px;
}

.qc-config-fields .form-group {
    margin-bottom: 12px;
}

.qc-config-fields .form-group:last-of-type {
    margin-bottom: 0;
}

.qc-config-fields label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 4px;
}

.qc-config-fields input[type="text"],
.qc-config-fields input[type="password"],
.qc-config-fields input[type="url"] {
    width: 100%;
    max-width: 420px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    transition: border-color 0.2s;
}

.qc-config-fields input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.qc-config-fields .form-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
}

.qc-config-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.qc-config-actions .modal-btn {
    padding: 6px 16px;
    font-size: 13px;
    border-radius: 6px;
}

.qc-remove-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
    margin-left: auto;
}

.qc-remove-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* Test Result */
.qc-test-result {
    font-size: 12px;
    margin-left: 4px;
}

.qc-test-result.success {
    color: #22c55e;
}

.qc-test-result.error {
    color: #ef4444;
}

/* Submit All Button */
.qc-submit-all {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.qc-submit-all:hover:not(:disabled) {
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.qc-submit-all:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* API Aggregator Extended Sites */
.qc-aggregator-sites {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.qc-aggregator-site {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.qc-aggregator-site-title {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.qc-aggregator-site.community-restricted {
    opacity: 0.5;
    pointer-events: none;
}

.qc-aggregator-site .community-tag {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

/* Modal close button position fix for qc header */
.qc-header .modal-close {
    font-size: 22px;
    margin-left: 12px;
}

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

/* Registration guide link */
.qc-register-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    color: #3b82f6;
    text-decoration: none;
}

.qc-register-link:hover {
    text-decoration: underline;
}

/* Read-only field badge */
.qc-readonly-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 500;
}

/* Read-only input style */
.qc-readonly-input {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
    cursor: default;
}

.qc-readonly-input:focus {
    border-color: #e2e8f0;
    box-shadow: none;
}


/* ============ 通知系统样式 ============ */

/* 未读角标 */
.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 6px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    line-height: 1;
}

/* 版本升级横幅 */
.upgrade-banner {
    display: flex;
    gap: 16px;
    padding: 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #dcfce7 0%, #c6f6d5 100%);
    border: 1px solid #22c55e;
    border-left: 4px solid #16a34a;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

.upgrade-banner-icon {
    font-size: 32px;
    flex-shrink: 0;
    margin-top: -2px;
}

.upgrade-banner-content h4 {
    margin: 0 0 8px;
    color: #166534;
    font-size: 16px;
    font-weight: 600;
}

.release-notes {
    margin: 12px 0;
    padding: 12px 16px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: 6px;
    font-size: 13px;
    color: #166534;
    white-space: pre-wrap;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    max-height: 140px;
    overflow-y: auto;
    line-height: 1.5;
}

.changelog-link {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: #22c55e;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.changelog-link:hover {
    background: #16a34a;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
}

/* 二进制依赖警告 */
.binary-deps-warning {
    margin-bottom: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #fca5a5;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

.binary-deps-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.binary-deps-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #991b1b;
}

.binary-deps-icon {
    font-size: 20px;
}

.binary-deps-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.binary-deps-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    margin-bottom: 8px;
    gap: 12px;
}

.binary-dep-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.binary-dep-info strong {
    color: #991b1b;
    font-size: 13px;
    font-weight: 600;
}

.binary-dep-desc {
    color: #7f1d1d;
    font-size: 12px;
}

.binary-dep-download {
    display: inline-block;
    padding: 8px 16px;
    background: #ef4444;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.binary-dep-download:hover {
    background: #dc2626;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.binary-deps-hint {
    margin: 0;
    padding: 8px 0;
    font-size: 12px;
    color: #991b1b;
    opacity: 0.9;
    font-weight: 500;
}

.binary-dep-path {
    margin-top: 6px;
    font-size: 12px;
    color: #7f1d1d;
}

.binary-dep-path code {
    background: rgba(255, 255, 255, 0.5);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    color: #991b1b;
    font-weight: 500;
}

/* 通知条目 */
.notification-item {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.15s;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.unread {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding-left: 16px;
}

.notification-item.level-warning.unread {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.notification-item.level-error.unread {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.notification-item.level-success.unread {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.notification-type-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    background: #e2e8f0;
    color: #475569;
}

.notification-type-badge.type-announcement {
    background: #dbeafe;
    color: #1e40af;
}

.notification-type-badge.type-maintenance {
    background: #fef3c7;
    color: #92400e;
}

.notification-type-badge.type-feature {
    background: #dcfce7;
    color: #166534;
}

.notification-type-badge.type-security {
    background: #fee2e2;
    color: #991b1b;
}

.notification-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.notification-content {
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 10px;
}

.notification-meta .action-btn.small {
    padding: 4px 10px;
    font-size: 12px;
    background: #e0e7ff;
    color: var(--admin-primary);
    border-radius: 4px;
    transition: all 0.2s;
}

.notification-meta .action-btn.small:hover {
    background: var(--admin-primary);
    color: #fff;
}

.notification-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #3b82f6;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.notification-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* 通知中心整体容器 */
.admin-main section:has(.table-container) {
    margin-bottom: 20px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.empty-state p {
    font-size: 14px;
}

/* i18n 语言切换器 - 管理后台侧边栏样式 */
.admin-i18n-switcher .language-switcher {
  display: inline-flex;
}

.admin-i18n-switcher .language-switcher-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  padding: 6px 10px;
  font-size: 12px;
  justify-content: center;
}

.admin-i18n-switcher .language-switcher-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.admin-i18n-switcher .language-dropdown {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 120px;
}

.admin-i18n-switcher .language-dropdown .language-option {
  color: #475569;
  font-size: 12px;
  padding: 8px 12px;
}

.admin-i18n-switcher .language-dropdown .language-option:hover {
  background-color: #f1f5f9;
  color: #1e293b;
}

.admin-i18n-switcher .language-dropdown .language-option.active {
  background-color: #e0e7ff;
  color: #4f46e5;
}

/* ==================== 模型管理页面 ==================== */

.models-table th {
    font-size: 13px;
    font-weight: 600;
    color: var(--admin-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.models-table td {
    vertical-align: middle;
}

.models-table tr.model-disabled {
    opacity: 0.55;
}

.models-table tr.model-disabled:hover {
    opacity: 0.85;
}

.model-id {
    display: inline-block;
    background: #f1f5f9;
    color: var(--admin-text-muted);
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
}

.model-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.model-name-code {
    display: inline-block;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #4338ca;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
    border: 1px solid #c7d2fe;
    white-space: nowrap;
}

.model-status-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.model-status-tag.disabled {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.model-ctx {
    font-size: 13px;
    color: var(--admin-text);
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
}

.capability-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
}

.capability-badge.yes {
    background: #ecfdf5;
    color: #059669;
}

.capability-badge.no {
    background: #f8fafc;
    color: #cbd5e1;
    font-size: 14px;
}

.model-note {
    font-size: 13px;
    color: var(--admin-text-muted);
}

/* ==================== 敏感字段小眼睛样式 ==================== */

/* 表格单元格内的敏感字段 */
.sensitive-cell {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

/* 弹窗表单中的敏感字段 */
.sensitive-field {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sensitive-field input {
    flex: 1;
}

/* 眼睛切换按钮 */
.eye-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--admin-border, #e2e8f0);
    border-radius: 4px;
    background: #fff;
    color: var(--admin-text-muted, #64748b);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.eye-toggle:hover {
    background: var(--admin-primary, #4f46e5);
    color: #fff;
    border-color: var(--admin-primary, #4f46e5);
}

.eye-toggle svg {
    display: block;
}

/* ============ 常量参考页面 ============ */

.constants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 16px;
}

.constant-card {
    background: var(--admin-card-bg, #fff);
    border-radius: 8px;
    border: 1px solid var(--admin-border, #e2e8f0);
    overflow: hidden;
}

.constant-card-header {
    padding: 12px 16px;
    background: #f1f5f9;
    border-bottom: 1px solid var(--admin-border, #e2e8f0);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.constant-card-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--admin-text, #1e293b);
    margin: 0 0 2px 0;
}

.constant-card-desc {
    font-size: 12px;
    color: var(--admin-text-muted, #64748b);
    margin: 0;
}

.constant-type-badge {
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 12px;
    background: #e0e7ff;
    color: #4338ca;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 12px;
}

.constant-table {
    margin: 0;
}

.constant-table td,
.constant-table th {
    padding: 6px 12px;
    font-size: 13px;
}

.constant-table code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

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