/* ============================================
   Clean White UI Design System
   纯白底色 · 黑色字体 · 极简风格
   ============================================ */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --border-color: #e4e7ed;
    --text-primary: #1a1a1a;
    --text-secondary: #606266;
    --text-tertiary: #909399;
    --accent-blue: #1890ff;
    --accent-green: #52c41a;
    --accent-red: #ff4d4f;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* === 兼容旧版 glass-* class === */
.glass, .glass-strong, .glass-light, .glass-card, .glass-stat-card {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.glass:hover, .glass-card:hover, .glass-stat-card:hover {
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-2px) !important;
}

/* === 按钮 === */
.glass-btn, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.glass-btn:hover, .btn:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.glass-btn-primary, .btn-primary {
    background: var(--accent-blue) !important;
    color: white !important;
    border: none !important;
}

.glass-btn-primary:hover, .btn-primary:hover {
    background: #096dd9 !important;
    box-shadow: var(--shadow-sm) !important;
}

.glass-btn-purple {
    background: linear-gradient(135deg, #AF52DE 0%, #5856D6 100%) !important;
    color: white !important;
    border: none !important;
}

/* === 输入框 === */
.glass-input, .input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.glass-input:focus, .input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.glass-input::placeholder {
    color: var(--text-tertiary);
}

/* === 导航栏 === */
.glass-nav, .navbar {
    background: var(--bg-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    height: 60px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* === 侧边栏 === */
.glass-sidebar, .sidebar {
    background: var(--bg-primary) !important;
    border-right: 1px solid var(--border-color) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    width: 240px;
    height: calc(100vh - 60px);
    position: fixed;
    left: 0;
    top: 60px;
    overflow-y: auto;
}

/* === 顶栏 === */
.glass-topbar {
    background: var(--bg-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

/* === 下拉菜单 === */
.glass-dropdown {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-md) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* === 标签 === */
.glass-badge, .badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* === 导航项 === */
.glass-nav-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    border-radius: var(--radius-sm);
}

.glass-nav-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.glass-nav-item.active {
    background: rgba(24, 144, 255, 0.05);
    color: var(--accent-blue);
    border-left-color: var(--accent-blue);
    font-weight: 500;
}

/* === 头像 === */
.glass-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

/* === 提示框 === */
.glass-alert, .alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
}

.glass-alert-success, .alert-success {
    background: rgba(82, 196, 26, 0.1);
    border: 1px solid rgba(82, 196, 26, 0.2);
    color: var(--accent-green);
}

.glass-alert-error, .alert-error {
    background: rgba(255, 77, 79, 0.1);
    border: 1px solid rgba(255, 77, 79, 0.2);
    color: var(--accent-red);
}

/* === 背景 === */
.liquid-bg {
    display: none; /* 移除花哨背景 */
}

/* === 动画类 === */
.liquid-fade-in, .liquid-slide-up {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.liquid-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* === Hero区域 === */
.glass-hero {
    background: linear-gradient(135deg, #1890ff 0%, #5856D6 100%) !important;
    color: white;
    padding: 80px 0;
}

/* === Footer === */
.glass-footer {
    background: #1a1a1a !important;
    color: #999;
    border-top: 1px solid #333;
}

/* === 表格 === */
.glass-table, .table-container {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.table td {
    color: var(--text-secondary);
    font-size: 14px;
}

.table tbody tr:hover {
    background: var(--bg-secondary);
}

/* === 分隔线 === */
.glass-divider {
    height: 1px;
    background: var(--border-color);
    border: none;
}

/* === 进度条 === */
.glass-progress {
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    height: 8px;
}

.glass-progress-bar {
    background: var(--accent-blue);
    border-radius: 10px;
    height: 100%;
    transition: width 0.6s ease;
}

/* === Toast === */
.glass-toast {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 12px 16px;
}

/* === Modal === */
.glass-modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.glass-modal {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* === 文字颜色 === */
.text-glass-primary, .text-gray-800 { color: var(--text-primary) !important; }
.text-glass-secondary, .text-gray-600 { color: var(--text-secondary) !important; }
.text-glass-tertiary, .text-gray-400 { color: var(--text-tertiary) !important; }
.text-glass-blue { color: var(--accent-blue) !important; }
.text-glass-purple { color: #AF52DE !important; }
.text-glass-indigo { color: #5856D6 !important; }
.text-white { color: white !important; }
.text-blue-600 { color: var(--accent-blue) !important; }
.text-blue-200 { color: rgba(255, 255, 255, 0.8) !important; }
.text-blue-100 { color: rgba(255, 255, 255, 0.9) !important; }
.text-red-500 { color: var(--accent-red) !important; }
.text-green-400 { color: var(--accent-green) !important; }

/* === 背景色 === */
.bg-white\/10 { background: rgba(255, 255, 255, 0.1) !important; }
.bg-white\/50 { background: rgba(255, 255, 255, 0.5) !important; }
.bg-blue-50 { background: rgba(24, 144, 255, 0.05) !important; }
.bg-indigo-50 { background: rgba(88, 86, 214, 0.05) !important; }
.bg-purple-50 { background: rgba(175, 82, 222, 0.05) !important; }
.bg-green-50 { background: rgba(82, 196, 26, 0.05) !important; }
.bg-red-50 { background: rgba(255, 77, 79, 0.05) !important; }
.bg-yellow-50 { background: rgba(250, 173, 20, 0.05) !important; }
.bg-blue-600 { background: var(--accent-blue) !important; }
.bg-indigo-600 { background: #5856D6 !important; }
.bg-purple-600 { background: #AF52DE !important; }

/* === 边框色 === */
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2) !important; }
.border-gray-800 { border-color: #333 !important; }

/* === Tailwind 兼容工具类 === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.max-w-md { max-width: 400px; }
.max-w-7xl { max-width: 1280px; }
.w-full { width: 100%; }
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.space-y-1 > * + * { margin-top: 4px; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-4 > * + * { margin-top: 16px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.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; }
.px-10 { padding-left: 40px; padding-right: 40px; }
.py-1\.5 { padding-top: 6px; padding-bottom: 6px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-2\.5 { padding-top: 10px; padding-bottom: 10px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-3\.5 { padding-top: 14px; padding-bottom: 14px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }
.py-24 { padding-top: 96px; padding-bottom: 96px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.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; }
.mb-10 { margin-bottom: 40px; }
.mb-16 { margin-bottom: 64px; }
.-mt-20 { margin-top: -80px; }
.ml-64 { margin-left: 256px; }
.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }
.rounded-2xl { border-radius: 16px; }
.rounded-full { border-radius: 9999px; }
.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: 30px; }
.text-4xl { font-size: 36px; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 600; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.group:hover .group-hover\:block { display: block; }
.transform { transform: translateZ(0); }
.transition { transition: all 0.3s ease; }
.hover\:opacity-80:hover { opacity: 0.8; }
.hover\:text-white:hover { color: white !important; }
.hover\:text-blue-600:hover { color: var(--accent-blue) !important; }
.hover\:text-gray-800:hover { color: var(--text-primary) !important; }
.hover\:bg-white\/50:hover { background: rgba(255, 255, 255, 0.5) !important; }
.hover\:bg-red-50:hover { background: rgba(255, 77, 79, 0.05) !important; }
.hover\:bg-white\/20:hover { background: rgba(255, 255, 255, 0.2) !important; }
.leading-tight { line-height: 1.25; }

/* === 响应式 === */
@media (max-width: 768px) {
    .md\:flex { display: none; }
    .md\:grid-cols-2 { grid-template-columns: 1fr; }
    .md\:grid-cols-3 { grid-template-columns: 1fr; }
    .md\:grid-cols-4 { grid-template-columns: 1fr; }
    .md\:text-4xl { font-size: 30px; }
    .md\:text-5xl { font-size: 36px; }
    .ml-64 { margin-left: 0; }
    .glass-sidebar, .sidebar { display: none; }
}

@media (min-width: 769px) {
    .md\:flex { display: flex; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* === SVG图标默认颜色 === */
svg {
    display: inline-block;
    vertical-align: middle;
}

/* === CSS图标替代Emoji === */
.icon-chart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 3v18h18'/><path d='M18 17V9'/><path d='M13 17V5'/><path d='M8 17v-3'/></svg>") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 3v18h18'/><path d='M18 17V9'/><path d='M13 17V5'/><path d='M8 17v-3'/></svg>") center / contain no-repeat;
}

.icon-rocket {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-3.03.09z'/><path d='m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z'/><path d='M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0'/><path d='M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5'/></svg>") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-3.03.09z'/><path d='m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z'/><path d='M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0'/><path d='M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5'/></svg>") center / contain no-repeat;
}

.icon-globe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M2 12h20'/><path d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/></svg>") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M2 12h20'/><path d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/></svg>") center / contain no-repeat;
}

.icon-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
}

.icon-cross {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>") center / contain no-repeat;
}

.icon-bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/><path d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/></svg>") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/><path d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/></svg>") center / contain no-repeat;
}

.icon-party {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5.8 11.3 2 22l10.7-3.79'/><path d='M4 3h.01'/><path d='M22 8h.01'/><path d='M15 2h.01'/><path d='M22 20h.01'/><path d='m22 2-2.74.58a1 1 0 0 0-.68.68L18 6l3 2'/><path d='M11.45 5.4 7 3l2.74 6.96'/><path d='M8 22 6.5 17.5'/></svg>") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5.8 11.3 2 22l10.7-3.79'/><path d='M4 3h.01'/><path d='M22 8h.01'/><path d='M15 2h.01'/><path d='M22 20h.01'/><path d='m22 2-2.74.58a1 1 0 0 0-.68.68L18 6l3 2'/><path d='M11.45 5.4 7 3l2.74 6.96'/><path d='M8 22 6.5 17.5'/></svg>") center / contain no-repeat;
}

/* === 链接样式 === */
a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}
