/**
 * 乙梵装饰 - 装修公司管理系统
 * 全局样式 - 极简白色主题 + uiverse.io风格组件
 */

/* ========== CSS变量 ========== */
:root {
    /* 主色调 - 白色为主，黑色辅助 */
    --primary: #212121;
    --primary-light: #424242;
    --primary-dark: #121212;
    --accent: #212121;
    
    /* 语义色 - 现代感 */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* 背景层级 - 白色系 */
    --bg-base: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --bg-hover: #e9ecef;
    --bg-active: #dee2e6;
    --bg-dark: #212121;
    
    /* 文字层级 */
    --text-primary: #212121;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --text-muted: #d1d5db;
    --text-white: #ffffff;
    
    /* 边框 */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --border-dark: #d1d5db;
    
    /* 阴影 - 柔和现代 */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* 间距 */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    
    /* 字体 */
    --font-xs: 11px;
    --font-sm: 12px;
    --font-base: 14px;
    --font-md: 15px;
    --font-lg: 16px;
    --font-xl: 18px;
    --font-2xl: 20px;
    --font-3xl: 24px;
    --font-4xl: 30px;
    
    /* 布局 */
    --header-height: 60px;
    --tab-height: 56px;
    --sidebar-width: 260px;
    
    /* 动画 */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
}

/* ========== 自定义字体 ========== */
@font-face {
    font-family: 'ZT';
    src: local('ZT'), url('/zt.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: fallback;
}

/* ========== 重置样式 ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'ZT', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: var(--font-base);
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-base);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

img {
    max-width: 100%;
    display: block;
}

/* 图片懒加载 */
img[data-src] {
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

img.loaded {
    opacity: 1;
}

/* 图片加载占位 */
.img-placeholder {
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-placeholder::before {
    content: '';
    width: 32px;
    height: 32px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: loader-spin 0.8s linear infinite;
}

/* 背景图懒加载 */
.lazy-bg {
    background-color: var(--bg-tertiary);
    background-size: cover;
    background-position: center;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.lazy-bg:not(.loaded) {
    opacity: 0.7;
}

.lazy-bg.loaded {
    opacity: 1;
}

/* ========== 滚动条 - 极简风格 ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-dark);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* ========== 布局容器 ========== */
.app-container {
    min-height: 100vh;
    background: var(--bg-secondary);
}

.main-content {
    min-height: 100vh;
    padding-bottom: var(--tab-height);
}

.page-container {
    max-width: 100%;
}

.page-content {
    padding: var(--space-4);
    padding-top: var(--space-3);
}

/* ========== 页面头部 - 极简风格 ========== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 var(--space-4);
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-header h1 {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* ========== 底部导航 - 现代极简 ========== */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--tab-height);
    background: var(--bg-base);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 var(--space-2);
    z-index: 1000;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    padding: var(--space-2) 0;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out);
    position: relative;
}

.tab-item svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
    transition: transform var(--duration-fast) var(--ease-bounce);
}

.tab-item span {
    font-size: var(--font-xs);
    font-weight: 500;
}

.tab-item.active {
    color: var(--primary);
}

.tab-item.active svg {
    transform: scale(1.1);
}

/* 底部导航指示器 */
.tab-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: transform var(--duration-normal) var(--ease-bounce);
}

.tab-item.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* ========== 浮动底部导航 - 胶囊式 ========== */
.floating-nav {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #212121;
    border-radius: 28px;
    padding: 8px;
    display: flex;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.floating-nav .nav-item {
    width: 56px;
    height: 48px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out);
}

.floating-nav .nav-item svg {
    width: 22px;
    height: 22px;
    stroke: rgba(255, 255, 255, 0.5);
    transition: all var(--duration-fast) var(--ease-out);
}

.floating-nav .nav-item span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.floating-nav .nav-item.active {
    background: rgba(255, 255, 255, 0.15);
}

.floating-nav .nav-item.active svg {
    stroke: #fff;
}

.floating-nav .nav-item.active span {
    color: #fff;
}

.floating-nav .nav-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
}

