/**
 * 企业AI智能管理中台 - 完整UI样式库
 * 
 * 本样式库包含：
 * 1. 颜色系统
 * 2. 字体系统
 * 3. 布局系统
 * 4. 组件样式
 * 5. 动画效果
 * 6. 工具类
 * 
 * 使用方法：
 * 1. 直接引入此CSS文件
 * 2. 或复制需要的样式到项目中
 */

/* ==================== 基础重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== 颜色系统 ==================== */
:root {
    /* 主色调 - 蓝色系 */
    --primary: #1E40AF;
    --primary-light: #3B82F6;
    --primary-lighter: #60A5FA;
    --primary-dark: #1E3A8A;
    
    /* 辅助色 */
    --secondary: #3B82F6;
    --accent: #60A5FA;
    
    /* 功能色 */
    --success: #10B981;
    --success-light: #34C759;
    --warning: #F59E0B;
    --warning-light: #FF9500;
    --danger: #EF4444;
    --danger-light: #FF3B30;
    --info: #3B82F6;
    
    /* 中性色 */
    --neutral: #F3F4F6;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* 背景色 */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F3F4F6;
    --bg-dark: #000000;
    --bg-dark-light: #1a1a1a;
    
    /* 渐变色 */
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    --gradient-blue: linear-gradient(135deg, #0a1929 0%, #061220 100%);
    --gradient-green: linear-gradient(135deg, #0a2919 0%, #061f12 100%);
    --gradient-purple: linear-gradient(135deg, #190a29 0%, #12061f 100%);
}

/* ==================== 字体系统 ==================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Inter', system-ui, sans-serif;
    background: var(--bg-secondary);
    color: var(--gray-800);
    line-height: 1.5;
}

/* 字体大小 */
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 28px; }
.text-4xl { font-size: 32px; }
.text-5xl { font-size: 48px; }
.text-6xl { font-size: 56px; }
.text-7xl { font-size: 72px; }

/* 字体粗细 */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ==================== 布局系统 ==================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Flex布局 */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-grow { flex-grow: 1; }
.flex-grow-0 { flex-grow: 0; }
.flex-shrink { flex-shrink: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* 交叉轴对齐 */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.items-baseline { align-items: baseline; }

/* 主轴对齐 */
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

/* Grid布局 */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* Grid列跨度 */
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-5 { grid-column: span 5 / span 5; }
.col-span-6 { grid-column: span 6 / span 6; }
.col-span-full { grid-column: 1 / -1; }

/* Grid行跨度 */
.row-span-1 { grid-row: span 1 / span 1; }
.row-span-2 { grid-row: span 2 / span 2; }
.row-span-3 { grid-row: span 3 / span 3; }

/* 间距 */
.space-x-2 > * + * { margin-left: 8px; }
.space-x-3 > * + * { margin-left: 12px; }
.space-x-4 > * + * { margin-left: 16px; }
.space-x-6 > * + * { margin-left: 24px; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-6 > * + * { margin-top: 24px; }

/* 宽高 */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-64 { width: 256px; }
.w-8 { width: 32px; }
.w-12 { width: 48px; }
.h-screen { height: 100vh; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.min-h-screen { min-height: 100vh; }

/* 溢出 */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-visible { overflow: visible; }

/* 定位 */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* 绝对定位偏移 */
.top-1\/2 { top: 50%; }
.left-1\/2 { left: 50%; }
.transform { transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-x-1\/2 { transform: translateX(-50%); }

/* Grid布局 */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* 间距 */
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-12 { gap: 48px; }

.p-0 { padding: 0; }
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }

.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 32px; padding-right: 32px; }

.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 4px; }
.pt-2 { padding-top: 8px; }
.pt-3 { padding-top: 12px; }
.pt-4 { padding-top: 16px; }
.pt-6 { padding-top: 24px; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 4px; }
.pb-2 { padding-bottom: 8px; }
.pb-3 { padding-bottom: 12px; }
.pb-4 { padding-bottom: 16px; }
.pb-6 { padding-bottom: 24px; }

.pl-0 { padding-left: 0; }
.pl-1 { padding-left: 4px; }
.pl-2 { padding-left: 8px; }
.pl-3 { padding-left: 12px; }
.pl-4 { padding-left: 16px; }
.pl-10 { padding-left: 40px; }

.pr-0 { padding-right: 0; }
.pr-1 { padding-right: 4px; }
.pr-2 { padding-right: 8px; }
.pr-3 { padding-right: 12px; }
.pr-4 { padding-right: 16px; }

.m-0 { margin: 0; }
.m-1 { margin: 4px; }
.m-2 { margin: 8px; }
.m-3 { margin: 12px; }
.m-4 { margin: 16px; }
.m-6 { margin: 24px; }
.m-auto { margin: auto; }

.mx-auto { margin-left: auto; margin-right: auto; }
.my-0 { margin-top: 0; margin-bottom: 0; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: 4px; }
.ml-2 { margin-left: 8px; }
.ml-3 { margin-left: 12px; }
.ml-4 { margin-left: 16px; }
.ml-6 { margin-left: 24px; }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: 4px; }
.mr-2 { margin-right: 8px; }
.mr-3 { margin-right: 12px; }
.mr-4 { margin-right: 16px; }
.mr-6 { margin-right: 24px; }

/* ==================== 组件样式 ==================== */

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    white-space: nowrap;
}

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

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

.btn-secondary {
    background: var(--secondary);
    color: white;
}

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

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

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

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

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

.btn-success {
    background: var(--success);
    color: white;
}

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

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

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

/* 按钮大小 */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

/* 文字链接组件 */
.action-links {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.action-link {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.action-link:hover {
    color: var(--primary-dark);
    background: rgba(30, 64, 175, 0.08);
}

.action-link-danger {
    color: var(--danger);
}

.action-link-danger:hover {
    color: #DC2626;
    background: rgba(239, 68, 68, 0.08);
}

.action-link-warning {
    color: var(--warning);
}

.action-link-warning:hover {
    color: #D97706;
    background: rgba(245, 158, 11, 0.08);
}

.action-link-success {
    color: var(--success);
}

.action-link-success:hover {
    color: #059669;
    background: rgba(16, 185, 129, 0.08);
}

/* 图片预览组件 */
.image-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.image-viewer img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.image-viewer-btn {
    position: absolute;
    color: white;
    transition: all 0.3s ease;
    padding: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.image-viewer-btn:hover {
    color: #D1D5DB;
}

.image-viewer-close {
    top: 24px;
    right: 24px;
}

.image-viewer-prev {
    left: 24px;
}

.image-viewer-next {
    right: 80px;
}

.image-viewer-thumbnails {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.image-viewer-thumbnail {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-viewer-thumbnail.active {
    border-color: white;
}

.image-viewer-thumbnail:hover {
    opacity: 0.75;
}

.image-viewer-counter {
    position: absolute;
    top: 24px;
    left: 24px;
    color: white;
    font-size: 18px;
    font-weight: 500;
}

/* PDF 预览组件 */
.pdf-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.pdf-viewer-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 64rem;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.pdf-viewer-header {
    padding: 24px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pdf-viewer-toolbar {
    padding: 16px;
    border-bottom: 1px solid #E5E7EB;
    background: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pdf-viewer-content {
    flex: 1;
    overflow-y: auto;
    background: #6B7280;
    padding: 32px;
}

.pdf-viewer-page {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin: 0 auto;
    width: 595px;
    height: 842px;
}

/* 卡片样式 */
.card {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 24px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-dark {
    background: var(--bg-dark-light);
    color: white;
}

/* 输入框样式 */
.input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.input-error {
    border-color: var(--danger);
}

.input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* 选择框样式 */
.select {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* 标签样式 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

.badge-primary {
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

/* 状态标签 - 统一规范 */
.status-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status-tag-success {
    background-color: #D1FAE5;
    color: #059669;
}

.status-tag-warning {
    background-color: #FEF3C7;
    color: #D97706;
}

.status-tag-danger {
    background-color: #FEE2E2;
    color: #DC2626;
}

.status-tag-info {
    background-color: #DBEAFE;
    color: #2563EB;
}

.status-tag-default {
    background-color: #F3F4F6;
    color: #6B7280;
}

/* 兼容旧版状态标签 */
.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-processing {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

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

.table th {
    background: var(--gray-50);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
    font-size: 12px;
    white-space: nowrap;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 13px;
}

.table tbody tr:hover {
    background: var(--gray-50);
}

/* 进度条样式 */
.progress {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.progress-bar-success {
    background: var(--success);
}

.progress-bar-warning {
    background: var(--warning);
}

.progress-bar-danger {
    background: var(--danger);
}

/* 对话消息样式 */
.message {
    display: flex;
    margin-bottom: 16px;
}

.message-user {
    justify-content: flex-end;
}

.message-ai {
    justify-content: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.message-user .message-content {
    background: var(--primary);
    color: white;
}

.message-ai .message-content {
    background: var(--gray-100);
    color: var(--gray-800);
}

/* ==================== 页面布局系统 ==================== */

/* 页面容器 - 整体布局 */
.page-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* 侧边栏样式 */
.sidebar {
    width: 256px;
    background: var(--primary);
    color: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav a.active,
.sidebar-nav a.bg-blue-800 {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-nav a i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

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

.sidebar-user {
    display: flex;
    align-items: center;
}

.sidebar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user-info {
    margin-left: 12px;
}

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

.sidebar-user-email {
    font-size: 12px;
    opacity: 0.8;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-left: 256px;
}

/* 顶部导航 */
.top-header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.top-header-left {
    display: flex;
    align-items: center;
}

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

.top-header-search {
    position: relative;
}

.top-header-search input {
    padding-left: 40px;
}

.top-header-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.top-header-btn {
    padding: 8px;
    border-radius: 50%;
    color: var(--gray-500);
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.top-header-btn:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.top-header-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.top-header-user:hover {
    background: var(--gray-100);
}

.top-header-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 内容区域 */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: var(--gray-50);
}

/* 页面标题 */
.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-title-left {
    display: flex;
    align-items: center;
}

.page-title-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 标签页 */
.tabs {
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 24px;
}

.tabs ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tabs li {
    margin-bottom: -1px;
}

.tabs a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--gray-500);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tabs a:hover {
    color: var(--gray-700);
}

.tabs a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tabs a i {
    margin-right: 8px;
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
    padding: 16px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-item.active {
    background: rgba(255, 255, 255, 0.2);
}

/* 顶部导航样式 */
.header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* 抽屉样式 */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 40;
    transition: opacity 0.3s ease;
}

.drawer {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    z-index: 50;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.drawer-lg {
    width: 66.666%;
}

.drawer-xl {
    width: 75%;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-body {
    padding: 24px;
}

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

/* ==================== 动画效果 ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slideIn {
    animation: slideIn 0.6s ease forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease forwards;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* 过渡效果 */
.transition-all {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

/* ==================== 工具类 ==================== */

/* 显示隐藏 */
.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

/* 光标 */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-move { cursor: move; }

/* 用户选择 */
.select-none { user-select: none; }
.select-text { user-select: text; }
.select-all { user-select: all; }

/* 透明度 */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* 过渡效果 */
.transition-all { transition: all 0.3s ease; }
.transition-colors { transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }
.transition-transform { transition: transform 0.3s ease; }
.transition-opacity { transition: opacity 0.3s ease; }
.transition-shadow { transition: box-shadow 0.3s ease; }
.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.ease-in { transition-timing-function: cubic-bezier(0.4, 0, 1, 1); }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* 变换 */
.scale-95 { transform: scale(0.95); }
.scale-100 { transform: scale(1); }
.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }
.rotate-0 { transform: rotate(0deg); }
.rotate-45 { transform: rotate(45deg); }
.rotate-90 { transform: rotate(90deg); }
.rotate-180 { transform: rotate(180deg); }
.-rotate-180 { transform: rotate(-180deg); }
.translate-y-0 { transform: translateY(0); }
.translate-y-1 { transform: translateY(4px); }
.-translate-y-1 { transform: translateY(-4px); }
.translate-x-0 { transform: translateX(0); }
.translate-x-1 { transform: translateX(4px); }
.-translate-x-1 { transform: translateX(-4px); }

/* 缩放动画 */
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:-translate-y-1:hover { transform: translateY(-4px); }
.hover\:-translate-y-2:hover { transform: translateY(-8px); }

/* 文本装饰 */
.underline { text-decoration: underline; }
.no-underline { text-decoration: none; }
.line-through { text-decoration: line-through; }
.hover\:underline:hover { text-decoration: underline; }

/* 文本换行 */
.whitespace-nowrap { white-space: nowrap; }
.whitespace-normal { white-space: normal; }
.whitespace-pre { white-space: pre; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.break-words { word-wrap: break-word; overflow-wrap: break-word; }
.break-all { word-break: break-all; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 文本溢出 */
.text-ellipsis { text-overflow: ellipsis; }
.text-clip { text-overflow: clip; }

/* 指针事件 */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* 背景模糊 */
.backdrop-blur { backdrop-filter: blur(8px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.backdrop-blur-lg { backdrop-filter: blur(16px); }
.backdrop-filter { backdrop-filter: var(--backdrop-filter); }

/* 滚动条 */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* 表格样式 */
.divide-y > * + * { border-top-width: 1px; }
.divide-x > * + * { border-left-width: 1px; }
.divide-gray-200 > * + * { border-color: var(--gray-200); }

/* 列表样式 */
.list-none { list-style: none; }
.list-disc { list-style: disc; }
.list-decimal { list-style: decimal; }

/* 字间距 */
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }

/* 行高 */
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }

/* 文本对齐 */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* 文本颜色 */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--gray-600); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-white { color: white; }
.text-gray { color: var(--gray-500); }

/* 背景颜色 */
.bg-primary { background-color: var(--primary); }
.bg-primary-light { background-color: var(--primary-light); }
.bg-primary-lighter { background-color: var(--primary-lighter); }
.bg-primary-dark { background-color: var(--primary-dark); }
.bg-secondary { background-color: var(--secondary); }
.bg-accent { background-color: var(--accent); }
.bg-success { background-color: var(--success); }
.bg-success-light { background-color: var(--success-light); }
.bg-warning { background-color: var(--warning); }
.bg-warning-light { background-color: var(--warning-light); }
.bg-danger { background-color: var(--danger); }
.bg-danger-light { background-color: var(--danger-light); }
.bg-info { background-color: var(--info); }
.bg-white { background-color: white; }
.bg-gray { background-color: var(--gray-100); }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-gray-200 { background-color: var(--gray-200); }
.bg-gray-300 { background-color: var(--gray-300); }
.bg-gray-400 { background-color: var(--gray-400); }
.bg-gray-500 { background-color: var(--gray-500); }
.bg-gray-600 { background-color: var(--gray-600); }
.bg-gray-700 { background-color: var(--gray-700); }
.bg-gray-800 { background-color: var(--gray-800); }
.bg-gray-900 { background-color: var(--gray-900); }
.bg-bg-primary { background-color: var(--bg-primary); }
.bg-bg-secondary { background-color: var(--bg-secondary); }
.bg-bg-dark { background-color: var(--bg-dark); }
.bg-bg-dark-light { background-color: var(--bg-dark-light); }

/* 边框样式 */
.border { border: 1px solid var(--gray-200); }
.border-0 { border: none; }
.border-2 { border-width: 2px; }
.border-b { border-bottom: 1px solid var(--gray-200); }
.border-t { border-top: 1px solid var(--gray-200); }
.border-l { border-left: 1px solid var(--gray-200); }
.border-r { border-right: 1px solid var(--gray-200); }
.border-primary { border-color: var(--primary); }
.border-success { border-color: var(--success); }
.border-warning { border-color: var(--warning); }
.border-danger { border-color: var(--danger); }
.border-gray-200 { border-color: var(--gray-200); }
.border-gray-300 { border-color: var(--gray-300); }
.border-transparent { border-color: transparent; }
.border-blue-700 { border-color: rgba(255, 255, 255, 0.1); }

/* 圆角样式 */
.rounded { border-radius: 8px; }
.rounded-sm { border-radius: 4px; }
.rounded-md { border-radius: 6px; }
.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: 16px; }
.rounded-2xl { border-radius: 24px; }
.rounded-full { border-radius: 9999px; }
.rounded-t-lg { border-top-left-radius: 12px; border-top-right-radius: 12px; }
.rounded-b-lg { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }

/* 阴影样式 */
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.shadow-card { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-none { box-shadow: none; }

/* 间距工具类 */
.p-0 { padding: 0; }
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }

.m-0 { margin: 0; }
.m-1 { margin: 4px; }
.m-2 { margin: 8px; }
.m-3 { margin: 12px; }
.m-4 { margin: 16px; }
.m-5 { margin: 20px; }
.m-6 { margin: 24px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }

/* ==================== 响应式设计 ==================== */
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:flex { display: flex; }
    .sm\:hidden { display: none; }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:w-1\/2 { width: 50%; }
    .md\:w-1\/3 { width: 33.333333%; }
    .md\:w-2\/3 { width: 66.666667%; }
    .md\:w-3\/4 { width: 75%; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
    .lg\:w-1\/2 { width: 50%; }
    .lg\:w-1\/3 { width: 33.333333%; }
    .lg\:w-2\/3 { width: 66.666667%; }
    .lg\:w-3\/4 { width: 75%; }
    .lg\:col-span-1 { grid-column: span 1 / span 1; }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\:col-span-3 { grid-column: span 3 / span 3; }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .xl\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .xl\:flex { display: flex; }
    .xl\:hidden { display: none; }
}

/* 响应式隐藏 */
@media (max-width: 639px) {
    .sm\:hidden { display: none !important; }
    .md\:hidden { display: none !important; }
    .lg\:hidden { display: none !important; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .drawer { width: 100%; }
    .main-content { margin-left: 0; }
}

@media (max-width: 1023px) {
    .sidebar { width: 80px; }
    .sidebar span:not(.sidebar-header h1):not(.sidebar-user-info *) { display: none; }
    .main-content { margin-left: 80px; }
    .drawer { width: 75%; }
    .drawer-lg { width: 100%; }
}

/* ==================== 特殊组件 ==================== */

/* 上传区域 */
.upload-area {
    border: 2px dashed var(--gray-300) !important;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary) !important;
    background: rgba(30, 64, 175, 0.02);
}

.upload-area.dragover {
    border-color: var(--primary) !important;
    background: rgba(30, 64, 175, 0.05);
}

/* 审查进度项 */
.review-item {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.review-item-header {
    padding: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
}

.review-item-header:hover {
    background: var(--gray-50);
}

.review-item-content {
    padding: 0 16px 16px;
    display: none;
}

.review-item-content.open {
    display: block;
}

/* 履约阶段 */
.performance-stage {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.performance-stage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

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

/* 统计卡片 */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

.stat-card-value {
    font-size: 32px;
    font-weight: 700;
    margin: 12px 0 8px;
}

.stat-card-label {
    color: var(--gray-500);
    font-size: 14px;
}

.stat-card-change {
    font-size: 14px;
    margin-top: 8px;
}

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

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

/* 颜色块（用于PPT演示） */
.color-block {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    border-radius: 20px;
}

.color-blue { background: #007AFF; }
.color-green { background: #34C759; }
.color-orange { background: #FF9500; }
.color-red { background: #FF3B30; }
.color-yellow { background: #FFCC00; color: #000; }
.color-purple { background: #AF52DE; }

/* 特性网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1000px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
}

.feature-desc {
    font-size: 18px;
    color: var(--gray-500);
}

/* 价格卡片 */
.price-card {
    flex: 1;
    background: var(--bg-dark-light);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.price-card.featured {
    background: var(--primary);
    transform: scale(1.05);
}

.price-name {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
}

.price-value {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* 数据展示 */
.data-item {
    text-align: center;
}

.data-value {
    font-size: 56px;
    font-weight: 700;
    color: var(--success);
}

.data-label {
    font-size: 20px;
    color: var(--gray-500);
    margin-top: 10px;
}

/* 信息块 */
.info-block {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px;
}

.info-block-blue {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

.info-block-green {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.info-block-red {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

.info-block-yellow {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.2);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state-icon {
    font-size: 64px;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.empty-state-description {
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* 加载状态 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-item.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* 面包屑 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-500);
}

.breadcrumb-item {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--gray-300);
}

/* 标签页 */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 24px;
}

.tab {
    padding: 12px 24px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray-500);
}

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

.tab.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
    font-weight: 500;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-800);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    transition: all 0.3s ease;
    z-index: 100;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 徽章 */
.badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    background: var(--danger);
    color: white;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 头像 */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-weight: 600;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.avatar-lg {
    width: 48px;
    height: 48px;
    font-size: 18px;
}

/* 分割线 */
.divider {
    height: 1px;
    background: var(--gray-200);
    margin: 24px 0;
}

.divider-vertical {
    width: 1px;
    background: var(--gray-200);
    margin: 0 24px;
    align-self: stretch;
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 20px;
    box-sizing: border-box;
}

.modal-hidden {
    display: none;
}

.modal.show {
    display: flex !important;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hide {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: auto;
    max-width: 896px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

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

.modal-close {
    color: var(--gray-400);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--gray-600);
}

/* 抽屉 */
.drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 50%;
    background: white;
    z-index: 50;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
}

.drawer-left {
    right: auto;
    left: 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.drawer-hidden {
    transform: translateX(100%);
}

.drawer-left.drawer-hidden {
    transform: translateX(-100%);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 40;
    transition: opacity 0.3s ease-in-out;
}

.drawer-overlay-hidden {
    opacity: 0;
    pointer-events: none;
}

.drawer-content {
    padding: 24px;
}

/* 变换效果 */
.transform-rotate-90 {
    transform: rotate(90deg);
}

.transform-rotate-180 {
    transform: rotate(180deg);
}

.transform-rotate-270 {
    transform: rotate(270deg);
}

.transform-scale-95 {
    transform: scale(0.95);
}

.transform-scale-105 {
    transform: scale(1.05);
}

.transform-scale-110 {
    transform: scale(1.1);
}

.transform-translate-x-1 {
    transform: translateX(0.25rem);
}

.transform-translate-x-2 {
    transform: translateX(0.5rem);
}

.transform-translate-y-1 {
    transform: translateY(0.25rem);
}

.transform-translate-y-2 {
    transform: translateY(0.5rem);
}

/* 过渡效果 */
.transition-all-300 {
    transition: all 300ms ease-in-out;
}

.transition-all-200 {
    transition: all 200ms ease-in-out;
}

.transition-all-500 {
    transition: all 500ms ease-in-out;
}

.transition-colors {
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.transition-transform {
    transition: transform 0.2s;
}

.transition-opacity {
    transition: opacity 0.2s;
}

/* 悬停效果 */
.hover-scale-105:hover {
    transform: scale(1.05);
}

.hover-scale-110:hover {
    transform: scale(1.1);
}

.hover-lift {
    transition: transform 0.2s, box-shadow 0.2s;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 焦点效果 */
.focus-ring {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

.focus-ring-primary {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.5);
}

/* 卡片阴影 */
.shadow-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-card-hover:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 渐变背景 */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, var(--warning) 0%, var(--warning-light) 100%);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-light) 100%);
}

/* 毛玻璃效果 */
.backdrop-blur {
    backdrop-filter: blur(12px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(8px);
}

/* 圆角 */
.rounded-xl {
    border-radius: 12px;
}

.rounded-2xl {
    border-radius: 16px;
}

.rounded-3xl {
    border-radius: 24px;
}

/* 弹性布局工具 */
.flex-1 {
    flex: 1;
}

.flex-auto {
    flex: auto;
}

.flex-initial {
    flex: initial;
}

.flex-none {
    flex: none;
}

/* 间距工具 */
.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-x-6 > * + * {
    margin-left: 1.5rem;
}

/* 内容可见性 */
.content-auto {
    content-visibility: auto;
}

/* 工具类 - 宽度 */
.w-full {
    width: 100%;
}

.w-auto {
    width: auto;
}

.max-w-full {
    max-width: 100%;
}

.max-w-xs {
    max-width: 20rem;
}

.max-w-sm {
    max-width: 24rem;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-lg {
    max-width: 32rem;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

/* 工具类 - 高度 */
.h-full {
    height: 100%;
}

.h-auto {
    height: auto;
}

.h-screen {
    height: 100vh;
}

.min-h-screen {
    min-height: 100vh;
}

.max-h-full {
    max-height: 100%;
}

/* 工具类 - 溢出 */
.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

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

.overflow-y-auto {
    overflow-y: auto;
}

/* 工具类 - 位置 */
.fixed {
    position: fixed;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.sticky {
    position: sticky;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* 工具类 - Z-index */
.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-30 {
    z-index: 30;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

/* 工具类 - 显示/隐藏 */
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.inline {
    display: inline;
}

/* 工具类 - 光标 */
.cursor-pointer {
    cursor: pointer;
}

.cursor-default {
    cursor: default;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

/* 工具类 - 文本 */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.break-words {
    word-break: break-word;
}

/* 工具类 - 显示层级 */
.opacity-0 {
    opacity: 0;
}

.opacity-25 {
    opacity: 0.25;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-100 {
    opacity: 1;
}

/* 工具类 - 背景不透明度 */
.bg-opacity-20 {
    --tw-bg-opacity: 0.2;
}

.bg-opacity-50 {
    --tw-bg-opacity: 0.5;
}

.bg-opacity-95 {
    --tw-bg-opacity: 0.95;
}

/* 开关组件 */
.toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
    background-color: var(--primary);
}

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

/* 标签页 */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
}

.tab {
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-600);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab:hover {
    color: var(--primary);
    background-color: var(--gray-50);
}

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

.tab-content {
    display: none;
    padding: 24px 0;
}

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

/* 数据预览表格 */
.data-preview {
    background: var(--gray-50);
    border-radius: 8px;
    overflow: hidden;
}

.data-preview-header {
    padding: 12px 16px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    color: var(--gray-700);
}

.data-preview-table {
    width: 100%;
    border-collapse: collapse;
}

.data-preview-table th {
    padding: 10px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: var(--gray-600);
    background: var(--gray-100);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-preview-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
    color: var(--gray-800);
}

.data-preview-table tbody tr:hover {
    background: var(--gray-50);
}

.data-preview-table tbody tr.error {
    background: #FEE2E2;
}

.data-preview-table tbody tr.error:hover {
    background: #FECACA;
}

.data-preview-table tbody tr.success {
    background: #D1FAE5;
}

.data-preview-table tbody tr.success:hover {
    background: #A7F3D0;
}

.data-preview-table tbody tr.warning {
    background: #FEF3C7;
}

.data-preview-table tbody tr.warning:hover {
    background: #FDE68A;
}

/* 统计徽章 */
.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
}

.stat-badge-primary {
    background: var(--primary);
    color: white;
}

.stat-badge-success {
    background: var(--success);
    color: white;
}

.stat-badge-warning {
    background: var(--warning);
    color: white;
}

.stat-badge-danger {
    background: var(--danger);
    color: white;
}

.stat-badge-info {
    background: var(--info);
    color: white;
}

/* 任务卡片 */
.task-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.task-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.task-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.task-card-title {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 15px;
}

.task-card-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.task-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--gray-500);
}

.task-card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.task-card-tag {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--gray-100);
    color: var(--gray-600);
}

.task-card-tag.primary {
    background: #DBEAFE;
    color: var(--primary);
}

.task-card-tag.success {
    background: #D1FAE5;
    color: var(--success);
}

.task-card-tag.warning {
    background: #FEF3C7;
    color: var(--warning);
}

.task-card-tag.danger {
    background: #FEE2E2;
    color: var(--danger);
}

/* 上传区域增强 */
.upload-area-enhanced {
    border: 2px dashed var(--gray-300) !important;
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.upload-area-enhanced:hover {
    border-color: var(--primary) !important;
    background: var(--gray-50);
}

.upload-area-enhanced.dragover {
    border-color: var(--primary) !important;
    background: #DBEAFE;
}

.upload-area-enhanced-icon {
    font-size: 48px;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.upload-area-enhanced-text {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.upload-area-enhanced-hint {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 20px;
}

/* 导入流水弹窗 - 上传区域 */
.import-flow-upload {
    border: 2px dashed var(--gray-300) !important;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.import-flow-upload:hover {
    border-color: var(--primary) !important;
    background: #EFF6FF;
}

.import-flow-upload.dragover {
    border-color: var(--primary) !important;
    background: #DBEAFE;
}

.import-flow-upload-icon {
    font-size: 48px;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.import-flow-upload-text {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.import-flow-upload-hint {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 20px;
}

/* 已上传文件列表 - 上传后蓝色底色样式 */
.import-flow-file-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.import-flow-file-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.import-flow-file-item:hover {
    background: #DBEAFE;
}

.import-flow-file-icon {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 20px;
    color: var(--gray-500);
}

.import-flow-file-icon.excel {
    background: #ECFDF5;
    color: #10B981;
}

.import-flow-file-icon.pdf {
    background: #EFF6FF;
    color: #3B82F6;
}

.import-flow-file-icon.image {
    background: #FDF2F8;
    color: #EC4899;
}

.import-flow-file-details {
    flex: 1;
}

.import-flow-file-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.import-flow-file-meta {
    font-size: 12px;
    color: var(--gray-500);
}

.import-flow-file-meta i {
    margin-right: 4px;
}

.import-flow-file-actions {
    display: flex;
    gap: 8px;
}

.import-flow-file-actions button {
    padding: 8px;
    color: var(--gray-500);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.import-flow-file-actions button:hover {
    color: var(--primary);
    background: var(--gray-100);
}

.import-flow-file-actions button.delete:hover {
    color: var(--danger);
    background: #FEE2E2;
}

/* 通知渠道卡片 */
.notification-channel-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.notification-channel-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.notification-channel-card.active {
    border-color: var(--primary);
    background: #EFF6FF;
}

.notification-channel-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.notification-channel-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.notification-channel-card-icon.primary {
    background: #DBEAFE;
    color: var(--primary);
}

.notification-channel-card-icon.success {
    background: #D1FAE5;
    color: var(--success);
}

.notification-channel-card-icon.warning {
    background: #FEF3C7;
    color: var(--warning);
}

.notification-channel-card-icon.danger {
    background: #FEE2E2;
    color: var(--danger);
}

.notification-channel-card-info {
    flex: 1;
    margin-left: 16px;
}

.notification-channel-card-title {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 16px;
}

.notification-channel-card-desc {
    font-size: 13px;
    color: var(--gray-500);
}

.notification-channel-card-status {
    margin-top: 12px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 8px;
    font-size: 14px;
    color: var(--gray-600);
}

/* 通知规则卡片 */
.notification-rule-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--gray-200);
}

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

.notification-rule-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-rule-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: #FEF3C7;
    color: var(--warning);
}

.notification-rule-card-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 15px;
}

.notification-rule-card-desc {
    font-size: 13px;
    color: var(--gray-500);
}

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

.notification-rule-card-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-rule-card-field-label {
    font-size: 13px;
    color: var(--gray-600);
}

.notification-rule-card-field-value {
    font-size: 14px;
    color: var(--gray-800);
    font-weight: 500;
}
