/**
 * modules.css - Dashboard 功能模块样式
 * AI创作 / 收藏 / 文件管理 / 思维导图 / 便签 / 工具 / 天气 / 首页
 */


/* ========== ai-modules.css ========== */
/**
 * AI模块统一样式
 */

.ai-module-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 模块头部 */
.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-left h2 {
    margin: 0 0 4px 0;
    font-size: 24px;
    color: #fff;
}

.header-left p {
    margin: 0;
    color: #888;
    font-size: 14px;
}

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

.header-stats {
    display: flex;
    gap: 20px;
}

.stat-mini {
    text-align: center;
}

.stat-mini .stat-num {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #4ADE80;
}

.stat-mini .stat-name {
    display: block;
    font-size: 12px;
    color: #888;
}

.btn-secondary {
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

/* 服务提供商选择 */
.provider-selector,
.model-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.provider-card,
.model-card {
    flex: 1;
    min-width: 140px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.provider-card:hover,
.model-card:hover {
    background: rgba(255,255,255,0.08);
}

.provider-card.active,
.model-card.active {
    border-color: #4ADE80;
    background: rgba(74, 222, 128, 0.1);
}

.provider-badge,
.model-badge {
    display: block;
    font-size: 12px;
    color: #4ADE80;
    margin-bottom: 4px;
}

.provider-name,
.model-name {
    display: block;
    font-weight: 600;
    color: #fff;
}

.model-provider {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* 模块网格 */
.module-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .module-grid {
        grid-template-columns: 1fr;
    }
}

.form-panel,
.preview-panel {
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 20px;
}

/* 预览区域 */
.preview-area {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    text-align: center;
    color: #666;
}

.placeholder-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

/* 生成中状态 */
.generating {
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #4ADE80;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.sub-text {
    color: #888;
    font-size: 13px;
}

/* 结果展示 */
.result-images,
.result-audio,
.result-video {
    width: 100%;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.result-image-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
}

.result-image-card img {
    width: 100%;
    height: auto;
    display: block;
}

.image-actions {
    padding: 12px;
    display: flex;
    gap: 8px;
}

.btn-small {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.btn-small:hover {
    background: rgba(255,255,255,0.2);
}

/* 音频/视频播放器卡片 */
.audio-player-card,
.video-player-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
}

.audio-wave {
    text-align: center;
    margin-bottom: 16px;
}

.wave-icon {
    font-size: 32px;
}

.audio-player,
.video-player {
    width: 100%;
    margin-bottom: 16px;
}

.audio-actions,
.video-actions {
    display: flex;
    gap: 12px;
}

/* 表单样式 */
.ai-form-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 14px;
}

.form-group textarea,
.form-group select,
.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    box-sizing: border-box;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' 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 12px center;
    padding-right: 36px;
}

.form-group textarea:hover,
.form-group select:hover,
.form-group input:hover {
    border-color: var(--border-focus);
}

.form-group textarea:focus,
.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* 复选框组 */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    cursor: pointer;
}

.checkbox-item input {
    margin-top: 2px;
    width: auto;
}

.checkbox-label {
    display: block;
    color: #fff;
    font-size: 14px;
}

.checkbox-desc {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 4px;
}

/* 语音试听 */
.voice-preview {
    margin-bottom: 16px;
}

.voice-sample {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
}

.sample-text {
    flex: 1;
    color: #888;
    font-size: 13px;
    margin-right: 12px;
}

/* 信息框 */
.info-box {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 8px;
    margin-bottom: 16px;
}

.info-icon {
    font-size: 18px;
}

.info-box p {
    margin: 0;
    color: #4ADE80;
    font-size: 13px;
}

/* 生成按钮 */
.generate-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4ADE80, #2DD4BF);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.3);
}

.btn-icon {
    font-size: 18px;
}

/* 结果区域 */
.result-area {
    margin-top: 16px;
}

.result-error {
    padding: 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #FCA5A5;
    text-align: center;
}

/* 历史记录抽屉 */
.history-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #111;
    border-left: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
}

.history-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.drawer-header h3 {
    margin: 0;
    color: #fff;
}

.btn-icon {
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 6px;
    color: #fff;
    padding: 8px 12px;
    cursor: pointer;
}

.history-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-history,
.empty-state {
    text-align: center;
    color: #666;
    padding: 40px 20px;
}

.history-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    background: rgba(255,255,255,0.08);
}

.history-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.history-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumb {
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-icon {
    font-size: 24px;
}

.history-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    flex-shrink: 0;
}

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

.history-prompt {
    margin: 0 0 4px 0;
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-time {
    color: #888;
    font-size: 12px;
}

/* 教程标签页 */
.tutorial-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.tutorial-tab {
    padding: 10px 16px;
    background: rgba(255,255,255,0.05);
    border: none;
    border-radius: 8px;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.tutorial-tab:hover {
    background: rgba(255,255,255,0.1);
}

.tutorial-tab.active {
    background: #4ADE80;
    color: #000;
}

.tutorial-content {
    margin-bottom: 32px;
}

/* 热门爆款 */
.hot-section {
    margin-bottom: 24px;
}

.hot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.hot-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: all 0.2s;
}

.hot-item:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

.hot-rank {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #4ADE80, #2DD4BF);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
    flex-shrink: 0;
}

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

.hot-title {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
}

.hot-likes {
    color: #888;
    font-size: 13px;
}

.fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s;
}

.fav-btn:hover,
.fav-btn.active {
    opacity: 1;
    transform: scale(1.2);
}

/* 视频列表 */
.video-list-section {
    margin-bottom: 24px;
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: all 0.2s;
}

.video-item:hover {
    background: rgba(255,255,255,0.08);
}

.video-title {
    flex: 1;
    color: #fff;
    font-size: 14px;
}

.video-likes {
    color: #888;
    font-size: 13px;
}

/* 深度教程 */
.deep-guide-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.deep-guide-section h3 {
    margin: 0 0 20px 0;
    color: #fff;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.guide-card {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 20px;
}

.guide-card.highlight {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.guide-card h4 {
    margin: 0 0 16px 0;
    color: #fff;
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.guide-table th,
.guide-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.guide-table th {
    color: #888;
    font-weight: normal;
}

.guide-table td {
    color: #ccc;
}

.flow-steps {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.flow-step {
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
}

.code-block {
    padding: 12px;
    background: #000;
    border-radius: 8px;
    color: #4ADE80;
    font-family: monospace;
    font-size: 13px;
}

.formula {
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    text-align: center;
}

/* 标签 */
.tags-section {
    margin-bottom: 24px;
}

.tags-section h4 {
    margin: 0 0 12px 0;
    color: #fff;
}

.tags-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    color: #ccc;
    font-size: 13px;
}

.source-info {
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    color: #888;
    font-size: 13px;
    text-align: center;
}

/* 响应式 */
@media (max-width: 768px) {
    .module-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .history-drawer {
        width: 100%;
        right: -100%;
    }
    
    .hot-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
 * AI聊天模块样式 - 优化版
 * 深色主题 + 绿色强调色 (#4ADE80)
 * ============================================ */

.ai-chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 160px);
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* 聊天头部 */
.ai-chat-container .chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(74, 222, 128, 0.15);
}

.ai-chat-container .header-left h2 {
    margin: 0 0 6px 0;
    font-size: 26px;
    color: #4ADE80;
    font-weight: 600;
}

.ai-chat-container .header-left p {
    margin: 0;
    opacity: 0.55;
    font-size: 13px;
}

.ai-chat-container .header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ai-chat-container .model-select {
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(74, 222, 128, 0.25);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    min-width: 200px;
}

.ai-chat-container .model-select:focus {
    outline: none;
    border-color: #4ADE80;
}

.ai-chat-container .btn-secondary {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-chat-container .btn-secondary:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

/* 聊天主体 */
.ai-chat-container .chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 消息列表 */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.4), rgba(15, 15, 15, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 16px;
}

.chat-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
}

.chat-welcome .welcome-icon {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.chat-welcome h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #4ADE80;
}

.chat-welcome p {
    margin: 0 0 24px 0;
    opacity: 0.55;
}

.welcome-models {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.welcome-models .model-tag {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    font-size: 13px;
}

/* 单条消息 */
.chat-message {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-message .message-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(34, 197, 94, 0.1));
    border-radius: 50%;
    font-size: 20px;
    flex-shrink: 0;
}

.chat-message .message-body {
    max: calc(100% - 56px);
}

.chat-message.user .message-body {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(74, 222, 128, 0.08));
    border-radius: 18px 18px 4px 18px;
    padding: 14px 18px;
}

.chat-message.assistant .message-body {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 18px 18px 18px 4px;
    padding: 14px 18px;
}

.chat-message .message-content {
    word-break: break-word;
    white-space: pre-wrap;
    line-height: 1.6;
    font-size: 14px;
}

.chat-message .message-meta {
    font-size: 11px;
    opacity: 0.4;
    margin-top: 6px;
}

.message-model {
    font-size: 11px;
    color: #4ADE80;
    background: rgba(74, 222, 128, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: 8px;
}

/* 输入区域 */
.chat-input-area {
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.6), rgba(20, 20, 20, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px;
}

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

.chat-input-area #chat-input {
    flex: 1;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    min-height: 48px;
    max-height: 120px;
    line-height: 1.5;
}

.chat-input-area #chat-input:focus {
    outline: none;
    border-color: #4ADE80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}

.chat-input-area #chat-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.chat-input-area .send-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4ADE80, #22c55e);
    border: none;
    border-radius: 12px;
    color: #0a0a0a;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-input-area .send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.35);
}

.chat-input-area .input-hints {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.45;
}

/* 加载状态 */
.chat-message.loading .message-body {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ========== favorites.css ========== */
/**
 * 收藏模块样式 - 全面优化版
 * 现代、精致、交互丰富的设计风格
 */

/* ========== 页面头部 ========== */
.favorites-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.favorites-header h2 {
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.favorites-header h2::before {
    content: '⭐';
    font-size: 24px;
}

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

/* ========== 搜索栏 ========== */
.favorites-search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input-wrapper input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.search-input-wrapper::before {
    content: '🔍';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.6;
}

.search-input-wrapper input:focus + ::before,
.search-input-wrapper input:not(:placeholder-shown) + ::before {
    opacity: 1;
}

.search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.search-input-wrapper input:not(:placeholder-shown) ~ .search-clear {
    opacity: 1;
}

.search-clear:hover {
    color: var(--text-primary);
}

/* ========== 分类标签 ========== */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px;
    background: var(--bg-hover);
    border-radius: 12px;
}

.cat-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cat-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.cat-tab.active {
    background: var(--accent);
    color: #000;
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
}

.cat-tab .count {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cat-tab.active .count {
    background: rgba(0, 0, 0, 0.15);
}

/* ========== 收藏列表 ========== */
.favorites-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

/* ========== 收藏卡片 ========== */
.favorite-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.favorite-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #22c55e);
    opacity: 0;
    transition: opacity 0.3s;
}

.favorite-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(74, 222, 128, 0.3);
}

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

