/* 自定义样式 */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* 侧边栏样式 */
.sidebar {
    background-color: #005b96;
    width: 50px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10;
    transition: all 0.3s ease;
}

.sidebar.expanded {
    width: 100px;
}

/* 主内容区域样式 */
.main-content {
    margin-left: 50px;
    min-height: 100vh;
    background-color: #f5f7fa;
    transition: margin-left 0.3s ease;
}

.main-content.sidebar-expanded {
    margin-left: 100px;
}

/* 侧边栏菜单项样式 */
.sidebar-item {
    color: white;
    padding: 15px 0;
    text-align: center;
    transition: all 0.3s;
}

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

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

/* 侧边栏图标样式 */
.sidebar-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.sidebar-text {
    font-size: 12px;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    opacity: 0;
    visibility: hidden;
    height: 0;
}

.sidebar.expanded .sidebar-text {
    opacity: 1;
    visibility: visible;
    height: auto;
}

/* 顶部导航栏样式 */
.top-nav {
    background-color: white;
    height: 48px;
    border-bottom: 1px solid #e2e8f0;
}

/* 顶部导航菜单项样式 */
.top-nav-item {
    display: inline-block;
    padding: 0 15px;
    line-height: 48px;
    color: #333;
    font-size: 14px;
    border-right: 1px solid #e2e8f0;
}

/* 登录按钮样式 */
.login-btn {
    background-color: #0078d4;
    color: white;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: #0067b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 徽标样式 */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.logo img {
    width: 30px;
    transition: all 0.3s ease;
}

