:root{
  --bg:#f5f6f8;--paper:#fff;--ink:#252a32;--muted:#697382;
  --red:#bd2428;--red-dark:#a41c21;--pale:#fff3f3;--line:#e4e7ec;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  color:var(--ink);background:var(--bg);font-synthesis:none;
}
*{box-sizing:border-box}
body{margin:0;font-size:14px;line-height:1.65;background:var(--bg)}
button,input{font:inherit;touch-action:manipulation}
button{border:0;cursor:pointer}
button:disabled{cursor:default;opacity:.35}
button:focus-visible,input:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #cb686b;outline-offset:3px}
[hidden]{display:none!important}
.topline{height:3px;background:var(--red)}
.page-header,main{max-width:1360px;margin:auto;padding:0 40px}
.page-header{height:62px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:650;white-space:nowrap}
.brand-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:6px;color:#fff;background:var(--red);font-size:17px}
.brand-divider{margin:0 7px;color:#c0c5ce;font-weight:400}
.header-actions{display:flex;align-items:center;gap:20px}
.save-wrap{display:flex;gap:7px;align-items:center;font-size:11px;color:var(--muted)}
.save-dot{width:5px;height:5px;border-radius:50%;background:#9097a2}
.save-wrap.error{color:var(--red)}
.save-wrap.error .save-dot{background:var(--red)}
.header-actions>button{background:none;color:var(--muted);padding:7px 0;font-size:11px;white-space:nowrap}
.header-actions>button:hover{color:var(--red)}
.page-loading{text-align:center;padding:90px 24px;color:var(--muted)}
.page-loading button{background:var(--red);color:white;border-radius:5px;padding:10px 20px}
h1,h2,p{margin-top:0}
h1,h2{color:var(--ink)}
.compact-masthead{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:18px 0 16px;min-height:76px;padding:0 0 0 2px}
.masthead-copy h1{font-size:25px;line-height:1.4;font-weight:700;margin:0 0 5px;letter-spacing:.015em}
.masthead-copy p{font-size:12px;color:var(--muted);margin:0}
.plan-period{margin-left:18px;font-size:11px;color:#697382}
.masthead-flag{display:block;width:112px;height:72px;object-fit:cover;object-position:45% 36%;border-radius:5px}
.today-panel{scroll-margin-top:16px;background:var(--paper);border:1px solid var(--line);border-top:3px solid var(--red);border-radius:7px;padding:18px 22px 0;margin-bottom:14px}
.today-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.section-kicker{font-size:11px;color:var(--muted);margin:0 0 4px;letter-spacing:.03em}
.today-heading h2{font-size:22px;font-weight:700;margin:0;line-height:1.4}
.today-result{text-align:right;white-space:nowrap}
.today-result strong{display:block;font-size:24px;color:var(--red);line-height:1.2;font-weight:650;font-variant-numeric:tabular-nums}
.today-result>span{font-size:10px;color:var(--muted);display:block;margin-top:4px}
.today-tasks{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.today-slot{padding:13px 15px;background:#f8f9fb;border:1px solid #e9ecf0;border-radius:5px}
.today-slot-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.today-slot-heading>span:first-child{font-size:12px;font-weight:650;color:#424a56}
.today-slot-heading>span:last-child{font-size:10px;color:#697382;white-space:nowrap}
.today-slot.slot-done{background:var(--pale);border-color:#efd4d5}
.today-slot.slot-done .today-slot-heading>span:first-child{color:var(--red)}
.today-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 0;margin-top:2px}
.today-bottom p{font-size:11px;color:var(--muted);margin:0}
.text-button{background:none;color:var(--red);font-size:11px;font-weight:500;white-space:nowrap;padding:5px 0}
.progress-overview{display:grid;grid-template-columns:1.3fr 1fr 1fr;background:var(--paper);border:1px solid var(--line);border-radius:6px;margin-bottom:18px;padding:13px 0}
.progress-overview>div{padding:0 22px;min-width:0}
.progress-overview>div+div{border-left:1px solid var(--line)}
.overall-label{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted)}
.overall-label strong{font-size:23px;line-height:1.25;font-weight:650;color:var(--red);font-variant-numeric:tabular-nums}
.overall-label strong span{font-size:12px;margin-left:2px}
.progress-track{height:4px;background:#edf0f4;border-radius:4px;overflow:hidden;margin:7px 0 0}
.progress-track>div{height:100%;width:0;background:var(--red)}
#overall-detail{display:none}
.achievement{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.achievement-label{font-size:11px;color:var(--muted)}
.achievement>div{display:flex;gap:7px;align-items:baseline}
.achievement strong{font-size:23px;line-height:1.3;color:#333b47;font-weight:650;font-variant-numeric:tabular-nums}
.achievement>div>span{font-size:10px;color:#697382}
#plan-day{font-size:10px;color:#697382;margin:0;width:100%;line-height:1.4}
.schedule{background:var(--paper);border:1px solid var(--line);border-radius:7px;overflow:clip}
.week-nav-shell{display:flex;padding:9px 18px;border-bottom:1px solid var(--line);gap:12px;position:sticky;top:0;background:var(--paper);z-index:5}
#week-nav{display:flex;flex:1;min-width:0;overflow-x:auto;scrollbar-width:thin;gap:7px}
.week-tab{padding:8px 11px;white-space:nowrap;background:none;color:#697382;font-size:11px;border-radius:4px}
.week-tab:hover{background:#f5f6f8}
.week-tab.active{color:#fff;background:var(--red);font-weight:600}
.all-weeks{background:var(--paper);font-size:11px;color:var(--muted);white-space:nowrap;padding:0 0 0 13px}
.all-weeks.active{color:var(--red);font-weight:600}
.schedule-heading{display:flex;align-items:center;justify-content:space-between;padding:22px 24px 19px;gap:20px}
h2{font-size:22px;line-height:1.4;margin:0;font-weight:650}
#week-goal{font-size:12px;color:var(--muted);margin:6px 0 0}
.week-summary{text-align:right;white-space:nowrap}
.week-summary strong{display:block;font-size:24px;color:var(--red);font-weight:600;line-height:1.3;font-variant-numeric:tabular-nums}
.week-summary span{font-size:10px;color:#8c939e}
.table-toolbar{display:flex;align-items:center;justify-content:space-between;padding:10px 24px;background:#fafbfc;border-top:1px solid var(--line);gap:14px}
.table-toolbar p{margin:0;font-size:10px;color:#697382;display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.legend-dot{width:4px;height:4px;border-radius:50%;display:inline-block;flex-shrink:0;background:#9da4af}
.weekend-dot{background:var(--red)}
.weekend-legend{display:inline-flex;gap:7px;align-items:center;margin-left:12px}
.filter-label{display:flex;gap:6px;align-items:center;white-space:nowrap;font-size:10px;color:#747d89;cursor:pointer}
.filter-label input{accent-color:var(--red);width:14px;height:14px;margin:0}
.plan-table{border-collapse:collapse;width:100%;table-layout:fixed}
.plan-table th{background:#f0f2f5;padding:13px 14px;color:#505966;text-align:left;font-weight:600;font-size:12px;vertical-align:top;border-bottom:1px solid var(--line)}
.plan-table th:first-child{width:10%;padding-left:24px}
.plan-table th:nth-child(2){width:18%}
.plan-table th:nth-child(3){width:16%}
.plan-table th:nth-child(4){width:24%}
.plan-table th:nth-child(5){width:32%}
.plan-table th span{display:block;font-size:10px;font-weight:400;color:#697382;margin-top:2px}
.plan-table td{padding:18px 14px;border-bottom:1px solid #e9ecf1;vertical-align:top;overflow-wrap:anywhere}
.plan-table td:first-child{padding-left:24px}
.plan-table tr:last-child td{border-bottom:0}
.date-number{font-size:22px;font-weight:600;line-height:1.3;color:#46505e;font-variant-numeric:tabular-nums;white-space:nowrap}
.date-weekday{font-size:10px;color:#697382;margin-top:5px}
.day-count{font-size:10px;color:#697382;margin-top:11px;font-variant-numeric:tabular-nums}
.day-count.done{color:var(--red)}
.today-badge{display:inline-block;border-radius:3px;background:var(--red);color:#fff;font-size:10px;padding:1px 6px;margin-top:6px}
.weekend td{background:#fbfcfd}
.is-today td{background:#fff5f5}
.is-today td:first-child{box-shadow:inset 3px 0 var(--red)}
.is-today .date-number{color:var(--red)}
.slot-time{font-size:10px;color:#697382;margin:0 0 8px;font-weight:500}
.task-list{display:flex;flex-direction:column;gap:7px}
.task{display:flex;align-items:flex-start;gap:9px;cursor:pointer;line-height:1.65;font-size:13px;padding:4px 2px;min-height:30px;color:#3d4653;border-radius:4px}
.task:hover{background:#edf0f460}
.task input{appearance:none;-webkit-appearance:none;flex:none;width:18px;height:18px;border:1.4px solid #c7cdd6;border-radius:4px;background:white;margin:2px 0 0;cursor:pointer;display:grid;place-items:center}
.task input:checked{background:var(--red);border-color:var(--red)}
.task input:checked:after{content:"";width:7px;height:4px;border-left:1.7px solid white;border-bottom:1.7px solid white;transform:translateY(-1px) rotate(-45deg)}
.task:hover input{border-color:var(--red)}
.task.completed .task-text{color:#697382;text-decoration:line-through;text-decoration-color:#b8bec8}
.today-slot .task{font-size:14px;font-weight:500;min-height:31px}
.today-slot .task input{width:20px;height:20px}
.slot-main .task:first-child .task-text{font-weight:500}
.empty-slot{color:#b7bec8;font-size:13px}
.rest-slot{color:#697382;font-size:12px;display:block;padding-top:2px}
.table-week-title{background:#f0f2f5;padding:14px 24px;font-weight:600;font-size:14px;border-block:1px solid var(--line)}
.table-week-title span{color:var(--muted);font-size:12px;font-weight:400;margin-left:12px}
.empty-state{text-align:center;padding:50px 24px;color:var(--muted)}
.empty-state strong{display:block;color:var(--red);font-size:20px;margin-bottom:8px;font-weight:500}
.schedule-bottom{display:flex;justify-content:space-between;align-items:center;padding:13px 24px;border-top:1px solid var(--line);gap:12px;font-size:10px;color:#697382;background:#fcfcfd}
.week-controls{display:flex;gap:10px}
.week-controls button{border:1px solid #dfe3e9;border-radius:4px;background:#fff;padding:5px 10px;color:#626d7b;font-size:11px}
.week-controls button:hover{border-color:var(--red);color:var(--red)}
.study-notes{margin-top:19px;border-bottom:1px solid var(--line)}
.study-notes>summary{cursor:pointer;padding:9px 0 15px;font-size:12px;color:#737d8b;font-weight:500;list-style-position:inside}
.study-notes>summary:hover{color:var(--red)}
.notes-area{display:grid;grid-template-columns:1fr 1.15fr 1.2fr;gap:32px;padding:8px 0 25px}
.small-label{display:inline-block;color:#515d6c;font-size:11px;font-weight:600;margin-bottom:6px}
.notes-area p{font-size:12px;color:var(--muted);margin:0;line-height:1.9}
footer{display:flex;justify-content:space-between;align-items:center;padding:20px 0 28px;gap:20px}
footer p{font-size:10px;margin:0;color:#697382}
.footer-motto{font-size:11px;color:#697583}
#storage-note{text-align:right}
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:20;padding:12px 20px;border-radius:6px;background:var(--red);color:white;font-size:13px;box-shadow:0 4px 18px #1b24301a;max-width:90vw}
.noscript{text-align:center;padding:30px}
/* 登录页保留照片与布局，统一为中性背景和红色主色。 */
.login-page{min-height:100svh;display:grid;place-items:center;padding:36px 24px;background:var(--bg)}
.login-shell{width:min(100%,1000px);padding:0;display:grid;grid-template-columns:1.05fr 1fr;min-height:610px;background:white;border-radius:14px;overflow:hidden;box-shadow:0 16px 60px #1521320a;border:1px solid var(--line)}
.login-visual{position:relative;isolation:isolate;overflow:hidden;background:#b62015;display:flex;align-items:flex-end;min-height:610px}
.login-visual>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:48% 30%;z-index:-2}
.login-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#74120a05 20%,#730c0be8 100%);z-index:-1}
.login-visual-copy{padding:42px;color:white}
.login-visual-copy>p{color:#fff1e8;letter-spacing:.16em;font-size:13px;margin:0 0 18px}
.login-visual-copy h1{font-size:34px;line-height:1.5;font-weight:650;letter-spacing:0;color:#fff;margin:0}
.login-visual-copy>span{display:block;color:#ffe9e5;margin-top:16px;font-size:13px}
.login-card{padding:48px 44px;align-self:center}
.login-brand{color:var(--red);font-size:13px;font-weight:600;text-decoration:none}
.login-card h2{font-size:28px;margin-top:27px}
.login-card>p{font-size:13px;color:var(--muted);margin:8px 0 22px}
.login-card form>label:not(.remember-label),.login-card #confirm-password-wrap>label{display:block;font-size:12px;margin:18px 0 7px}
#login-username,#login-password,#confirm-password{display:block;width:100%;padding:12px;border:1px solid #dce1e8;border-radius:5px;font-size:16px;background:#fafbfc;outline-offset:2px}
.login-card input:not([type=checkbox]):focus{border-color:var(--red)}
.remember-label{display:flex;align-items:center;gap:8px;cursor:pointer}
.remember-label input{width:17px;height:17px;margin:0;accent-color:var(--red)}
.login-card .remember-label{font-size:12px;margin:19px 0 12px}
#login-error{color:var(--red);min-height:20px;font-size:12px;line-height:1.6;margin:8px 0}
#submit-login{width:100%;padding:13px;border-radius:5px;background:var(--red);color:white;margin-top:5px}
#submit-login:hover{background:var(--red-dark)}
.login-card .login-footnote{font-size:11px;margin-top:22px;line-height:1.8}
@media(min-width:1100px){.today-slot:only-child{display:grid;grid-template-columns:180px 1fr;align-items:center;gap:22px}.today-slot:only-child .today-slot-heading{margin:0}.today-slot:only-child .task-list{flex-direction:row;flex-wrap:wrap;gap:10px 24px}}
@media(max-width:1100px) and (min-width:761px){.page-header,main{padding-inline:24px}.plan-table th,.plan-table td{padding-inline:11px}.plan-table th:first-child,.plan-table td:first-child{padding-left:18px}.task{font-size:12px;gap:7px}.date-number{font-size:20px}.progress-overview>div{padding-inline:18px}.achievement{gap:6px}}
@media(max-width:760px){
  .page-header,main{padding-inline:16px}.page-header{height:54px;gap:10px}.brand{font-size:11px;gap:7px}.brand-icon{width:25px;height:25px;font-size:15px}.brand-divider{margin:0 4px}.header-actions{gap:11px}.header-actions>button{font-size:10px}.save-wrap{font-size:9px;gap:5px}.save-dot{width:4px;height:4px}
  .compact-masthead{margin:12px 0;min-height:63px;gap:14px;padding:0}.masthead-copy h1{font-size:20px;margin-bottom:3px;letter-spacing:0}.masthead-copy p{font-size:10px}.plan-period{display:none}.masthead-flag{width:76px;height:54px;border-radius:4px}
  .today-panel{padding:15px 14px 0;border-radius:6px;margin-bottom:12px}.today-heading{margin-bottom:12px;gap:14px}.section-kicker{font-size:10px;margin-bottom:3px}.today-heading h2{font-size:20px}.today-result strong{font-size:22px}.today-result>span{font-size:9px;margin-top:3px}.today-tasks{grid-template-columns:1fr;gap:9px}.today-slot{padding:11px 12px}.today-slot-heading{margin-bottom:6px}.today-slot-heading>span:first-child{font-size:11px}.today-slot-heading>span:last-child{font-size:9px}.today-slot .task{font-size:13px;min-height:32px;line-height:1.7}.today-slot .task input{width:20px;height:20px;margin-top:1px}.today-bottom{gap:12px;align-items:flex-start;padding:11px 0}.today-bottom>p{font-size:10px;line-height:1.8}.today-bottom .text-button{font-size:10px;padding-top:2px}
  .progress-overview{grid-template-columns:1.1fr 1fr 1fr;padding:12px 0;margin-bottom:16px;border-radius:5px}.progress-overview>div{padding:0 11px}.overall-label{display:block;font-size:9px}.overall-label strong{display:block;font-size:22px;margin-top:4px}.overall-label strong span{font-size:11px}.progress-track{margin-top:7px;height:3px}.achievement{display:block}.achievement-label{font-size:9px;white-space:nowrap}.achievement>div{margin-top:3px;gap:4px}.achievement strong{font-size:22px}.achievement>div>span{font-size:9px}#plan-day{font-size:8px;line-height:1.5;margin-top:3px}
  .schedule{border-radius:6px}.week-nav-shell{padding:8px 11px;gap:8px}#week-nav{gap:5px}.week-tab{padding:7px 9px;font-size:10px}.all-weeks{font-size:9px;padding-left:4px}.schedule-heading{padding:19px 15px;gap:14px}.schedule-heading h2{font-size:20px}#week-goal{font-size:10px}.week-summary strong{font-size:21px}.week-summary span{font-size:9px}.table-toolbar{display:block;padding:10px 15px}.table-toolbar p{font-size:9px;gap:5px}.weekend-legend{margin-left:0}.filter-label{font-size:10px;margin-top:9px}.filter-label input{width:16px;height:16px}
  .plan-table,.plan-table tbody{display:block}.plan-table thead{display:none}.plan-table tr{display:block;border-bottom:1px solid var(--line);padding:16px 15px 14px}.plan-table tr:last-child{border-bottom:0}.plan-table td{display:grid;grid-template-columns:62px minmax(0,1fr);padding:7px 0;border:0;gap:7px}.plan-table td:before{content:attr(data-label);font-size:10px;color:#697382;padding-top:5px;line-height:1.7}.plan-table td:first-child{padding:0 0 11px;display:flex;gap:9px;align-items:center}.plan-table td:first-child:before{display:none}.date-number{font-size:22px}.date-weekday{margin:0;font-size:10px}.day-count{margin:0 0 0 auto;font-size:10px}.today-badge{margin:0;font-size:9px}.slot-time{display:none}.task{font-size:13px;min-height:34px;padding:5px 1px;gap:9px}.task input{width:19px;height:19px;margin-top:2px}.task-list{gap:5px}.weekend td,.is-today td{background:transparent}.weekend{background:#fbfcfd}.is-today{background:#fff5f5;box-shadow:inset 3px 0 var(--red)}.is-today td:first-child{box-shadow:none}.plan-table td.no-task{display:none}.schedule-bottom{padding:12px 15px;font-size:9px}.week-controls{gap:7px}.week-controls button{font-size:10px;padding:5px 7px}.table-week-title{padding:12px 15px;font-size:13px}.table-week-title span{display:block;font-size:10px;margin-left:0}
  .study-notes{margin-top:15px}.study-notes>summary{font-size:11px;padding-bottom:14px}.notes-area{grid-template-columns:1fr;gap:18px;padding-bottom:20px}.notes-area p{font-size:11px}.small-label{font-size:11px}footer{display:block;padding:18px 0 24px}.footer-motto{font-size:11px}#storage-note{text-align:left;font-size:9px;margin-top:5px}.toast{bottom:15px;font-size:12px;width:max-content;max-width:90vw}
  .login-page{padding:20px 16px}.login-shell{display:block;max-width:440px;min-height:auto;border-radius:10px}.login-visual{min-height:200px}.login-visual>img{object-position:50% 46%}.login-visual-copy{padding:24px}.login-visual-copy h1{font-size:24px;line-height:1.4}.login-visual-copy>p{font-size:10px;margin-bottom:12px}.login-visual-copy>span{font-size:11px;margin-top:12px}.login-card{padding:28px 26px 30px}.login-brand{font-size:12px}.login-card h2{font-size:25px;margin-top:20px}.login-card>p{font-size:12px}.login-card .login-footnote{margin-bottom:0}
}
@media(max-width:380px){.page-header,main{padding-inline:13px}.brand{font-size:10px;gap:6px}.header-actions{gap:9px}.masthead-copy h1{font-size:18px}.masthead-flag{width:68px;height:49px}.today-panel{padding-inline:12px}.today-heading h2{font-size:19px}.progress-overview>div{padding-inline:9px}.achievement>div>span{font-size:8px}.plan-table tr{padding-inline:13px}.plan-table td{grid-template-columns:59px minmax(0,1fr)}}
@media(prefers-reduced-motion:no-preference){.task input{transition:background .15s,border-color .15s}.progress-track>div{transition:width .25s}}
@media print{
  body{background:#fff}.page-header{height:50px}.page-header,main{max-width:none;padding-inline:0}.header-actions,.page-loading,.today-panel,.week-nav-shell,.table-toolbar,.schedule-bottom,.toast,.study-notes{display:none!important}.compact-masthead{margin:15px 0;min-height:50px}.masthead-flag{display:none}.masthead-copy h1{font-size:24px}.progress-overview,.schedule{border-radius:0}.schedule-heading{padding:15px}.plan-table{display:table;font-size:10px}.plan-table tbody{display:table-row-group}.plan-table tr{display:table-row;break-inside:avoid}.plan-table td{display:table-cell;padding:9px!important}.plan-table th{padding:8px!important}.plan-table thead{display:table-header-group}.plan-table td:before{display:none}.task{font-size:10px;gap:5px}.task input{width:12px;height:12px}.task-list{gap:5px}.slot-time{display:block}.date-number{font-size:16px}.page-header,footer{break-inside:avoid}footer{padding-bottom:0}
}
