/* 全局样式 */
:root {
    --primary-color: #4a90e2;
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
    --info-color: #3498db;
    --danger-color: #e74c3c;
    --text-color: #2c3e50;
    --bg-color: #f5f6fa;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

/* 统计卡片样式优化 */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.8rem;
    display: flex;
    align-items: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
    opacity: 0;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), #6eb6ff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-right: 1.2rem;
    transition: all 0.3s ease;
}

.stat-icon.warning { 
    background: linear-gradient(135deg, var(--warning-color), #ffd93d); 
}
.stat-icon.success { 
    background: linear-gradient(135deg, var(--success-color), #7bed9f); 
}
.stat-icon.info { 
    background: linear-gradient(135deg, var(--info-color), #74b9ff); 
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
}

/* 修改 header 相关样式 */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: white;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
    border-radius: 12px;
    transition: box-shadow 0.3s ease;
}

/* 滚动时的样式 */
header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
}

.header-top {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
}

.page-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.page-title h1 {
    font-size: 1.4rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0;
    font-weight: 500;
}

.page-title h1 i {
    color: var(--primary-color);
    font-size: 1.6rem;
}

.breadcrumb {
    font-size: 0.85rem;
    color: #666;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    outline: none;
    width: 250px;
}

.search-box i {
    position: absolute;
    left: 0.8rem;
    color: #999;
    font-size: 0.9rem;
}

.notification {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
}

.notification i {
    font-size: 1.2rem;
    color: #666;
    transition: color 0.3s ease;
}

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

.notification .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .header-top {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .search-box input {
        width: 100%;
    }

    .search-box input:focus {
        width: 100%;
    }
}

/* 修改快捷入口区域样式 */
header .quick-access {
    flex: 1;
    position: relative;
    width: 100%;
    overflow: hidden;
}

header .quick-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

header .quick-header h2 {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

header .quick-header h2 i {
    color: var(--primary-color);
}

/* 修改快捷入口网格样式 */
header .quick-grid {
    display: flex;
    gap: 0.6rem;
    padding: 0.25rem;
    width: 100%;
    position: relative;
    align-items: center;
    flex-wrap: nowrap;
}

/* 修改快捷入口卡片样式 */
header .quick-item {
    width: 130px;
    height: 36px;
    padding: 0 0.8rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    position: relative;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    flex-shrink: 0;
    flex-grow: 0;
}

header .quick-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    opacity: 0;
    transition: var(--transition);
}

header .quick-item:hover::before {
    opacity: 1;
}

header .quick-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

header .quick-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--primary-color), #6eb6ff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

header .quick-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

header .quick-info h3 {
    font-size: 0.85rem;
    color: #333;
    margin: 0;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
    max-width: 100%;
}

/* 隐藏描述文本 */
header .quick-info p {
    display: none;
}

/* 编辑按钮样式 */
header .quick-edit-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    margin-right: 0.5rem;
    border: 1px solid #eee;
    background: white;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: var(--card-shadow);
    flex-shrink: 0;
    z-index: 2;
}

header .quick-edit-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 编辑模式下的按钮样式 */
header .quick-edit-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 删除按钮样式优化 */
.quick-edit-item .delete-item {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    position: absolute;
    right: 0.6rem;
}

.quick-edit-item:hover .delete-item {
    opacity: 1;
}

.quick-edit-item .delete-item:hover {
    background: var(--danger-color);
    color: white;
    transform: scale(1.1);
}

/* 修改编辑项样式 */
.quick-edit-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 2.2rem 0.8rem 0.8rem; /* 只为删除按钮预留空间 */
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    gap: 0.8rem;
    cursor: move;
    position: relative;
    transition: all 0.2s ease;
    user-select: none; /* 防止拖拽时选中文本 */
}

.quick-edit-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background: #f8f9fa;
}

/* 删拖动手柄相关样式 */
.quick-edit-item .drag-handle {
    display: none; /* 隐藏拖动图标 */
}

/* 拖动状态样式 */
.quick-edit-item.dragging {
    opacity: 0.4;
    background: #f0f7ff;
    border: 2px dashed var(--primary-color);
    box-shadow: none;
    cursor: grabbing;
}

.quick-edit-item.drag-over {
    border: 2px dashed var(--primary-color);
    position: relative;
}

.quick-edit-item.drag-over::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 6px;
    pointer-events: none;
}