/* 数字徽章样式 */
.badge {
    position: absolute;
    top: 5px;
    right: 20px;
    background-color: #ff4d4f;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 工作台卡片样式 */
.workspace-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.workspace-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 24px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.card-description {
    font-size: 14px;
    color: #666;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.card-stat {
    font-size: 12px;
    color: #999;
}

.card-action {
    color: #0078d4;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.card-action:hover {
    text-decoration: underline;
}

/* 卡片网格布局 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 30px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* 渐变背景效果 */
.gradient-bg {
    background: linear-gradient(135deg, #1a4b6e, #2a6f97, #3a95c4);
    background-size: 200% 200%;
    animation: gradientAnimation 15s ease infinite;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 资料查询相关样式 */
/* 左侧对象选择区域 */
.materials-container {
    display: flex;
    height: calc(100vh - 150px);
    overflow: hidden;
}

.object-tree {
    width: 250px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 15px;
    margin-right: 20px;
    overflow-y: hidden;
    max-height: 100%;
    display: flex;
    flex-direction: column;
}

.object-list {
    flex: 1;
    overflow-y: auto;
    margin: 10px 0;
}

.object-list::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

.object-list {
    scrollbar-width: none;
}

.object-list {
    -ms-overflow-style: none;
}

.object-item {
    margin-bottom: 10px;
}

.object-header {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.object-header:hover {
    background-color: #f5f7fa;
}

.object-icon {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.object-name {
    flex-grow: 1;
    font-size: 14px;
}

.object-actions {
    display: flex;
    align-items: center;
}

.expand-icon, .search-toggle {
    color: #9ca3af;
    font-size: 12px;
    margin-left: 8px;
    transition: transform 0.2s;
}

.object-children {
    padding-left: 30px;
    margin-top: 5px;
}

.well-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.well-item:hover {
    background-color: #f5f7fa;
}

.well-item i {
    margin-right: 8px;
}

.well-item-content {
    flex-grow: 1;
}

.well-item-right {
    display: flex;
    align-items: center;
}

.well-item-count {
    font-size: 12px;
    color: #9ca3af;
    margin-right: 5px;
}

.gis-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f7ff;
    color: #3b82f6;
    padding: 10px;
    border-radius: 6px;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.gis-search-btn:hover {
    background-color: #dbeafe;
}

.gis-search-btn i {
    margin-right: 8px;
}

/* 右侧数据列表区域 */
.data-list {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 15px;
    overflow-y: auto;
    max-height: 100%;
}

/* 标签切换区域 */
.tabs-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

.tabs-left {
    display: flex;
    gap: 10px;
}

.data-tab {
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #f0f7ff;
    color: #3b82f6;
}

.data-tab.active {
    background-color: #3b82f6;
    color: white;
}

.tabs-right {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
}

.action-btn i {
    margin-right: 5px;
}

.query-btn {
    background-color: #f0f7ff;
    color: #3b82f6;
}

.query-btn:hover {
    background-color: #dbeafe;
}

.download-btn {
    background-color: #f0f7ff;
    color: #3b82f6;
}

.download-btn:hover {
    background-color: #dbeafe;
}

/* 搜索框样式 */
.search-container {
    position: relative;
    margin-bottom: 15px;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    padding-left: 35px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
}

/* 数据表格样式 */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

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

.data-table th {
    padding: 10px;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.data-table td {
    padding: 12px 10px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.data-table tbody tr:hover {
    background-color: #f9fafb;
}

/* 标签切换按钮样式 */
.tab-container {
    background-color: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.tab-button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background-color: #f5f7fa;
    color: #0078d4;
}

.tab-button:hover {
    background-color: #f0f0f0;
}

/* 内容区域样式 */
.tab-content-container {
    padding: 20px;
}

.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background-color: #fff;
}

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

/* 个人成果页面样式 */
/* 顶部功能区 */
.top-function-bar {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 0px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.function-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.function-btn {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.function-btn:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.function-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.03);
}

.function-btn i {
    margin-right: 8px;
    font-size: 16px;
    color: #3b82f6;
}

/* 表格标题和操作区 */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.table-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e3a8a;
    position: relative;
}

.table-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 3px;
}

.selected-count {
    font-size: 14px;
    color: #64748b;
    margin-left: 16px;
    background-color: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.selected-count.has-selected {
    background-color: #dbeafe;
    color: #1e40af;
}

.table-actions {
    display: flex;
    gap: 12px;
}

/* 表格样式 */
.achievement-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin-bottom: 24px;
}

.achievement-table thead {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.achievement-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.achievement-table th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background-color: #e2e8f0;
}

.achievement-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-size: 14px;
    transition: all 0.2s;
}

.achievement-table tbody tr {
    transition: all 0.3s ease;
}

.achievement-table tbody tr:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    z-index: 1;
    position: relative;
}

.achievement-table tbody tr:last-child td {
    border-bottom: none;
}

/* 表格操作按钮 */
.table-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #64748b;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.table-action-btn.mount-btn:hover {
    background-color: #e0f2fe;
    color: #0284c7;
    transform: translateY(-2px);
}

.table-action-btn.preview-btn:hover {
    background-color: #dbeafe;
    color: #2563eb;
    transform: translateY(-2px);
}

.table-action-btn.edit-btn:hover {
    background-color: #dcfce7;
    color: #16a34a;
    transform: translateY(-2px);
}

.table-action-btn.share-btn:hover {
    background-color: #fef3c7;
    color: #d97706;
    transform: translateY(-2px);
}

.table-action-btn.download-btn:hover {
    background-color: #dbeafe;
    color: #1e40af;
    transform: translateY(-2px);
}

.table-action-btn.delete-btn:hover {
    background-color: #fee2e2;
    color: #b91c1c;
    transform: translateY(-2px);
}

/* 复选框样式 */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #cbd5e0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background-color: white;
}

input[type="checkbox"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
    animation: checkbox-pop 0.3s ease;
}

@keyframes checkbox-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    animation: checkbox-check 0.2s ease forwards;
}

@keyframes checkbox-check {
    0% { opacity: 0; transform: rotate(45deg) scale(0.8); }
    100% { opacity: 1; transform: rotate(45deg) scale(1); }
}