/* PC端隐藏浮动导航 */
@media (min-width: 768px) {
    .floating-nav {
        display: none;
    }
}

/* ========== 按钮组件 - uiverse.io风格 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    height: 44px;
    padding: 0 var(--space-5);
    font-size: var(--font-base);
    font-weight: 500;
    border-radius: var(--radius-lg);
    transition: all var(--duration-fast) var(--ease-out);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* 主要按钮 - 黑色填充 */
.btn-primary {
    background: var(--primary);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* 次要按钮 - 边框 */
.btn-secondary {
    background: var(--bg-base);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--border-dark);
}

.btn-secondary:active {
    background: var(--bg-tertiary);
}

/* 幽灵按钮 */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* 危险按钮 */
.btn-danger {
    background: var(--danger);
    color: var(--text-white);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* 警告按钮 */
.btn-warning {
    background: var(--warning);
    color: var(--text-white);
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-1px);
}

/* 成功按钮 */
.btn-success {
    background: var(--success);
    color: var(--text-white);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* 操作按钮 - 小型按钮 */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-sm);
    font-weight: 500;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.action-btn.primary {
    background: var(--primary);
    color: var(--text-white);
}

.action-btn.primary:hover {
    background: var(--primary-light);
}

.action-btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.action-btn.secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-dark);
}

.action-btn.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.action-btn.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.action-btn.success:hover {
    background: rgba(16, 185, 129, 0.2);
}

.action-btn.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.action-btn.warning:hover {
    background: rgba(245, 158, 11, 0.2);
}

/* 小按钮 */
.btn-sm {
    height: 34px;
    padding: 0 var(--space-3);
    font-size: var(--font-sm);
    border-radius: var(--radius-md);
}

.btn-sm svg {
    width: 16px;
    height: 16px;
}

/* 图标按钮 */
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn-icon.btn-sm {
    width: 32px;
    height: 32px;
}

/* 按钮加载状态 */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* ========== 表单组件 ========== */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.form-input {
    width: 100%;
    height: 44px;
    padding: 0 var(--space-4);
    background: var(--bg-base);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: var(--font-base);
    color: var(--text-primary);
    transition: all var(--duration-fast) var(--ease-out);
}

.form-input:hover {
    border-color: var(--border-dark);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 33, 33, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* 数字输入框去除箭头 */
.form-input[type="number"]::-webkit-outer-spin-button,
.form-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* 日期输入框样式 */
.form-input[type="date"] {
    cursor: pointer;
}

.form-input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--duration-fast);
}

.form-input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* 文本域 */
.form-textarea {
    width: 100%;
    min-height: 120px;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-base);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: var(--font-base);
    color: var(--text-primary);
    resize: vertical;
    line-height: 1.6;
    font-family: inherit;
    transition: all var(--duration-fast) var(--ease-out);
}

.form-textarea:hover {
    border-color: var(--border-dark);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 33, 33, 0.1);
}

.form-textarea::placeholder {
    color: var(--text-muted);
}

/* 开关组件 */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .switch-slider,
.switch-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out);
}

.switch .switch-slider::before,
.switch-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all var(--duration-fast) var(--ease-out);
}

.switch input:checked + .switch-slider,
.switch input:checked + span {
    background: var(--primary);
}

.switch input:checked + .switch-slider::before,
.switch input:checked + span::before {
    transform: translateX(22px);
}

.switch input:focus + .switch-slider,
.switch input:focus + span {
    box-shadow: 0 0 0 3px rgba(33, 33, 33, 0.1);
}

/* 复选框 */
.checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
}

.checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.checkbox span {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

/* 选择框 - uiverse.io风格 */
.form-select {
    width: 100%;
    height: 44px;
    padding: 0 var(--space-10) 0 var(--space-4);
    background: var(--bg-base);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: var(--font-base);
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    transition: all var(--duration-fast) var(--ease-out);
}

.form-select:hover {
    border-color: var(--border-dark);
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 33, 33, 0.1);
}

.form-select option {
    padding: var(--space-3);
    background: var(--bg-base);
    color: var(--text-primary);
}