/* 卡片头部 */
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-card) 100%);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.card-icon {
    font-size: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.favorite-card:hover .card-icon {
    transform: scale(1.05);
    border-color: rgba(74, 222, 128, 0.3);
}

.card-title-group {
    flex: 1;
    min-width: 0;
}

.card-name {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.card-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(74, 222, 128, 0.1);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
}

.card-category::before {
    content: '📁';
    font-size: 10px;
}

.card-actions {
    display: flex;
    gap: 6px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.2s;
}

.favorite-card:hover .card-actions {
    opacity: 1;
    transform: translateX(0);
}

.card-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.card-action-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    transform: scale(1.05);
}

.card-action-btn:active {
    transform: scale(0.95);
}

/* 卡片内容 */
.card-body {
    padding: 16px 18px;
}

.card-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    padding: 8px 12px;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.card-field:hover {
    border-color: var(--border);
}

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

.card-field .label {
    color: var(--text-muted);
    min-width: 44px;
    font-weight: 500;
    font-size: 12px;
}

.card-field .value {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-secondary);
    font-family: 'SF Mono', monospace;
    font-size: 12px;
}

.card-field .value.url {
    color: var(--accent);
}

.card-field .value.url:hover {
    text-decoration: underline;
    cursor: pointer;
}

.card-field .value.notes {
    font-family: inherit;
    white-space: normal;
    line-height: 1.5;
}

.copy-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.2s;
    opacity: 0;
}

.card-field:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    background: var(--bg-hover);
    color: var(--accent);
}

.copy-btn.copied {
    background: rgba(74, 222, 128, 0.2);
    color: var(--accent);
    opacity: 1;
}

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

.empty-state .empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-state p {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state .empty-hint {
    font-size: 14px;
    opacity: 0.7;
}

.empty-state .btn-primary {
    margin-top: 24px;
}

/* ========== 模态框 ========== */
.favorites-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.favorites-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.favorites-modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 10;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3::before {
    content: '⭐';
    font-size: 20px;
}

.btn-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: var(--bg-hover);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
}

.btn-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    position: sticky;
    bottom: 0;
    background: var(--bg-card);
}

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

.form-group:last-child {
    margin-bottom: 0;
}

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

.form-group label .required {
    color: #ef4444;
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--border-focus);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

/* URL输入组 */
.url-input-group {
    display: flex;
    gap: 8px;
}

.url-input-group select {
    width: 110px;
    flex-shrink: 0;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' 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: 28px;
}

.url-input-group input {
    flex: 1;
}

/* 密码输入 */
.password-input {
    position: relative;
}

.password-input input {
    padding-right: 44px;
}

.password-input .toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.password-input .toggle-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* 分类选择 */
.category-select {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-select-row {
    display: flex;
    gap: 8px;
}

.category-select-row select,
.category-select-row input {
    flex: 1;
}

.category-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
}

.category-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* ========== 分类管理 ========== */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-primary);
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.category-item:hover {
    border-color: rgba(74, 222, 128, 0.3);
}

.category-item .category-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-item .category-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

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

.category-item .category-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 4px;
}

.category-item .delete-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.category-item .delete-btn:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.category-item .delete-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.category-item.default .category-icon {
    background: rgba(74, 222, 128, 0.1);
}

.add-category-form {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.add-category-form input {
    flex: 1;
}

/* ========== 按钮 ========== */
.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    border: none;
}

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

.btn-primary:hover {
    background: #22c55e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--text-secondary);
}

/* ========== 统计信息 ========== */
.favorites-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--bg-hover);
    border-radius: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-item .stat-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
}

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

/* ========== 批量操作栏 ========== */
.batch-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-hover);
    border-radius: 10px;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s;
    pointer-events: none;
}

.batch-actions.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.batch-actions-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.batch-count {
    font-size: 14px;
    font-weight: 500;
}

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

/* ========== Toast 提示 ========== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: rgba(74, 222, 128, 0.3);
}

.toast.success::before {
    content: '✓';
    width: 22px;
    height: 22px;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.3);
}

.toast.error::before {
    content: '✕';
    width: 22px;
    height: 22px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .favorites-list {
        grid-template-columns: 1fr;
    }
    
    .favorites-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .header-actions {
        width: 100%;
    }
    
    .header-actions button {
        flex: 1;
    }
    
    .category-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 8px;
    }
    
    .cat-tab {
        white-space: nowrap;
    }
    
    .card-actions {
        opacity: 1;
        transform: none;
    }
    
    .modal-content {
        margin: 16px;
        max-height: calc(100vh - 32px);
    }
}

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

.favorite-card {
    animation: fadeIn 0.3s ease-out;
}

/* 骨架屏 */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-hover) 25%,
        var(--bg-card) 50%,
        var(--bg-hover) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


/* ========== files.css ========== */
/**
 * 文件管理模块样式 - Phase 4 完整重写
 * 设计原则：紫蓝渐变色系 · 12px圆角 · 卡片阴影 · 响应式 · 大厂气质
 */

/* ============================================
   1. 容器 & 头部
   ============================================ */
.files-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.3s ease-out;
}

.files-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.files-page-header .header-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.files-page-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.files-page-header .header-subtitle {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* 配额进度条 - 头部紧凑版 */
.quota-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 260px;
}

.quota-mini-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-hover);
    border-radius: 3px;
    overflow: hidden;
}

.quota-mini-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s;
    /* 紫蓝渐变 */
    background: linear-gradient(90deg, #4ADE80, #22c55e, #16a34a);
}

.quota-mini-fill.warning {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.quota-mini-fill.danger {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

.quota-mini-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ============================================
   2. 上传拖拽区域
   ============================================ */
.upload-dropzone {
    position: relative;
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(99, 102, 241, 0.03);
    overflow: hidden;
}

.upload-dropzone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
    border-color: #4ADE80;
    background: rgba(99, 102, 241, 0.06);
    border-style: solid;
}

.upload-dropzone:hover::before,
.upload-dropzone.drag-over::before {
    opacity: 1;
}

.upload-dropzone .dz-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-dropzone .dz-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 4px;
}

.upload-dropzone .dz-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.upload-dropzone .dz-hint {
    font-size: 12px;
    color: var(--text-tertiary);
}

.upload-dropzone .dz-hint em {
    color: #4ADE80;
    font-style: normal;
    font-weight: 500;
}

/* ============================================
   3. 工具栏
   ============================================ */
.files-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 主操作按钮 */
.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.btn-upload:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    background: linear-gradient(135deg, #4ADE80, #22c55e);
}

.btn-upload:active {
    transform: translateY(0);
}

.btn-new-folder {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-new-folder:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
}

/* 搜索框 */
.search-box {
    position: relative;
    min-width: 200px;
}

.search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 10px 14px 10px 36px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* 排序选择 */
.sort-select {
    padding: 9px 32px 9px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.sort-select:hover,
.sort-select:focus {
    border-color: #22c55e;
}

.sort-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* 视图切换按钮组 */
.view-toggle {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: 10px;
    padding: 3px;
    border: 1px solid var(--border);
}

.view-toggle button {
    width: 34px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.view-toggle button.active {
    background: var(--bg-card);
    color: #4ADE80;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.view-toggle button:hover:not(.active) {
    color: var(--text-secondary);
}

/* ============================================
   4. 批量操作栏
   ============================================ */
.batch-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.06));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    margin-top: 4px;
    animation: slideDown 0.25s ease-out;
    flex-wrap: wrap;
}

.batch-bar .batch-count {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.batch-bar .batch-count strong {
    color: #4ADE80;
    font-size: 15px;
}

.batch-bar .batch-spacer {
    flex: 1;
}

.batch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.batch-btn-download {
    background: rgba(99, 102, 241, 0.12);
    color: #4ADE80;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.batch-btn-download:hover {
    background: rgba(99, 102, 241, 0.2);
}

.batch-btn-delete {
    background: rgba(248, 113, 113, 0.1);
    color: var(--error);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.batch-btn-delete:hover {
    background: rgba(248, 113, 113, 0.2);
}

.batch-btn-cancel {
    background: var(--bg-hover);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.batch-btn-cancel:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
}

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

/* ============================================
   5. 文件列表（列表视图）
   ============================================ */
.files-list-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    animation: fadeIn 0.3s ease-out;
}

.file-list-header {
    display: grid;
    grid-template-columns: 32px 1fr 90px 140px 100px;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-items: center;
}

.file-row {
    display: grid;
    grid-template-columns: 32px 1fr 90px 140px 100px;
    gap: 8px;
    padding: 12px 16px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: all 0.15s ease;
    cursor: default;
}

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

.file-row:hover {
    background: var(--bg-hover);
}

.file-row.selected {
    background: rgba(99, 102, 241, 0.06);
}

/* 复选框样式 */
.file-check {
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-strong);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    background: transparent;
}

.file-check input[type="checkbox"]:hover {
    border-color: #4ADE80;
}

.file-check input[type="checkbox"]:checked {
    background: #22c55e;
    border-color: #22c55e;
}

.file-check input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 文件名列 */
.file-name-col {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.file-name-col .file-type-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.file-name-col .file-type-icon.image { background: rgba(59, 130, 246, 0.12); }
.file-name-col .file-type-icon.video { background: rgba(239, 68, 68, 0.12); }
.file-name-col .file-type-icon.audio { background: rgba(168, 85, 247, 0.12); }
.file-name-col .file-type-icon.text { background: rgba(34, 197, 94, 0.12); }
.file-name-col .file-type-icon.pdf { background: rgba(251, 146, 60, 0.12); }
.file-name-col .file-type-icon.archive { background: rgba(251, 191, 36, 0.12); }
.file-name-col .file-type-icon.other { background: var(--bg-hover); }

.file-name-col .file-detail {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-name-col .file-name-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-name-col .file-mime-tag {
    font-size: 11px;
    color: var(--text-muted);
}

.file-col-size {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.file-col-date {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* 操作按钮 */
.file-col-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.file-col-actions .action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 14px;
}

.file-col-actions .action-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.file-col-actions .action-btn.danger:hover {
    background: rgba(248, 113, 113, 0.12);
    color: var(--error);
}

/* ============================================
   6. 文件列表（网格视图）
   ============================================ */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    padding: 16px;
}

.file-grid-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.file-grid-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.file-grid-card.selected {
    border-color: #22c55e;
    background: rgba(99, 102, 241, 0.06);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.file-grid-card .grid-check {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.2s;
}

.file-grid-card:hover .grid-check,
.file-grid-card.selected .grid-check {
    opacity: 1;
}

.file-grid-card .grid-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.file-grid-card .grid-icon.image { background: rgba(59, 130, 246, 0.12); }
.file-grid-card .grid-icon.video { background: rgba(239, 68, 68, 0.12); }
.file-grid-card .grid-icon.audio { background: rgba(168, 85, 247, 0.12); }
.file-grid-card .grid-icon.text { background: rgba(34, 197, 94, 0.12); }
.file-grid-card .grid-icon.pdf { background: rgba(251, 146, 60, 0.12); }
.file-grid-card .grid-icon.archive { background: rgba(251, 191, 36, 0.12); }
.file-grid-card .grid-icon.other { background: var(--bg-hover); }

.file-grid-card .grid-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-grid-card .grid-size {
    font-size: 11px;
    color: var(--text-tertiary);
}

/* ============================================
   7. 空状态
   ============================================ */
.files-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    text-align: center;
    animation: fadeIn 0.4s ease-out;
}

.files-empty-state .empty-illustration {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.04));
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.08);
}