/* 分页控件样式 */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: #475569;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.page-btn:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.page-btn.active {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.page-btn.prev-btn, .page-btn.next-btn {
    width: 36px;
}

.page-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f1f5f9;
}

.page-ellipsis {
    color: #64748b;
    font-size: 14px;
    padding: 0 5px;
}

.page-size {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
}

.page-size-select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background-color: white;
    color: #475569;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
}

.page-size-select:hover {
    border-color: #cbd5e1;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e3a8a;
}

.close-modal {
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #1e3a8a;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    
    /* 隐藏滚动条但保留滚动功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.modal-body::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-secondary {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    color: #1e3a8a;
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #475569;
    font-size: 14px;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    padding-right: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: #1e3a8a;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.1);
}

.required {
    color: #ef4444;
    margin-left: 2px;
}

.selected-files {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px;
    max-height: 150px;
    overflow-y: auto;
}

.selected-file {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
}

.selected-file:last-child {
    border-bottom: none;
}

.selected-file i {
    color: #64748b;
    margin-right: 8px;
}

.selected-file .file-size {
    color: #94a3b8;
    font-size: 12px;
    margin-left: 6px;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #3b82f6;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* 自定义下拉框样式 */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    padding-right: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: #1e3a8a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: none;
    margin-top: 4px;
    
    /* 隐藏滚动条但保留滚动功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.dropdown-menu::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
}

/* 信息提示框样式 */
.info-box {
    display: flex;
    align-items: center;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
}

.info-icon {
    color: #3b82f6;
    margin-right: 10px;
    font-size: 16px;
}

.info-text {
    color: #1e40af;
    font-size: 14px;
}

/* 下载模板按钮样式 */
.download-template-wrapper {
    position: absolute;
    right: 0;
    top: 0;
}

.download-template {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #3b82f6;
    transition: color 0.2s ease;
}

.download-template:hover {
    color: #2563eb;
}

/* 下拉菜单显示样式 */
.dropdown-menu.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 筛选区域样式 */
.filter-container {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 16px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 8px;
}

.filter-input, .filter-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: white;
    font-size: 14px;
    color: #334155;
    transition: all 0.2s;
}

.filter-input:focus, .filter-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.filter-apply {
    background-color: #3b82f6;
    color: white;
}

.filter-apply:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.filter-reset {
    background-color: #f1f5f9;
    color: #64748b;
}

.filter-reset:hover {
    background-color: #e2e8f0;
}

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

/* 工作状态区域样式 */
.workspace-state-container {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 16px;
}

.workspace-state-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.workspace-state-title-group {
    display: flex;
    align-items: center;
}

.workspace-state-title {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    display: flex;
    align-items: center;
}

.workspace-state-title i {
    margin-right: 6px;
    color: #6366f1;
}

.workspace-state-selector {
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 10px;
    min-width: 300px;
    width: auto;
}

.workspace-state-selector:hover {
    border-color: #d1d5db;
}

.workspace-state-name {
    flex-grow: 1;
    font-size: 13px;
    margin-left: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workspace-state-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 4px;
}

.workspace-state-time {
    font-size: 11px;
    color: #9ca3af;
    margin: 0 15px;
}

.workspace-state-actions {
    display: flex;
    gap: 8px;
}

.state-action-btn {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.state-action-btn:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
}

.state-action-btn i {
    margin-right: 4px;
    font-size: 12px;
}

.state-save-btn {
    background-color: #6366f1;
    color: white;
}

.state-save-btn:hover {
    background-color: #4f46e5;
}

/* 工作状态下拉菜单 */
.state-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none;
    margin-top: 4px;
}

.state-dropdown-menu.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

.state-dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.state-dropdown-item:last-child {
    border-bottom: none;
}

.state-dropdown-item:hover {
    background-color: #f9fafb;
}

.state-dropdown-item.active {
    background-color: #f3f4f6;
}

.state-item-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 10px;
}