/* 文件上传输入框 */
input[type="file"] {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    font-size: var(--font-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

input[type="file"]:hover {
    border-color: var(--primary);
    background: var(--bg-tertiary);
}

input[type="file"]:focus {
    outline: none;
    border-color: var(--primary);
}

input[type="file"]::file-selector-button {
    padding: var(--space-2) var(--space-4);
    margin-right: var(--space-3);
    background: var(--primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

input[type="file"]::file-selector-button:hover {
    background: var(--primary-light);
}

/* ========== 卡片组件 - uiverse.io风格 ========== */
.card {
    background: var(--bg-base);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border-light);
}

.card-header h3 {
    font-size: var(--font-md);
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: var(--space-5);
}

.card-footer {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

/* ========== 列表卡片 - 现代风格 ========== */
.list-card {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-3);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
}

.list-card:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.list-card:active {
    transform: translateY(0);
}

.list-card-image {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-tertiary);
    transition: opacity var(--duration-normal) var(--ease-out);
}

.list-card-image[data-src] {
    opacity: 0;
}

.list-card-image.loaded {
    opacity: 1;
}

.list-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-card-title {
    font-size: var(--font-md);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-card-info {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.list-card-footer {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* ========== 统计卡片 - 极简数字展示 ========== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.stat-card {
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-5) var(--space-4);
    text-align: center;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
}

.stat-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-number {
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========== 标签组件 ========== */
.tag {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 var(--space-3);
    font-size: var(--font-xs);
    font-weight: 500;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.tag-default {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.tag-primary {
    background: var(--primary);
    color: var(--text-white);
}

.tag-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.tag-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.tag-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.tag-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

/* ========== 搜索框 - 现代风格 ========== */
.search-bar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    height: 44px;
    padding: 0 var(--space-4);
    background: var(--bg-base);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
    transition: all var(--duration-fast) var(--ease-out);
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 33, 33, 0.1);
}

.search-bar svg {
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.search-bar input {
    flex: 1;
    background: none;
    font-size: var(--font-base);
    color: var(--text-primary);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

/* ========== 筛选标签 ========== */
.filter-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    overflow-x: auto;
    padding-bottom: var(--space-1);
    -webkit-overflow-scrolling: touch;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    flex-shrink: 0;
    height: 32px;
    padding: 0 var(--space-4);
    background: var(--bg-base);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    display: flex;
    align-items: center;
}

.filter-tab:hover {
    border-color: var(--border-dark);
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
}

/* ========== 进度节点 ========== */
.progress-nodes {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.progress-node {
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all var(--duration-fast) var(--ease-out);
}

.progress-node.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
    font-weight: 500;
}

.progress-node.passed {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}

/* ========== 时间线 ========== */
.timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-out);
}

.timeline-item:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-sm);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2);
}

.timeline-item-time {
    font-size: var(--font-sm);
    color: var(--text-tertiary);
}

.timeline-item-node {
    font-size: var(--font-xs);
    padding: var(--space-1) var(--space-2);
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.timeline-item-content {
    font-size: var(--font-base);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ========== 弹框组件 ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    padding: var(--space-4);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 100%;
    max-width: 420px;
    max-height: 85vh;
    background: var(--bg-base);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: transform var(--duration-normal) var(--ease-bounce);
    box-shadow: var(--shadow-2xl);
    display: flex;
    flex-direction: column;
}

.modal-overlay.show .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-out);
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--space-5);
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-5);
    padding-top: var(--space-4);
    background: var(--bg-base);
}

.modal-footer .btn {
    width: 100%;
    height: 48px;
    font-size: var(--font-md);
}

/* ========== Loading组件 - uiverse.io风格 ========== */

/* 全屏加载遮罩 */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Loader 1 - 三点弹跳 */
.loader-dots {
    display: flex;
    gap: 6px;
}

.loader-dots span {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: loader-bounce 1.4s ease-in-out infinite both;
}

.loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.loader-dots span:nth-child(2) { animation-delay: -0.16s; }
.loader-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes loader-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Loader 2 - 旋转圆环 */
.loader-ring {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: loader-spin 0.8s linear infinite;
}

