* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: rgba(20, 20, 30, 0.7);
    --bg-card: rgba(30, 30, 45, 0.6);
    --bg-hover: rgba(45, 45, 65, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #8892a0;
    --border-color: rgba(139, 92, 246, 0.2);
    
    /* 创意渐变色系 */
    --accent-blue: #00d4ff;
    --accent-green: #00ff88;
    --accent-yellow: #ffd700;
    --accent-red: #ff3366;
    --accent-purple: #b829dd;
    --accent-cyan: #00f5ff;
    --accent-orange: #ff6b35;
    --accent-pink: #ff0080;
    
    /* 分组品牌色 */
    --group-personal: #00d4ff;
    --group-video: #ff3366;
    --group-design: #b829dd;
    --group-planning: #00ff88;
    --group-misc: #ffd700;
    --group-recurring: #00f5ff;
    
    /* 玻璃拟态 */
    --glass-bg: rgba(20, 20, 35, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    
    /* 光效 */
    --glow-blue: 0 0 30px rgba(0, 212, 255, 0.3);
    --glow-purple: 0 0 30px rgba(184, 41, 221, 0.3);
    --glow-pink: 0 0 30px rgba(255, 0, 128, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(184, 41, 221, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 0, 128, 0.05) 0%, transparent 70%),
        linear-gradient(180deg, #0a0a0f 0%, #0f0f1a 50%, #0a0a12 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 动态网格背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* 浮动光晕装饰 */
body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(184, 41, 221, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* 顶部导航 - Glassmorphism */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: linear-gradient(180deg, rgba(20, 20, 35, 0.8) 0%, rgba(15, 15, 25, 0.6) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* 标题艺术字效果 */
.header h1 {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff 0%, #b829dd 50%, #ff0080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    position: relative;
}

.header h1::after {
    content: 'TASKFLOW';
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #00d4ff 0%, #b829dd 50%, #ff0080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Brand Header - Logo + Divider + Bilingual Title */
.brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.brand-divider {
    width: 1px;
    height: 28px;
    background: var(--glass-border);
    opacity: 0.8;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    line-height: 1;
    text-transform: uppercase;
}

/* Header Quote - 顶部正能量语录 */
.header-quote {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 16px;
    margin-left: 16px;
    border-left: 1px solid var(--glass-border);
    max-width: 300px;
}

.quote-text {
    font-family: 'Caveat', 'Ma Shan Zheng', 'STXingkai', 'KaiTi', cursive;
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.4;
    opacity: 0.9;
}

.quote-author {
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.7;
}

.date-display {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}

.header-center {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: center;
}

.milestone-countdown {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 8px 16px;
    animation: pulse 2s infinite;
}

.milestone-countdown:empty {
    display: none;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.milestone-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.milestone-item .days {
    font-weight: 700;
    color: var(--accent-red);
}

.milestone-item .days.urgent {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 4px 4px 4px 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.search-box:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 10px 14px;
    outline: none;
    width: 240px;
    font-size: 15px;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.search-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* 视图切换按钮（看板/甘特图共用） */
.view-toggle {
    display: flex;
    gap: 4px;
    background: rgba(15, 23, 42, 0.6);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.view-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.view-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.view-btn.active {
    background: linear-gradient(135deg, #00d4ff, #b829dd);
    color: white;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.add-task-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #b829dd 50%, #ff0080 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(184, 41, 221, 0.4);
    position: relative;
    overflow: hidden;
}

.add-task-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.add-task-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(184, 41, 221, 0.5);
    animation: gradientShift 3s ease infinite;
}

.add-task-btn:hover::before {
    left: 100%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 主布局 */
.main-layout {
    display: flex;
    gap: 20px;
    padding: 20px;
    height: calc(100vh - 76px);
}

/* 左侧分组区域 */
.groups-section {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.group-card {
    background: linear-gradient(180deg, rgba(30, 30, 45, 0.7) 0%, rgba(20, 20, 30, 0.5) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    min-height: 560px;
    max-height: 1120px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.group-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.group-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    border-bottom: 1px solid var(--glass-border);
    cursor: pointer;
    user-select: none;
    position: relative;
}

.group-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    opacity: 0.5;
}

.group-header:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.05) 100%);
}

.group-toggle {
    font-size: 11px;
    color: var(--text-secondary);
    width: 16px;
    text-align: center;
    transition: transform 0.2s;
}

.group-collapsed-hint {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.group-icon {
    font-size: 20px;
}

.group-name {
    font-weight: 600;
    font-size: 16px;
    flex: 1;
}

.task-count {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(0, 212, 255, 0.1));
    color: var(--accent-cyan);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.group-body {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    min-height: 80px;
}

/* 任务卡片 - Glassmorphism */
.task-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    cursor: grab;
    border-left: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.task-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    transform: translateX(6px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.task-card:hover::before {
    opacity: 1;
}

.task-card.dragging {
    opacity: 0.4;
    cursor: grabbing;
}

.task-card[data-group="personal"] { 
    border-left-color: var(--group-personal); 
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.1);
}
.task-card[data-group="video"] { 
    border-left-color: var(--group-video); 
    box-shadow: 0 2px 8px rgba(255, 51, 102, 0.1);
}
.task-card[data-group="design"] { 
    border-left-color: var(--group-design); 
    box-shadow: 0 2px 8px rgba(184, 41, 221, 0.1);
}
.task-card[data-group="planning"] { 
    border-left-color: var(--group-planning); 
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.1);
}
.task-card[data-group="misc"] { 
    border-left-color: var(--group-misc); 
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.1);
}
.task-card[data-group="recurring"] { 
    border-left-color: var(--group-recurring); 
    box-shadow: 0 2px 8px rgba(0, 245, 255, 0.1);
}

.task-main {
    flex: 1;
    min-width: 0;
}

.task-drag-handle {
    position: absolute;
    left: 6px;
    top: 14px;
    color: var(--text-secondary);
    font-size: 11px;
    cursor: grab;
    opacity: 0;
    transition: opacity 0.2s;
}

.task-card:hover .task-drag-handle {
    opacity: 0.5;
}

.task-content {
    padding-left: 14px;
    flex: 1;
    min-width: 0;
}

.task-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.task-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.task-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: 500;
    white-space: nowrap;
}

/* 状态徽章颜色 */
.task-badge.status-new { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }
.task-badge.status-assigned { background: rgba(96, 165, 250, 0.2); color: #60a5fa; }
.task-badge.status-progress { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.task-badge.status-delivered { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.task-badge.status-accepted { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.task-badge.status-done { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.task-badge.status-archived { background: rgba(100, 116, 139, 0.2); color: #64748b; }

/* 优先级徽章颜色 */
.task-badge.priority-low { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.task-badge.priority-medium { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.task-badge.priority-high { background: rgba(248, 113, 113, 0.15); color: #f87171; }
.task-badge.priority-urgent { background: rgba(239, 68, 68, 0.25); color: #fca5a5; }

/* 状态下拉选择器 */
.task-badge-select {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath fill='%23ffffff' d='M0 2l4 4 4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    padding-right: 18px;
    transition: all 0.2s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.task-badge-select:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 状态下拉选择器 - 高对比度背景 */
.task-badge-select.status-select:has(option[value="立项"]:checked) { background: #475569; color: #f1f5f9; }
.task-badge-select.status-select:has(option[value="已分工"]:checked) { background: #2563eb; color: #ffffff; }
.task-badge-select.status-select:has(option[value="执行中"]:checked) { background: #d97706; color: #ffffff; }
.task-badge-select.status-select:has(option[value="已交付"]:checked) { background: #7c3aed; color: #ffffff; }
.task-badge-select.status-select:has(option[value="已验收"]:checked) { background: #0891b2; color: #ffffff; }
.task-badge-select.status-select:has(option[value="已完成"]:checked) { background: #059669; color: #ffffff; }
.task-badge-select.status-select:has(option[value="已归档"]:checked) { background: #334155; color: #cbd5e1; }

/* 优先级下拉选择器 - 高对比度背景 */
.task-badge-select.priority-select:has(option[value="low"]:checked) { background: #2563eb; color: #ffffff; }
.task-badge-select.priority-select:has(option[value="medium"]:checked) { background: #d97706; color: #ffffff; }
.task-badge-select.priority-select:has(option[value="high"]:checked) { background: #dc2626; color: #ffffff; }
.task-badge-select.priority-select:has(option[value="urgent"]:checked) { background: #991b1b; color: #ffffff; }

.task-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* 子任务内联显示 */
.task-subtasks-inline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
    max-width: 200px;
    padding-left: 12px;
    border-left: 1px solid var(--glass-border);
}

.subtask-inline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.subtask-inline-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s;
    flex: 1;
    min-width: 0;
}

.subtask-inline-item:hover {
    color: var(--text-primary);
}

.subtask-inline-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-blue);
    cursor: pointer;
    flex-shrink: 0;
}

.subtask-inline-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subtask-inline-item span.completed {
    text-decoration: line-through;
    opacity: 0.5;
}

.subtask-due-date {
    font-size: 10px;
    color: var(--text-secondary);
    font-family: 'SF Mono', Monaco, monospace;
    white-space: nowrap;
    flex-shrink: 0;
}

.subtask-due-date.overdue {
    color: var(--accent-red);
    font-weight: 500;
}

.task-status-select,
.task-priority-select {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    outline: none;
    transition: all 0.2s;
}

.task-status-select:hover,
.task-priority-select:hover {
    background: rgba(255, 255, 255, 0.15);
}

.task-status-select option,
.task-priority-select option {
    background: rgba(30, 41, 59, 1);
    color: var(--text-primary);
    padding: 6px;
}

/* 状态颜色 */
.task-status-select.status-new { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }
.task-status-select.status-assigned { background: rgba(96, 165, 250, 0.2); color: #60a5fa; }
.task-status-select.status-progress { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.task-status-select.status-delivered { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.task-status-select.status-accepted { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.task-status-select.status-done { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.task-status-select.status-archived { background: rgba(100, 116, 139, 0.2); color: #64748b; }

/* 优先级颜色 */
.task-priority-select.low { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.task-priority-select.medium { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.task-priority-select.high { background: rgba(248, 113, 113, 0.15); color: #f87171; }
.task-priority-select.urgent { background: rgba(239, 68, 68, 0.25); color: #fca5a5; }

.task-date {
    font-size: 11px;
    color: var(--text-secondary);
}

.task-date.overdue {
    color: var(--accent-red);
    font-weight: 500;
}

.task-subtasks-indicator {
    font-size: 11px;
    color: var(--text-secondary);
}

/* 侧边栏任务卡片样式（今日待办、需跟踪事项） */
.sidebar-task-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 9px 12px;
    margin-bottom: 8px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.25s;
    display: flex;
    gap: 10px;
}

.sidebar-task-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.sidebar-task-card[data-group="personal"] { border-left-color: var(--group-personal); }
.sidebar-task-card[data-group="video"] { border-left-color: var(--group-video); }
.sidebar-task-card[data-group="design"] { border-left-color: var(--group-design); }
.sidebar-task-card[data-group="planning"] { border-left-color: var(--group-planning); }
.sidebar-task-card[data-group="misc"] { border-left-color: var(--group-misc); }
.sidebar-task-card[data-group="recurring"] { border-left-color: var(--group-recurring); }

/* 侧边栏任务卡片内部布局 */
.sidebar-task-card .task-main {
    flex: 1;
    display: flex;
    gap: 8px;
}

.sidebar-task-card .task-content {
    flex: 1;
}

.sidebar-task-card .task-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
}

.sidebar-task-card .task-title {
    font-size: 13px;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-task-card .task-right {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.sidebar-task-card .task-time-range {
    font-size: 10px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.sidebar-task-card .task-time-range.overdue {
    color: var(--accent-red);
}

.sidebar-task-card .task-project {
    font-size: 10px;
    color: #a78bfa;
    margin-top: 2px;
}

/* 侧边栏任务卡片的下拉框样式 */
.sidebar-task-card .task-badge-select {
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 5px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* 侧边栏任务卡片状态下拉 - 高对比度 */
.sidebar-task-card .task-badge-select.status-select:has(option[value="立项"]:checked) { background: #475569; color: #f1f5f9; }
.sidebar-task-card .task-badge-select.status-select:has(option[value="已分工"]:checked) { background: #2563eb; color: #ffffff; }
.sidebar-task-card .task-badge-select.status-select:has(option[value="执行中"]:checked) { background: #d97706; color: #ffffff; }
.sidebar-task-card .task-badge-select.status-select:has(option[value="已交付"]:checked) { background: #7c3aed; color: #ffffff; }
.sidebar-task-card .task-badge-select.status-select:has(option[value="已验收"]:checked) { background: #0891b2; color: #ffffff; }
.sidebar-task-card .task-badge-select.status-select:has(option[value="已完成"]:checked) { background: #059669; color: #ffffff; }
.sidebar-task-card .task-badge-select.status-select:has(option[value="已归档"]:checked) { background: #334155; color: #cbd5e1; }

/* 侧边栏任务卡片优先级下拉 - 高对比度 */
.sidebar-task-card .task-badge-select.priority-select:has(option[value="low"]:checked) { background: #2563eb; color: #ffffff; }
.sidebar-task-card .task-badge-select.priority-select:has(option[value="medium"]:checked) { background: #d97706; color: #ffffff; }
.sidebar-task-card .task-badge-select.priority-select:has(option[value="high"]:checked) { background: #dc2626; color: #ffffff; }
.sidebar-task-card .task-badge-select.priority-select:has(option[value="urgent"]:checked) { background: #991b1b; color: #ffffff; }

/* 侧边栏任务卡片的负责人头像 */
.sidebar-task-card .task-assignees {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.sidebar-task-card .assignee-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    color: white;
}

.sidebar-task-card .assignee-more {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: var(--text-secondary);
}

.tracking-priority {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.tracking-priority.low { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.tracking-priority.medium { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.tracking-priority.high { background: rgba(248, 113, 113, 0.15); color: #f87171; }
.tracking-priority.urgent { background: rgba(239, 68, 68, 0.25); color: #fca5a5; }

.tracking-status {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.tracking-status.status-new { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }
.tracking-status.status-assigned { background: rgba(96, 165, 250, 0.2); color: #60a5fa; }
.tracking-status.status-progress { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.tracking-status.status-delivered { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.tracking-status.status-accepted { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.tracking-status.status-done { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.tracking-status.status-archived { background: rgba(100, 116, 139, 0.2); color: #64748b; }

/* 任务右侧时间显示 */
.task-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    min-width: 100px;
    padding-left: 12px;
    border-left: 1px solid var(--glass-border);
}

.task-time-range {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    font-family: 'SF Mono', Monaco, monospace;
}

.task-time-range.overdue {
    color: var(--accent-red);
    font-weight: 500;
}

/* 弹窗时间范围 */
.date-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-range input {
    flex: 1;
}

.date-range span {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 归档区域 */
.archived-section {
    border-top: 1px dashed var(--glass-border);
}

.archived-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.archived-toggle:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.toggle-icon {
    font-size: 10px;
    transition: transform 0.2s;
}

.archived-section.expanded .toggle-icon {
    transform: rotate(90deg);
}

.archived-list {
    display: none;
    padding: 0 12px 12px;
}

.archived-section.expanded .archived-list {
    display: block;
}

.archived-list .task-card {
    opacity: 0.5;
}

.add-mini-btn {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    padding: 10px;
    margin: 0 12px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.add-mini-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
}

/* 右侧边栏 - 加宽到800px */
.sidebar-section {
    width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 16px;
    flex-shrink: 0;
    align-content: start;
}

/* 需跟踪事项 - 第一行左侧 */
.tracking-card {
    grid-column: 1;
    grid-row: 1;
    min-height: 500px;
    max-height: 1000px;
}

/* 总体概览 - 第一行右侧 */
.overview-card {
    grid-column: 2;
    grid-row: 1;
    min-height: 500px;
    max-height: 1000px;
}

/* 日历 - 第二行整行 */
.calendar-card {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
}

.sidebar-card {
    background: linear-gradient(180deg, rgba(30, 30, 45, 0.7) 0%, rgba(20, 20, 30, 0.5) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.sidebar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.sidebar-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.overview-body {
    padding: 16px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.overview-item {
    text-align: center;
    padding: 16px 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.overview-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0.5;
}

.overview-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.overview-value {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(135deg, currentColor 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.overview-label {
    font-size: 12px;
    color: var(--text-secondary);
}



.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    opacity: 0.5;
}

.sidebar-icon {
    font-size: 18px;
}

.sidebar-title {
    font-weight: 600;
    font-size: 15px;
    flex: 1;
}

.sidebar-body {
    padding: 12px;
    overflow-y: auto;
    max-height: 170px;
}

.calendar-card .sidebar-body {
    max-height: none;
    flex: 1;
}

/* 需跟踪事项和总体概览的内容区域撑满高度，超出滚动 */
.tracking-card .sidebar-body,
.overview-card .sidebar-body {
    max-height: calc(500px - 56px - 24px); /* 卡片总高减去头部和padding */
    flex: 1;
    overflow-y: auto;
}

/* 自定义滚动条样式 */
.tracking-card .sidebar-body::-webkit-scrollbar {
    width: 4px;
}
.tracking-card .sidebar-body::-webkit-scrollbar-track {
    background: transparent;
}
.tracking-card .sidebar-body::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 2px;
}
.tracking-card .sidebar-body::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

/* 日历 */
.calendar-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.calendar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
}

.cal-nav {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.cal-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.cal-title {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
    text-align: center;
}

.cal-toggle {
    display: flex;
    gap: 4px;
}

.cal-mode {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.cal-mode:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.cal-mode.active {
    background: linear-gradient(135deg, #00d4ff, #b829dd);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

/* 周历视图 */
.week-view {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.week-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 16px;
    color: var(--text-secondary);
}

.week-header .today {
    color: var(--accent-cyan);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.week-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    flex: 1;
    gap: 8px;
    padding: 12px;
    align-items: stretch;
}

.week-day {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 14px;
    padding: 10px;
    min-height: 0;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}

.week-day:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.week-day.today {
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.15) 0%, rgba(184, 41, 221, 0.1) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.week-day-number {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    text-align: center;
}

.week-day.today .week-day-number {
    color: var(--accent-cyan);
    font-weight: 700;
}

.week-day-tasks {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow-y: auto;
}

.week-day-task {
    font-size: 13px;
    padding: 4px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.week-day-task.more {
    text-align: center;
    color: var(--text-secondary);
    background: transparent;
}

/* 月历视图 */
.month-view {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.month-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 16px;
    color: var(--text-secondary);
}

.month-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
    flex: 1;
    gap: 4px;
    padding: 12px;
}

.month-day {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 10px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 55px;
    border: 1px solid transparent;
}

.month-day:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.month-day.other-month {
    opacity: 0.3;
}

.month-day.today {
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.15) 0%, rgba(184, 41, 221, 0.1) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.month-day-number {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.month-day.today .month-day-number {
    color: var(--accent-cyan);
    font-weight: 700;
}

.month-day-tasks {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.month-day-task {
    font-size: 12px;
    padding: 3px 5px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.month-day-task.more {
    text-align: center;
    color: var(--text-secondary);
    background: transparent;
    font-size: 12px;
}

.month-day-task.more {
    text-align: center;
    color: var(--text-secondary);
    background: transparent;
    font-size: 12px;
}

/* 弹窗 - Glassmorphism */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: linear-gradient(180deg, rgba(30, 30, 45, 0.95) 0%, rgba(20, 20, 30, 0.9) 100%);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(139, 92, 246, 0.1),
        0 0 60px rgba(184, 41, 221, 0.1);
    position: relative;
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    opacity: 0.5;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    transition: all 0.3s;
}

.close-btn:hover {
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.2) 0%, rgba(255, 51, 102, 0.1) 100%);
    border-color: rgba(255, 51, 102, 0.3);
    color: var(--accent-red);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.form-row {
    margin-bottom: 18px;
}

.form-row label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    background: linear-gradient(180deg, rgba(30, 30, 45, 0.8) 0%, rgba(20, 20, 30, 0.6) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1), 0 0 20px rgba(0, 212, 255, 0.1);
}

.form-row select option {
    background: rgba(30, 41, 59, 1);
    color: var(--text-primary);
    padding: 8px;
}

/* 负责人多选下拉框样式 */
.form-row select.assignee-select {
    min-height: 120px;
    padding: 8px;
}

.form-row select.assignee-select option {
    padding: 6px 8px;
    border-radius: 4px;
    margin-bottom: 2px;
}

.form-row select.assignee-select option:checked {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
}

.form-row select.assignee-select option:hover {
    background: rgba(59, 130, 246, 0.3);
}



.form-row textarea {
    resize: vertical;
    min-height: 70px;
}

.priority-options {
    display: flex;
    gap: 12px;
}

.priority-radio {
    cursor: pointer;
}

.priority-radio input {
    display: none;
}

.priority-tag {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.priority-tag.low { background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 212, 255, 0.05) 100%); color: var(--accent-cyan); border: 1px solid rgba(0, 212, 255, 0.2); }
.priority-tag.medium { background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%); color: var(--accent-yellow); border: 1px solid rgba(255, 215, 0, 0.2); }
.priority-tag.high { background: linear-gradient(135deg, rgba(255, 51, 102, 0.15) 0%, rgba(255, 51, 102, 0.05) 100%); color: var(--accent-red); border: 1px solid rgba(255, 51, 102, 0.2); }
.priority-tag.urgent { background: linear-gradient(135deg, rgba(255, 0, 128, 0.2) 0%, rgba(255, 0, 128, 0.1) 100%); color: var(--accent-pink); border: 1px solid rgba(255, 0, 128, 0.3); }

.priority-radio input:checked + .priority-tag {
    border-color: currentColor;
    box-shadow: 0 0 20px currentColor;
    transform: translateY(-2px);
}

.subtasks-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 14px;
}

.subtasks-list {
    margin-bottom: 12px;
}

.subtask-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.subtask-item:last-child {
    border-bottom: none;
}

.subtask-item input[type="checkbox"] {
    width: auto;
    accent-color: var(--accent-blue);
    flex-shrink: 0;
}

.subtask-item span {
    flex: 1;
    font-size: 14px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subtask-item.completed span {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.subtask-item .subtask-date-input {
    width: 110px;
    padding: 4px 8px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
}

.subtask-item .subtask-date-input:focus {
    border-color: var(--accent-blue);
    outline: none;
}

.subtask-item button {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.subtask-item button:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
}

.add-subtask {
    display: flex;
    gap: 10px;
}

.add-subtask input {
    flex: 1;
}

.add-subtask button {
    background: linear-gradient(135deg, #00d4ff 0%, #b829dd 100%);
    color: white;
    border: none;
    width: 44px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(184, 41, 221, 0.3);
}

.add-subtask button:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 41, 221, 0.4);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--glass-border);
}

.btn-secondary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    color: var(--text-primary);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #b829dd 50%, #ff0080 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(184, 41, 221, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(184, 41, 221, 0.5);
    animation: gradientShift 3s ease infinite;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-danger {
    background: linear-gradient(180deg, rgba(255, 51, 102, 0.15) 0%, rgba(255, 51, 102, 0.05) 100%);
    color: var(--accent-red);
    border: 1px solid rgba(255, 51, 102, 0.3);
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: linear-gradient(180deg, rgba(255, 51, 102, 0.25) 0%, rgba(255, 51, 102, 0.1) 100%);
    border-color: rgba(255, 51, 102, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.2);
}

/* 复选框标签 */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-blue);
    cursor: pointer;
}

/* 每日汇总弹窗 */
.summary-modal {
    max-width: 600px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0.5;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-card.urgent {
    border-color: rgba(255, 51, 102, 0.4);
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.1) 0%, rgba(255, 51, 102, 0.05) 100%);
}

.stat-card.today {
    border-color: rgba(0, 212, 255, 0.4);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
}

.stat-card.week {
    border-color: rgba(0, 255, 136, 0.4);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 255, 136, 0.05) 100%);
}

.stat-card.total {
    border-color: rgba(139, 92, 246, 0.3);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(135deg, currentColor 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card.urgent .stat-number { color: var(--accent-red); }
.stat-card.today .stat-number { color: var(--accent-cyan); }
.stat-card.week .stat-number { color: var(--accent-green); }
.stat-card.total .stat-number { color: var(--accent-purple); }

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.summary-list {
    max-height: 300px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 12px;
    margin-bottom: 10px;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.summary-item:hover {
    transform: translateX(4px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.summary-item.overdue {
    border-left-color: var(--accent-red);
    box-shadow: 0 2px 10px rgba(255, 51, 102, 0.1);
}

.summary-item.today {
    border-left-color: var(--accent-cyan);
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.1);
}

.summary-item.week {
    border-left-color: var(--accent-green);
    box-shadow: 0 2px 10px rgba(0, 255, 136, 0.1);
}

.summary-item-title {
    flex: 1;
    font-size: 14px;
}

.summary-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* 快捷键提示 */
.shortcut-hint {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: linear-gradient(180deg, rgba(30, 30, 45, 0.9) 0%, rgba(20, 20, 30, 0.8) 100%);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 20px;
    z-index: 998;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    pointer-events: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.shortcut-hint.show {
    opacity: 1;
    transform: translateY(0);
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
}

.shortcut-item:last-child {
    margin-bottom: 0;
}

kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 4px 10px;
    font-family: monospace;
    font-size: 12px;
    min-width: 32px;
    text-align: center;
}

/* 负责人头像 */
.task-assignees {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.assignee-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.assignee-more {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text-secondary);
}

/* 项目标签 */
.task-project {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 2px 8px;
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    border-radius: 4px;
    margin-top: 4px;
}

/* 统计视图 */
.stats-view {
    padding: 20px;
    height: calc(100vh - 76px);
    overflow-y: auto;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 8px;
}

.stats-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.stats-period {
    display: flex;
    gap: 8px;
    background: rgba(15, 23, 42, 0.6);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.period-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s;
}

.period-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.period-btn.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.stats-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 20px;
}

.stats-card h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stats-metric {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.stats-metric-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stats-metric-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.stats-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stats-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stats-bar-label {
    width: 80px;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stats-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.stats-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.stats-bar-value {
    width: 40px;
    text-align: right;
    font-size: 13px;
    color: var(--text-secondary);
}

/* 聊天助手 */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 360px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    z-index: 999;
    overflow: hidden;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
}

.chat-toggle {
    transition: transform 0.3s;
}

.chat-widget.collapsed .chat-toggle {
    transform: rotate(-90deg);
}

.chat-body {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-widget.collapsed .chat-body {
    display: none;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.chat-welcome {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 14px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.chat-message {
    margin-bottom: 14px;
    max-width: 85%;
}

.chat-message.user {
    margin-left: auto;
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border-radius: 16px 16px 4px 16px;
}

.chat-message.assistant .message-content {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px 16px 16px 4px;
}

.message-content {
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.6;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 16px;
    border-top: 1px solid var(--glass-border);
}

.chat-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 12px 18px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.chat-input-area input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.chat-input-area button {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.chat-input-area button:hover {
    transform: scale(1.05);
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 拖拽占位符 */
.drop-zone {
    border: 2px dashed var(--accent-blue);
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    min-height: 50px;
    margin-bottom: 10px;
}

/* 响应式 */
@media (max-width: 1800px) {
    .sidebar-section {
        width: 800px;
    }
}

@media (max-width: 1600px) {
    .sidebar-section {
        width: 700px;
    }
}

@media (max-width: 1400px) {
    .sidebar-section {
        width: 600px;
    }
}

@media (max-width: 1200px) {
    .groups-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-section {
        width: 320px;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
    }
    
    .tracking-card,
    .overview-card,
    .calendar-card {
        grid-column: 1;
    }
    
    .tracking-card { grid-row: 1; }
    .overview-card { grid-row: 2; }
    .calendar-card { grid-row: 3; }
}

@media (max-width: 900px) {
    .main-layout {
        flex-direction: column;
    }
    
    .sidebar-section {
        width: 100%;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    
    .tracking-card { grid-column: 1; grid-row: 1; }
    .overview-card { grid-column: 2; grid-row: 1; }
    .calendar-card { grid-column: 1 / -1; grid-row: 2; min-height: 350px; }
}

/* ==================== 移动端适配 ==================== */

/* 平板端 (768px - 1024px) */
@media (max-width: 1024px) {
    .header {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .header-left {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .header-quote {
        display: none;
    }
    
    .header-center {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }
    
    .milestone-countdown {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .main-layout {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 120px);
    }
    
    .groups-section {
        flex: none;
        height: auto;
        max-height: none;
    }
    
    .sidebar-section {
        width: 100%;
        flex: none;
        height: auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .tracking-card,
    .overview-card,
    .calendar-card {
        grid-column: auto;
        grid-row: auto;
        min-height: 200px;
    }
}

/* 桌面端：隐藏移动端导航 */
.mobile-nav {
    display: none;
}

/* 手机端 (小于 768px) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    /* 顶部导航 - 简化版 */
    .header {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px 12px;
        gap: 8px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    .header-left {
        flex: 1;
        min-width: 0;
        gap: 8px;
    }
    
    .brand-header {
        gap: 8px;
    }
    
    .brand-logo {
        height: 24px;
    }
    
    .brand-divider {
        height: 20px;
    }
    
    .brand-title {
        font-size: 14px;
    }
    
    .brand-subtitle {
        font-size: 8px;
        letter-spacing: 1px;
    }
    
    .header-quote {
        display: none;
    }
    
    .date-display {
        display: none;
    }
    
    .header-center {
        display: none;
    }
    
    .header-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .search-box {
        display: none;
    }
    
    .view-toggle {
        display: flex;
        gap: 4px;
    }
    
    .view-btn {
        padding: 6px 10px;
        font-size: 12px;
        border-radius: 6px;
    }
    
    .add-task-btn {
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    /* 主布局 */
    .main-layout {
        padding: 8px;
        padding-top: 70px;
        gap: 12px;
        height: auto;
        min-height: 100vh;
    }
    
    /* 看板区域 - 横向滑动 */
    .groups-section {
        flex: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .groups-section::-webkit-scrollbar {
        display: none;
    }
    
    .groups-grid {
        display: flex;
        gap: 12px;
        padding: 4px;
        min-width: max-content;
    }
    
    .group-column {
        width: 280px;
        flex-shrink: 0;
        max-height: calc(100vh - 180px);
    }
    
    .group-header {
        padding: 10px 12px;
    }
    
    .group-title {
        font-size: 14px;
    }
    
    .group-count {
        font-size: 11px;
        padding: 2px 8px;
    }
    
    .group-tasks {
        max-height: calc(100vh - 240px);
    }
    
    /* 任务卡片 */
    .task-card {
        padding: 10px 12px;
        margin-bottom: 8px;
    }
    
    .task-title {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .task-meta {
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 8px;
    }
    
    .task-priority {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .task-status {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .task-assignee {
        font-size: 11px;
    }
    
    .task-deadline {
        font-size: 10px;
    }
    
    /* 侧边栏 - 垂直堆叠 */
    .sidebar-section {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .sidebar-card {
        padding: 12px;
    }
    
    .card-title {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    /* 统计卡片 */
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    /* 日历 */
    .calendar-grid {
        gap: 4px;
    }
    
    .calendar-day {
        min-height: 50px;
        padding: 4px;
        font-size: 11px;
    }
    
    /* 底部导航栏 */
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, rgba(20, 20, 35, 0.95) 0%, rgba(15, 15, 25, 0.98) 100%);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--glass-border);
        padding: 8px 0;
        z-index: 1000;
        justify-content: space-around;
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 4px 12px;
        color: var(--text-secondary);
        font-size: 11px;
        cursor: pointer;
        transition: color 0.2s;
    }
    
    .mobile-nav-item.active {
        color: var(--accent-blue);
    }
    
    .mobile-nav-item svg {
        width: 24px;
        height: 24px;
    }
    
    /* 主布局需要为底部导航留出空间 */
    .main-layout {
        padding-bottom: 70px;
    }
    
    /* 聊天组件 */
    .chat-widget {
        width: calc(100% - 24px);
        right: 12px;
        left: 12px;
        bottom: 80px;
    }
    
    /* 弹窗适配 */
    .modal-content {
        width: calc(100% - 24px);
        max-width: none;
        margin: 12px;
        max-height: calc(100vh - 100px);
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .form-group {
        margin-bottom: 14px;
    }
    
    .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .modal-footer {
        padding: 12px 16px;
        flex-direction: column-reverse;
        gap: 8px;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    
    /* 任务详情弹窗 */
    .task-detail-modal .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    /* 长按菜单 */
    .context-menu {
        position: fixed;
        background: var(--bg-card);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: 8px 0;
        min-width: 180px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        z-index: 2000;
    }
    
    .context-menu-item {
        padding: 12px 16px;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        transition: background 0.2s;
    }
    
    .context-menu-item:hover {
        background: var(--bg-hover);
    }
    
    .context-menu-item.danger {
        color: var(--accent-red);
    }
}

/* 小屏手机 (小于 480px) */
@media (max-width: 480px) {
    .group-column {
        width: 260px;
    }
    
    .view-toggle {
        display: none;
    }
    
    .mobile-view-toggle {
        display: flex;
        gap: 8px;
        margin-bottom: 12px;
    }

/* 客户新增按钮 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background: var(--hover-bg);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}
    
    .mobile-view-btn {
        flex: 1;
        padding: 10px;
        background: var(--bg-card);
        border: 1px solid var(--glass-border);
        border-radius: 8px;
        color: var(--text-secondary);
        font-size: 13px;
        text-align: center;
        cursor: pointer;
    }
    
    .mobile-view-btn.active {
        background: var(--accent-blue);
        color: white;
        border-color: var(--accent-blue);
    }
}

/* 用户菜单 */
.user-menu {
    position: relative;
    display: inline-flex;
    margin-left: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    overflow: hidden;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 12px 16px;
    font-size: 13px;
    color: #94a3b8;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 500;
}

.user-dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-dropdown-item:hover {
    background: #f8fafc;
}

.user-dropdown-item:active {
    background: #f1f5f9;
}
