Files
ziwei-power/static/style.css
mac 19ae81ae6e v1.5.2 — 责善显示改进方案
- 责善列表项追加 → 反思内容
- 红色标注区分改进方案
2026-06-04 17:46:44 +08:00

1521 lines
33 KiB
CSS

:root {
--primary: #4A6CF7;
--primary-light: #EEF1FE;
--primary-dark: #3B5DE7;
--success: #10B981;
--success-light: #ECFDF5;
--danger: #EF4444;
--danger-light: #FEF2F2;
--warning: #F59E0B;
--warning-light: #FFFBEB;
--bg: #F5F7FB;
--card: #FFFFFF;
--text: #1F2937;
--text-muted: #9CA3AF;
--text-dim: #6B7280;
--border: #E5E7EB;
--radius: 10px;
--radius-sm: 8px;
--shadow: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(74,108,247,0.05);
--shadow-hover: 0 2px 6px rgba(0,0,0,0.04), 0 6px 18px rgba(74,108,247,0.08);
--sidebar-w: 280px;
}
* { margin:0; padding:0; box-sizing:border-box; }
html, body {
height: 100%;
overflow: hidden;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
background: var(--bg);
color: var(--text);
-webkit-font-smoothing: antialiased;
}
/* ═══════════════════════════════════════════
Layout
═══════════════════════════════════════════ */
.app-layout {
display: flex;
height: 100vh;
overflow: hidden;
}
/* ═══════════════════════════════════════════
Sidebar
═══════════════════════════════════════════ */
.sidebar {
width: var(--sidebar-w);
min-width: var(--sidebar-w);
height: 100vh;
background: var(--card);
border-right: 0.5px solid var(--border);
display: flex;
flex-direction: column;
overflow-y: auto;
overflow-x: hidden;
flex-shrink: 0;
}
/* ── User ── */
.sidebar-user {
display: flex;
align-items: center;
gap: 12px;
padding: 20px 20px 16px;
}
.user-avatar {
width: 38px;
height: 38px;
border-radius: 50%;
background: var(--primary);
color: #FFF;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
font-weight: 600;
flex-shrink: 0;
}
.user-info {
display: flex;
flex-direction: column;
flex: 1;
min-width: 0;
}
.user-name {
font-size: 15px;
font-weight: 600;
color: var(--text);
line-height: 1.3;
}
.user-tag {
font-size: 11px;
color: var(--text-muted);
font-weight: 400;
}
.btn-logout-icon {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border-radius: 8px;
color: var(--text-muted);
text-decoration: none;
transition: all 0.2s;
flex-shrink: 0;
}
.btn-logout-icon:hover {
background: var(--danger-light);
color: var(--danger);
}
/* ── Stats ── */
.sidebar-stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
padding: 0 20px 20px;
}
.stat-item {
background: var(--bg);
border-radius: var(--radius-sm);
padding: 12px 8px;
text-align: center;
display: flex;
flex-direction: column;
gap: 2px;
}
.stat-num {
font-size: 20px;
font-weight: 700;
color: var(--primary);
line-height: 1.2;
}
.stat-label {
font-size: 11px;
color: var(--text-muted);
font-weight: 400;
}
/* ═══════════════════════════════════════════
Calendar Widget
═══════════════════════════════════════════ */
.calendar-widget {
padding: 0 16px 12px;
}
.cal-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
}
.cal-nav {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border: none;
background: transparent;
color: var(--text-muted);
cursor: pointer;
border-radius: 6px;
transition: all 0.2s;
}
.cal-nav:hover { background: var(--bg); color: var(--primary); }
.cal-month-label {
font-size: 13px;
font-weight: 600;
color: var(--text);
}
.cal-weekdays {
display: grid;
grid-template-columns: repeat(7, 1fr);
text-align: center;
font-size: 11px;
color: var(--text-muted);
font-weight: 500;
margin-bottom: 4px;
padding: 0 2px;
}
.cal-weekdays span {
padding: 4px 0;
}
.cal-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 3px;
}
.cal-cell {
aspect-ratio: 1;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: 500;
border-radius: 6px;
color: var(--text-dim);
cursor: pointer;
transition: all 0.15s;
position: relative;
border: 1.5px solid transparent;
}
.cal-cell:hover {
background: var(--primary-light);
color: var(--primary);
border-color: var(--primary);
}
.cal-cell.other-month {
color: var(--border);
cursor: default;
}
.cal-cell.other-month:hover {
background: transparent;
border-color: transparent;
color: var(--border);
}
.cal-cell.today {
font-weight: 700;
color: var(--primary);
border-color: var(--primary);
background: var(--primary-light);
}
.cal-cell.selected {
font-weight: 600;
color: var(--primary-dark);
border-color: var(--primary-dark);
background: #DDE3FD;
}
.cal-cell.selected.today {
font-weight: 700;
color: #FFF;
border-color: var(--primary-dark);
background: var(--primary);
}
.cal-cell::after {
content: '';
position: absolute;
bottom: 4px;
left: 50%;
transform: translateX(-50%);
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--border);
}
/* 达标 — 绿色 */
.cal-cell.pass::after {
background: var(--success);
}
/* 未达标 — 黄色 */
.cal-cell.fail::after {
background: var(--warning);
}
.cal-cell.other-month::after {
display: none;
}
.cal-cell.today.pass::after,
.cal-cell.today.fail::after {
bottom: 2px;
}
.cal-legend {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
margin-top: 10px;
font-size: 10px;
color: var(--text-muted);
}
.legend-dot {
display: inline-block;
width: 6px;
height: 6px;
border-radius: 50%;
}
.legend-dot.pass { background: var(--success); }
.legend-dot.fail { background: var(--warning); }
.legend-dot.empty { background: var(--border); }
/* ═══════════════════════════════════════════
Sidebar Nav
═══════════════════════════════════════════ */
.sidebar-nav {
padding: 8px 12px;
display: flex;
flex-direction: column;
gap: 2px;
flex: 1;
}
.nav-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 14px;
border-radius: var(--radius-sm);
font-size: 13px;
font-weight: 500;
color: var(--text-dim);
cursor: pointer;
text-decoration: none;
transition: all 0.15s;
}
.nav-item:hover {
background: var(--bg);
color: var(--text);
}
.nav-item.active {
background: var(--primary-light);
color: var(--primary);
font-weight: 600;
}
.nav-item .icon-sm {
flex-shrink: 0;
width: 16px;
height: 16px;
}
/* ── Sidebar Footer ── */
.sidebar-footer {
padding: 12px 20px;
border-top: 0.5px solid var(--border);
}
.btn-new-day {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
padding: 11px;
border: none;
background: var(--primary);
color: #FFF;
font-size: 13px;
font-weight: 600;
border-radius: var(--radius-sm);
cursor: pointer;
transition: all 0.2s;
font-family: inherit;
box-shadow: 0 2px 8px rgba(74,108,247,0.20);
}
.btn-new-day:hover {
background: var(--primary-dark);
box-shadow: 0 4px 14px rgba(74,108,247,0.30);
}
/* ═══════════════════════════════════════════
Main Content
═══════════════════════════════════════════ */
.main-content {
flex: 1;
min-width: 0;
height: 100vh;
overflow-y: auto;
padding: 28px 40px 40px;
}
/* ── Panels ── */
.panel {
display: none;
}
.panel.active {
display: block;
}
.panel-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
}
.panel-header h2 {
font-size: 18px;
font-weight: 700;
color: var(--text);
letter-spacing: -0.3px;
}
.panel-header-right {
display: flex;
align-items: center;
gap: 6px;
}
.check-date-input {
padding: 8px 14px;
border: 1.5px solid var(--border);
border-radius: var(--radius-sm);
font-size: 13px;
font-family: inherit;
color: var(--text);
background: var(--card);
transition: border-color 0.2s;
}
.check-date-input:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(74,108,247,0.10);
}
/* ═══════════════════════════════════════════
Daily Grid — 三栏
═══════════════════════════════════════════ */
.daily-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
margin-bottom: 20px;
}
/* 立志 — 左上 */
.card-morning {
grid-column: 1;
grid-row: 1;
}
/* 改过 — 左下 */
.card-evening {
grid-column: 1;
grid-row: 2;
}
/* 勤学 — 右列跨2行 */
.card-study {
grid-column: 2;
grid-row: 1 / 3;
}
/* ── Cards ── */
.card {
background: var(--card);
border-radius: var(--radius);
padding: 18px 18px 14px;
box-shadow: var(--shadow);
border: 0.5px solid var(--border);
transition: box-shadow 0.2s;
display: flex;
flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-hover); }
.card-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 4px;
}
.card-head-left {
display: flex;
align-items: center;
gap: 8px;
}
.card-head h3 {
font-size: 14px;
font-weight: 600;
color: var(--text);
}
/* ── 编辑模式切换按钮 ── */
.btn-edit-toggle {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border: none;
background: transparent;
color: var(--text-muted);
border-radius: 6px;
cursor: pointer;
transition: all 0.2s;
flex-shrink: 0;
}
.btn-edit-toggle:hover {
background: var(--bg);
color: var(--primary);
}
.btn-edit-toggle.active {
background: var(--primary-light);
color: var(--primary);
}
/* 日历同步按钮 */
.btn-cal-sync {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 8px 14px;
border: 1.5px solid var(--border);
background: var(--card);
color: var(--text-dim);
border-radius: var(--radius-sm);
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
flex-shrink: 0;
font-family: inherit;
}
.btn-cal-sync:hover {
border-color: var(--primary);
color: var(--primary);
background: var(--primary-light);
}
/* 编辑模式下才显示的元素 */
.edit-only { display: none; }
.card.editing .edit-only { display: flex; }
.card.editing .btn-del { display: inline-flex; }
/* 默认隐藏删除按钮 */
.btn-del { display: none; }
.icon-h2 {
width: 16px;
height: 16px;
flex-shrink: 0;
color: var(--primary);
}
.card-desc {
font-size: 11px;
color: var(--text-muted);
margin-bottom: 12px;
}
/* ═══════════════════════════════════════════
Dynamic Items
═══════════════════════════════════════════ */
.item-row {
display: flex;
align-items: flex-start;
gap: 8px;
margin-bottom: 8px;
}
.item-row input[type="text"],
.item-row textarea {
flex: 1;
padding: 9px 12px;
border: 1.5px solid var(--border);
border-radius: var(--radius-sm);
font-size: 13px;
font-family: inherit;
color: var(--text);
background: var(--bg);
resize: vertical;
transition: border-color 0.2s, background 0.2s;
}
.item-row input[type="text"]:focus,
.item-row textarea:focus {
outline: none;
border-color: var(--primary);
background: var(--card);
box-shadow: 0 0 0 3px rgba(74,108,247,0.08);
}
.item-row textarea { min-height: 38px; }
.item-row .idx {
font-size: 12px;
color: var(--text-muted);
min-width: 20px;
padding-top: 10px;
font-weight: 600;
text-align: right;
}
.btn-del {
background: none;
border: none;
color: var(--danger);
cursor: pointer;
padding: 6px 2px;
line-height: 1;
border-radius: 6px;
transition: background 0.2s;
align-items: center;
}
.btn-del:hover { background: var(--danger-light); }
.btn-del .icon-sm { width: 16px; height: 16px; }
/* 责善改过 — 简洁分割线风格 */
.evening-row {
position: relative;
display: flex;
flex-direction: column;
gap: 8px;
padding: 0 0 12px;
margin-bottom: 12px;
border-bottom: 1px solid var(--border);
}
.evening-row:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
.evening-row .btn-del {
position: absolute;
top: 0;
right: 0;
z-index: 1;
}
.evening-row input[type="text"] {
width: 100%;
padding: 9px 12px;
border: 1.5px solid var(--border);
border-radius: var(--radius-sm);
font-size: 13px;
font-family: inherit;
color: var(--text);
background: var(--bg);
transition: border-color 0.2s, background 0.2s;
box-sizing: border-box;
}
.evening-row input[type="text"]:focus {
outline: none;
border-color: var(--primary);
background: var(--card);
box-shadow: 0 0 0 3px rgba(74,108,247,0.08);
}
/* 勤学预设项目 */
.preset-item {
padding: 6px 0;
}
.preset-check {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
user-select: none;
}
.preset-check input[type="checkbox"] {
width: 16px;
height: 16px;
accent-color: var(--primary);
flex-shrink: 0;
cursor: pointer;
}
.preset-name {
font-size: 13px;
color: var(--text-dim);
transition: color 0.2s;
line-height: 1.4;
}
.preset-check input:checked + .preset-name {
color: var(--text);
font-weight: 500;
text-decoration: line-through;
text-decoration-color: var(--primary);
text-decoration-thickness: 2px;
}
.preset-note {
display: none;
width: calc(100% - 24px);
margin-top: 6px;
margin-left: 24px;
padding: 6px 10px;
border: 1px solid var(--border);
border-radius: 6px;
font-size: 12px;
font-family: inherit;
color: var(--text);
background: var(--bg);
resize: none;
min-height: 28px;
transition: border-color 0.2s;
box-sizing: border-box;
}
.preset-note:focus {
outline: none;
border-color: var(--primary);
background: var(--card);
box-shadow: 0 0 0 2px rgba(74,108,247,0.06);
}
.preset-item.active .preset-note {
display: block;
}
/* Buttons */
.btn-add {
align-items: center;
justify-content: center;
gap: 5px;
width: 100%;
padding: 9px;
margin-top: auto;
border: 1.5px dashed var(--primary);
background: var(--primary-light);
color: var(--primary);
font-size: 12px;
font-weight: 500;
border-radius: var(--radius-sm);
cursor: pointer;
transition: all 0.2s;
font-family: inherit;
}
.btn-add:hover { background: #DDE3FD; border-color: var(--primary-dark); }
.btn-save {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
width: 100%;
padding: 14px;
border: none;
background: var(--primary);
color: #FFF;
font-size: 15px;
font-weight: 600;
border-radius: var(--radius);
cursor: pointer;
transition: all 0.2s;
font-family: inherit;
letter-spacing: 0.3px;
box-shadow: 0 2px 8px rgba(74,108,247,0.25);
}
.btn-save:hover {
background: var(--primary-dark);
transform: translateY(-1px);
box-shadow: 0 4px 16px rgba(74,108,247,0.35);
}
.btn-save:active { transform: translateY(0); }
/* ═══════════════════════════════════════════
Weekly Panel
═══════════════════════════════════════════ */
.week-nav {
display: flex;
align-items: center;
justify-content: center;
gap: 20px;
padding: 8px 0 20px;
}
.btn-nav {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 8px 16px;
border: 1.5px solid var(--border);
background: var(--card);
border-radius: var(--radius-sm);
font-size: 13px;
font-weight: 500;
cursor: pointer;
color: var(--text);
transition: all 0.2s;
font-family: inherit;
}
.btn-nav:hover {
border-color: var(--primary);
color: var(--primary);
background: var(--primary-light);
}
#week-label {
font-size: 14px;
font-weight: 600;
min-width: 200px;
text-align: center;
color: var(--text);
}
.weekly-overview {
display: flex;
align-items: center;
gap: 40px;
padding: 20px 0;
justify-content: center;
}
.score-circle {
position: relative;
width: 140px;
height: 140px;
flex-shrink: 0;
}
.score-svg {
width: 140px;
height: 140px;
}
.score-svg circle {
transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.score-inner {
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
display: flex;
align-items: baseline;
justify-content: center;
}
.score-num {
font-size: 40px;
font-weight: 800;
color: var(--primary);
line-height: 1;
}
.score-unit {
font-size: 15px;
color: var(--text-muted);
margin-left: 2px;
font-weight: 500;
}
.score-meta {
display: flex;
flex-direction: column;
gap: 8px;
}
.score-text {
font-size: 15px;
font-weight: 600;
color: var(--text);
}
.score-stats {
font-size: 13px;
color: var(--text-muted);
line-height: 1.6;
}
.week-days-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 8px;
margin-top: 24px;
}
.day-cell {
background: var(--card);
border-radius: var(--radius-sm);
padding: 12px 8px;
text-align: center;
box-shadow: var(--shadow);
transition: box-shadow 0.2s;
border-top: 3px solid transparent;
}
.day-cell:hover { box-shadow: var(--shadow-hover); }
.day-cell.pass { border-top-color: var(--success); }
.day-cell.fail { border-top-color: var(--warning); }
.day-cell.empty { border-top-color: var(--border); opacity: 0.5; }
.day-cell .day-label {
font-size: 11px;
color: var(--text-muted);
margin-bottom: 4px;
font-weight: 500;
}
.day-cell .day-date {
font-size: 12px;
font-weight: 600;
color: var(--text);
margin-bottom: 6px;
}
.day-cell .day-score {
font-size: 18px;
font-weight: 700;
}
.day-cell.pass .day-score { color: var(--success); }
.day-cell.fail .day-score { color: var(--warning); }
.day-cell.empty .day-score { color: var(--text-muted); }
.day-cell .day-badge {
display: inline-block;
padding: 2px 8px;
border-radius: 10px;
font-size: 10px;
font-weight: 600;
margin-top: 4px;
}
.day-cell.pass .day-badge { background: var(--success-light); color: var(--success); }
.day-cell.fail .day-badge { background: var(--warning-light); color: #D97706; }
.day-cell.empty .day-badge { background: var(--bg); color: var(--text-muted); }
/* ═══════════════════════════════════════════
History Panel
═══════════════════════════════════════════ */
.history-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
margin-top: 4px;
}
.history-card {
background: var(--card);
border-radius: var(--radius);
padding: 16px 18px;
box-shadow: var(--shadow);
transition: box-shadow 0.2s;
display: flex;
align-items: center;
justify-content: space-between;
border: 0.5px solid var(--border);
}
.history-card:hover { box-shadow: var(--shadow-hover); }
.history-card .info { flex: 1; min-width: 0; }
.history-card .info .date {
font-weight: 600;
font-size: 14px;
color: var(--primary);
}
.history-card .info .preview {
font-size: 12px;
color: var(--text-muted);
margin-top: 4px;
line-height: 1.4;
display: flex;
gap: 12px;
flex-wrap: wrap;
}
.history-card .info .preview span {
display: inline-flex;
align-items: center;
gap: 3px;
}
.history-card .btn-del-history {
display: inline-flex;
align-items: center;
gap: 4px;
background: var(--danger-light);
border: none;
color: var(--danger);
padding: 6px 12px;
border-radius: var(--radius-sm);
font-size: 12px;
cursor: pointer;
flex-shrink: 0;
margin-left: 14px;
transition: all 0.2s;
font-family: inherit;
}
.history-card .btn-del-history:hover { background: var(--danger); color: #FFF; }
/* Empty state */
.empty-state {
grid-column: 1 / -1;
text-align: center;
padding: 48px 20px;
color: var(--text-muted);
font-size: 14px;
}
.empty-state .empty-icon {
margin-bottom: 10px;
opacity: 0.4;
}
.empty-state .empty-icon svg {
width: 44px;
height: 44px;
}
/* ═══════════════════════════════════════════
Toast
═══════════════════════════════════════════ */
.toast {
position: fixed;
top: 20px;
left: 50%;
transform: translateX(-50%) translateY(-20px);
padding: 12px 28px;
border-radius: var(--radius);
font-size: 14px;
font-weight: 600;
z-index: 9999;
opacity: 0;
pointer-events: none;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
white-space: nowrap;
box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.toast.show {
opacity: 1;
transform: translateX(-50%) translateY(0);
pointer-events: auto;
}
.toast.success { background: var(--success); color: #FFF; }
.toast.error { background: var(--danger); color: #FFF; }
.toast.info { background: var(--primary); color: #FFF; }
/* ═══════════════════════════════════════════
Sync Modal
═══════════════════════════════════════════ */
.sync-modal-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.4);
display: flex;
align-items: center;
justify-content: center;
z-index: 9998;
backdrop-filter: blur(2px);
}
.sync-modal {
background: var(--card);
border-radius: var(--radius);
width: 90%;
max-width: 560px;
max-height: 80vh;
display: flex;
flex-direction: column;
box-shadow: 0 8px 40px rgba(0,0,0,0.15);
overflow: hidden;
}
.sync-modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 20px;
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.sync-modal-header h3 {
font-size: 16px;
font-weight: 700;
margin: 0;
}
.sync-modal-close {
background: none;
border: none;
font-size: 22px;
color: var(--text-muted);
cursor: pointer;
padding: 0 4px;
line-height: 1;
}
.sync-modal-loading {
padding: 40px 20px;
text-align: center;
color: var(--text-dim);
font-size: 14px;
}
.sync-spinner {
width: 36px;
height: 36px;
border: 3px solid var(--border);
border-top-color: var(--primary);
border-radius: 50%;
animation: spin 0.8s linear infinite;
margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.sync-modal-results {
padding: 16px 20px;
overflow-y: auto;
flex: 1;
}
.sync-summary {
font-size: 14px;
color: var(--text);
margin-bottom: 14px;
padding: 10px 14px;
background: var(--primary-light);
border-radius: var(--radius-sm);
}
.sync-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.sync-day {
border: 1px solid var(--border);
border-radius: var(--radius-sm);
overflow: hidden;
}
.sync-day-header {
background: var(--bg);
padding: 6px 12px;
font-size: 12px;
font-weight: 600;
color: var(--text-dim);
border-bottom: 1px solid var(--border);
}
.sync-event {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
font-size: 13px;
color: var(--text);
}
.sync-event + .sync-event { border-top: 1px solid var(--bg); }
.sync-event-icon { flex-shrink: 0; }
.sync-event-text { flex: 1; }
.sync-event-time { font-size: 11px; color: var(--text-muted); margin-left: 6px; }
.sync-modal-footer {
padding: 12px 20px;
border-top: 1px solid var(--border);
display: flex;
justify-content: flex-end;
flex-shrink: 0;
}
.sync-modal-footer .btn-wish-save {
width: auto;
padding: 8px 24px;
}
/* ═══════════════════════════════════════════
Wishes — 四象限
═══════════════════════════════════════════ */
#panel-wishes.editing .edit-only { display: inline-flex; }
#panel-wishes.editing .wish-del { display: inline-flex; }
.wish-form {
background: var(--bg);
border-radius: var(--radius-sm);
padding: 10px 12px;
margin-bottom: 12px;
max-width: 480px;
}
.wish-form input[type="text"],
.wish-form input[type="date"],
.wish-form select {
width: 100%;
padding: 8px 10px;
border: 1.5px solid var(--border);
border-radius: var(--radius-sm);
font-size: 13px;
font-family: inherit;
color: var(--text);
margin-bottom: 8px;
box-sizing: border-box;
background: var(--card);
}
.wish-form input:focus, .wish-form select:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(74,108,247,0.08);
}
.wish-form-row { display: flex; gap: 8px; }
.wish-form-row select, .wish-form-row input { flex: 1; }
.wish-form-actions { display: flex; gap: 8px; }
.btn-wish-save {
flex: 1; padding: 8px; border: none; background: var(--primary); color: #FFF;
border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
cursor: pointer; font-family: inherit;
}
.btn-wish-save:hover { background: var(--primary-dark); }
.btn-wish-cancel {
flex: 1; padding: 8px; border: 1.5px solid var(--border); background: var(--card);
color: var(--text-dim); border-radius: var(--radius-sm); font-size: 13px;
cursor: pointer; font-family: inherit;
}
/* 四象限网格 */
.quad-grid {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr;
gap: 12px;
min-height: 400px;
}
.quad-cell {
background: var(--card);
border: 1.5px solid var(--border);
border-radius: var(--radius);
padding: 12px 14px;
display: flex;
flex-direction: column;
min-height: 180px;
transition: border-color 0.2s, box-shadow 0.2s;
}
.quad-cell.drag-over {
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(74,108,247,0.10);
background: var(--primary-light);
}
.quad-title {
font-size: 13px;
font-weight: 600;
color: var(--text);
margin-bottom: 10px;
padding-bottom: 8px;
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.quad-list {
flex: 1;
display: flex;
flex-direction: column;
gap: 4px;
min-height: 40px;
}
.wish-item {
display: flex;
align-items: center;
gap: 8px;
padding: 7px 10px;
border-radius: var(--radius-sm);
background: var(--bg);
transition: opacity 0.15s, box-shadow 0.15s;
}
.wish-item:hover { box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.wish-item.dragging { opacity: 0.3; }
.wish-item.drag-over {
box-shadow: inset 0 0 0 2px var(--primary);
background: var(--card);
}
.wish-drag-handle {
color: var(--text-muted); cursor: grab; flex-shrink: 0;
display: flex; align-items: center;
}
.wish-drag-handle:active { cursor: grabbing; }
.wish-check {
width: 15px; height: 15px; accent-color: var(--success);
flex-shrink: 0; cursor: pointer;
}
.wish-name {
flex: 1; font-size: 13px; color: var(--text); min-width: 0;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wish-item.done .wish-name { text-decoration: line-through; color: var(--text-muted); }
.wish-deadline {
font-size: 11px; color: var(--text-dim); white-space: nowrap; flex-shrink: 0;
}
.wish-del { display: none; }
.wish-del .icon-xs { width: 13px; height: 13px; }
/* 内联编辑 */
.wish-item.editing {
background: var(--card);
padding: 8px 10px;
flex-wrap: wrap;
}
.wish-edit-form {
width: 100%;
display: flex;
flex-direction: column;
gap: 6px;
}
.wish-edit-form input[type="text"],
.wish-edit-form input[type="date"],
.wish-edit-form select {
width: 100%;
padding: 6px 8px;
border: 1.5px solid var(--border);
border-radius: var(--radius-sm);
font-size: 12px;
font-family: inherit;
color: var(--text);
background: var(--card);
box-sizing: border-box;
}
.wish-edit-form input:focus,
.wish-edit-form select:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 2px rgba(74,108,247,0.08);
}
.wish-edit-name { font-weight: 500; }
.wish-edit-row { display: flex; gap: 6px; }
.wish-edit-row select,
.wish-edit-row input { flex: 1; }
.wish-edit-actions { display: flex; gap: 6px; }
.wish-edit-actions .btn-wish-save,
.wish-edit-actions .btn-wish-cancel {
flex: 1; padding: 6px; font-size: 12px;
}
.wishes-empty {
font-size: 13px; color: var(--text-muted); text-align: center; padding: 32px 0;
}
@media (max-width: 900px) {
.quad-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
}
/* ═══════════════════════════════════════════
SVG icons helpers
═══════════════════════════════════════════ */
.icon-sm { width: 14px; height: 14px; vertical-align: middle; flex-shrink: 0; }
.icon-nav { width: 14px; height: 14px; vertical-align: middle; flex-shrink: 0; }
.icon-xs { width: 12px; height: 12px; vertical-align: middle; flex-shrink: 0; }
/* ═══════════════════════════════════════════
Responsive
═══════════════════════════════════════════ */
@media (max-width: 900px) {
.sidebar { width: 240px; min-width: 240px; }
:root { --sidebar-w: 240px; }
.main-content { padding: 20px 24px; }
.daily-grid { grid-template-columns: 1fr; }
.card-morning, .card-evening, .card-study { grid-column: 1; grid-row: auto; }
.weekly-overview { flex-direction: column; gap: 16px; text-align: center; }
.week-days-grid { grid-template-columns: repeat(4, 1fr); }
.history-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
.app-layout { flex-direction: column; }
.sidebar {
width: 100%;
min-width: 100%;
max-height: 50vh;
height: auto;
border-right: none;
border-bottom: 0.5px solid var(--border);
}
.main-content { height: auto; overflow: visible; padding: 16px; }
}
/* ═══════════════════════════════════════════
Blueprint Panel
═══════════════════════════════════════════ */
/* Tab 筛选 */
.bp-tabs {
display: flex;
gap: 4px;
margin-bottom: 20px;
border-bottom: 1.5px solid var(--border);
padding-bottom: 0;
}
.bp-tab {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 8px 16px;
border: none;
background: none;
font-size: 13px;
font-weight: 500;
color: var(--text-dim);
cursor: pointer;
border-bottom: 2px solid transparent;
margin-bottom: -1.5px;
transition: all 0.15s;
font-family: inherit;
}
.bp-tab .icon-sm { opacity: 0.6; }
.bp-tab:hover { color: var(--text); }
.bp-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.bp-tab.active .icon-sm { opacity: 1; }
/* 明细列表 */
.bp-list {
display: flex;
flex-direction: column;
gap: 1px;
}
.bp-list-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 14px;
background: var(--card);
border-bottom: 0.5px solid var(--border);
transition: background 0.15s;
}
.bp-list-item:hover { background: var(--bg); }
.bp-pillar-dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.bp-item-pillar {
font-size: 12px;
color: var(--text-dim);
white-space: nowrap;
}
.bp-item-type {
font-size: 11px;
font-weight: 600;
padding: 2px 8px;
border-radius: 8px;
white-space: nowrap;
}
.bp-item-type.morning { background: var(--warning-light); color: #D97706; }
.bp-item-type.evening { background: var(--danger-light); color: var(--danger); }
.bp-item-type.study { background: var(--success-light); color: var(--success); }
.bp-item-text {
font-size: 13px;
color: var(--text);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.bp-item-note {
font-size: 11px;
color: var(--text-muted);
margin-left: 4px;
white-space: nowrap;
}
.bp-item-note.evening { color: var(--danger); }
.bp-list-empty {
font-size: 13px;
color: var(--text-muted);
text-align: center;
padding: 32px 0;
}
@media (max-width: 900px) {
.quad-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
}