/* 添加拖拽提示样式 */
.quick-edit-item::after {
    content: '⋮⋮';
    position: absolute;
    right: 2.8rem;
    color: #ccc;
    font-size: 1.2rem;
    line-height: 1;
    cursor: move;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.quick-edit-item:hover::after {
    opacity: 1;
}

/* 修改图标相关样式，提高优先级 */
header .quick-item .quick-icon {
    width: 22px !important;
    height: 22px !important;
    border-radius: 4px !important;
    background: linear-gradient(135deg, var(--primary-color), #6eb6ff) !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    flex-shrink: 0 !important;
}

header .quick-item .quick-icon i {
    color: white !important;
    font-size: 0.75rem !important;
}

/* 编辑项图标样式 */
.quick-edit-item .quick-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
    background: linear-gradient(135deg, var(--primary-color), #6eb6ff) !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    flex-shrink: 0 !important;
}

.quick-edit-item .quick-icon i {
    color: white !important;
    font-size: 0.9rem !important;
}

/* 菜单项图标样式 */
.menu-item .menu-item-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    background: #f0f7ff !important;
    color: var(--primary-color) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 1rem !important;
}

.menu-item .menu-item-icon i {
    color: var(--primary-color) !important;
    font-size: 1rem !important;
}

/* 美化水平滚动条 */
header .quick-grid::-webkit-scrollbar {
    height: 4px;
}

header .quick-grid::-webkit-scrollbar-track {
    background: transparent;
}

header .quick-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

header .quick-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* 编辑模式样式 */
header .quick-item.edit-mode {
    padding-right: 2.2rem;
}

header .quick-item.dragging {
    opacity: 0.5;
    background: #f0f7ff;
}

/* 编辑面板样式优化 */
header .edit-panel {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    padding: 0.8rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid #eee;
    min-width: 160px;
    transform-origin: top right;
    animation: scaleIn 0.2s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

header .edit-panel button {
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
    background: transparent;
    color: #666;
    text-align: left;
}

header .add-btn {
    color: var(--success-color) !important;
}

header .add-btn:hover {
    background: rgba(46, 204, 113, 0.1) !important;
}

header .save-btn {
    color: var(--primary-color) !important;
}

header .save-btn:hover {
    background: rgba(74, 144, 226, 0.1) !important;
}

header .cancel-btn {
    color: var(--danger-color) !important;
}

header .cancel-btn:hover {
    background: rgba(231, 76, 60, 0.1) !important;
}

/* 编辑按钮激活状态 */
header .quick-edit-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 添加箭头指示器 */
header .edit-panel::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 13px;
    width: 10px;
    height: 10px;
    background: white;
    border-left: 1px solid #eee;
    border-top: 1px solid #eee;
    transform: rotate(45deg);
}

/* 响应式调整 */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    
    .page-title {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .page-title h1 {
        font-size: 1.2rem;
    }

    header .quick-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    header .edit-panel {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

/* 待办事项和通知公告样式优化 */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
}

.todo-list, .notice-board {
    background: white;
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: var(--card-shadow);
}

.todo-list h2, .notice-board h2 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.todo-list h2 i, .notice-board h2 i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.todo-item, .notice-item {
    padding: 1.2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    background: #f8f9fa;
}

.todo-item:hover, .notice-item:hover {
    background: #f0f7ff;
    transform: translateX(5px);
}

.todo-item:last-child, .notice-item:last-child {
    margin-bottom: 0;
}

.todo-content h3, .notice-title h3 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.todo-content p, .notice-item p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.todo-time, .notice-time {
    font-size: 0.8rem;
    color: #999;
}

.todo-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.todo-icon.urgent {
    background: #fff2f2;
    color: var(--danger-color);
    animation: pulse 2s infinite;
}

.todo-icon.normal {
    background: #f0f7ff;
    color: var(--primary-color);
}

.todo-icon.low {
    background: #f1f8ff;
    color: var(--info-color);
}

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

.stat-cards, .info-section {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 加载动画 */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loading {
    background: linear-gradient(90deg, 
        #f0f0f0 25%, 
        #e0e0e0 50%, 
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* 添加模态框基础样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 1000px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: modalShow 0.3s ease;
}

/* 模态框头部样式 */
.modal-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 16px 16px 0 0;
}

.modal-header h2 {
    font-size: 1.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-color);
}

.modal-header h2 i {
    color: var(--primary-color);
}

.modal-header span {
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
}

/* 固定区域样式 */
.modal-fixed-area {
    padding: 1.5rem;
    background: white;
    border-bottom: 1px solid #eee;
}

/* 当前快捷入口编辑区域 */
.quick-edit-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
}

.quick-edit-section h3 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-edit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
}

