/* ===== WebAgents 管理平台 - 全局样式 ===== */

:root {
    --primary: #4F46E5;
    --primary-light: #EEF2FF;
    --primary-hover: #4338CA;
    --danger: #EF4444;
    --danger-hover: #DC2626;
    --success: #10B981;
    --warning: #F59E0B;
    --sidebar-bg: #1E293B;
    --sidebar-text: #F1F5F9;
    --sidebar-hover: #334155;
    --sidebar-active: #475569;
    --bg: #F8FAFC;
    --bg-card: #FFFFFF;
    --border: #E2E8F0;
    --text: #1E293B;
    --text-secondary: #64748B;
    --text-light: #94A3B8;
    --mention-bg: #DBEAFE;
    --mention-text: #1E40AF;
    --admin-bubble: #4F46E5;
    --admin-bubble-text: #FFFFFF;
    --bot-bubble: #F1F5F9;
    --bot-bubble-text: #1E293B;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --sidebar-width: 280px;
    --header-height: 56px;
    --mobile-nav-height: 60px;
    --transition: 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* ===== 登录页 ===== */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.login-logo {
    font-size: 48px;
    margin-bottom: 8px;
}

.login-card h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 14px;
}

/* ===== 表单 ===== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: var(--danger-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text);
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
    padding: 12px;
}

.error-text {
    color: var(--danger);
    font-size: 13px;
    margin-top: 8px;
    min-height: 20px;
}

.msg-text {
    font-size: 13px;
    margin-top: 8px;
    min-height: 20px;
}

.msg-text.success {
    color: var(--success);
}

.msg-text.error {
    color: var(--danger);
}

/* ===== 主应用布局 ===== */
.app-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-header {
    height: var(--header-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-logo {
    font-size: 24px;
}

.header-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-username {
    font-size: 13px;
    color: var(--text-secondary);
}

.app-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* ===== 侧边栏 ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    color: var(--sidebar-text);
}

.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.sidebar-tab {
    flex: 1;
    padding: 14px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--sidebar-text);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    opacity: 0.6;
}

.sidebar-tab.active {
    opacity: 1;
    border-bottom: 2px solid var(--primary);
}

.sidebar-tab:hover {
    opacity: 0.9;
}

.sidebar-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.sidebar-list::-webkit-scrollbar {
    width: 4px;
}

.sidebar-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    gap: 10px;
}

.sidebar-item:hover {
    background: var(--sidebar-hover);
}

.sidebar-item.active {
    background: var(--sidebar-active);
}

.sidebar-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.1);
}

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

.sidebar-item-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-item-preview {
    font-size: 12px;
    opacity: 0.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.sidebar-item-badge {
    font-size: 11px;
    background: var(--primary);
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    flex-shrink: 0;
}

.sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.sidebar-action {
    width: 100%;
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    color: var(--sidebar-text);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background var(--transition);
    opacity: 0.8;
}

.sidebar-action:hover {
    background: var(--sidebar-hover);
    opacity: 1;
}

.sidebar-action + .sidebar-action {
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===== 主内容区 ===== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg);
    min-width: 0;
}

/* ===== 欢迎页 ===== */
.welcome-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-secondary);
}

.welcome-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.welcome-view h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.welcome-view p {
    font-size: 14px;
}

/* ===== 聊天视图 ===== */
.chat-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    height: 56px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    flex-shrink: 0;
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    display: none;
}

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

.chat-header-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.chat-subtitle {
    font-size: 12px;
    color: var(--text-light);
}

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

/* ===== 消息区域 ===== */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-row {
    display: flex;
    gap: 8px;
    max-width: 80%;
    animation: fadeIn 0.2s ease;
}