.files-empty-state .empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.files-empty-state .empty-desc {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
    max-width: 320px;
    line-height: 1.5;
}

.files-empty-state .empty-actions {
    display: flex;
    gap: 10px;
}

/* ============================================
   8. 上传进度面板
   ============================================ */
.upload-panel {
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    animation: slideDown 0.25s ease-out;
}

.upload-panel .upload-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.upload-panel .upload-item + .upload-item {
    border-top: 1px solid var(--border);
}

.upload-panel .upload-file-icon {
    font-size: 20px;
    flex-shrink: 0;
}

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

.upload-panel .upload-filename {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.upload-panel .upload-progress-track {
    height: 4px;
    background: var(--bg-hover);
    border-radius: 2px;
    overflow: hidden;
}

.upload-panel .upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #4ADE80);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.upload-panel .upload-status {
    font-size: 12px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.upload-panel .upload-status.success { color: var(--success); }
.upload-panel .upload-status.error { color: var(--error); }

/* ============================================
   9. 预览弹窗
   ============================================ */
.preview-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    z-index: 1050;
    animation: fadeIn 0.2s ease;
}

.preview-dialog {
    position: fixed;
    inset: 24px;
    display: flex;
    flex-direction: column;
    z-index: 1051;
    animation: previewZoomIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--bg-card);
    border-radius: 14px 14px 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
}

.preview-header .preview-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.preview-close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.preview-close-btn:hover {
    background: rgba(248, 113, 113, 0.15);
    color: var(--error);
    border-color: rgba(248, 113, 113, 0.3);
}

.preview-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
    min-height: 200px;
}

.preview-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.preview-body video {
    max-width: 100%;
    max-height: 100%;
}

.preview-body audio {
    width: 300px;
}

.preview-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.preview-body .preview-text-content {
    width: 100%;
    height: 100%;
    padding: 24px;
    overflow: auto;
}

.preview-body .preview-text-content pre {
    background: var(--bg-tertiary);
    border-radius: 10px;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-primary);
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.preview-body .preview-info-card {
    text-align: center;
    padding: 32px;
}

.preview-body .preview-info-card .pi-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.preview-body .preview-info-card .pi-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.preview-body .preview-info-card .pi-meta {
    font-size: 13px;
    color: var(--text-tertiary);
}

.preview-body .preview-loading,
.preview-body .preview-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-tertiary);
    font-size: 14px;
}

@keyframes previewZoomIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* ============================================
   10. 新建文件夹对话框
   ============================================ */
.dialog-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.2s ease;
}

.dialog-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: dialogSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dialog-card .dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.dialog-card .dialog-head h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.dialog-card .dialog-body {
    padding: 20px;
}

.dialog-card .dialog-body .form-group {
    margin-bottom: 0;
}

.dialog-card .dialog-body label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.dialog-card .dialog-body input {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.dialog-card .dialog-body input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.dialog-card .dialog-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-tertiary);
}