/* 搜索框样式 */
.menu-search {
    position: relative;
}

.menu-search input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.menu-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    outline: none;
}

/* 可滚动内容区域 */
.modal-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* 菜单分类样式 */
.menu-category {
    margin-bottom: 1.5rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.category-header i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.category-header h3 {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
}

.menu-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.menu-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.menu-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f0f7ff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

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

.menu-item-info h4 {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 添加按钮样式 */
.add-to-quick {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: #f0f7ff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.add-to-quick:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.add-to-quick:disabled {
    background: var(--success-color);
    color: white;
    cursor: not-allowed;
    transform: none;
}

/* 底部按钮区域 */
.modal-footer {
    padding: 1.2rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: white;
    border-radius: 0 0 16px 16px;
}

.modal-footer button {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-footer .save-btn {
    background: var(--primary-color);
    color: white;
    border: none;
}

.modal-footer .save-btn:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.modal-footer .cancel-btn {
    background: white;
    color: #666;
    border: 1px solid #ddd;
}

.modal-footer .cancel-btn:hover {
    border-color: #999;
    color: #333;
    transform: translateY(-2px);
}

/* 滚动条美化 */
.modal-scrollable::-webkit-scrollbar {
    width: 6px;
}

.modal-scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.modal-scrollable::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 3px;
}

.modal-scrollable::-webkit-scrollbar-thumb:hover {
    background: #d0d0d0;
}

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

/* 搜索结果下拉框样式 */
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    border: 1px solid #eee;
    animation: dropDown 0.3s ease;
}

.search-results-list {
    padding: 0.5rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    gap: 1rem;
    position: relative;
}

.search-result-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.search-result-item:not(:last-child) {
    margin-bottom: 0.3rem;
}

.result-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.result-icon i {
    font-size: 1rem;
    color: var(--primary-color);
}

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

.result-title {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.result-category {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.result-category i {
    font-size: 0.8rem;
    color: #999;
}

/* 空结果状态 */
.no-results {
    padding: 2rem;
    text-align: center;
    color: #999;
}

.no-results i {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    display: block;
    color: #ccc;
}

.no-results p {
    font-size: 0.9rem;
    margin: 0;
}

/* 高亮匹配文本 */
.highlight {
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
    padding: 0.1em 0.2em;
    border-radius: 2px;
    font-weight: 500;
}

/* 搜索结果滚动条 */
.search-results::-webkit-scrollbar {
    width: 4px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 2px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #d0d0d0;
}

/* 下拉动画 */
@keyframes dropDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 搜索框悬停状态 */
.search-box:focus-within {
    position: relative;
    z-index: 1001;
}

.search-box:focus-within input {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.search-box:focus-within i {
    color: var(--primary-color);
}

/* 通知面板样式 */
.notification-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: -10px;
    width: 380px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    animation: dropDown 0.3s ease;
}

/* 通知面板头部 */
.notification-header {
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    background: white;
}

.notification-header h3 {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 500;
}

.mark-all-read {
    padding: 0.4rem 0.8rem;
    border: none;
    background: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mark-all-read:hover {
    background: rgba(74, 144, 226, 0.1);
}

/* 通知标签页 */
.notification-tabs {
    display: flex;
    padding: 0.5rem;
    gap: 0.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    background: none;
    color: #666;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tab-btn .count {
    display: inline-block;
    background: #eee;
    color: #666;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 0.4rem;
}

/* 通知列表 */
.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    padding: 1rem 1.2rem;
    gap: 1rem;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #f0f7ff;
}

.notification-item.unread:hover {
    background: #e5f1ff;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.urgent {
    background: #ffe9e9;
    color: var(--danger-color);
}

.notification-icon.normal {
    background: #e9f5ff;
    color: var(--info-color);
}

.notification-icon.low {
    background: #f0f9ff;
    color: var(--primary-color);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.notification-text {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.8rem;
    color: #999;
}

/* 标记已读按钮 */
.mark-read {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
}

.notification-item:hover .mark-read {
    opacity: 1;
}

.mark-read:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

/* 通知面板底部 */
.notification-footer {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #eee;
    background: white;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.view-all:hover {
    text-decoration: underline;
}

/* 滚动条美化 */
.notification-list::-webkit-scrollbar {
    width: 4px;
}

.notification-list::-webkit-scrollbar-track {
    background: transparent;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 2px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #d0d0d0;
}

/* 下拉动画 */
@keyframes dropDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 