/* ========================================
   疗程健康服务后台管理系统 - 样式表
   ======================================== */

:root {
    --primary: #2E86AB;
    --primary-dark: #1E6A8E;
    --success: #3FA77F;
    --warning: #FF8C42;
    --danger: #EF4444;
    --bg-sidebar: #1A1A2E;
    --bg-main: #F5F7FA;
    --bg-card: #FFFFFF;
    --text-dark: #1A1A2E;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --border-color: #E5E7EB;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --radius-sm: 4px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.5;
}

/* ========================================
   布局
   ======================================== */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* ========================================
   侧边栏
   ======================================== */
.sidebar {
    width: 240px;
    background-color: var(--bg-sidebar);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.brand-name {
    font-size: 16px;
    font-weight: 600;
}

.brand-subtitle {
    font-size: 12px;
    opacity: 0.6;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 0;
}

.nav-title {
    padding: 8px 20px;
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.4;
    letter-spacing: 1px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-item.active {
    background-color: rgba(46, 134, 171, 0.2);
    color: #fff;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary);
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nav-text {
    font-size: 14px;
}

.badge {
    margin-left: auto;
    background-color: var(--danger);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.user-avatar {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
}

.user-role {
    font-size: 12px;
    opacity: 0.6;
}

/* ========================================
   主内容区
   ======================================== */
.main-content {
    flex: 1;
    margin-left: 240px;
    display: flex;
    flex-direction: column;
}

/* 顶部栏 */
.top-bar {
    height: 64px;
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 50;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-item {
    color: var(--text-gray);
}

.breadcrumb-item.current {
    color: var(--text-dark);
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--text-light);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.merchant-badge {
    display: flex;
    align-items: center;
    padding: 4px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: white;
    white-space: nowrap;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background-color: var(--bg-main);
}

/* 页面内容 */
.page-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.page {
    display: none;
}

.page.active-page {
    display: block;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

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

/* ========================================
   数据卡片
   ======================================== */
.data-card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

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

/* ========================================
   统计卡片
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.blue {
    background-color: #E3F2FD;
}

.stat-icon.green {
    background-color: #E8F5E9;
}

.stat-icon.orange {
    background-color: #FFF3E0;
}

.stat-icon.red {
    background-color: #FFEBEE;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-label {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 4px;
}

.stat-change {
    font-size: 12px;
    margin-top: 4px;
}

.stat-change.up {
    color: var(--success);
}

.stat-change.down {
    color: var(--danger);
}

/* 统计栏 */
.stats-bar {
    display: flex;
    gap: 32px;
    padding: 16px 20px;
    background-color: var(--bg-card);
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.stats-bar .stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stats-bar .stat-label {
    font-size: 13px;
    color: var(--text-gray);
}

.stats-bar .stat-value {
    font-size: 20px;
    font-weight: 600;
}

.text-orange {
    color: var(--warning);
}

.text-green {
    color: var(--success);
}

.text-blue {
    color: var(--primary);
}

/* ========================================
   数据表格
   ======================================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
    background-color: #FAFAFA;
}

.data-table td {
    font-size: 14px;
}

.data-table tr:hover {
    background-color: #FAFAFA;
}

/* 表格单元格内容 */
.product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-thumb {
    width: 36px;
    height: 36px;
    background-color: var(--bg-main);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.user-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-weight: 500;
}

.user-phone {
    font-size: 12px;
    color: var(--text-gray);
}

.drug-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drug-qty {
    font-size: 12px;
    color: var(--text-gray);
}

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

.status-badge.active {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.status-badge.pending {
    background-color: #FFF3E0;
    color: #E65100;
}

.status-badge.approved {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.status-badge.rejected {
    background-color: #FFEBEE;
    color: #C62828;
}

.status-badge.paid {
    background-color: #E3F2FD;
    color: #1565C0;
}

.status-badge.shipped {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.status-badge.delivered {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.status-badge.completed {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.status-badge.cancelled {
    background-color: #F3F4F6;
    color: #6B7280;
}

.status-badge.refunded {
    background-color: #FFF3E0;
    color: #E65100;
}

.status-badge.inactive {
    background-color: #F3F4F6;
    color: #9CA3AF;
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.tag-chronic {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.tag-cold {
    background-color: #FFF3E0;
    color: #E65100;
}

.tag-digest {
    background-color: #E3F2FD;
    color: #1565C0;
}

/* ========================================
   按钮
   ======================================== */
.btn-primary {
    padding: 10px 20px;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-secondary {
    padding: 10px 20px;
    background-color: #fff;
    color: var(--text-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--bg-main);
}

.btn-sm {
    padding: 6px 12px;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
}

.btn-sm.btn-danger {
    background-color: var(--danger);
}

.btn-icon-sm {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
}

.btn-icon-sm:hover {
    background-color: var(--bg-main);
}

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

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

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.2s ease;
}

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

.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.input-with-prefix,
.input-with-suffix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix,
.input-suffix {
    position: absolute;
    padding: 0 12px;
    color: var(--text-gray);
    font-size: 14px;
}

.input-prefix {
    left: 0;
}

.input-suffix {
    right: 0;
}

.input-with-prefix .form-input {
    padding-left: 32px;
}

.input-with-suffix .form-input {
    padding-right: 32px;
}

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

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 0;
}

/* 搜索框 */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 240px;
    padding: 10px 36px 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
}

.btn-search {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.select-filter {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    background-color: #fff;
}

.select-sm {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 13px;
}

/* ========================================
   标签页
   ======================================== */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Tab 面板容器（products模块使用，父容器始终显示） */
.tab-content-wrapper {
    display: block;
}

/* Tab 面板（SPA内容片段中使用） */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ========================================
   分页
   ======================================== */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-gray);
}

.pagination-btns {
    display: flex;
    gap: 4px;
}

.btn-page {
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

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

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

/* ========================================
   弹窗
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background-color: #fff;
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-content.modal-lg {
    max-width: 800px;
}

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

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

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 20px;
    color: var(--text-gray);
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

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

/* 表单网格 */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 20px;
    cursor: pointer;
}

.radio-inline input {
    width: 16px;
    height: 16px;
}

/* ========================================
   复选框
   ======================================== */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input {
    display: none;
}

.checkbox-label .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-label input:checked + .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
}

/* ========================================
   提示消息
   ======================================== */
.toast {
    position: fixed;
    top: 80px;
    right: 24px;
    background-color: var(--text-dark);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

.toast.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* ========================================
   工具类
   ======================================== */
.text-gray {
    color: var(--text-gray);
}

.link-more {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
}

.link-more:hover {
    text-decoration: underline;
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .insurance-settings {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .sidebar .brand,
    .sidebar .nav-text,
    .sidebar .nav-title,
    .sidebar .user-info {
        display: none;
    }
    
    .main-content {
        margin-left: 60px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
    }
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ========================================
   二维码推广样式
   ======================================== */
.qrcode-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

.qrcode-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background-color: var(--bg-main);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.qrcode-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.qrcode-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background-color: var(--bg-card);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.qrcode-placeholder {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-gray);
    letter-spacing: 2px;
}

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

.qrcode-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qrcode-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--text-gray);
}

.qrcode-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-gray);
}

.qrcode-stats strong {
    color: var(--text-dark);
}

.qrcode-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

/* ========================================
   推广建议卡片样式
   ======================================== */
.promotion-suggestions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.suggestion-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background-color: var(--bg-main);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.suggestion-card:hover {
    border-color: var(--primary);
    background-color: #F0F9FF;
}

.suggestion-icon {
    width: 48px;
    height: 48px;
    background-color: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.suggestion-content {
    flex: 1;
}

.suggestion-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.suggestion-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 10px;
}

.suggestion-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.suggestion-tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: #E3F2FD;
    color: #1565C0;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* ========================================
   响应式补充
   ======================================== */
@media (max-width: 1200px) {
    .qrcode-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-config-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .qrcode-grid {
        grid-template-columns: 1fr;
    }
    
    .suggestion-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .payment-card-header {
        flex-wrap: wrap;
    }
}

.ai-result-value.passed {
    color: #2E7D32;
}

.ai-result-value.failed {
    color: #C62828;
}

.ai-result-value.warning {
    color: #E65100;
}

/* ========================================
   公众号管理样式
   ======================================== */

/* 公众号状态标签 */
.wechat-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.wechat-status.authorized {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.wechat-status.pending {
    background-color: #FFF3E0;
    color: #E65100;
}

.wechat-status.expired {
    background-color: #FFEBEE;
    color: #C62828;
}

/* 公众号类型标签 */
.wechat-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.wechat-type.service {
    background-color: #E3F2FD;
    color: #1565C0;
}

.wechat-type.subscribe {
    background-color: #F3E5F5;
    color: #7B1FA2;
}

/* 菜单预览区 - 模拟手机屏幕 */
.menu-preview {
    width: 260px;
    min-height: 400px;
    background-color: #fff;
    border-radius: 20px;
    border: 8px solid #1A1A2E;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

.menu-preview::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #333;
    border-radius: 2px;
}

/* 菜单编辑区 */
.menu-editor {
    min-height: 400px;
}

/* 关键词回复表格 */
.keyword-table {
    font-size: 13px;
}

.keyword-table td:nth-child(3) {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 图文编辑器样式 */
.content-editor {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: #fff;
}

.content-editor .form-textarea {
    border: none;
    border-radius: var(--radius);
}

.content-editor .form-textarea:focus {
    outline: none;
    box-shadow: none;
}

/* 图文卡片样式 */
.article-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s ease;
}

.article-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.article-cover {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.article-body {
    padding: 12px;
}

.article-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.article-desc {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 授权流程步骤 */
.auth-step {
    text-align: center;
}

.auth-step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 28px;
}

.auth-step-icon.step1 {
    background-color: #E3F2FD;
}

.auth-step-icon.step2 {
    background-color: #E8F5E9;
}

.auth-step-icon.step3 {
    background-color: #FFF3E0;
}

.auth-step-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.auth-step-desc {
    font-size: 13px;
    color: var(--text-gray);
}

/* 二维码展示区 */
.qrcode-display {
    width: 200px;
    height: 200px;
    background-color: var(--bg-main);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.qrcode-placeholder {
    text-align: center;
    color: var(--text-light);
}

.qrcode-placeholder .icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.qrcode-placeholder .text {
    font-size: 13px;
}

/* ========================================
   管理控制台首页样式
   ======================================== */

.welcome-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    padding: 32px;
    color: white;
    margin-bottom: 24px;
}

.welcome-content h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.welcome-content p {
    font-size: 14px;
    opacity: 0.9;
}

.quick-access {
    margin-bottom: 24px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.quick-item {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.quick-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.quick-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 12px;
}

.quick-icon.blue {
    background-color: #E3F2FD;
}

.quick-icon.green {
    background-color: #E8F5E9;
}

.quick-icon.orange {
    background-color: #FFF3E0;
}

.quick-icon.red {
    background-color: #FFEBEE;
}

.quick-text {
    font-size: 14px;
    font-weight: 500;
}

.system-status {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.status-item {
    text-align: center;
    padding: 16px;
    background-color: var(--bg-main);
    border-radius: var(--radius);
}

.status-label {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.status-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

@media (max-width: 1200px) {
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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