.home-page { max-width: 960px; margin: 30px auto; padding: 0 20px; }

/* 欢迎 + 天气合一头部 */
.home-welcome {
    display: flex; align-items: center; gap: 24px;
    padding: 28px 30px;
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 16px; margin-bottom: 24px;
}
.home-welcome-left {
    display: flex; align-items: center; gap: 20px; flex: 1; min-width: 0;
}
.home-welcome-divider {
    width: 1px; height: 80px; background: rgba(255,255,255,0.1); flex-shrink: 0;
}
.home-welcome-right {
    flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start;
}
.home-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: white; flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.15);
    overflow: hidden;
}
.home-avatar img { width: 100%; height: 100%; object-fit: cover; }
.home-welcome h1 { font-size: 1.6rem; color: var(--form-text); margin: 0 0 6px; font-weight: 700; }
.home-level-badge {
    display: inline-block; padding: 3px 12px;
    background: rgba(251,191,36,0.12); color: #fbbf24;
    border-radius: 20px; font-size: 0.8rem; font-weight: 500;
}

/* 统计卡片 */
.home-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.home-stat {
    padding: 18px 14px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; text-align: center;
}
.home-stat-icon { font-size: 1.4rem; margin-bottom: 6px; }
.home-stat-value { font-size: 1.8rem; font-weight: 700; color: #fbbf24; line-height: 1.2; }
.home-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-top: 2px; }

