:root {
  color-scheme: light;
  --paper: #eaf3ff;
  --card: #fff;
  --ink: #19304b;
  --muted: #526a84;
  --line: #d7e6f5;
  --blue: #2478d4;
  --deep: #1756a3;
  --wash: #f0f6fd;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 17px; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(30px, 2.6vw, 40px); line-height: 1.3; letter-spacing: -.035em; }
h2 { font-size: 21px; line-height: 1.45; }
h3 { font-size: 19px; line-height: 1.5; }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--deep); text-underline-offset: 4px; }
button { transition: background .15s, box-shadow .15s; }
:focus-visible { outline: 3px solid #3983d6; outline-offset: 3px; }
main:focus { outline: none; }
svg { width: 21px; height: 21px; flex: none; vertical-align: middle; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 30; padding: 10px; background: white; }
.skip:focus { top: 12px; }
#rail { position: fixed; inset: 0 auto 0 0; z-index: 5; width: 218px; display: flex; flex-direction: column; padding: 29px 16px 20px; background: linear-gradient(165deg, #368de1, #2168bd 80%); color: white; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 7px; }
.brand-icon { display: grid; place-items: center; width: 42px; height: 46px; border: 1px solid #ffffff4d; border-radius: 13px; background: #ffffff1c; color: white; }
.brand-icon svg { width: 26px; height: 26px; }
.brand strong { display: block; font-size: 23px; line-height: 1.35; letter-spacing: .02em; }
.brand span { display: block; color: #e1efff; font-size: 14px; }
.nav-label { padding: 33px 14px 12px; font-size: 14px; color: #e1eeff; }
#rail nav { display: grid; gap: 7px; }
#rail nav button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 51px; border: 0; border-radius: 10px; background: transparent; padding: 11px 14px; text-align: left; color: #f5faff; font-size: 18px; }
#rail nav button:hover { background: #ffffff1a; }
#rail nav button[aria-current="page"] { background: #f1f8ff; color: #1d568e; box-shadow: 0 4px 10px #1258a32b; font-weight: 700; }
.rail-foot { margin-top: auto; display: flex; gap: 9px; padding: 17px 7px 0; border-top: 1px solid #ffffff36; font-size: 15px; }
.rail-foot span { display: block; color: #dfedff; font-size: 13px; }
.rail-foot i, .space-label i { display: inline-block; width: 7px; height: 7px; margin-top: 10px; flex: none; border-radius: 50%; background: #b9e1ff; }
.shell { margin-left: 218px; min-height: 100vh; }
#topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; padding: 12px 28px; border-bottom: 1px solid #d8e6f7; background: #ffffffd9; }
.crumb { color: var(--muted); font-size: 15px; }
.crumb span { margin: 0 10px; color: #8ca0b9; }
.crumb strong { color: var(--ink); }
.top-actions, .button-group, .space-label { display: flex; align-items: center; gap: 10px; }
.button-group { flex-wrap: wrap; }
.space-label { font-size: 15px; white-space: nowrap; }
.space-label i { margin: 0; background: #267bce; }
main { max-width: 1720px; margin: auto; padding: 28px; }
.workspace-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 22px; align-items: start; }
.workspace-content { min-width: 0; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.eyebrow { display: block; color: #527492; font-size: 14px; font-weight: 600; letter-spacing: .035em; }
.page-heading .eyebrow { color: #3578b8; }
.page-heading h1 { margin-top: 3px; }
.page-heading p { margin-top: 7px; color: var(--muted); font-size: 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 43px; padding: 8px 14px; border: 1px solid transparent; border-radius: 9px; background: transparent; text-decoration: none; font-size: 16px; font-weight: 650; }
.button svg { width: 18px; height: 18px; }
.button.primary { background: var(--blue); color: white; box-shadow: 0 3px 7px #2678ce17; }
.button.primary:hover { background: #1c66ba; }
.button.outline { color: #1e64a9; border-color: #bdd6ef; background: white; }
.button.outline:hover, .button.ghost:hover { background: #eaf3ff; }
.button.ghost { color: #2b6ea9; padding-inline: 6px; }
.button.small-button { min-height: 32px; font-size: 14px; padding: 3px 6px; }
.button.full-button { width: 100%; margin-top: 12px; }
.panel { min-width: 0; padding: 21px; border: 1px solid #d6e6f7; border-radius: 15px; background: white; box-shadow: 0 3px 15px #3b6b9910; }
.section-head, .subhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.section-head h2 { display: flex; align-items: center; gap: 8px; }
.section-head h2 > svg { color: #367ec0; }
.counter, .tag { flex: none; display: inline-block; border-radius: 6px; background: #edf5ff; color: #2b679e; padding: 3px 8px; font-size: 14px; }
.welcome { background: linear-gradient(115deg, #fff 30%, #e5f2ff); border-color: #c4ddf5; margin-bottom: 18px; padding: 24px; }
.welcome-top { display: flex; align-items: center; justify-content: space-between; }
.welcome-sun { color: #e2a544; border-radius: 50%; background: #fff7e8; display: grid; place-items: center; width: 42px; height: 42px; }
.welcome-sun svg { width: 26px; height: 26px; }
.welcome h2 { font-size: clamp(23px, 2.2vw, 31px); margin-top: 14px; }
.welcome p { margin-top: 7px; max-width: 580px; color: #466486; }
.welcome-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; }
.welcome-bottom > span { font-size: 15px; color: var(--muted); }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.quick-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 12px; text-align: left; padding: 16px; min-height: 104px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.quick-card:hover { background: #f8fbff; box-shadow: 0 3px 12px #286ca21a; }
.quick-card strong { align-self: end; font-size: 18px; }
.quick-card > span:last-child { grid-column: 2; font-size: 14px; color: var(--muted); }
.quick-icon { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 12px; grid-row: span 2; align-self: center; }
.violet { background: #edeaff; color: #705bbb; }
.blue { background: #e4f1ff; color: #2c7dd2; }
.amber { background: #fff2da; color: #aa792a; }
.teal { background: #def5f5; color: #2e7b88; }
.goal-success { margin-top: 6px; }
.progress-text, .goal-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--muted); }
.progress-text { margin-top: 19px; }
.goal-bottom { margin-top: 10px; }
progress { display: block; width: 100%; height: 8px; margin: 8px 0; border: 0; border-radius: 9px; appearance: none; background: #e7f0fa; }
progress::-webkit-progress-bar { border-radius: 9px; background: #e7f0fa; }
progress::-webkit-progress-value { border-radius: 9px; background: #4c96db; }
progress::-moz-progress-bar { border-radius: 9px; background: #4c96db; }
.subtle, small { color: var(--muted); font-size: 15px; }
.home-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 18px; }
.home-lower h2 { font-size: 19px; }
.stats { display: flex; gap: 22px; margin: 9px 0 12px; }
.stats > div { flex: 1; }
.stats strong { display: block; font-size: 31px; color: #215c98; }
.stats small { font-size: 16px; font-weight: 400; }
.stats span { display: block; font-size: 14px; color: var(--muted); }
.empty { padding: 12px 0 4px; }
.empty p { margin: 5px 0 10px; color: var(--muted); font-size: 16px; }
.empty strong { font-size: 18px; }
.note-preview { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 7px 0; background: transparent; text-align: left; }
.note-preview strong, .note-preview span { display: block; overflow-wrap: anywhere; }
.note-preview span { color: var(--muted); font-size: 14px; }
.plan-rail { position: sticky; top: 22px; padding: 20px; }
.plan-rail > .section-head { margin-bottom: 8px; }
.plan-rail h2 { font-size: 23px; }
.plan-rail .button.primary { min-height: 40px; padding: 6px 11px; }
.plan-goal { margin-bottom: 15px; font-size: 15px; color: var(--muted); }
.goal-picker { display: block; color: var(--muted); font-size: 15px; margin-bottom: 13px; }
.goal-picker select { display: block; margin-top: 5px; }
.week-controls { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.week-controls strong { font-size: 15px; }
.week-controls .button { font-size: 14px; padding: 5px 4px; }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin: 9px 0 15px; }
.week-strip button { display: grid; justify-items: center; padding: 6px 0; gap: 2px; border: 0; border-radius: 9px; background: var(--wash); }
.week-strip small { font-size: 13px; }
.week-strip strong { font-size: 17px; }
.week-strip i { width: 4px; height: 4px; border-radius: 50%; }
.week-strip i.has-plan { background: #3489dc; }
.week-strip button[aria-pressed="true"] { background: var(--blue); color: white; }
.week-strip button[aria-pressed="true"] small { color: #eff8ff; }
.week-strip button[aria-pressed="true"] i.has-plan { background: white; }
.date-controls { display: flex; align-items: end; gap: 9px; margin-bottom: 17px; }
.date-controls label { flex: 1; min-width: 0; color: var(--muted); font-size: 14px; }
.date-controls input { width: 100%; margin-top: 3px; font-size: 15px; padding: 6px; min-height: 39px; }
.date-controls .button { min-height: 39px; }
.plan-summary, .time-budget { display: flex; justify-content: space-between; gap: 5px; }
.plan-summary { font-size: 16px; }
.plan-summary > span, .time-budget { font-size: 13px; color: var(--muted); }
.time-budget { margin-top: 4px; }
.plan-item { margin-top: 12px; background: #f4f8fe; border: 1px solid #e0ecf9; border-radius: 11px; padding: 13px; }
.plan-item-top { display: flex; align-items: baseline; gap: 8px; }
.plan-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #6f9ac4; flex: none; }
.plan-dot.done { background: #368a7a; border-color: #368a7a; }
.plan-dot.active { background: #2d85d8; border-color: #2d85d8; }
.plan-dot.blocked { background: #d79a4a; border-color: #d79a4a; }
.plan-title { flex: 1; min-width: 0; text-align: left; padding: 0; background: transparent; border: 0; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.plan-title:hover { color: var(--blue); }
.plan-item p { font-size: 14px; color: var(--muted); margin: 6px 0 4px 17px; }
.plan-item-meta { display: flex; align-items: center; justify-content: space-between; gap: 5px; font-size: 13px; color: #45678a; }
.plan-item.is-done .plan-title { color: #617a8e; text-decoration: line-through; }
.plan-start { width: 100%; margin-top: 7px; min-height: 36px; font-size: 15px; background: white; }
.plan-footer { border-top: 1px solid var(--line); margin-top: 17px; padding-top: 8px; text-align: center; }
.overdue { margin-top: 15px; color: #926b32; font-size: 15px; }
.overdue summary { cursor: pointer; }
.overdue > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 7px; }
.overdue > div span { min-width: 0; overflow-wrap: anywhere; }
.banner { margin-bottom: 17px; border: 1px solid #b7d5f4; border-radius: 9px; background: #f7fbff; color: #3f6487; padding: 9px 13px; font-size: 15px; }
.goal-card { margin-bottom: 22px; }
.goal-facts { display: grid; gap: 12px; }
.goal-facts > div, .aside-note, .detail-note { padding: 13px; border-radius: 9px; background: var(--wash); }
.goal-facts small { display: block; margin-bottom: 3px; }
.subhead { margin-top: 22px; flex-wrap: wrap; }
.phase { margin-bottom: 14px; }
.route-row { display: flex; align-items: center; gap: 10px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; padding: 13px 0; width: 100%; }
.route-row > span:first-child { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.route-row small { display: block; margin-top: 3px; }
.route-meta { text-align: right; color: var(--muted); font-size: 14px; }
.route-row > svg { width: 17px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr; gap: 17px; }
.mini-row { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 9px 0; }
.mini-row small { flex: none; }
.aside-note { margin-top: 16px; }
.aside-note p { margin-block: 5px 9px; }
.archive-row { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); }
.archive-row time { color: var(--muted); font-size: 14px; }
.archive-row h3 { margin-block: 5px; }
.archive-row p, .detail-note p { white-space: pre-wrap; }
.weekly-list { display: grid; gap: 12px; margin-bottom: 20px; }
.week-day .section-head { margin-bottom: 5px; }
.week-task, .backlog-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border: 0; border-top: 1px solid var(--line); width: 100%; background: transparent; text-align: left; }
.week-task > span, .backlog-row > span { min-width: 0; overflow-wrap: anywhere; }
.week-task small { flex: none; }
.backlog-row { align-items: center; }
.backlog-row small { display: block; }
.notes-grid { display: grid; gap: 16px; }
.note-card h2 { margin-block: 5px 10px; }
.note-card p { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 15px; }
dialog { width: min(700px, calc(100% - 26px)); max-height: 88dvh; padding: 25px; border: 1px solid #c5dcf1; border-radius: 17px; background: #fbfdff; color: var(--ink); box-shadow: 0 22px 80px #183a6640; overflow: auto; }
dialog::backdrop { background: #102a4870; backdrop-filter: blur(3px); }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 15px; }
.dialog-head h2 { margin-top: 4px; font-size: 27px; }
.close { flex: none; display: grid; place-items: center; width: 39px; height: 39px; border-radius: 9px; border: 0; background: #e9f2fc; }
.intro { color: var(--muted); margin-bottom: 14px; }
.dialog-status { background: #e4f1ff; border-radius: 8px; padding: 9px 13px; margin-bottom: 12px; }
.dialog-actions, .form-actions { margin-top: 17px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-subhead { margin: 15px 0 9px; }
.field { display: grid; gap: 5px; margin-bottom: 13px; min-width: 0; }
.field > span { font-size: 16px; font-weight: 650; }
.field small { font-weight: 400; margin-left: 5px; }
input, textarea, select { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #bfd5eb; border-radius: 8px; background: white; color: var(--ink); }
input, select { min-height: 44px; }
textarea { resize: vertical; }
.form-error { color: #ad392e; margin-top: 8px; }
.form-error:empty { display: none; }
.detail-note { margin-block: 12px; }
.detail-note p { margin-top: 5px; }
.timer { font: 700 51px/1.2 Consolas, monospace; margin: 15px 0 7px; color: #205c9a; }
.ai-prompt { padding: 14px; border: 1px solid var(--line); background: var(--wash); border-radius: 10px; margin-bottom: 14px; }
.ai-prompt a { margin-left: 7px; }
.preview-phase { min-width: 0; padding: 13px; margin: 13px 0; border: 1px solid var(--line); border-radius: 9px; }
.preview-phase legend { font-weight: 700; }
.preview-task { border-top: 1px solid var(--line); padding-top: 11px; }
.suggestions { padding-left: 23px; }
.adjust-row { padding: 13px 0; border-top: 1px solid var(--line); }
.adjust-row p { margin-block: 5px 10px; color: var(--muted); }
#notice { position: fixed; right: 20px; bottom: 20px; z-index: 20; opacity: 0; pointer-events: none; max-width: min(500px, calc(100% - 40px)); padding: 13px 17px; border-radius: 11px; background: #205d9e; color: white; box-shadow: 0 5px 20px #18395830; }
#notice.visible { opacity: 1; }
@media (min-width: 1550px) { .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .quick-card { display: flex; flex-direction: column; gap: 6px; } .quick-card strong, .quick-icon { align-self: start; } }
@media (max-width: 1250px) { #rail { width: 190px; padding-inline: 12px; } .shell { margin-left: 190px; } .brand strong { font-size: 21px; } main { padding: 22px; } .workspace-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; } .plan-rail { padding: 16px; } .home-lower { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { #rail { width: 175px; padding-inline: 10px; } .shell { margin-left: 175px; } #rail nav button { padding-inline: 10px; gap: 8px; font-size: 17px; } .brand { gap: 6px; padding-inline: 2px; } .brand strong { font-size: 20px; } .brand-icon { width: 34px; } main { padding: 17px; } .workspace-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 14px; } .panel { padding: 17px; } .plan-rail { padding: 14px; } .quick-grid { grid-template-columns: 1fr; } .page-heading { align-items: start; flex-direction: column; } .plan-rail h2 { font-size: 21px; } }
@media (max-width: 800px) { #rail { position: sticky; top: 0; width: 100%; padding: 10px 13px; gap: 9px; } .brand-icon { width: 31px; height: 31px; border-radius: 8px; } .brand strong { font-size: 21px; } .brand span { display: none; } .nav-label, .rail-foot { display: none; } #rail nav { display: flex; overflow-x: auto; gap: 4px; } #rail nav button { flex: none; width: auto; min-height: 41px; font-size: 16px; padding: 7px 10px; gap: 5px; } #rail nav button svg { width: 17px; height: 17px; } .shell { margin-left: 0; } #topbar { padding: 10px 16px; min-height: 59px; } .workspace-layout { grid-template-columns: minmax(0, 1fr); } .plan-rail { position: static; order: -1; } .quick-grid { grid-template-columns: 1fr 1fr; } .home-lower { grid-template-columns: 1fr 1fr; } .workspace-content { margin-top: 6px; } main { padding: 15px; } .plan-rail .week-controls { max-width: 370px; margin-inline: auto; } .week-strip { max-width: 420px; margin-inline: auto; } }
@media (max-width: 500px) { body { font-size: 17px; } .crumb { display: none; } .top-actions { width: 100%; justify-content: space-between; } .home-lower, .quick-grid, .form-grid { grid-template-columns: 1fr; } .welcome { padding: 18px; } .welcome-bottom { align-items: start; } .archive-row { grid-template-columns: 1fr; gap: 3px; } .route-row { flex-wrap: wrap; } .route-row > span:first-child { flex-basis: 100%; } .route-meta { text-align: left; } .week-task { flex-direction: column; gap: 1px; } dialog { padding: 18px; } .plan-rail { padding: 17px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