@keyframes loader-spin {
    to { transform: rotate(360deg); }
}

/* Loader 3 - 脉冲 */
.loader-pulse {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    animation: loader-pulse 1.2s ease-in-out infinite;
}

@keyframes loader-pulse {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

/* Loader 4 - 条形进度 */
.loader-bar {
    width: 120px;
    height: 4px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
    animation: loader-bar-slide 1s ease-in-out infinite;
}

@keyframes loader-bar-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* Loader 5 - 方块翻转 */
.loader-flip {
    width: 32px;
    height: 32px;
    background: var(--primary);
    animation: loader-flip 1.2s ease-in-out infinite;
}

@keyframes loader-flip {
    0% { transform: perspective(120px) rotateX(0deg) rotateY(0deg); }
    50% { transform: perspective(120px) rotateX(-180deg) rotateY(0deg); }
    100% { transform: perspective(120px) rotateX(-180deg) rotateY(-180deg); }
}

/* 加载文字 */
.loading-text {
    margin-top: var(--space-4);
    font-size: var(--font-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

/* 进度弹框 */
.progress-modal {
    width: 280px;
    padding: var(--space-6);
    background: var(--bg-base);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    text-align: center;
}

.progress-modal .loader-ring {
    margin: 0 auto var(--space-4);
}

.progress-modal-title {
    font-size: var(--font-md);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.progress-modal-desc {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

/* 进度条弹框 */
.progress-bar-modal {
    width: 300px;
    padding: var(--space-5);
    background: var(--bg-base);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
}

.progress-bar-title {
    font-size: var(--font-md);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    text-align: center;
}

.progress-bar-track {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-3);
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: width var(--duration-normal) var(--ease-out);
}

.progress-bar-percent {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* ========== Toast提示 ========== */
.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4000;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--primary);
    color: var(--text-white);
    border-radius: var(--radius-xl);
    font-size: var(--font-base);
    font-weight: 500;
    opacity: 0;
    transform: scale(0.9);
    transition: all var(--duration-normal) var(--ease-bounce);
    box-shadow: var(--shadow-xl);
}

.toast.show {
    opacity: 1;
    transform: scale(1);
}

/* ========== 空状态 ========== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-12) var(--space-6);
    text-align: center;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.empty-state h3 {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    font-weight: 500;
}

.empty-state p {
    font-size: var(--font-sm);
    color: var(--text-tertiary);
    margin-bottom: var(--space-5);
}

/* ========== 图片网格 ========== */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
}

.image-grid-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-tertiary);
    cursor: pointer;
}

.image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.image-grid-item:hover img {
    transform: scale(1.05);
}