/* 打卡 */
.home-checkin {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 24px; margin-bottom: 24px;
    background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2);
    border-radius: 12px;
}
.home-checkin-btn {
    padding: 12px 28px; background: linear-gradient(135deg, #10b981, #059669);
    border: none; border-radius: 10px; color: white;
    font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: all 0.2s; white-space: nowrap;
}
.home-checkin-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(16,185,129,0.35); }
.home-checkin-btn:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }
.home-checkin-btn.done { background: rgba(16,185,129,0.25); }
.home-checkin-info { flex: 1; color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.home-checkin-streak { color: #fbbf24; font-weight: 600; font-size: 1.1rem; }

/* 断签预警 */
.streak-warning {
    display: none; align-items: center; gap: 12px;
    padding: 14px 20px; margin-bottom: 24px;
    background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3);
    border-radius: 12px; animation: streakPulse 2s ease-in-out infinite;
}
@keyframes streakPulse {
    0%, 100% { border-color: rgba(245,158,11,0.3); }
    50% { border-color: rgba(245,158,11,0.6); }
}
.streak-warning.show { display: flex; }
.streak-warning-icon { font-size: 1.5rem; flex-shrink: 0; }
.streak-warning-text { flex: 1; font-size: 0.9rem; color: #fbbf24; line-height: 1.5; }
.streak-warning-text strong { color: #f59e0b; }

/* 通用区块 */
.home-section { margin-bottom: 28px; }
.home-section-title {
    font-size: 1.1rem; font-weight: 600; color: var(--form-text);
    margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.home-section-title::before { content: '◆'; color: #fbbf24; font-size: 0.65rem; }

/* 课程进度 */
.course-item {
    padding: 14px 18px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; margin-bottom: 10px;
}
.course-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.course-item-name { color: var(--form-text); font-weight: 500; font-size: 0.95rem; }
.course-item-count { color: #818cf8; font-size: 0.8rem; }
.course-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.course-bar-fill { height: 100%; background: linear-gradient(90deg, #6366f1, #8b5cf6); border-radius: 3px; transition: width 0.5s; }
.course-item.complete .course-bar-fill { background: linear-gradient(90deg, #10b981, #34d399); }

/* 工具收藏 */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.tool-card {
    padding: 14px 10px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
    text-align: center; cursor: pointer; transition: all 0.2s;
    text-decoration: none; display: block; position: relative;
}
.tool-card:hover { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.3); transform: translateY(-2px); }
.tool-card-icon { font-size: 1.6rem; margin-bottom: 4px; }
.tool-card-name { font-size: 0.8rem; color: var(--form-text); }
.tool-card .remove-btn {
    position: absolute; top: 4px; right: 6px; width: 18px; height: 18px;
    background: rgba(239,68,68,0.2); border: none; border-radius: 50%;
    color: #f87171; font-size: 0.7rem; cursor: pointer; display: none;
    align-items: center; justify-content: center; line-height: 1;
}
.tool-card:hover .remove-btn { display: flex; }

/* 推荐 */
.reco-grid { display: grid; gap: 10px; }
.reco-card {
    display: block; padding: 14px 18px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; text-decoration: none; transition: all 0.2s;
}
.reco-card:hover { background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.2); }
.reco-card h3 { color: var(--form-text); font-size: 0.95rem; font-weight: 500; margin: 0 0 4px; }
.reco-card p { color: rgba(255,255,255,0.45); font-size: 0.8rem; margin: 0; line-height: 1.4; }
.reco-tool { background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.2); }
.reco-tool h3 { color: #c7d2fe; }

/* 日记 */
.diary-form { margin-bottom: 16px; }
.diary-textarea {
    width: 100%; min-height: 90px; padding: 12px 14px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; color: var(--form-text); font-size: 0.9rem;
    resize: vertical; font-family: inherit; line-height: 1.5;
}
.diary-textarea:focus { outline: none; border-color: rgba(99,102,241,0.5); }
.diary-textarea::placeholder { color: var(--form-placeholder); }
.diary-submit {
    margin-top: 10px; padding: 9px 22px;
    background: #6366f1; border: none; border-radius: 8px;
    color: white; font-size: 0.9rem; cursor: pointer; font-weight: 500;
}
.diary-submit:hover { background: #5558e6; }
.diary-submit:disabled { opacity: 0.5; cursor: default; }
.diary-card {
    padding: 16px 18px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; margin-bottom: 10px;
}
.diary-date { font-size: 0.75rem; color: rgba(255,255,255,0.35); margin-bottom: 6px; }
.diary-content { color: var(--form-text); font-size: 0.9rem; line-height: 1.6; white-space: pre-wrap; }
.diary-reflection {
    margin-top: 10px; padding: 10px 14px;
    background: rgba(99,102,241,0.08); border-left: 3px solid #6366f1;
    border-radius: 0 6px 6px 0; font-size: 0.85rem; color: #c7d2fe; line-height: 1.5;
}
.diary-reflect-btn {
    margin-top: 8px; padding: 5px 12px;
    background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.3);
    border-radius: 6px; color: #818cf8; cursor: pointer; font-size: 0.78rem;
}
.diary-reflect-btn:hover { background: rgba(99,102,241,0.25); }

/* 我的笔记 */
.note-new-btn {
    padding: 6px 14px; background: #6366f1; border: none; border-radius: 8px;
    color: #fff; font-size: 0.82rem; cursor: pointer; font-weight: 500; white-space: nowrap;
}
.note-new-btn:hover { background: #5558e6; }
.note-editor {
    padding: 14px; margin-bottom: 14px;
    background: rgba(99,102,241,0.06); border: 1px solid rgba(99,102,241,0.25); border-radius: 12px;
}
.note-input {
    width: 100%; padding: 9px 12px; margin-bottom: 8px; box-sizing: border-box;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; color: var(--form-text); font-size: 0.88rem; font-family: inherit;
}
.note-input:focus { outline: none; border-color: rgba(99,102,241,0.5); }
.note-input::placeholder { color: var(--form-placeholder); opacity: 0.65; }
.note-textarea {
    width: 100%; min-height: 320px; padding: 12px 14px; margin-bottom: 8px; box-sizing: border-box;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; color: var(--form-text); font-size: 0.92rem;
    resize: vertical; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; line-height: 1.7;
}
.note-textarea:focus { outline: none; border-color: rgba(99,102,241,0.5); }
.note-textarea::placeholder { color: var(--form-placeholder); opacity: 0.65; }
.note-source-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.25);
    border-radius: 20px; font-size: 0.78rem; color: #93c5fd; max-width: 100%;
}
.note-source-clear { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.72rem; }
.note-source-clear:hover { color: #f87171; }
.note-editor-actions { display: flex; gap: 10px; margin-top: 10px; }
.note-save-btn {
    padding: 8px 20px; background: #6366f1; border: none; border-radius: 8px;
    color: #fff; font-size: 0.88rem; cursor: pointer; font-weight: 500;
}
.note-save-btn:hover { background: #5558e6; }
.note-save-btn:disabled { opacity: 0.5; cursor: default; }
.note-cancel-btn {
    padding: 8px 16px; background: transparent; border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px; color: rgba(255,255,255,0.55); font-size: 0.88rem; cursor: pointer;
}
.note-cancel-btn:hover { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.8); }
.notes-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.note-search { margin-bottom: 0; max-width: 280px; }
.notes-tag-filter { font-size: 0.8rem; color: rgba(255,255,255,0.55); display: flex; align-items: center; gap: 6px; }
.note-clear-filter { color: #818cf8; text-decoration: none; cursor: pointer; }
.note-card {
    padding: 14px 16px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; margin-bottom: 10px;
}
.note-card.note-pinned { border-color: rgba(245,158,11,0.35); background: rgba(245,158,11,0.05); }
.note-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.note-pin-badge { font-size: 0.8rem; }
.note-title {
    color: #e2e8f0; font-weight: 600; font-size: 0.95rem; flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.note-date { font-size: 0.72rem; color: rgba(255,255,255,0.35); white-space: nowrap; }
.note-source {
    display: inline-block; margin-bottom: 6px; padding: 2px 10px; max-width: 100%;
    background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2);
    border-radius: 20px; font-size: 0.75rem; color: #93c5fd; text-decoration: none;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.note-source:hover { background: rgba(59,130,246,0.15); }
.note-content { color: var(--form-text); font-size: 0.88rem; line-height: 1.6; white-space: pre-wrap; }
.note-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.note-tag {
    padding: 2px 10px; background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.25);
    border-radius: 20px; font-size: 0.75rem; color: #a5b4fc; cursor: pointer;
}
.note-tag:hover { background: rgba(99,102,241,0.22); }
.note-actions { display: flex; gap: 8px; margin-top: 10px; }
.note-actions button {
    padding: 4px 10px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px; color: rgba(255,255,255,0.6); cursor: pointer; font-size: 0.76rem;
}
.note-actions button:hover { background: rgba(255,255,255,0.1); color: #e2e8f0; }
.note-actions button.note-del:hover { border-color: rgba(239,68,68,0.4); color: #f87171; }
.notes-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 6px; }
.notes-pagination button {
    padding: 5px 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px; color: rgba(255,255,255,0.65); cursor: pointer; font-size: 0.8rem;
}
.notes-pagination button:disabled { opacity: 0.35; cursor: default; }
.notes-pagination span { font-size: 0.78rem; color: rgba(255,255,255,0.4); }

/* 笔记 · Markdown 渲染（卡片/预览/弹窗/问笔记共用） */
.note-md { color: var(--form-text); font-size: 0.88rem; line-height: 1.7; word-break: break-word; }
.note-md h1, .note-md h2, .note-md h3, .note-md h4 { color: #e2e8f0; line-height: 1.4; margin: 0.9em 0 0.4em; }
.note-md h1 { font-size: 1.2rem; } .note-md h2 { font-size: 1.1rem; }
.note-md h3 { font-size: 1rem; } .note-md h4 { font-size: 0.95rem; }
.note-md p { margin: 0.5em 0; }
.note-md a { color: #818cf8; text-decoration: none; }
.note-md a:hover { text-decoration: underline; }
.note-md code {
    background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.2);
    border-radius: 4px; padding: 1px 5px; font-size: 0.85em; color: #c7d2fe;
}
.note-md pre {
    background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px; padding: 12px; overflow-x: auto; margin: 0.7em 0;
}
.note-md pre code { background: none; border: none; padding: 0; color: #d4dae6; }
.note-md ul, .note-md ol { padding-left: 1.4em; margin: 0.5em 0; }
.note-md li { margin: 0.25em 0; }
.note-md blockquote {
    margin: 0.7em 0; padding: 6px 14px; border-left: 3px solid rgba(99,102,241,0.5);
    background: rgba(99,102,241,0.06); border-radius: 0 8px 8px 0; color: rgba(255,255,255,0.6);
}
.note-md table { border-collapse: collapse; width: 100%; margin: 0.7em 0; font-size: 0.84rem; }
.note-md th, .note-md td { border: 1px solid rgba(255,255,255,0.15); padding: 6px 9px; text-align: left; }
.note-md th { background: rgba(255,255,255,0.06); color: #e2e8f0; }
.note-md img { max-width: 100%; border-radius: 6px; }
.note-md hr { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 0.9em 0; }
.note-md-compact { font-size: 0.85rem; }
.note-md-compact > :first-child { margin-top: 0; }
.note-md-compact > :last-child { margin-bottom: 0; }

/* 笔记 · 编辑器标签页（编写/预览） */
.note-editor-tabs { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.note-tab-btn {
    padding: 5px 16px; background: transparent; border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px; color: rgba(255,255,255,0.55); cursor: pointer; font-size: 0.8rem;
}
.note-tab-btn.active { background: rgba(99,102,241,0.18); border-color: rgba(99,102,241,0.4); color: #a5b4fc; }
.note-md-hint { margin-left: auto; font-size: 0.72rem; color: rgba(255,255,255,0.35); }
.note-md-preview {
    min-height: 320px; max-height: 520px; overflow-y: auto;
    padding: 12px 14px; margin-bottom: 8px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
}
.note-ai-btn {
    padding: 8px 16px; background: linear-gradient(135deg, #f59e0b, #d97706); border: none;
    border-radius: 8px; color: #fff; font-size: 0.85rem; cursor: pointer; font-weight: 500;
}
.note-ai-btn:hover { filter: brightness(1.1); }
.note-ai-btn:disabled { opacity: 0.5; cursor: default; filter: none; }

/* 笔记 · 问我的笔记 */
.note-ask-btn {
    padding: 6px 14px; background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.35);
    border-radius: 8px; color: #fbbf24; font-size: 0.82rem; cursor: pointer; white-space: nowrap;
}
.note-ask-btn:hover { background: rgba(245,158,11,0.2); }
.note-ask-panel {
    padding: 14px; margin-bottom: 14px;
    background: rgba(245,158,11,0.05); border: 1px solid rgba(245,158,11,0.25); border-radius: 12px;
}
.note-ask-row { display: flex; gap: 10px; }
.note-ask-row .note-input { margin-bottom: 0; flex: 1; }
.note-ask-submit {
    padding: 8px 18px; background: #f59e0b; border: none; border-radius: 8px;
    color: #1c1400; font-size: 0.85rem; cursor: pointer; font-weight: 600; white-space: nowrap;
}
.note-ask-submit:disabled { opacity: 0.5; cursor: default; }
.note-ask-answer {
    margin-top: 12px; padding: 14px 16px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
}
.note-ask-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.note-ask-sources .note-ask-src-label { font-size: 0.74rem; color: rgba(255,255,255,0.4); }
.note-ask-cost { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-top: 8px; }

/* 笔记 · 间隔复习横幅 */
.note-review-banner {
    padding: 10px 14px; margin-bottom: 14px;
    background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.3); border-radius: 10px;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.note-review-banner-text { color: #6ee7b7; font-size: 0.85rem; flex: 1; min-width: 200px; }
.note-review-banner button {
    padding: 5px 14px; background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.4);
    border-radius: 6px; color: #6ee7b7; cursor: pointer; font-size: 0.8rem;
}
.note-review-banner button:hover { background: rgba(16,185,129,0.25); }

/* 笔记 · 通用弹窗（复习/分享） */
.note-modal-overlay {
    position: fixed; inset: 0; z-index: 9996;
    background: rgba(0,0,0,0.65); display: flex; align-items: center; justify-content: center;
    padding: 18px;
}
.note-modal {
    width: 100%; max-width: 600px; max-height: 82vh; overflow-y: auto;
    background: #131a2e; border: 1px solid rgba(255,255,255,0.12); border-radius: 14px;
    padding: 20px 22px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.note-modal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.note-modal-title { flex: 1; min-width: 0; color: #e2e8f0; font-weight: 600; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-modal-close {
    background: none; border: none; color: rgba(255,255,255,0.45); font-size: 1.1rem; cursor: pointer; padding: 2px 6px;
}
.note-modal-close:hover { color: #fff; }
.note-modal-sub { font-size: 0.76rem; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.note-modal-body { max-height: 46vh; overflow-y: auto; padding-right: 4px; }
.note-modal-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.note-modal-actions button {
    padding: 8px 18px; border-radius: 8px; cursor: pointer; font-size: 0.86rem; border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.75);
}
.note-modal-actions button:hover { background: rgba(255,255,255,0.1); }
.note-modal-actions button.primary { background: #10b981; border-color: #10b981; color: #fff; font-weight: 500; }
.note-modal-actions button.primary:hover { background: #0ea271; }
.note-share-link-box {
    display: flex; gap: 8px; align-items: center; margin-top: 10px;
    padding: 8px 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
}
.note-share-link-box input {
    flex: 1; min-width: 0; background: none; border: none; color: #93c5fd; font-size: 0.8rem; outline: none;
}
.note-share-tip { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-top: 8px; line-height: 1.5; }
.note-ai-summary-chip {
    display: block; margin-bottom: 6px; padding: 6px 12px;
    background: rgba(245,158,11,0.08); border-left: 3px solid rgba(245,158,11,0.5);
    border-radius: 0 6px 6px 0; font-size: 0.78rem; color: #fcd34d; line-height: 1.5;
}
.note-share-badge { color: #6ee7b7; font-size: 0.7rem; margin-left: 4px; }

/* 笔记 · 格式化工具栏 */
.note-toolbar {
    display: flex; align-items: center; gap: 2px; margin-bottom: 8px; padding: 5px 8px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px; flex-wrap: wrap;
}
.note-toolbar-group { display: flex; align-items: center; gap: 2px; }
.note-toolbar-sep {
    width: 1px; height: 18px; background: rgba(255,255,255,0.1); margin: 0 4px;
}
.note-tb-btn {
    width: 30px; height: 28px; padding: 0; background: transparent; border: 1px solid transparent;
    border-radius: 5px; color: rgba(255,255,255,0.55); font-size: 0.76rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.15s;
    font-family: inherit; line-height: 1;
}
.note-tb-btn:hover { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.3); color: #a5b4fc; }
.note-tb-btn:active { transform: scale(0.93); }
.note-tb-ai-btn { color: #fbbf24; font-size: 0.85rem; }
.note-tb-ai-btn:hover { background: rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.35); color: #fcd34d; }
.note-toolbar-ai-group { margin-left: auto; }
.note-editor-tabs-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.note-immersive-btn { font-size: 0.9rem; }

/* 智能写作下拉菜单 */
.note-smart-dropdown { position: relative; }
.note-smart-menu {
    position: absolute; right: 0; bottom: 100%; margin-bottom: 4px; min-width: 150px;
    background: #1a2240; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
    padding: 6px; box-shadow: 0 8px 30px rgba(0,0,0,0.4); z-index: 100;
}
.note-smart-menu button {
    display: block; width: 100%; padding: 8px 12px; background: transparent; border: none;
    border-radius: 6px; color: rgba(255,255,255,0.75); font-size: 0.82rem; cursor: pointer;
    text-align: left; font-family: inherit;
}
.note-smart-menu button:hover { background: rgba(99,102,241,0.12); color: #e2e8f0; }

/* 笔记 · 状态栏 */
.note-statusbar {
    display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 4px 10px;
    border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.72rem;
    color: rgba(255,255,255,0.35); font-family: 'SFMono-Regular', Consolas, monospace;
}
.note-status-sep { color: rgba(255,255,255,0.12); }
.note-status-type { color: rgba(99,102,241,0.5); margin-left: auto; font-weight: 500; }

/* 笔记 · 沉浸模式 */
.note-immersive-overlay {
    position: fixed; inset: 0; z-index: 9995;
    background: rgba(15,23,42,0.98); backdrop-filter: blur(20px);
    display: flex; align-items: stretch; justify-content: center;
}
.note-immersive-container {
    width: 100%; max-width: 900px; padding: 20px 24px; display: flex;
    flex-direction: column; height: 100vh;
}
.note-immersive-topbar {
    display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.note-immersive-title {
    flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px; background: rgba(255,255,255,0.04); color: var(--form-text);
    font-size: 1rem; font-family: inherit; outline: none;
}
.note-immersive-title:focus { border-color: rgba(99,102,241,0.5); }
.note-immersive-title::placeholder { color: var(--form-placeholder); opacity: 0.65; }
.note-immersive-actions { display: flex; gap: 8px; align-items: center; }
.note-immersive-exit {
    width: 36px; height: 36px; padding: 0; background: transparent; border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px; color: rgba(255,255,255,0.5); font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.note-immersive-exit:hover { border-color: rgba(239,68,68,0.4); color: #f87171; }
.note-immersive-toolbar { margin-bottom: 8px; }
.note-immersive-textarea {
    flex: 1; width: 100%; padding: 16px 18px; box-sizing: border-box;
    background: transparent; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
    color: var(--form-text); font-size: 1rem; resize: none; outline: none;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    line-height: 1.8; min-height: 0;
}
.note-immersive-textarea:focus { border-color: rgba(99,102,241,0.3); }
.note-immersive-textarea::placeholder { color: var(--form-placeholder); opacity: 0.5; }
.note-immersive-footer {
    display: flex; gap: 10px; margin-top: 10px; padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* 笔记 · 快速笔记 */
.note-quick-panel {
    margin-bottom: 14px; padding: 12px;
    background: rgba(99,102,241,0.04); border: 1px solid rgba(99,102,241,0.2);
    border-radius: 10px;
}
.note-quick-textarea {
    width: 100%; padding: 10px 12px; box-sizing: border-box;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; color: var(--form-text); font-size: 0.88rem;
    resize: vertical; font-family: inherit; line-height: 1.6; outline: none;
}
.note-quick-textarea:focus { border-color: rgba(99,102,241,0.5); }
.note-quick-textarea::placeholder { color: var(--form-placeholder); opacity: 0.65; }
.note-quick-actions {
    display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 8px;
}
.note-quick-hint { font-size: 0.7rem; color: rgba(255,255,255,0.3); margin-right: auto; }

/* 响应式：移动端工具栏简化 */
@media (max-width: 640px) {
    .note-toolbar { gap: 1px; padding: 4px 6px; }
    .note-tb-btn { width: 26px; height: 24px; font-size: 0.7rem; }
    .note-toolbar-sep { margin: 0 2px; }
    .note-toolbar-ai-group { margin-left: 4px; }
    .note-md-hint { display: none; }
    .note-immersive-container { padding: 12px 16px; }
    .note-immersive-textarea { font-size: 0.92rem; padding: 12px 14px; }
}

/* 徽章 */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; }
.badge-card {
    padding: 18px 8px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
    text-align: center; transition: all 0.2s;
}
.badge-card.earned { background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.25); }
.badge-card.locked { opacity: 0.35; filter: grayscale(0.8); }
.badge-icon { font-size: 2.2rem; margin-bottom: 6px; }
.badge-name { font-size: 0.78rem; color: var(--form-text); font-weight: 500; }
.badge-desc { font-size: 0.68rem; color: rgba(255,255,255,0.35); margin-top: 3px; }

/* 空状态 */
.home-empty { text-align: center; padding: 30px; color: rgba(255,255,255,0.35); font-size: 0.9rem; }
.home-empty a { color: #818cf8; text-decoration: none; }
.home-empty a:hover { text-decoration: underline; }

/* Toast */
.home-toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
    padding: 12px 24px; background: rgba(16,185,129,0.9); color: white;
    border-radius: 10px; font-size: 0.9rem; opacity: 0;
    transition: all 0.3s; z-index: 10001; pointer-events: none;
}
.home-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 等级进度条 */
.level-progress {
    height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px;
    overflow: hidden; max-width: 300px;
}
.level-progress-bar {
    height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transition: width 0.8s ease-out;
}
.level-exp-text {
    font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-top: 4px;
}

/* 成长树入口 */
.growth-tree-entry {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 22px; margin-top: 12px;
    background: linear-gradient(135deg, rgba(251,191,36,0.08), rgba(99,102,241,0.06));
    border: 1px solid rgba(251,191,36,0.2); border-radius: 14px;
    text-decoration: none; transition: all 0.2s; cursor: pointer;
}
.growth-tree-entry:hover {
    background: linear-gradient(135deg, rgba(251,191,36,0.12), rgba(99,102,241,0.1));
    border-color: rgba(251,191,36,0.35); transform: translateY(-1px);
}
.growth-tree-icon { font-size: 2rem; }
.growth-tree-title { color: var(--form-text); font-weight: 600; font-size: 1rem; }
.growth-tree-desc { color: rgba(255,255,255,0.45); font-size: 0.8rem; margin-top: 2px; }

/* 加载骨架 */
.skeleton { background: rgba(255,255,255,0.06); border-radius: 8px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 0.8; } }

/* 响应式 */
@media (max-width: 768px) {
    .home-stats { grid-template-columns: repeat(2, 1fr); }
    .home-welcome { flex-direction: column; text-align: center; padding: 24px 20px; gap: 16px; }
    .home-welcome-left { flex-direction: column; text-align: center; }
    .home-welcome-divider { display: none; }
    .home-welcome-right { align-items: center; }
    .home-checkin { flex-direction: column; text-align: center; }
    .badge-grid { grid-template-columns: repeat(3, 1fr); }
    .tools-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .home-page { padding: 0 12px; }
    .home-stat-value { font-size: 1.4rem; }
}
.daily-task-list { display: flex; flex-direction: column; gap: 8px; }
.daily-task-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; transition: all 0.2s; }
.daily-task-item.done { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.2); }
.daily-task-icon { font-size: 1.3rem; flex-shrink: 0; }
.daily-task-info { flex: 1; }
.daily-task-title { font-size: 0.9rem; font-weight: 500; color: var(--form-text); }
.daily-task-desc { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 2px; }
.daily-task-status { font-size: 0.75rem; flex-shrink: 0; padding: 3px 8px; border-radius: 6px; }
.daily-task-status.done { background: rgba(16,185,129,0.15); color: #34d399; }
.daily-task-status.pending { background: rgba(255,255,255,0.06); color: var(--ui-subtle); }
.daily-task-reward { font-size: 0.7rem; color: #fbbf24; }
.daily-tasks-claim { margin-top: 10px; text-align: center; }
.daily-tasks-claim button { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #0f172a; border: none; padding: 8px 20px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: opacity 0.2s; }
.daily-tasks-claim button:hover { opacity: 0.9; }
.daily-tasks-claim button:disabled { background: rgba(255,255,255,0.1); color: var(--ui-subtle); cursor: default; }
.daily-tasks-claimed { text-align: center; padding: 8px; color: #34d399; font-size: 0.85rem; }

/* 我的求职 */
.apps-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.apps-stat-tile { background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.18); border-radius: 12px; padding: 14px; text-align: center; }
.apps-stat-tile.apps-stat-offer { background: rgba(245,158,11,0.10); border-color: rgba(245,158,11,0.25); }
.apps-stat-num { font-size: 1.8rem; font-weight: 700; color: #a5b4fc; line-height: 1.1; }
.apps-stat-offer .apps-stat-num { color: #fbbf24; }
.apps-stat-label { font-size: 0.75rem; color: var(--ui-subtle); margin-top: 4px; }
.apps-toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.apps-filter { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: inherit; border-radius: 8px; padding: 8px 12px; font-size: 0.85rem; cursor: pointer; }
.apps-search { flex: 1; min-width: 160px; }
.apps-new-btn { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border: none; padding: 8px 16px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.apps-new-btn:hover { opacity: 0.9; }
.apps-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; margin-bottom: 8px; transition: background 0.2s; }
.apps-card:hover { background: rgba(255,255,255,0.06); }
.apps-card-main { flex: 1; min-width: 0; }
.apps-card-company { font-weight: 600; color: #e2e8f0; font-size: 0.95rem; }
.apps-card-pos { color: var(--ui-subtle); font-size: 0.82rem; margin-top: 2px; }
.apps-card-meta { color: rgba(255,255,255,0.35); font-size: 0.72rem; margin-top: 4px; }
.apps-card-actions { display: flex; gap: 6px; }
.apps-icon-btn { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: var(--ui-subtle); border-radius: 6px; padding: 5px 9px; font-size: 0.75rem; cursor: pointer; }
.apps-icon-btn:hover { color: #e2e8f0; }
.apps-status { font-size: 0.72rem; padding: 3px 10px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.apps-status-planned { background: rgba(148,163,184,0.15); color: #94a3b8; }
.apps-status-applied { background: rgba(59,130,246,0.18); color: #60a5fa; }
.apps-status-interview { background: rgba(168,85,247,0.18); color: #c084fc; }
.apps-status-offer { background: rgba(245,158,11,0.18); color: #fbbf24; }
.apps-status-rejected { background: rgba(239,68,68,0.15); color: #f87171; }
.apps-status-withdrawn { background: rgba(100,116,139,0.15); color: #94a3b8; }
.apps-modal { max-width: 620px; }
.apps-editor { display: flex; flex-direction: column; gap: 10px; padding: 4px 4px 8px; }
.apps-editor .note-textarea { min-height: 70px; font-size: 0.85rem; }