.dialog-card .dialog-foot .btn-cancel {
    padding: 9px 18px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dialog-card .dialog-foot .btn-cancel:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.dialog-card .dialog-foot .btn-confirm {
    padding: 9px 20px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.dialog-card .dialog-foot .btn-confirm:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

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

/* ============================================
   11. 确认对话框
   ============================================ */
.confirm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1070;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.2s ease;
}

.confirm-card {
    width: 100%;
    max-width: 380px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 24px;
    animation: dialogSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.confirm-card .confirm-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.confirm-card .confirm-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.confirm-card .confirm-desc {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.confirm-card .confirm-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.confirm-card .confirm-actions .btn-cancel {
    padding: 10px 22px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-card .confirm-actions .btn-cancel:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.confirm-card .confirm-actions .btn-danger-confirm {
    padding: 10px 22px;
    background: var(--error);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-card .confirm-actions .btn-danger-confirm:hover {
    background: #ef4444;
}

/* ============================================
   12. Toast 通知
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.3s ease;
    pointer-events: all;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.toast.success { border-color: rgba(34, 197, 94, 0.3); }
.toast.error { border-color: rgba(248, 113, 113, 0.3); }
.toast.info { border-color: rgba(99, 102, 241, 0.3); }

.toast .toast-icon {
    font-size: 16px;
    flex-shrink: 0;
}

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

/* ============================================
   13. 响应式 - 移动端
   ============================================ */
@media (max-width: 768px) {
    .files-page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .quota-mini {
        min-width: unset;
        width: 100%;
    }

    .upload-dropzone {
        padding: 28px 16px;
    }

    .upload-dropzone .dz-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .files-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-left,
    .toolbar-right {
        flex-wrap: wrap;
    }

    .search-box {
        min-width: unset;
        flex: 1;
    }

    /* 列表视图响应式 */
    .file-list-header {
        display: none;
    }

    .file-row {
        grid-template-columns: 36px 1fr 50px;
    }

    .file-col-size,
    .file-col-date {
        display: none;
    }

    .file-col-actions {
        display: none;
    }

    /* 网格视图响应式 */
    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        padding: 12px;
    }

    .file-grid-card {
        padding: 14px;
    }

    .file-grid-card .grid-icon {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .preview-dialog {
        inset: 8px;
    }

    .batch-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .batch-bar .batch-spacer {
        flex: unset;
    }

    .dialog-card {
        margin: 0;
    }

    .confirm-card {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .files-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
    }

    .file-grid-card {
        padding: 12px;
    }

    .file-grid-card .grid-name {
        font-size: 12px;
    }
}
/* 批量操作栏 */
.batch-bar {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(74,222,128,0.1), rgba(74,222,128,0.1));
    border: 1px solid rgba(74,222,128,0.3);
    border-radius: 8px;
    margin-bottom: 12px;
    animation: batchIn 0.3s ease;
}
.batch-bar .batch-count { font-size: 14px; font-weight: 500; color: #4ADE80; }
@keyframes batchIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* 复选框列 */
.col-check { width: 36px; flex-shrink: 0; }
.col-check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: #4ADE80; }
.selected-count { font-size: 13px; color: #4ADE80; font-weight: 500; }


/* ========== mindmap.css ========== */
/* ========== 思维导图模块样式 - 美化版 ========== */
/* 思维导图列表 */
.mindmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.mindmap-card {
    background: linear-gradient(145deg, #111111 0%, #1a1a1a 100%);
    border: 1px solid #222;
    border-radius: 16px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.mindmap-card:hover {
    border-color: #4ADE80;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(74, 222, 128, 0.15);
}
.mindmap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4ADE80, #22c55e);
    opacity: 0;
    transition: opacity 0.3s;
}
.mindmap-card:hover::before {
    opacity: 1;
}
/* 预览区域 */
.mindmap-preview {
    background: linear-gradient(135deg, #0a0a0a 0%, #151515 100%);
    padding: 24px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #222;
}
.mindmap-mini-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.mini-root {
    background: linear-gradient(135deg, #4ADE80 0%, #22c55e 100%);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}
.mini-children {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.mini-node {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ADE80;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
}
.mini-more {
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
}
/* 卡片信息 */
.mindmap-card-info {
    padding: 16px 20px;
}
.mindmap-card-info h4 {
    font-size: 16px;
    margin-bottom: 6px;
    color: #fff;
    font-weight: 500;
}
.mindmap-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mindmap-meta::before {
    content: '🕐';
    font-size: 10px;
}
/* 操作按钮 */
.mindmap-card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.8);
    padding: 6px;
    border-radius: 8px;
    backdrop-filter: blur(8px);
}
.mindmap-card:hover .mindmap-card-actions {
    opacity: 1;
}
.mindmap-card-actions button {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #888;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mindmap-card-actions button:hover {
    background: rgba(74, 222, 128, 0.2);
    color: #4ADE80;
}
/* ========== 思维导图编辑器 - 全新设计 ========== */
.mindmap-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.mindmap-editor-content {
    background: linear-gradient(145deg, #0d0d0d 0%, #151515 100%);
    border: 1px solid #222;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
/* 编辑器头部 */
.mindmap-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid #222;
    gap: 20px;
}
.mindmap-editor-header input {
    width: 280px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    transition: all 0.2s;
}
.mindmap-editor-header input:focus {
    outline: none;
    border-color: #4ADE80;
    background: rgba(74, 222, 128, 0.05);
}
.mindmap-editor-header input::placeholder {
    color: #555;
}
/* 工具栏 */
.mindmap-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
}
.toolbar-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 8px;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.toolbar-btn:hover {
    background: rgba(74, 222, 128, 0.1);
    border-color: #4ADE80;
    color: #4ADE80;
}
.toolbar-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}
.toolbar-separator {
    width: 1px;
    height: 24px;
    background: #333;
    margin: 0 4px;
}
/* 画布区域 */
.mindmap-editor-body {
    flex: 1;
    overflow: hidden;
    background: 
        radial-gradient(circle at 20% 50%, rgba(74, 222, 128, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(34, 197, 94, 0.03) 0%, transparent 50%),
        #0a0a0a;
    position: relative;
}
.mindmap-canvas {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    transform-origin: center top;
    cursor: grab;
    transition: transform 0.2s ease;
}
.mindmap-canvas:active {
    cursor: grabbing;
}
.mindmap-canvas.dragging {
    cursor: grabbing;
}
/* 缩放控制栏 */
.mindmap-zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 8px;
    z-index: 100;
}
.mindmap-zoom-controls button {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #888;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mindmap-zoom-controls button:hover {
    background: rgba(74, 222, 128, 0.1);
    color: #4ADE80;
}
.mindmap-zoom-controls .zoom-level {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    font-size: 13px;
    color: #aaa;
}
/* 节点树样式 - 径向布局 */
.mindmap-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    padding: 40px;
}
.mindmap-node-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    --line-color: rgba(74, 222, 128, 0.4);
}
.mindmap-node-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    width: 2px;
    height: 15px;
    background: var(--line-color);
    transform: translateX(-50%);
    border-radius: 1px;
}
.mindmap-node-wrapper.root::before {
    display: none;
}
/* 节点样式 - 默认简洁版 */
.mindmap-node {
    --node-color: #4ADE80;
    background: color-mix(in srgb, var(--node-color) 30%, transparent);
    border: 2px solid color-mix(in srgb, var(--node-color) 60%, transparent);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    position: relative;
    cursor: pointer;
    min-width: 80px;
    text-align: center;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.mindmap-node:hover {
    background: color-mix(in srgb, var(--node-color) 20%, transparent);
    border-color: color-mix(in srgb, var(--node-color) 50%, transparent);
}

.mindmap-node.selected {
    border-color: var(--node-color);
    background: color-mix(in srgb, var(--node-color) 25%, transparent);
}

.mindmap-node.root-node {
    font-size: 15px;
    font-weight: 600;
    padding: 10px 20px;
    background: color-mix(in srgb, var(--node-color) 25%, transparent);
    border-color: var(--node-color);
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.node-content {
    outline: none;
    min-width: 40px;
    line-height: 1.4;
}
.node-content:focus {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 4px 8px;
    margin: -4px -8px;
}
/* 展开/折叠按钮 */
.node-toggle {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 50%;
    color: #888;
    font-size: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.node-toggle:hover {
    border-color: #4ADE80;
    color: #4ADE80;
}
/* 子节点容器 */
.mindmap-children {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 15px;
    position: relative;
}
.mindmap-children::before {
    display: none;
}
/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(145deg, #111 0%, #0a0a0a 100%);
    border-radius: 20px;
    border: 1px dashed #333;
}
.empty-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
    opacity: 0.5;
}
.empty-state p {
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
}
.empty-hint {
    font-size: 14px;
    color: #666;
    display: block;
    margin-bottom: 24px;
}
/* 模块头部 */
.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #222;
}
.module-header h2 {
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(90deg, #fff, #4ADE80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.header-actions {
    display: flex;
    gap: 12px;
}
/* 按钮样式 */
.btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, #4ADE80 0%, #22c55e 100%);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.3);
}
.btn-secondary {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
    border: 1px solid #333;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #444;
    color: #fff;
}
/* 响应式 */
@media (max-width: 768px) {
    .mindmap-grid {
        grid-template-columns: 1fr;
    }
    
    .mindmap-editor-header {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .mindmap-editor-header input {
        width: 100%;
    }
    
    .mindmap-toolbar {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .toolbar-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .mindmap-children {
        flex-direction: column;
        gap: 20px;
    }
    
    .mindmap-node {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .mindmap-node.root-node {
        font-size: 16px;
        padding: 14px 24px;
    }
}
/* ========== 私密空间样式 ========== */
.private-section {
    margin-top: 32px;
    border: 1px solid #333;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, #0d0d0d 0%, #151515 100%);
    width: 100%;
}
.private-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(90deg, rgba(244, 114, 182, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    cursor: pointer;
    transition: background 0.2s;
}
.private-header:hover {
    background: linear-gradient(90deg, rgba(244, 114, 182, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
}
.private-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #4ADE80;
}
.private-toggle {
    color: #888;
    font-size: 12px;
}
.private-content {
    padding: 20px;
    width: 100%;
}
.private-lock {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}
.lock-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.private-lock p {
    color: #888;
    margin-bottom: 20px;
}
.unlock-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    width: 100%;
    max-width: 300px;
}
.unlock-form input {
    padding: 12px 16px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    font-size: 14px;
    width: 100%;
}
.unlock-form input:focus {
    outline: none;
    border-color: #4ADE80;
}
.unlock-form .btn-primary {
    width: 100%;
}
.btn-link {
    background: none;
    border: none;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}
.btn-link:hover {
    color: #4ADE80;
}
.empty-private {
    text-align: center;
    padding: 40px;
    color: #666;
    width: 100%;
}
.private-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.private-card {
    border-color: rgba(244, 114, 182, 0.3);
}
.private-card:hover {
    border-color: #4ADE80;
}
.private-card::before {
    background: linear-gradient(90deg, #4ADE80, #A855F7);
}
/* ========== 归档空间样式 ========== */
.archive-section {
    margin-top: 32px;
    border: 1px solid #333;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, #0d0d0d 0%, #151515 100%);
    width: 100%;
}
.archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.1) 0%, rgba(100, 116, 139, 0.1) 100%);
    cursor: pointer;
    transition: background 0.2s;
}
.archive-header:hover {
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.15) 0%, rgba(100, 116, 139, 0.15) 100%);
}
.archive-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #999999;
}
.archive-toggle {
    color: #888;
    font-size: 12px;
}
.archive-content {
    padding: 20px;
    width: 100%;
}
.empty-archive {
    text-align: center;
    padding: 40px;
    color: #666;
    width: 100%;
}
.archive-card {
    border-color: rgba(148, 163, 184, 0.3);
}
.archive-card:hover {
    border-color: #999999;
}
.archive-card::before {
    background: linear-gradient(90deg, #999999, #888888);
}
/* ========== 节点拖拽样式 ========== */
.mindmap-node-wrapper:not(.root) .mindmap-node[draggable="true"] {
    cursor: grab;
}
.mindmap-node-wrapper:not(.root) .mindmap-node[draggable="true"]:active {
    cursor: grabbing;
}
.mindmap-node.drop-target {
    border-color: #4ADE80 !important;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.5) !important;
    background: rgba(74, 222, 128, 0.2) !important;
}
/* 左右放置区域 - 默认隐藏，拖动时才显示 */
.drop-zone {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 40px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.drop-left {
    left: -35px;
}
.drop-right {
    right: -35px;
}
.drop-zone .zone-arrow {
    font-size: 14px;
    color: transparent;
    transition: color 0.2s;
}
/* 拖动时显示放置区域 */
.mindmap-canvas.dragging .drop-zone {
    opacity: 1;
    pointer-events: auto;
}
.drop-zone.active {
    background: rgba(96, 165, 250, 0.2);
    border: 1px dashed #4ADE80;
}
.drop-zone.active .zone-arrow {
    color: #4ADE80;
}
/* ========== 节点样式增强 ========== */
/* 工具栏分组 */
.toolbar-group {
    display: flex;
    gap: 8px;
}
.toolbar-group select {
    padding: 8px 12px;
    padding-right: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: var(--bg-input);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' 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 10px center;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    appearance: none;
}
.toolbar-group select:hover {
    border-color: var(--primary);
    background-color: var(--bg-hover);
}
.toolbar-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}
.toolbar-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 8px;
}
/* 布局样式 - 向下展开（默认） */
.mindmap-tree.layout-down {
    flex-direction: column;
}
.mindmap-tree.layout-down .mindmap-node-wrapper {
    flex-direction: column;
    margin-left: 0;
    margin-top: 10px;
}
.mindmap-tree.layout-down .mindmap-children {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 15px;
    border-left: none;
    border-top: none;
}

/* 布局样式 - 向右展开 */
.mindmap-tree.layout-right {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}
.mindmap-tree.layout-right .mindmap-node-wrapper {
    flex-direction: row;
    align-items: center;
    margin-left: 0;
}
.mindmap-tree.layout-right .mindmap-node-wrapper::before {
    width: 15px;
    height: 2px;
    top: 50%;
    left: -15px;
    transform: translateY(-50%);
}
.mindmap-tree.layout-right .mindmap-children {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 50px;
    padding-left: 20px;
    padding-top: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
}
/* ========== 主题样式 ========== */
/* 默认绿色主题 */
.theme-green .mindmap-node,
.theme-green .mindmap-node-wrapper {
    --node-color: #4ADE80;
    --line-color: rgba(74, 222, 128, 0.5);
}

/* 主题：商务蓝 */
.theme-blue .mindmap-node,
.theme-blue .mindmap-node-wrapper {
    --node-color: #60a5fa;
    --line-color: rgba(96, 165, 250, 0.5);
}

/* 主题：优雅紫 */
.theme-purple .mindmap-node,
.theme-purple .mindmap-node-wrapper {
    --node-color: #c084fc;
    --line-color: rgba(192, 132, 252, 0.5);
}

/* 主题：活力橙 */
.theme-orange .mindmap-node,
.theme-orange .mindmap-node-wrapper {
    --node-color: #fb923c;
    --line-color: rgba(251, 146, 60, 0.5);
}

/* 主题：浪漫粉 */
.theme-pink .mindmap-node,
.theme-pink .mindmap-node-wrapper {
    --node-color: #f472b6;
    --line-color: rgba(244, 114, 182, 0.5);
}

/* 主题：彩虹 */
.theme-rainbow .mindmap-node {
    --node-color: #4ADE80;
}
.theme-rainbow .mindmap-node-wrapper:nth-child(6n+1) .mindmap-node { --node-color: #f87171; }
.theme-rainbow .mindmap-node-wrapper:nth-child(6n+2) .mindmap-node { --node-color: #fb923c; }
.theme-rainbow .mindmap-node-wrapper:nth-child(6n+3) .mindmap-node { --node-color: #facc15; }
.theme-rainbow .mindmap-node-wrapper:nth-child(6n+4) .mindmap-node { --node-color: #4ade80; }
.theme-rainbow .mindmap-node-wrapper:nth-child(6n+5) .mindmap-node { --node-color: #60a5fa; }
.theme-rainbow .mindmap-node-wrapper:nth-child(6n+6) .mindmap-node { --node-color: #c084fc; }
/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .toolbar-group {
        flex-wrap: wrap;
    }
    
    .toolbar-group select {
        font-size: 12px;
        padding: 4px 8px;
    }
}
/* ========== 简化样式优化 ========== */
/* 紧凑模式 - 减少间距 */
.mindmap-tree.compact .mindmap-node-wrapper {
    margin-left: 12px;
    margin-top: 4px;
}
.mindmap-tree.compact .mindmap-node {
    padding: 6px 12px;
    font-size: 13px;
    min-height: auto;
}
.mindmap-tree.compact .mindmap-node.root-node {
    padding: 10px 20px;
    font-size: 15px;
}
.mindmap-tree.compact .mindmap-children {
    margin-top: 4px;
    padding-left: 8px;
}
/* 简化节点样式 */
.mindmap-node.simple {
    border-radius: 6px;
    border-width: 1px;
    box-shadow: none;
    background: color-mix(in srgb, var(--node-color) 80%, transparent);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.mindmap-node.simple:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.mindmap-node.simple.root-node {
    border-radius: 8px;
    font-weight: 600;
    background: var(--node-color);
}
/* 卡片样式 */
.mindmap-node.card {
    background: color-mix(in srgb, var(--node-color) 20%, transparent);
    border: 2px solid color-mix(in srgb, var(--node-color) 50%, transparent);
    border-radius: 8px;
    padding: 8px 14px;
    color: #fff;
}
.mindmap-node.card:hover {
    background: color-mix(in srgb, var(--node-color) 30%, transparent);
    border-color: var(--node-color);
}
.mindmap-node.card.root-node {
    background: color-mix(in srgb, var(--node-color) 35%, transparent);
    border-color: var(--node-color);
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
/* 连接线简化 */
.mindmap-tree.simple-line .mindmap-node-wrapper::before {
    width: 12px;
    height: 1px;
    background: rgba(255,255,255,0.2);
}
.mindmap-tree.simple-line .mindmap-node-wrapper.root::before {
    display: none;
}
/* 紧凑工具栏 */
.mindmap-toolbar.compact {
    padding: 6px 10px;
    gap: 6px;
}
.mindmap-toolbar.compact .toolbar-btn {
    padding: 4px 10px;
    font-size: 12px;
}
.mindmap-toolbar.compact select {
    padding: 4px 8px;
    font-size: 12px;
}
/* 响应式紧凑 */
@media (max-width: 600px) {
    .mindmap-node {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .mindmap-node.root-node {
        padding: 8px 14px;
        font-size: 14px;
    }
    
    .mindmap-node-wrapper {
        margin-left: 10px;
    }
}

/* ========== 节点样式类 ========== */

/* 简约样式 */
.mindmap-node.style-simple {
    background: var(--node-color);
    color: #fff;
    border-width: 1px;
    box-shadow: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* 卡片样式 */
.mindmap-node.style-card {
    background: color-mix(in srgb, var(--node-color) 25%, transparent);
    border: 2px solid color-mix(in srgb, var(--node-color) 50%, transparent);
    color: #fff;
}

/* ========== 主题颜色定义 ========== */

/* 绿色主题 (默认) */
.theme-green .mindmap-node {
    color: #4ADE80;
    background: rgba(74, 222, 128, 0.12);
    border-color: rgba(74, 222, 128, 0.3);
}

.theme-green .mindmap-node:hover {
    background: rgba(74, 222, 128, 0.2);
    border-color: rgba(74, 222, 128, 0.5);
}

.theme-green .mindmap-node.root-node {
    background: rgba(74, 222, 128, 0.2);
    border-color: #4ADE80;
}

.theme-green .mindmap-node.selected {
    border-color: #4ADE80;
    background: rgba(74, 222, 128, 0.25);
}


/* ========== notes.css ========== */
/* ========== 便签笔记本模块样式 - 美化版 ========== */

/* 筛选标签 */
.notes-filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #222;
    border-radius: 25px;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #333;
    color: #aaa;
}

.filter-tab.active {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15) 0%, rgba(34, 197, 94, 0.1) 100%);
    border-color: rgba(74, 222, 128, 0.4);
    color: #4ADE80;
}

.filter-tab .count {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.filter-tab.active .count {
    background: rgba(74, 222, 128, 0.2);
}

/* 搜索框 */
.search-box {
    position: relative;
}

.search-box input {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #222;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    width: 220px;
    transition: all 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #4ADE80;
    background: rgba(74, 222, 128, 0.05);
}

.search-box input::placeholder {
    color: #444;
}

/* 便签网格 */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 便签卡片 - 全新设计 */
.note-card {
    border: none;
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s ease;
    cursor: grab;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.note-card:hover {
    transform: translateY(-6px) rotate(1deg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.note-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
    transform: rotate(3deg) scale(1.02);
}

.note-card.archived {
    opacity: 0.5;
    filter: grayscale(0.5);
}

/* 便签头部 */
.note-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 16px 12px;
    background: rgba(0, 0, 0, 0.05);
}

.note-color-picker {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.color-dot:hover {
    transform: scale(1.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.color-dot.active {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
}

.note-actions {
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: all 0.2s;
}

.note-card:hover .note-actions {
    opacity: 1;
}

.note-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.note-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.15);
}

.note-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* 便签内容 */
.note-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.7;
    outline: none;
    min-height: 100px;
    word-break: break-word;
    padding: 0 16px;
    margin-top: 8px;
}

.note-content:focus {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 0 4px;
}

.note-content:empty::before {
    content: '点击编辑...';
    opacity: 0.5;
}

/* 便签底部 */
.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.note-date {
    font-size: 11px;
    opacity: 0.6;
    font-weight: 500;
}

.note-badge {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.note-badge.pinned {
    background: rgba(0, 0, 0, 0.15);
}

.note-badge.archived {
    background: rgba(0, 0, 0, 0.1);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(145deg, #111 0%, #0a0a0a 100%);
    border-radius: 20px;
    border: 1px dashed #333;
}

.empty-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
}

.empty-hint {
    font-size: 14px;
    color: #666;
    display: block;
    margin-bottom: 24px;
}

/* 颜色筛选弹窗 */
.notes-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.notes-modal-content {
    background: linear-gradient(145deg, #151515 0%, #0d0d0d 100%);
    border: 1px solid #222;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.notes-modal-content .modal-header h3 {
    font-size: 16px;
    color: #fff;
}

.notes-modal-content .btn-close {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.notes-modal-content .btn-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.color-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
}

.color-filter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #222;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    color: #aaa;
}

.color-filter-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #333;
    transform: translateY(-2px);
}

.color-preview {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 响应式 */
@media (max-width: 768px) {
    .notes-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box input {
        width: 160px;
    }
    
    .note-actions {
        opacity: 1;
    }
    
    .filter-tab {
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .notes-filter-tabs {
        gap: 6px;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .color-filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ========== tools.css ========== */

/* ========== Phase 3 工具箱卡片矩阵 ========== */

/* 主容器 */
.toolbox-container {
    padding: 24px 28px;
    max-width: 100%;
}

/* 头部：标题 + 搜索 */
.toolbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.toolbox-header h2 {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, #4ADE80 0%, #4ADE80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 搜索框 */
.toolbox-search {
    position: relative;
    min-width: 260px;
}

.toolbox-search input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border, #222);
    border-radius: 12px;
    color: var(--text-primary, #fff);
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.toolbox-search input:focus {
    border-color: #4ADE80;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.toolbox-search input::placeholder {
    color: var(--text-muted, #666);
}

.toolbox-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--text-muted, #666);
    pointer-events: none;
}

/* 分类区块 */
.toolbox-category {
    margin-bottom: 32px;
}

.toolbox-category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary, #a0a0a0);
    margin-bottom: 16px;
    padding-left: 4px;
}

.toolbox-category-title .cat-icon {
    font-size: 20px;
}

/* 卡片网格：4列(desktop) → 2列(mobile) */
.toolbox-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* 卡片 */
.toolbox-card {
    background: linear-gradient(145deg, #141414 0%, #0e0e0e 100%);
    border: 1px solid var(--border, #222);
    border-radius: 12px;
    padding: 28px 20px 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    position: relative;
}

.toolbox-card:hover {
    border-color: #4ADE80;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2), 0 2px 8px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

/* 卡片图标 */
.toolbox-card-icon {
    font-size: 42px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(59, 130, 246, 0.06) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(139, 92, 246, 0.18);
    transition: all 0.3s ease;
}

.toolbox-card:hover .toolbox-card-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22) 0%, rgba(59, 130, 246, 0.12) 100%);
    border-color: rgba(139, 92, 246, 0.35);
}

/* 卡片名称 */
.toolbox-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    line-height: 1.3;
}

/* 卡片描述 */
.toolbox-card-desc {
    font-size: 13px;
    color: var(--text-muted, #666);
    line-height: 1.4;
}

/* 无搜索结果 */
.toolbox-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted, #666);
}

.toolbox-empty .empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

/* ========== 工具详情弹窗 - 放大美化 ========== */

.tool-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tool-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.tool-modal-content {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid #333;
    border-radius: 24px;
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.tool-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid #222;
    background: rgba(0, 0, 0, 0.3);
}

.tool-modal-header h3 {
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

.btn-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
}

.btn-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* 工具内容样式优化 */
.tool-modal-body .tinypng-section,
.tool-modal-body .json-section,
.tool-modal-body .timestamp-section,
/* ========== 排班日历美化样式 ========== */

.schedule-calendar-wrapper-new {
    padding: 24px;
    background: linear-gradient(145deg, #1a1a1a 0%, #141414 100%);
    border-radius: 20px;
    border: 1px solid #2a2a2a;
}

.schedule-header-new {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 16px 24px;
    background: linear-gradient(145deg, rgba(74, 222, 128, 0.08) 0%, rgba(74, 222, 128, 0.03) 100%);
    border-radius: 16px;
    border: 1px solid rgba(74, 222, 128, 0.15);
}

.schedule-header-new h3 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
    min-width: 140px;
    text-align: center;
}

.schedule-today-info {
    font-size: 14px;
    color: #aaa;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 12px;
}

.schedule-today-info b {
    color: #4ADE80;
    font-size: 16px;
    font-weight: 600;
}

/* 星期标题 */
.schedule-weekdays-new {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.schedule-weekday-new {
    text-align: center;
    padding: 14px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.schedule-weekday-new.weekend {
    color: #f472b6;
    background: rgba(244, 114, 182, 0.08);
}

/* 日历网格 */
.schedule-days-new {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 20px;
}

.schedule-day-new {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 72px;
    background: rgba(255, 255, 255, 0.02);
}

.schedule-day-new:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.schedule-day-new.empty {
    background: transparent;
    cursor: default;
}

.schedule-day-new.empty:hover {
    transform: none;
    box-shadow: none;
}

/* 早班样式 - 橙色 */
.schedule-day-new.morning {
    background: linear-gradient(145deg, rgba(251, 146, 60, 0.2) 0%, rgba(251, 146, 60, 0.1) 100%);
    border-color: rgba(251, 146, 60, 0.4);
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.15);
}

.schedule-day-new.morning:hover {
    background: linear-gradient(145deg, rgba(251, 146, 60, 0.35) 0%, rgba(251, 146, 60, 0.2) 100%);
    border-color: rgba(251, 146, 60, 0.7);
    box-shadow: 0 8px 24px rgba(251, 146, 60, 0.25);
}

/* 晚班样式 - 蓝色 */
.schedule-day-new.night {
    background: linear-gradient(145deg, rgba(96, 165, 250, 0.2) 0%, rgba(96, 165, 250, 0.1) 100%);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.15);
}

.schedule-day-new.night:hover {
    background: linear-gradient(145deg, rgba(96, 165, 250, 0.35) 0%, rgba(96, 165, 250, 0.2) 100%);
    border-color: rgba(96, 165, 250, 0.7);
    box-shadow: 0 8px 24px rgba(96, 165, 250, 0.25);
}

/* 休息样式 - 绿色 */
.schedule-day-new.rest {
    background: linear-gradient(145deg, rgba(74, 222, 128, 0.2) 0%, rgba(74, 222, 128, 0.1) 100%);
    border-color: rgba(74, 222, 128, 0.4);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.15);
}

.schedule-day-new.rest:hover {
    background: linear-gradient(145deg, rgba(74, 222, 128, 0.35) 0%, rgba(74, 222, 128, 0.2) 100%);
    border-color: rgba(74, 222, 128, 0.7);
    box-shadow: 0 8px 24px rgba(74, 222, 128, 0.25);
}

/* 补班样式 - 红色 */
.schedule-day-new.extra {
    background: linear-gradient(145deg, rgba(248, 113, 113, 0.2) 0%, rgba(248, 113, 113, 0.1) 100%);
    border-color: rgba(248, 113, 113, 0.4);
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.15);
}

.schedule-day-new.extra:hover {
    background: linear-gradient(145deg, rgba(248, 113, 113, 0.35) 0%, rgba(248, 113, 113, 0.2) 100%);
    border-color: rgba(248, 113, 113, 0.7);
    box-shadow: 0 8px 24px rgba(248, 113, 113, 0.25);
}

/* 今日高亮 */
.schedule-day-new.today {
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.8), 0 0 20px rgba(74, 222, 128, 0.4), 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10;
    animation: todayPulse 2s ease-in-out infinite;
}

@keyframes todayPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.8), 0 0 20px rgba(74, 222, 128, 0.4); }
    50% { box-shadow: 0 0 0 3px rgba(74, 222, 128, 1), 0 0 30px rgba(74, 222, 128, 0.6); }
}

.schedule-date-new {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.schedule-shift-new {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.schedule-day-new.morning .schedule-shift-new {
    color: #fb923c;
    background: rgba(251, 146, 60, 0.2);
}

.schedule-day-new.night .schedule-shift-new {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.2);
}

.schedule-day-new.rest .schedule-shift-new {
    color: #4ADE80;
    background: rgba(74, 222, 128, 0.2);
}

.schedule-day-new.extra .schedule-shift-new {
    color: #f87171;
    background: rgba(248, 113, 113, 0.2);
}

.today-badge-new {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 9px;
    padding: 2px 6px;
    background: #4ADE80;
    color: #000;
    border-radius: 8px;
    font-weight: 700;
}

/* 图例 */
.schedule-legend-new {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 18px 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.1) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 8px;
}

.schedule-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
}

.schedule-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.schedule-dot.morning {
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    box-shadow: 0 0 10px rgba(251, 146, 60, 0.5);
}

.schedule-dot.night {
    background: linear-gradient(135deg, #4ADE80, #22C55E);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.schedule-dot.rest {
    background: linear-gradient(135deg, #4ADE80, #22c55e);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.schedule-dot.extra {
    background: linear-gradient(135deg, #f87171, #ef4444);
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.5);
}

.schedule-dot.holiday {
    background: linear-gradient(135deg, #fb7185, #f43f5e);
    box-shadow: 0 0 10px rgba(251, 113, 133, 0.5);
}

.schedule-dot.weekend {
    background: linear-gradient(135deg, #c084fc, #a855f7);
    box-shadow: 0 0 10px rgba(192, 132, 252, 0.5);
}

.schedule-dot.solar-term {
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

/* 节气样式 - 青绿色 */
.schedule-day-new.solar-term {
    background: linear-gradient(145deg, rgba(52, 211, 153, 0.2) 0%, rgba(52, 211, 153, 0.1) 100%);
    border-color: rgba(52, 211, 153, 0.4);
    box-shadow: 0 4px 12px rgba(52, 211, 153, 0.15);
}

.schedule-day-new.solar-term:hover {
    background: linear-gradient(145deg, rgba(52, 211, 153, 0.35) 0%, rgba(52, 211, 153, 0.2) 100%);
    border-color: rgba(52, 211, 153, 0.7);
    box-shadow: 0 8px 24px rgba(52, 211, 153, 0.25);
}

.schedule-day-new.solar-term .schedule-shift-new {
    color: #34d399;
    background: rgba(52, 211, 153, 0.2);
}

/* 农历日期 */
.schedule-lunar-new {
    font-size: 11px;
    color: #888;
    margin-bottom: 2px;
    font-weight: 500;
}

.schedule-day-new.holiday .schedule-lunar-new,
.schedule-day-new.solar-term .schedule-lunar-new {
    color: rgba(255, 255, 255, 0.7);
}

.schedule-day-new.weekend .schedule-lunar-new {
    color: rgba(192, 132, 252, 0.8);
}

.schedule-day-new.morning .schedule-lunar-new,
.schedule-day-new.night .schedule-lunar-new,
.schedule-day-new.rest .schedule-lunar-new {
    color: rgba(255, 255, 255, 0.7);
}

/* 农历月份标题 */
.schedule-lunar-month {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.schedule-header-center {
    text-align: center;
}

/* 详情面板 */
.schedule-info-panel {
    margin-top: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.1) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.schedule-info-header {
    padding: 12px 16px;
    background: rgba(74, 222, 128, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: #4ADE80;
}

.schedule-info-content {
    padding: 16px;
    font-size: 14px;
    line-height: 1.8;
}

.day-info-date {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.day-info-lunar {
    color: #888;
    margin-bottom: 6px;
}

.day-info-term {
    color: #34d399;
    margin-bottom: 6px;
}

.day-info-holiday {
    color: #fb7185;
    font-weight: 600;
    margin-bottom: 6px;
}

.day-info-schedule {
    color: #60a5fa;
    margin-bottom: 12px;
}

.day-info-yiji {
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.yiji-row {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.yi-label {
    color: #4ADE80;
    font-weight: 600;
    min-width: 30px;
}

.ji-label {
    color: #f87171;
    font-weight: 600;
    min-width: 30px;
}

.yi-content {
    color: #86efac;
}

.ji-content {
    color: #fca5a5;
}

/* 法定节假日样式 - 粉红 */
.schedule-day-new.holiday {
    background: linear-gradient(145deg, rgba(251, 113, 133, 0.2) 0%, rgba(251, 113, 133, 0.1) 100%);
    border-color: rgba(251, 113, 133, 0.4);
    box-shadow: 0 4px 12px rgba(251, 113, 133, 0.15);
}

.schedule-day-new.holiday:hover {
    background: linear-gradient(145deg, rgba(251, 113, 133, 0.35) 0%, rgba(251, 113, 133, 0.2) 100%);
    border-color: rgba(251, 113, 133, 0.7);
    box-shadow: 0 8px 24px rgba(251, 113, 133, 0.25);
}

.schedule-day-new.holiday .schedule-shift-new {
    color: #fb7185;
    background: rgba(251, 113, 133, 0.2);
}

/* 周末样式 - 紫色 */
.schedule-day-new.weekend {
    background: linear-gradient(145deg, rgba(192, 132, 252, 0.2) 0%, rgba(192, 132, 252, 0.1) 100%);
    border-color: rgba(192, 132, 252, 0.4);
    box-shadow: 0 4px 12px rgba(192, 132, 252, 0.15);
}

.schedule-day-new.weekend:hover {
    background: linear-gradient(145deg, rgba(192, 132, 252, 0.35) 0%, rgba(192, 132, 252, 0.2) 100%);
    border-color: rgba(192, 132, 252, 0.7);
    box-shadow: 0 8px 24px rgba(192, 132, 252, 0.25);
}

.schedule-day-new.weekend .schedule-shift-new {
    color: #c084fc;
    background: rgba(192, 132, 252, 0.2);
}

/* 工作日样式 - 灰色 */
.schedule-day-new.workday {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.06);
}

.schedule-day-new.workday:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.schedule-day-new.workday .schedule-shift-new {
    color: #6b7280;
    background: rgba(255, 255, 255, 0.08);
}

/* 月份导航按钮 */
.schedule-nav-btn {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ADE80;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.schedule-nav-btn:hover {
    background: rgba(74, 222, 128, 0.2);
    border-color: rgba(74, 222, 128, 0.6);
}

/* 提示文字 */
.schedule-tip {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin-top: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* 响应式 */
@media (max-width: 768px) {
    .schedule-calendar-wrapper-new {
        padding: 16px;
    }
    
    .schedule-day-new {
        min-height: 55px;
    }
    
    .schedule-date-new {
        font-size: 13px;
    }
    
    .schedule-shift-new {
        font-size: 10px;
        padding: 2px 5px;
    }
    
    .schedule-legend-new {
        gap: 16px;
    }
    
    .schedule-legend-item {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .schedule-weekdays-new {
        gap: 4px;
    }
    
    .schedule-weekday-new {
        font-size: 12px;
        padding: 8px 4px;
    }
    
    .schedule-days-new {
        gap: 4px;
    }
    
    .schedule-day-new {
        min-height: 45px;
        border-radius: 10px;
    }
    
    .today-badge-new {
        display: none;
    }
}

.tool-modal-body .schedule-section,
.tool-modal-body .artqr-section,
.tool-modal-body .share-section {
    padding: 0;
}

.tool-modal-body .upload-area {
    border: 2px dashed #333;
    border-radius: 16px;
    padding: 50px 30px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 24px;
}

.tool-modal-body .upload-area:hover {
    border-color: #4ADE80;
    background: rgba(74, 222, 128, 0.05);
}

.tool-modal-body .upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.tool-modal-body textarea {
    width: 100%;
    min-height: 200px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    resize: vertical;
}

.tool-modal-body textarea:focus {
    outline: none;
    border-color: #4ADE80;
}

.tool-modal-body input[type="text"],
.tool-modal-body input[type="number"] {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
}

.tool-modal-body input:focus {
    outline: none;
    border-color: #4ADE80;
}

.tool-modal-body .result-area {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    min-height: 100px;
}

.tool-modal-body .hint {
    color: #888;
    font-size: 13px;
    margin-top: 12px;
}

.tool-modal-body .quota-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
}

.tool-modal-body .quota-value {
    font-size: 20px;
    font-weight: 600;
    color: #4ADE80;
}

/* 日历样式 */
.tool-modal-body .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.tool-modal-body .calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.tool-modal-body .calendar-day:hover {
    background: rgba(74, 222, 128, 0.2);
}

.tool-modal-body .calendar-day.work {
    background: rgba(74, 222, 128, 0.15);
    color: #4ADE80;
    font-weight: 600;
}

.tool-modal-body .calendar-day.off {
    background: rgba(255, 255, 255, 0.05);
    color: #888;
}

/* 按钮样式 */
.tool-modal-body .btn-primary {
    padding: 14px 28px;
    font-size: 15px;
}

.tool-modal-body .btn-secondary {
    padding: 14px 28px;
    font-size: 15px;
}

/* ========== 工具箱卡片矩阵响应式 ========== */
@media (max-width: 768px) {
    .toolbox-container {
        padding: 16px;
    }

    .toolbox-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .toolbox-search {
        min-width: 100%;
        width: 100%;
    }

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

    .toolbox-card {
        padding: 20px 14px;
    }

    .toolbox-card-icon {
        font-size: 36px;
        width: 56px;
        height: 56px;
    }

    .toolbox-card-name {
        font-size: 14px;
    }

    .toolbox-card-desc {
        font-size: 12px;
    }

    .tool-modal-content {
        max-width: 100%;
        max-height: 90vh;
        border-radius: 20px;
    }

    .tool-modal-header {
        padding: 20px;
    }

    .tool-modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .toolbox-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .toolbox-card {
        padding: 16px 10px;
        gap: 10px;
    }

    .toolbox-card-icon {
        font-size: 32px;
        width: 48px;
        height: 48px;
    }

    .toolbox-card-name {
        font-size: 13px;
    }

    .toolbox-card-desc {
        font-size: 11px;
    }
}



/* ========== 思维导图转流程图样式 ========== */
.mindmap2flow-section {
    padding: 10px;
}

.mindmap2flow-section .form-group {
    margin-bottom: 16px;
}

.mindmap2flow-section label {
    display: block;
    font-size: 14px;
    color: #aaa;
    margin-bottom: 8px;
}

.mindmap2flow-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    font-family: monospace;
}

.mindmap2flow-section textarea:focus {
    outline: none;
    border-color: #4ADE80;
}

.mindmap2flow-section .btn-primary {
    margin-bottom: 16px;
}

.mindmap2flow-section .mermaid-output {
    margin-top: 16px;
}

.mindmap2flow-section .mermaid-output label {
    display: block;
    font-size: 14px;
    color: #aaa;
    margin-bottom: 8px;
}

.mindmap2flow-section .mermaid-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.mindmap2flow-section .mermaid-preview {
    margin-top: 20px;
}

.mindmap2flow-section .mermaid-preview label {
    display: block;
    font-size: 14px;
    color: #aaa;
    margin-bottom: 12px;
}

.mindmap2flow-section .mermaid-render {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
}

/* ========== 百度文库助手样式 ========== */
.wenku-section {
    padding: 10px;
}

.wenku-tips {
    background: linear-gradient(145deg, #1a1a1a 0%, #151515 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.wenku-tips h4 {
    color: #4ADE80;
    margin-bottom: 12px;
    font-size: 15px;
}

.wenku-tips ul {
    margin: 0;
    padding-left: 20px;
}

.wenku-tips li {
    color: #aaa;
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.wenku-tips li strong {
    color: #FBBF24;
}

.wenku-result {
    background: linear-gradient(145deg, #1a1a1a 0%, #151515 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 16px;
    margin-top: 20px;
}

.wenku-result h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 15px;
}

.wenku-info {
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-label {
    color: #888;
    font-size: 12px;
    margin-bottom: 4px;
}

.info-value {
    color: #fff;
    font-size: 13px;
    font-family: monospace;
}

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

.wenku-alternatives {
    background: linear-gradient(145deg, #1a1a1a 0%, #151515 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 16px;
    margin-top: 20px;
}

.wenku-alternatives h4 {
    color: #4ADE80;
    margin-bottom: 12px;
    font-size: 15px;
}

.alt-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.alt-link {
    display: inline-block;
    padding: 8px 16px;
    background: #1c1c1e;
    border: 1px solid #333;
    border-radius: 20px;
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.alt-link:hover {
    border-color: #4ADE80;
    color: #4ADE80;
}


/* ========== weather.css ========== */

/* ========== 天气模块美化样式 ========== */

.weather-content {
    max-width: 900px;
    margin: 0 auto;
}

/* 今日天气卡片 */
.today-weather {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.today-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, transparent 100%);
}

.today-icon {
    font-size: 100px;
    filter: drop-shadow(0 4px 20px rgba(74, 222, 128, 0.3));
}

.today-temp {
    display: flex;
    align-items: flex-start;
}

.temp-value {
    font-size: 80px;
    font-weight: 300;
    line-height: 1;
    color: #fff;
}

.temp-unit {
    font-size: 28px;
    color: #888;
    margin-top: 8px;
}

.today-info {
    text-align: left;
}

.today-city {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.today-condition {
    font-size: 20px;
    color: #4ADE80;
    margin-bottom: 4px;
}

.today-range {
    font-size: 14px;
    color: #888;
}

/* 今日详情 */
.today-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 24px 32px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: background 0.2s;
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.detail-icon {
    font-size: 24px;
}

.detail-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

/* 空气质量 */
.aqi-section {
    margin-bottom: 24px;
}

.aqi-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #aaa;
}

.aqi-card {
    background: linear-gradient(145deg, #151515 0%, #111111 100%);
    border: 1px solid #222;
    border-radius: 16px;
    padding: 24px;
}

.aqi-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #222;
}

.aqi-value {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.aqi-value.excellent { background: linear-gradient(135deg, #22c55e, #16a34a); }
.aqi-value.good { background: linear-gradient(135deg, #eab308, #ca8a04); }
.aqi-value.light { background: linear-gradient(135deg, #f97316, #ea580c); }
.aqi-value.moderate { background: linear-gradient(135deg, #ef4444, #dc2626); }
.aqi-value.serious { background: linear-gradient(135deg, #7c3aed, #5b21b6); }

.aqi-info {
    flex: 1;
}

.aqi-level {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.aqi-level.excellent { color: #22c55e; }
.aqi-level.good { color: #eab308; }
.aqi-level.light { color: #f97316; }
.aqi-level.moderate { color: #ef4444; }
.aqi-level.serious { color: #7c3aed; }

.aqi-desc {
    font-size: 13px;
    color: #888;
}

.aqi-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.aqi-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    font-size: 13px;
}

.aqi-item span:first-child {
    color: #666;
}

.aqi-item span:last-child {
    color: #fff;
    font-weight: 500;
}

/* 预报 */
.forecast-section {
    margin-bottom: 24px;
}

.forecast-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #aaa;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.forecast-day {
    background: linear-gradient(145deg, #151515 0%, #111111 100%);
    border: 1px solid #222;
    border-radius: 14px;
    padding: 20px 12px;
    text-align: center;
    transition: all 0.3s;
}

.forecast-day:hover {
    border-color: #4ADE80;
    transform: translateY(-4px);
}

.forecast-day-name {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.forecast-day.today .forecast-day-name {
    color: #4ADE80;
    font-weight: 600;
}

.forecast-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.forecast-condition {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    min-height: 32px;
}

.forecast-temp {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.forecast-temp .high {
    color: #fff;
    font-weight: 600;
}

.forecast-temp .low {
    color: #666;
}

/* 生活指数 */
.life-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #aaa;
}

.life-index {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.life-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(145deg, #151515 0%, #111111 100%);
    border: 1px solid #222;
    border-radius: 14px;
    transition: all 0.3s;
}

.life-item:hover {
    border-color: #4ADE80;
    transform: translateY(-2px);
}

.life-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.life-info {
    flex: 1;
}

.life-type {
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
}

.life-level {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.life-level.good { color: #4ADE80; }
.life-level.normal { color: #eab308; }
.life-level.bad { color: #ef4444; }

.life-desc {
    font-size: 12px;
    color: #666;
}

/* 响应式 */
@media (max-width: 768px) {
    .today-main {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .today-icon {
        font-size: 72px;
    }
    
    .temp-value {
        font-size: 56px;
    }
    
    .today-info {
        text-align: center;
    }
    
    .today-details {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
    }
    
    .forecast-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .aqi-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .today-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .forecast-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .life-index {
        grid-template-columns: 1fr;
    }
}


/* ========== home-optimized.css ========== */
/**
 * Phase 2: 首页全新设计
 * 信息聚合 + 行动导向
 * 紫蓝渐变色系 · 卡片阴影 · 圆角12px · 响应式
 */

/* ========== 首页容器 ========== */
.home-content {
    padding: 0;
}

/* ========== 1. 欢迎区 ========== */
.home-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 36px 32px;
    background: linear-gradient(135deg, #0a1e14 0%, #0e2a1a 30%, #0d2a1f 60%, #0a1a12 100%);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.home-welcome::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.home-welcome::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: 20%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.welcome-text {
    position: relative;
    z-index: 1;
}

.welcome-greeting {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #4ADE80 0%, #22C55E 60%, #16A34A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-date-info {
    font-size: 14px;
    color: var(--text-secondary);
    opacity: 0.85;
}

.welcome-user-info {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.welcome-actions {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.welcome-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    color: #86efac;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.welcome-action-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.35);
    color: #4ADE80;
    transform: translateY(-1px);
}

.welcome-action-btn .btn-icon-text {
    font-size: 16px;
}

/* ========== 2. 快捷操作卡片 ========== */
.quick-actions-section {
    margin-bottom: 24px;
}

.quick-actions-section .section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.quick-action-card:nth-child(1)::before {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(99, 102, 241, 0.04));
}

.quick-action-card:nth-child(2)::before {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(244, 114, 182, 0.04));
}

.quick-action-card:nth-child(3)::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(96, 165, 250, 0.04));
}

.quick-action-card:nth-child(4)::before {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(52, 211, 153, 0.04));
}

.quick-action-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    border-color: rgba(139, 92, 246, 0.25);
}

.quick-action-card:hover::before {
    opacity: 1;
}

.quick-action-card:active {
    transform: translateY(-3px);
}

.qa-icon-wrap {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
    transition: all 0.3s ease;
}

.quick-action-card:nth-child(1) .qa-icon-wrap {
    background: rgba(139, 92, 246, 0.15);
}

.quick-action-card:nth-child(2) .qa-icon-wrap {
    background: rgba(236, 72, 153, 0.15);
}

.quick-action-card:nth-child(3) .qa-icon-wrap {
    background: rgba(59, 130, 246, 0.15);
}

.quick-action-card:nth-child(4) .qa-icon-wrap {
    background: rgba(16, 185, 129, 0.15);
}

.quick-action-card:hover .qa-icon-wrap {
    transform: scale(1.1);
}

.qa-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.qa-hint {
    font-size: 11px;
    color: var(--text-muted);
}

/* ========== 3. 数据概览卡片 ========== */
.data-overview-section {
    margin-bottom: 24px;
}

.data-overview-section .section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.data-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.25s ease;
    cursor: default;
}

.data-card:hover {
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.dc-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 22px;
    flex-shrink: 0;
}

.dc-icon.purple { background: rgba(139, 92, 246, 0.15); }
.dc-icon.amber { background: rgba(245, 158, 11, 0.15); }
.dc-icon.blue { background: rgba(59, 130, 246, 0.15); }

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

.dc-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.dc-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.dc-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}

/* ========== 4. 最近动态时间线 ========== */
.activity-section {
    margin-bottom: 24px;
}

.activity-section .section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-timeline {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 0;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 20px;
    position: relative;
    transition: background 0.2s ease;
}

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

.activity-item + .activity-item {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.activity-dot.purple { background: #a78bfa; box-shadow: 0 0 8px rgba(167, 139, 250, 0.5); }
.activity-dot.pink { background: #f472b6; box-shadow: 0 0 8px rgba(244, 114, 182, 0.5); }
.activity-dot.blue { background: #60a5fa; box-shadow: 0 0 8px rgba(96, 165, 250, 0.5); }
.activity-dot.emerald { background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.5); }
.activity-dot.amber { background: #fbbf24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.5); }

.activity-body {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.activity-desc {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: 2px;
}

.activity-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.activity-empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* ========== 5. 快捷入口编辑区 ========== */
.quick-links-section {
    margin-bottom: 24px;
}

.quick-links-section .section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-links-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
}

.quick-link-item:hover {
    border-color: rgba(139, 92, 246, 0.25);
    background: var(--bg-hover);
    transform: translateX(2px);
}

.ql-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.12);
    border-radius: 8px;
    font-size: 18px;
    flex-shrink: 0;
}

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

.ql-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ql-url {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ql-delete {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    opacity: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

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

.ql-delete:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.ql-empty {
    grid-column: 1 / -1;
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* 添加快捷入口按钮 */
.ql-add-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ql-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    transition: all 0.2s ease;
    outline: none;
}

.ql-input:focus {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08);
}

.ql-input::placeholder {
    color: var(--text-muted);
}

.ql-input.name-input {
    max-width: 180px;
}

.ql-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #7c3aed 0%, #22c55e 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.ql-add-btn:hover {
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
    transform: translateY(-1px);
}

.ql-add-btn:active {
    transform: translateY(0);
}

.ql-hint-row {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .data-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .home-welcome {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px 20px;
    }

    .welcome-greeting {
        font-size: 22px;
    }

    .welcome-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .welcome-action-btn {
        flex: 1;
        justify-content: center;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .data-cards-row {
        grid-template-columns: 1fr;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .ql-add-row {
        flex-wrap: wrap;
    }

    .ql-input.name-input {
        max-width: 100%;
        flex: 1 1 100%;
    }
}

/* ========== 动画 ========== */
.quick-action-card,
.data-card,
.quick-link-item {
    animation: homeFadeUp 0.45s ease-out backwards;
}

.quick-action-card:nth-child(1) { animation-delay: 0.05s; }
.quick-action-card:nth-child(2) { animation-delay: 0.1s; }
.quick-action-card:nth-child(3) { animation-delay: 0.15s; }
.quick-action-card:nth-child(4) { animation-delay: 0.2s; }

.data-card:nth-child(1) { animation-delay: 0.15s; }
.data-card:nth-child(2) { animation-delay: 0.2s; }
.data-card:nth-child(3) { animation-delay: 0.25s; }

.activity-item:nth-child(1) { animation-delay: 0.2s; }
.activity-item:nth-child(2) { animation-delay: 0.25s; }
.activity-item:nth-child(3) { animation-delay: 0.3s; }

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

/* Brief pulse for live data cards on hover */
.data-card:hover .dc-value {
    transition: transform 0.2s ease;
    transform: scale(1.05);
}

/* Smooth shadow on hover cards */
.quick-action-card:hover,
.data-card:hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== modules-optimized.css ========== */
/**
 * 统一模块样式优化
 * 基于 Design System 的增强样式
 * 应用于所有功能模块
 */

/* ============================================
   AI创作模块优化
   ============================================ */

/* AI标签页 */
.ai-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    padding: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    width: fit-content;
}

.ai-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.ai-tab.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* AI表单卡片 */
.ai-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 720px;
    position: relative;
    overflow: hidden;
}

.ai-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.form-header h3 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-badge {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.price-badge.free {
    background: rgba(74, 222, 128, 0.12);
    color: var(--primary);
}

.price-badge.paid {
    background: rgba(251, 191, 36, 0.12);
    color: var(--warning);
}

/* 生成按钮 */
.generate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius-lg);
    color: #000;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(74, 222, 128, 0.25);
    margin-top: 8px;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 222, 128, 0.35);
}

.generate-btn:active {
    transform: translateY(0);
}

.generate-btn .btn-icon {
    font-size: 18px;
}

/* 结果区域 */
.result-area {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.result-success {
    text-align: center;
}

.result-success h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.result-error {
    padding: 16px;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: var(--radius-lg);
    color: var(--error);
    text-align: center;
}

/* 图片网格 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.result-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-tertiary);
    aspect-ratio: 1;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.result-image:hover img {
    transform: scale(1.05);
}

.result-image .download-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 13px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s;
}

.result-image:hover .download-btn {
    opacity: 1;
    transform: translateY(0);
}

/* 音频/视频播放器 */
.audio-player,
.video-player {
    width: 100%;
    max-width: 400px;
    margin: 16px auto;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 16px;
}

.download-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
}

/* 加载动画 */
.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   工具箱模块优化
   ============================================ */

.tools-container {
    padding: 0;
}

.tools-header {
    margin-bottom: 32px;
}

.tools-header h2 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.tools-header p {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* 分类区块 */
.tool-category-section {
    margin-bottom: 36px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

/* 工具卡片网格 */
.tools-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

/* 工具卡片 */
.tool-card-new {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.tool-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.tool-card-new:hover {
    border-color: rgba(74, 222, 128, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.tool-card-new:hover::before {
    opacity: 1;
}

.tool-card-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.tool-card-new:hover .tool-card-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
}

.tool-card-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.tool-card-desc {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.4;
}

/* ============================================
   天气模块优化
   ============================================ */

.weather-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.weather-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.weather-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(74, 222, 128, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.weather-main {
    position: relative;
    z-index: 1;
    margin-bottom: 32px;
}

.weather-icon-large {
    font-size: 80px;
    margin-bottom: 16px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.weather-temp-large {
    font-size: 64px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.weather-desc-large {
    font-size: 18px;
    color: var(--text-secondary);
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.weather-detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.weather-detail-icon {
    font-size: 24px;
}

.weather-detail-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weather-detail-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   便签模块优化
   ============================================ */

.notes-container {
    padding: 0;
}

.notes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.notes-header h2 {
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.note-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.25s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.note-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.25s;
}

.note-card:hover {
    border-color: rgba(74, 222, 128, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.note-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.note-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   新闻模块优化
   ============================================ */

.news-container {
    padding: 0;
}

.news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.news-header h2 {
    font-size: 22px;
    font-weight: 600;
}

.news-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.news-tab {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.news-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.news-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.25s;
}

.news-item:hover {
    background: var(--bg-hover);
    border-color: rgba(74, 222, 128, 0.2);
    transform: translateX(4px);
}

.news-rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-tertiary);
}

.news-item:hover .news-rank {
    background: rgba(74, 222, 128, 0.1);
    color: var(--primary);
}

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

.news-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-hot {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--error);
    font-size: 12px;
}

/* ============================================
   技能中心优化
   ============================================ */

.skills-container {
    padding: 0;
}

.skills-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.skills-header h2 {
    font-size: 22px;
    font-weight: 600;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(74, 222, 128, 0.2);
}

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

.skill-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.skill-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    font-size: 24px;
}

.skill-info {
    flex: 1;
}

.skill-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-category {
    font-size: 12px;
    color: var(--text-muted);
}

.skill-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.skill-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.skill-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.skill-tag {
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 11px;
    color: var(--text-tertiary);
}

.skill-action {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.skill-action:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

/* ============================================
   响应式优化
   ============================================ */

@media (max-width: 768px) {
    .ai-form-card {
        padding: 24px 20px;
    }
    
    .tools-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .weather-details {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .news-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-rank {
        display: none;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   2026 Polish Layer - 首页与模块美化
   ============================================ */
.home-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    gap: 22px;
}

.home-welcome {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(74,222,128,0.18), rgba(96,165,250,0.10) 46%, rgba(255,255,255,0.045)),
        rgba(12,18,15,0.74) !important;
    border: 1px solid rgba(74,222,128,0.22) !important;
    border-radius: 26px !important;
    padding: 28px !important;
    box-shadow: 0 28px 82px rgba(0,0,0,0.34), 0 0 0 1px rgba(255,255,255,0.04) inset;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.home-welcome::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    right: -70px;
    top: -90px;
    background: radial-gradient(circle, rgba(74,222,128,0.22), transparent 67%);
    pointer-events: none;
}

.welcome-greeting {
    font-size: clamp(26px, 4vw, 42px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #fff 0%, #BBF7D0 48%, #4ADE80 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.welcome-date-info,
.welcome-user-info {
    color: var(--text-secondary) !important;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px !important;
    font-weight: 750 !important;
    color: var(--text-primary) !important;
    letter-spacing: -0.02em;
}

.quick-actions-section,
.data-overview-section,
.activity-section,
.quick-links-section {
    background: rgba(10, 15, 12, 0.48);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 18px 48px rgba(0,0,0,0.20);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.quick-actions-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
}

.quick-action-card,
.data-card,
.quick-link-item,
.activity-item {
    background: linear-gradient(145deg, rgba(255,255,255,0.068), rgba(255,255,255,0.028)) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 34px rgba(0,0,0,0.18);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.quick-action-card:hover,
.data-card:hover,
.quick-link-item:hover,
.activity-item:hover {
    transform: translateY(-3px);
    background: linear-gradient(145deg, rgba(74,222,128,0.13), rgba(255,255,255,0.04)) !important;
    border-color: rgba(74,222,128,0.25) !important;
    box-shadow: 0 22px 54px rgba(0,0,0,0.28), 0 0 32px rgba(74,222,128,0.08);
}

.qa-icon-wrap,
.dc-icon,
.ql-icon {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 12px 28px rgba(0,0,0,0.22);
}

.module-header,
.chat-header,
.multimodal-header,
.image-header,
.tts-header,
.video-header,
.files-header,
.weather-header,
.tools-header {
    background: linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 20px;
    padding: 18px 20px !important;
    margin-bottom: 18px !important;
}

.module-header h2,
.chat-header h2,
.multimodal-header h2,
.image-header h2,
.tts-header h2,
.video-header h2,
.files-header h2,
.weather-header h2,
.tools-header h2 {
    letter-spacing: -0.03em;
}

@media (max-width: 768px) {
    .content { padding: 16px !important; }
    .home-welcome { padding: 22px !important; }
    .quick-actions-section,
    .data-overview-section,
    .activity-section,
    .quick-links-section { padding: 14px; }
}