.image-grid-item .delete-btn {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.image-grid-item:hover .delete-btn {
    opacity: 1;
}

/* 图片上传 */
.image-upload {
    aspect-ratio: 1;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.image-upload:hover {
    border-color: var(--primary);
    background: var(--bg-secondary);
}

.image-upload svg {
    width: 24px;
    height: 24px;
    color: var(--text-tertiary);
    margin-bottom: var(--space-2);
}

.image-upload span {
    font-size: var(--font-xs);
    color: var(--text-tertiary);
}

/* ========== 图片预览 ========== */
.image-preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.image-preview-overlay.show {
    opacity: 1;
    visibility: visible;
}

.image-preview-close {
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.image-preview-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.image-preview-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

/* ========== PC端侧边栏 ========== */
@media (min-width: 768px) {
    .app-container {
        display: flex;
    }
    
    .sidebar {
        width: var(--sidebar-width);
        height: 100vh;
        position: fixed;
        left: 0;
        top: 0;
        background: var(--bg-base);
        border-right: 1px solid var(--border-light);
        padding: var(--space-5);
        z-index: 100;
        display: flex;
        flex-direction: column;
    }
    
    .sidebar-logo {
        font-size: var(--font-xl);
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: var(--space-6);
        padding-bottom: var(--space-5);
        border-bottom: 1px solid var(--border-light);
        letter-spacing: -0.02em;
    }
    
    .sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: var(--space-1);
        flex: 1;
    }
    
    .sidebar-item {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        padding: var(--space-3) var(--space-4);
        border-radius: var(--radius-lg);
        color: var(--text-secondary);
        text-decoration: none;
        font-size: var(--font-base);
        font-weight: 500;
        transition: all var(--duration-fast) var(--ease-out);
    }
    
    .sidebar-item:hover {
        background: var(--bg-secondary);
        color: var(--text-primary);
    }
    
    .sidebar-item.active {
        background: var(--primary);
        color: var(--text-white);
    }
    
    .sidebar-item svg {
        width: 20px;
        height: 20px;
    }
    
    .main-content {
        margin-left: var(--sidebar-width);
        padding-bottom: 0;
    }
    
    .tab-bar {
        display: none;
    }
    
    .page-container {
        padding: var(--space-6);
        max-width: 1200px;
    }
}

/* ========== 移动端隐藏侧边栏 ========== */
@media (max-width: 767px) {
    .sidebar {
        display: none;
    }
}

/* ========== 登录页样式 ========== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-base) 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: var(--space-8);
    background: var(--bg-base);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.login-logo {
    text-align: center;
    margin-bottom: var(--space-8);
}

.login-logo h1 {
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.login-logo p {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-top: var(--space-2);
}

/* ========== 详情页头部 ========== */
.detail-header {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    margin: calc(var(--space-4) * -1);
    margin-bottom: var(--space-4);
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
    overflow: hidden;
}

.detail-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
}

.detail-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-5);
    color: white;
    z-index: 1;
}

.detail-header-title {
    font-size: var(--font-xl);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.detail-header-info {
    font-size: var(--font-sm);
    opacity: 0.9;
}

.back-btn, .more-btn {
    position: absolute;
    top: var(--space-4);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 10;
    transition: all var(--duration-fast) var(--ease-out);
    box-shadow: var(--shadow-md);
}

.back-btn {
    left: var(--space-4);
}

.more-btn {
    right: var(--space-4);
}

.back-btn:hover, .more-btn:hover {
    transform: scale(1.05);
}

/* ========== 财务网格 ========== */
.finance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

.finance-item {
    text-align: center;
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.finance-item:hover {
    background: var(--bg-tertiary);
}

.finance-value {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.finance-label {
    font-size: var(--font-xs);
    color: var(--text-secondary);
    margin-top: var(--space-1);
}

/* ========== 个人中心 ========== */
.profile-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.profile-role {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

/* 设置项 */
.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border-light);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-label {
    font-size: var(--font-base);
    color: var(--text-primary);
}

.settings-value {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

/* ========== 下拉菜单 ========== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--duration-fast) var(--ease-out);
    z-index: 100;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out);
}

.dropdown-item:hover {
    background: var(--bg-secondary);
}

.dropdown-item.danger {
    color: var(--danger);
}

.dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ========== 骨架屏 ========== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 14px;
    margin-bottom: var(--space-2);
}

.skeleton-text:last-child {
    width: 60%;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
}

.skeleton-image {
    aspect-ratio: 16/9;
}

/* ========== 动画 ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fadeIn {
    animation: fadeIn var(--duration-normal) var(--ease-out);
}

.animate-slideUp {
    animation: slideUp var(--duration-normal) var(--ease-out);
}

.animate-scaleIn {
    animation: scaleIn var(--duration-normal) var(--ease-bounce);
}

/* ========== 底部弹出面板 ========== */
.bottom-sheet {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
}

.bottom-sheet.show {
    pointer-events: auto;
}

.bottom-sheet-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.bottom-sheet.show .bottom-sheet-overlay {
    opacity: 1;
}

.bottom-sheet-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-base);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    padding-bottom: env(safe-area-inset-bottom, 20px);
    transform: translateY(100%);
    transition: transform var(--duration-normal) var(--ease-out);
}

.bottom-sheet.show .bottom-sheet-content {
    transform: translateY(0);
}

.bottom-sheet-handle {
    width: 36px;
    height: 4px;
    background: var(--border-dark);
    border-radius: var(--radius-full);
    margin: var(--space-3) auto;
}

.bottom-sheet-header {
    padding: var(--space-3) var(--space-5);
    border-bottom: 1px solid var(--border-light);
}

.bottom-sheet-title {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.bottom-sheet-body {
    padding: var(--space-4);
    max-height: 60vh;
    overflow-y: auto;
}

.bottom-sheet-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bottom-sheet-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.bottom-sheet-item:hover {
    background: var(--bg-tertiary);
}

.bottom-sheet-item:active {
    transform: scale(0.98);
}

.bottom-sheet-item.danger {
    color: var(--danger);
}

.bottom-sheet-item.danger .bottom-sheet-icon svg {
    stroke: var(--danger);
}

.bottom-sheet-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 12px;
}

.bottom-sheet-item.danger .bottom-sheet-icon {
    background: rgba(239, 68, 68, 0.1);
}

.bottom-sheet-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-primary);
}

