/* style.css - 完整修复版 */
* { margin:0; padding:0; box-sizing:border-box; font-family:'Segoe UI','Microsoft YaHei',sans-serif; }
body { background:linear-gradient(135deg,#f5f7fa 0%,#e4e8f0 100%); color:#333; min-height:100vh; padding:20px; transition:background 0.3s, color 0.3s; }
body.theme-dark { background:#0f1724; color:#e2e8f0; }
body.theme-dark .container { background:#1e293b; }
body.theme-dark header h1 { color:#f1f5f9; }
body.theme-dark .subtitle { color:#94a3b8; }
body.theme-dark .tab-btn { color:#94a3b8; }
body.theme-dark .tab-btn:hover { background:#334155; }
body.theme-dark .btn-secondary { background:#334155; color:#e2e8f0; }
body.theme-dark .btn-secondary:hover { background:#475569; }
body.theme-dark .quadrant { box-shadow:0 4px 12px rgba(0,0,0,0.2); }
body.theme-dark .task-card { background:#334155; color:#e2e8f0; border-left-color:#3b82f6; }
body.theme-dark .time-circle { background:#334155; }
body.theme-dark .tomato-stats { background:#334155; }
body.theme-dark .calculator { background:#0f1724; }
body.theme-dark .calc-display { background:#1e293b; }
body.theme-dark .calc-btn { background:#334155; }
body.theme-dark .calc-btn.operator { background:#c2410c; }
body.theme-dark .calc-btn.equal { background:#166534; }
body.theme-dark .calc-btn.clear { background:#991b1b; }
body.theme-dark .drawing-container { background:#1e293b; }
body.theme-dark .drawing-toolbar { background:#334155; }
body.theme-dark .notebook-container { background:#1e293b; }
body.theme-dark .notebook-editor { background:#0f1724; border-color:#475569; color:#e2e8f0; }
body.theme-dark .notebook-catalog { background:#334155; }
body.theme-dark #catalogList li { background:#475569; color:#e2e8f0; }
body.theme-dark .flow-step { background:#334155; }
body.theme-dark .chart-card { background:#1e293b; }
body.theme-dark .stats-badge { background:#334155; }
body.theme-dark .flashcard { background:#334155; }
body.theme-dark .toast { background:#1e293b; color:#e2e8f0; }

.container { max-width:1400px; margin:0 auto; background:#fff; border-radius:28px; box-shadow:0 20px 40px rgba(0,0,0,0.08); overflow:hidden; padding:24px; transition:background 0.3s; }
header { text-align:center; padding-bottom:20px; border-bottom:2px solid #eef2f6; margin-bottom:24px; }
header h1 { color:#1a2c3e; font-size:2rem; display:flex; align-items:center; justify-content:center; gap:12px; transition:color 0.3s; }
.subtitle { color:#6c86a3; margin-top:8px; transition:color 0.3s; }
.tab-bar { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:24px; border-bottom:1px solid #e2e8f0; padding-bottom:12px; align-items:center; }
.tab-btn { padding:10px 20px; background:none; border:none; font-weight:600; cursor:pointer; color:#5a6e85; border-radius:12px; transition:0.2s; display:inline-flex; gap:8px; align-items:center; }
.tab-btn:hover { background:#eef2fa; color:#2c6b9e; }
.tab-btn.active { background:#2c6b9e; color:white; box-shadow:0 4px 12px rgba(44,107,158,0.3); }
.tab-panel { display:none; }
.tab-panel.active { display:block; animation:fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.main-content { display:flex; gap:28px; flex-wrap:wrap; }
.quadrant-section { flex:3; min-width:280px; }
.quadrant-container { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin:20px 0; }
.quadrant { border-radius:20px; padding:16px; box-shadow:0 4px 12px rgba(0,0,0,0.08); transition:0.2s; }
.quadrant-1 { background:linear-gradient(135deg,#ff6b6b,#ee5a52); color:white; }
.quadrant-2 { background:linear-gradient(135deg,#1dd1a1,#10ac84); color:white; }
.quadrant-3 { background:linear-gradient(135deg,#54a0ff,#2e86de); color:white; }
.quadrant-4 { background:linear-gradient(135deg,#feca57,#ff9f43); color:white; }
.task-list { min-height:260px; background:rgba(255,255,255,0.15); border-radius:16px; padding:10px; margin-top:12px; overflow-y:auto; max-height:400px; }
.task-card { background:white; border-radius:16px; padding:14px; margin-bottom:12px; box-shadow:0 2px 8px rgba(0,0,0,0.06); cursor:pointer; transition:0.2s; border-left:4px solid #3498db; color:#1e2a3a; }
.task-card:hover { transform:translateX(4px); box-shadow:0 6px 14px rgba(0,0,0,0.1); }
.task-header { display:flex; gap:8px; margin-bottom:10px; flex-wrap:wrap; }
.task-tag { padding:2px 10px; border-radius:20px; font-size:0.7rem; font-weight:bold; }
.task-tag.urgent { background:#ff6b6b; color:white; }
.task-tag.important { background:#1dd1a1; color:white; }
.task-tag.low { background:#feca57; color:#333; }
.task-progress-bar { height:4px; background:#e2e8f0; border-radius:4px; margin:8px 0; overflow:hidden; }
.task-progress-fill { height:100%; background:#2ecc71; width:0%; transition:width 0.3s; }
.task-timer button { background:#ecf0f1; border:none; padding:4px 10px; border-radius:20px; margin-right:6px; cursor:pointer; font-size:0.7rem; transition:0.2s; }
.task-timer button:hover { background:#d5dbdd; }
.btn-primary { background:linear-gradient(135deg,#2c6b9e,#1e4d73); color:white; border:none; padding:8px 18px; border-radius:40px; cursor:pointer; font-weight:600; transition:0.2s; }
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 6px 14px rgba(44,107,158,0.4); }
.btn-secondary { background:#e2e8f0; color:#2d3e50; border:none; padding:8px 18px; border-radius:40px; cursor:pointer; font-weight:500; transition:0.2s; }
.btn-secondary:hover { background:#d5dce4; }
.btn-secondary.active { background:#2c6b9e; color:white; }
.right-sidebar { flex:2; min-width:280px; display:flex; flex-direction:column; gap:24px; }
.time-circle { width:160px; height:160px; background:#f1f5f9; border-radius:50%; margin:0 auto; display:flex; flex-direction:column; align-items:center; justify-content:center; box-shadow:0 8px 20px rgba(0,0,0,0.1); }
.time-text { font-size:2rem; font-weight:bold; font-family:monospace; }
.timer-controls { display:flex; gap:8px; justify-content:center; margin-top:16px; }
.tomato-settings { display:flex; gap:12px; justify-content:center; margin:12px 0; flex-wrap:wrap; align-items:center; }
.tomato-stats { background:#f1f5f9; border-radius:20px; padding:12px; text-align:center; margin-top:12px; }
.calculator-container { max-width:550px; margin:0 auto; }
.calculator { background:#1a2c3e; border-radius:32px; padding:24px; }
.calc-display { background:#0f1a24; border-radius:20px; padding:20px; margin-bottom:20px; text-align:right; min-height:100px; display:flex; flex-direction:column; justify-content:center; }
.calc-expression { color:#8ba0b5; font-size:1rem; min-height:30px; word-break:break-all; }
.calc-result { color:#ecf0f1; font-size:2rem; font-weight:bold; word-break:break-all; }
.calc-buttons { display:grid; grid-template-columns:repeat(6,1fr); gap:10px; }
.calc-btn { background:#2d4a6e; border:none; border-radius:14px; padding:14px 8px; color:white; font-size:1rem; cursor:pointer; transition:0.1s; text-align:center; }
.calc-btn:hover { background:#3d6a98; transform:scale(0.96); }
.calc-btn:active { transform:scale(0.92); }
.calc-btn.operator { background:#e67e22; }
.calc-btn.equal { background:#27ae60; grid-column:span 2; }
.calc-btn.clear { background:#c0392b; }
.drawing-container { background:#f8fafc; border-radius:24px; padding:20px; }
.drawing-toolbar { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:20px; align-items:center; background:white; padding:12px; border-radius:40px; box-shadow:0 4px 12px rgba(0,0,0,0.05); }
.drawing-toolbar label { font-weight:600; color:#4a5568; }
.drawing-toolbar input[type="range"] { cursor:pointer; }
.drawing-toolbar input[type="color"] { width:40px; height:40px; border:none; border-radius:8px; cursor:pointer; }
.notebook-container { background:#fafcff; border-radius:24px; padding:20px; }
.notebook-editor { min-height:380px; border:1px solid #e2e8f0; border-radius:20px; padding:20px; background:white; overflow-y:auto; line-height:1.6; outline:none; }
.notebook-editor:focus { border-color:#2c6b9e; }
.notebook-catalog { background:#f1f5f9; border-radius:16px; padding:12px; }
#catalogList { list-style:none; }
#catalogList li { padding:8px 12px; margin:4px 0; background:white; border-radius:12px; cursor:pointer; transition:0.1s; }
#catalogList li:hover { background:#e2e8f0; transform:translateX(4px); }
.flow-step { background:white; border-radius:20px; padding:20px; display:flex; justify-content:space-between; align-items:center; box-shadow:0 4px 12px rgba(0,0,0,0.08); }
.chart-card { background:#f8fafc; border-radius:20px; padding:20px; }
.stats-badge { background:#e2e8f0; padding:8px 16px; border-radius:20px; font-weight:600; }
.flashcard { background:linear-gradient(135deg,#fff,#f8fafc); border-radius:20px; padding:24px; box-shadow:0 8px 20px rgba(0,0,0,0.08); text-align:center; margin:12px auto; cursor:pointer; max-width:320px; border:1px solid #e2e8f0; transition:0.2s; }
.flashcard:hover { transform:translateY(-4px); box-shadow:0 12px 24px rgba(0,0,0,0.12); }
.toast { position:fixed; bottom:24px; right:24px; background:#2c6b9e; color:white; padding:12px 20px; border-radius:40px; opacity:0; transition:0.2s; z-index:10000; pointer-events:none; box-shadow:0 4px 12px rgba(0,0,0,0.2); }
.toast.show { opacity:1; transform:translateY(-8px); }
.format-btn { background:#e2e8f0; border:none; padding:6px 10px; border-radius:8px; cursor:pointer; }
.format-btn:hover { background:#d5dce4; }
.task-toolbar { display:flex; gap:8px; margin-bottom:20px; flex-wrap:wrap; }
.task-toolbar input, .task-toolbar select { padding:8px 12px; border:1px solid #e2e8f0; border-radius:8px; }
.add-task-section { background:#f8fafc; border-radius:20px; padding:20px; }
#searchResults { display:flex; flex-direction:column; gap:8px; }
#searchResults div { background:white; padding:8px 12px; border-radius:8px; cursor:pointer; }
#searchResults div:hover { background:#e2e8f0; }
.confetti { position:fixed; top:-20px; width:10px; height:20px; opacity:0.8; z-index:9999; pointer-events:none; }
@keyframes fall { 0% { transform:translateY(-20px) rotate(0deg); } 100% { transform:translateY(100vh) rotate(360deg); } }