.message-row.admin {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-row.bot {
    align-self: flex-start;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.message-row.admin .message-avatar {
    background: var(--primary);
    color: #fff;
}

.message-row.bot .message-avatar {
    background: #E2E8F0;
    color: var(--text);
}

.message-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message-sender {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.message-row.admin .message-sender {
    text-align: right;
}

.message-bubble {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}

.message-row.admin .message-bubble {
    background: var(--admin-bubble);
    color: var(--admin-bubble-text);
    border-bottom-right-radius: 4px;
}

.message-row.bot .message-bubble {
    background: var(--bot-bubble);
    color: var(--bot-bubble-text);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: var(--text-light);
}

.message-row.admin .message-time {
    text-align: right;
}

/* 思考过程（折叠） */
.message-thinking {
    background: rgba(79, 70, 229, 0.05);
    border-left: 3px solid var(--primary);
    padding: 8px 12px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    cursor: pointer;
}

.message-thinking-header {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.message-thinking-body {
    white-space: pre-wrap;
    line-height: 1.4;
}

/* 工具调用 */
.message-tool-calls {
    background: #FEF3C7;
    border-left: 3px solid var(--warning);
    padding: 8px 12px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 12px;
    color: #92400E;
    margin-bottom: 4px;
    white-space: pre-wrap;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

/* @提及高亮 */
.mention-tag {
    display: inline;
    background: var(--mention-bg);
    color: var(--mention-text);
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 500;
    cursor: pointer;
}

/* ===== @提及弹出框 ===== */
.mention-popup {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
}

.mention-popup-title {
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.mention-popup-item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background var(--transition);
}

.mention-popup-item:hover {
    background: var(--primary-light);
}

.mention-popup-item .item-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.mention-popup-item .item-name {
    font-size: 13px;
    font-weight: 500;
}

.mention-popup-item .item-token {
    font-size: 11px;
    color: var(--text-light);
    margin-left: auto;
}

/* ===== 输入区域 ===== */
.chat-input-area {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    flex-shrink: 0;
    position: relative;
}

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.chat-input-wrapper textarea {
    flex: 1;
    resize: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.4;
    max-height: 120px;
    min-height: 40px;
    outline: none;
    transition: border-color var(--transition);
}

.chat-input-wrapper textarea:focus {
    border-color: var(--primary);
}

.btn-send {
    height: 40px;
    padding: 0 20px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

/* ===== 管理视图 ===== */
.manage-view, .profile-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.view-header {
    padding: 16px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.view-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.manage-content, .profile-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* ===== Tab 切换 ===== */
.manage-tabs {
    display: flex;
    gap: 0;
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.manage-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: calc(var(--radius-md) - 2px);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
}

.manage-tab .tab-icon {
    font-size: 16px;
    line-height: 1;
}

.manage-tab:hover {
    color: var(--text);
    background: rgba(79, 70, 229, 0.04);
}

.manage-tab.active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* ===== Tab 面板 ===== */
.manage-panel {
    display: none;
    animation: panelFadeIn 0.25s ease;
}

.manage-panel.active {
    display: block;
}

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 创建表单 ===== */
.create-form {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.create-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
}

.create-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.manage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.manage-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.manage-item-name {
    font-weight: 500;
    font-size: 14px;
}

.manage-item-meta {
    font-size: 12px;
    color: var(--text-light);
    word-break: break-all;
}

.manage-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 12px;
}

/* ===== 个人中心 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.profile-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 14px;
}

/* ===== Loading ===== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-light);
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Token 复制 ===== */
.token-text {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--primary);
    cursor: pointer;
    user-select: all;
}

/* ===== 复制成功弹窗 ===== */
.copy-toast-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: toastOverlayIn 0.2s ease;
}

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

.copy-toast-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    width: 90%;
    max-width: 420px;
    padding: 0;
    animation: toastCardIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes toastCardIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.copy-toast-header {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    padding: 20px 24px;
    color: #fff;
    text-align: center;
}

.copy-toast-header .toast-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.copy-toast-header .toast-title {
    font-size: 16px;
    font-weight: 700;
}

.copy-toast-header .toast-subtitle {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 4px;
}

.copy-toast-body {
    padding: 20px 24px;
}

.copy-toast-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.copy-toast-content {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text);
    word-break: break-all;
    white-space: pre-wrap;
    user-select: all;
    max-height: 120px;
    overflow-y: auto;
}

.copy-toast-footer {
    padding: 0 24px 20px;
    display: flex;
    gap: 10px;
}

.copy-toast-footer .btn {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
}

.btn-toast-close {
    background: var(--bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-toast-close:hover {
    background: #F1F5F9;
}

.btn-toast-copy {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: #fff;
}

.btn-toast-copy:hover {
    opacity: 0.9;
}

/* ===== 编辑表单字段 ===== */
.edit-field {
    margin-bottom: 14px;
}

.edit-field:last-child {
    margin-bottom: 0;
}

.edit-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.edit-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    color: var(--text);
    background: var(--bg-card);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.edit-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.edit-input::placeholder {
    color: var(--text-light);
}

/* ===== 移动端底部导航 ===== */
.mobile-nav {
    display: none;
    height: var(--mobile-nav-height);
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.mobile-nav {
    justify-content: space-around;
    align-items: center;
}

.mobile-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 0;
    color: var(--text-light);
    transition: color var(--transition);
    font-family: inherit;
}

.mobile-tab.active {
    color: var(--primary);
}

.tab-icon {
    font-size: 20px;
}

.tab-label {
    font-size: 11px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    .app-header {
        padding: 0 12px;
    }

    .header-title {
        font-size: 16px;
    }

    .btn-back {
        display: inline-flex !important;
    }

    .chat-messages {
        padding: 12px;
    }

    .message-row {
        max-width: 90%;
    }

    .manage-content, .profile-content {
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 24px;
    }

    .manage-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .manage-item-actions {
        margin-left: 0;
        align-self: flex-end;
    }
}

/* ===== 滚动条全局 ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}