.bottom-sheet-text {
    font-size: 15px;
    font-weight: 500;
    color: inherit;
}

.bottom-sheet-cancel {
    padding: 16px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-light);
    cursor: pointer;
    margin-top: 8px;
}

.bottom-sheet-cancel:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

/* ========== 操作菜单 ========== */
.action-menu {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.action-menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--radius-xl);
    font-size: var(--font-md);
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    text-align: left;
    width: 100%;
}

.action-menu-item:hover {
    background: var(--bg-tertiary);
}

.action-menu-item:active {
    transform: scale(0.98);
}

.action-menu-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.action-menu-item.warning {
    color: var(--warning);
}

.action-menu-item.warning svg {
    stroke: var(--warning);
}

.action-menu-item.success {
    color: var(--success);
}

.action-menu-item.success svg {
    stroke: var(--success);
}

.action-menu-item.danger {
    color: var(--danger);
}

.action-menu-item.danger svg {
    stroke: var(--danger);
}

.action-menu-item.cancel {
    background: transparent;
    color: var(--text-secondary);
    justify-content: center;
    margin-top: var(--space-2);
}

.action-menu-item.cancel:hover {
    background: var(--bg-secondary);
}

/* ========== 确认弹框样式 ========== */
.confirm-modal {
    padding: var(--space-6);
    text-align: center;
}

.confirm-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
}

.confirm-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.confirm-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.confirm-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.confirm-title {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.confirm-desc {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-5);
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    gap: var(--space-3);
}

.confirm-actions .btn {
    flex: 1;
}

/* ========== 高端交互动画系统 ========== */

/* 触摸反馈 - 按压缩放 */
.touch-feedback {
    transition: transform 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-tap-highlight-color: transparent;
}
.touch-feedback:active {
    transform: scale(0.96);
}

/* 弹性按压效果 */
.press-bounce {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
}
.press-bounce:active {
    transform: scale(0.92);
}