.state-item-info {
    flex: 1;
}

.state-item-name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 2px;
}

.state-item-time {
    font-size: 11px;
    color: #6b7280;
}

/* 工作状态管理对话框 */
.state-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.state-modal.show {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.state-modal-content {
    background-color: white;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: modalContentSlideIn 0.3s ease;
}

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

.state-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.state-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.state-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
}

.state-modal-body {
    padding: 20px;
    width: 100%;
}

.state-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
    width: 100%;
}

.state-card {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.state-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    border-color: #d0d0d0;
}

.state-card.current {
    border-left: 4px solid #4a6cf7;
    background-color: #f8faff;
}

.state-card-thumbnail {
    width: 60px;
    background: linear-gradient(135deg, #4a6cf7, #6a8cff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.state-card-body {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

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

.state-card-title {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.state-card-favorite {
    background: none;
    border: none;
    color: #ffc107;
    cursor: pointer;
    padding: 2px;
    transition: transform 0.2s;
}

.state-card-favorite:hover {
    transform: scale(1.2);
}

.state-card-time {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.state-card-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.state-card-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

.state-card-btn {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e0e0e0;
    background: #f5f5f5;
    color: #666;
}

.state-card-btn:hover {
    background: #e9e9e9;
}

.state-card-btn.load {
    background: #4a6cf7;
    color: white;
}

.state-card-btn.load:hover {
    background: #3a5ce7;
}

.state-card-btn.delete {
    background: #fff;
    color: #ff5252;
    border-color: #ffdddd;
}

.state-card-btn.delete:hover {
    background: #fff5f5;
}

.state-tabs {
    display: flex;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 16px;
}

.state-tab {
    padding: 8px 16px;
    cursor: pointer;
    position: relative;
    color: #666;
    font-size: 14px;
    transition: color 0.2s;
}

.state-tab:hover {
    color: #4a6cf7;
}

.state-tab.active {
    color: #4a6cf7;
    font-weight: 600;
}

.state-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #4a6cf7;
}

.state-search {
    position: relative;
    margin-bottom: 16px;
}

.state-search input {
    width: 100%;
    padding: 8px 12px;
    padding-left: 36px;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.state-search input:focus {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
    outline: none;
}

.state-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
}

.no-states-message {
    text-align: center;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    grid-column: 1 / -1;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

/* 简洁状态列表样式 */
.simple-state-list {
    width: 100%;
    margin-top: 16px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.simple-state-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.simple-state-item:last-child {
    border-bottom: none;
}

.simple-state-item:hover {
    background-color: #f8fafc;
}

.simple-state-item.current {
    background-color: #f0f7ff;
    border-left: 4px solid #3b82f6;
    padding-left: 12px;
}

.simple-state-item.selected {
    background-color: #f8fafc;
    border-left: 4px solid #93c5fd;
    padding-left: 12px;
}

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

.simple-state-name {
    font-weight: 600;
    font-size: 14px;
    color: #334155;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.simple-state-time {
    font-size: 12px;
    color: #64748b;
}

.simple-state-actions {
    display: flex;
    gap: 8px;
}

.simple-state-btn {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    border: 1px solid #e2e8f0;
}

.simple-state-btn:hover {
    background-color: #f1f5f9;
}

.simple-state-btn.load {
    color: #3b82f6;
    border-color: #bfdbfe;
}

.simple-state-btn.load:hover {
    background-color: #eff6ff;
}

.simple-state-btn.rename {
    color: #0ea5e9;
    border-color: #bae6fd;
}

.simple-state-btn.rename:hover {
    background-color: #f0f9ff;
}

.simple-state-btn.delete {
    color: #ef4444;
    border-color: #fecaca;
}

.simple-state-btn.delete:hover {
    background-color: #fef2f2;
}

/* 无状态提示 */
.no-states-message {
    text-align: center;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #e2e8f0;
    margin-top: 16px;
    color: #64748b;
}

.no-states-message i {
    font-size: 24px;
    color: #94a3b8;
    margin-bottom: 8px;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .simple-state-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .simple-state-actions {
        margin-top: 8px;
        width: 100%;
        justify-content: flex-end;
    }
}

/* 状态列表容器 */
.state-list-container {
    width: 100%;
    margin-top: 16px;
    max-height: 400px;
    overflow-y: auto;
}

/* 状态列表样式 */
.state-list {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.state-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.state-item:last-child {
    border-bottom: none;
}

.state-item:hover {
    background-color: #f8fafc;
}

.state-item.current {
    background-color: #f0f7ff;
    border-left: 4px solid #3b82f6;
    padding-left: 12px;
}

.state-item.selected {
    background-color: #f8fafc;
    border-left: 4px solid #93c5fd;
    padding-left: 12px;
}

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

.state-name {
    font-weight: 600;
    font-size: 14px;
    color: #334155;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.state-time {
    font-size: 12px;
    color: #64748b;
}

.state-actions {
    display: flex;
    gap: 8px;
}

.state-btn {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.state-btn:hover {
    background-color: #f1f5f9;
}

.state-btn:active {
    transform: translateY(1px);
}

.state-btn.load {
    color: #3b82f6;
    border-color: #bfdbfe;
}

.state-btn.load:hover {
    background-color: #eff6ff;
}

.state-btn.rename {
    color: #0ea5e9;
    border-color: #bae6fd;
}

.state-btn.rename:hover {
    background-color: #f0f9ff;
}

.state-btn.delete {
    color: #ef4444;
    border-color: #fecaca;
}

.state-btn.delete:hover {
    background-color: #fef2f2;
}

/* 按钮点击波纹效果 */
.state-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.state-btn:focus:not(:active)::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* 状态项选中效果 */
.state-item.selected {
    background-color: #f8fafc;
    border-left: 4px solid #93c5fd;
    padding-left: 12px;
}

/* 状态列表样式 */
.state-list {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.state-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.state-item:last-child {
    border-bottom: none;
}

.state-item:hover {
    background-color: #f8fafc;
}

.state-item.current {
    background-color: #f0f7ff;
    border-left: 4px solid #3b82f6;
    padding-left: 12px;
}

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

.state-name {
    font-weight: 600;
    font-size: 14px;
    color: #334155;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.state-time {
    font-size: 12px;
    color: #64748b;
}

.state-actions {
    display: flex;
    gap: 8px;
}

.state-btn {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.state-btn:hover {
    background-color: #f1f5f9;
}

.state-btn:active {
    transform: translateY(1px);
}

.state-btn.load {
    color: #3b82f6;
    border-color: #bfdbfe;
}

.state-btn.load:hover {
    background-color: #eff6ff;
}

.state-btn.rename {
    color: #0ea5e9;
    border-color: #bae6fd;
}

.state-btn.rename:hover {
    background-color: #f0f9ff;
}

.state-btn.delete {
    color: #ef4444;
    border-color: #fecaca;
}

.state-btn.delete:hover {
    background-color: #fef2f2;
}

/* 按钮点击波纹效果 */
.state-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.state-btn:focus:not(:active)::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* 重命名输入框样式 */
.state-name-input {
    width: 100%;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    border: 1px solid #3b82f6;
    border-radius: 4px;
    background-color: white;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    margin-bottom: 4px;
}

.state-name-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* 重命名操作按钮 */
.rename-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.rename-btn {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.rename-btn:hover {
    transform: translateY(-1px);
}

.rename-btn:active {
    transform: translateY(1px);
}

.rename-btn.confirm {
    color: #10b981;
    border-color: #d1fae5;
}

.rename-btn.confirm:hover {
    background-color: #ecfdf5;
}

.rename-btn.cancel {
    color: #ef4444;
    border-color: #fee2e2;
}

.rename-btn.cancel:hover {
    background-color: #fef2f2;
}