/* 涟漪效果容器 */
.ripple-container {
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}
.ripple-container .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: ripple-effect 0.6s cubic-bezier(0, 0, 0.2, 1);
    pointer-events: none;
}
.ripple-container.dark .ripple {
    background: rgba(0, 0, 0, 0.12);
}
@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 卡片悬浮/点击效果 - 移动端优化 */
.card-interactive {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}
.card-interactive:active {
    transform: scale(0.97) translateY(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 列表项滑入动画 */
.slide-in-item {
    opacity: 0;
    transform: translateY(20px);
    animation: slide-in-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slide-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 渐入动画 */
.fade-in {
    opacity: 0;
    animation: fade-in 0.3s ease forwards;
}
@keyframes fade-in {
    to { opacity: 1; }
}

/* 缩放渐入 */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    animation: scale-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes scale-in {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 从底部弹出 */
.pop-up {
    opacity: 0;
    transform: translateY(100%);
    animation: pop-up 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes pop-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 脉冲效果 */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 呼吸光效 */
.glow-pulse {
    animation: glow-pulse 2s ease-in-out infinite;
}
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 5px rgba(33, 33, 33, 0.2); }
    50% { box-shadow: 0 0 20px rgba(33, 33, 33, 0.4); }
}

/* 摇晃提示 */
.shake {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-3px); }
    40%, 60% { transform: translateX(3px); }
}

/* 成功打勾动画 */
.check-animation {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: check-draw 0.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes check-draw {
    to { stroke-dashoffset: 0; }
}

/* 加载旋转 */
.spin {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 骨架屏闪烁 */
.skeleton-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 底部导航项动画 */
.floating-nav .nav-item {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
}
.floating-nav .nav-item:active {
    transform: scale(0.85);
}
.floating-nav .nav-item.active svg {
    animation: nav-bounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes nav-bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 浮动按钮动画 */
.fab-btn {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.fab-btn:active {
    transform: scale(0.85) rotate(-10deg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 图片加载动画 */
.img-loading {
    background: linear-gradient(90deg, #f5f5f5 25%, #ebebeb 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
.img-loaded {
    animation: img-fade-in 0.4s ease forwards;
}
@keyframes img-fade-in {
    from { opacity: 0; transform: scale(1.02); }
    to { opacity: 1; transform: scale(1); }
}

/* 页面切换动画 */
.page-enter {
    animation: page-enter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes page-enter {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.page-exit {
    animation: page-exit 0.25s ease forwards;
}
@keyframes page-exit {
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* 弹框动画增强 */
.modal-overlay {
    animation: modal-bg-in 0.25s ease forwards;
}
@keyframes modal-bg-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    animation: modal-content-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes modal-content-in {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 底部抽屉动画 */
.bottom-sheet {
    animation: sheet-slide-up 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes sheet-slide-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Toast动画 */
.toast {
    animation: toast-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.toast.hiding {
    animation: toast-out 0.25s ease forwards;
}
@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

/* 数字跳动 */
.number-pop {
    animation: number-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes number-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* 进度条动画 */
.progress-animate {
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 开关切换动画 */
.toggle-switch {
    transition: background-color 0.25s ease;
}
.toggle-switch::after {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 标签切换动画 */
.filter-tab, .module-tab {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.filter-tab:active, .module-tab:active {
    transform: scale(0.95);
}
/* 确保active状态的模块标签点击时保持样式 */
.module-tab.active,
.module-tab.active:active,
.module-tab.active:focus,
.filter-tab.active,
.filter-tab.active:active,
.filter-tab.active:focus {
    background: #212121 !important;
    color: #fff !important;
}
/* 确保模块标签不受按钮波纹影响 */
.module-tab::after, .filter-tab::after {
    display: none !important;
}

/* 搜索框聚焦动画 */
.search-box, .search-bar {
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.search-box:focus-within, .search-bar:focus-within {
    box-shadow: 0 0 0 3px rgba(33, 33, 33, 0.1);
}

/* 输入框聚焦动画 */
.form-input, .form-textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 33, 33, 0.08);
}

/* 按钮点击波纹 */
.btn {
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.btn:active::after {
    opacity: 1;
    transform: scale(2.5);
    transition: transform 0s, opacity 0s;
}

/* 图片预览动画 */
.image-preview-overlay {
    animation: preview-bg-in 0.3s ease forwards;
}
@keyframes preview-bg-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.image-preview-overlay img {
    animation: preview-img-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes preview-img-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 列表项交错动画 */
.stagger-item {
    opacity: 0;
    transform: translateY(15px);
    animation: stagger-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.2s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }
.stagger-item:nth-child(6) { animation-delay: 0.3s; }
.stagger-item:nth-child(7) { animation-delay: 0.35s; }
.stagger-item:nth-child(8) { animation-delay: 0.4s; }
@keyframes stagger-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 图片预览通用样式 - 骨架屏加载效果 */
.preview-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: img-skeleton 1.5s ease-in-out infinite;
}
.preview-image.loaded {
    background: transparent;
    animation: none;
}
@keyframes img-skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 禁用所有hover效果（移动端） */
@media (hover: none) and (pointer: coarse) {
    .case-card:hover img,
    .card-interactive:hover,
    .action-menu-item:hover,
    .filter-tab:hover,
    .module-tab:hover,
    .btn:hover {
        transform: none !important;
        box-shadow: inherit !important;
        background-color: inherit !important;
    }
}
