:root{--navy:#173840;--teal:#12786c;--teal-light:#e5f2ed;--bg:#f4f7f6;--ink:#1c3437;--muted:#647778;--line:#dbe5e1;--red:#b64d43;--gold:#996222;--white:#fff}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.65 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);padding:8px 14px;transition:background .15s}button:hover{background:#edf5f1}button:disabled{cursor:wait;opacity:.5}button.primary{color:white;background:var(--teal);border-color:var(--teal)}button.primary:hover{background:#0c6359}button.danger{color:var(--red)}button.link{border:0;background:transparent;padding:4px 7px;color:var(--teal)}button.small{font-size:12px;padding:5px 9px}a{color:var(--teal)}.topbar{height:80px;background:var(--navy);display:flex;align-items:center;gap:44px;padding:0 34px;color:white}.brand{color:white;display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:650;font-size:18px;letter-spacing:1px}.brand small{display:block;font-size:11px;letter-spacing:2px;color:#adc8c3;font-weight:400}.brand-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid #89aaa0;border-radius:12px;color:#b7e4cd;font:28px Georgia}.topbar nav{display:flex;gap:12px}.nav-button{border:0;color:#b9cdca;background:transparent;border-radius:0;padding:26px 8px 23px;border-bottom:3px solid transparent}.nav-button.active{border-bottom-color:#a3d5b9;color:white}.nav-button:hover{background:#254c52}.local-badge{margin-left:auto;font-size:12px;color:#c3d8d0;white-space:nowrap}.local-badge i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#aad8b6;margin-right:8px}h1,h2,h3,p{margin:0}h1{font-size:27px;font-weight:650;letter-spacing:.3px}h2{font-size:21px}h3{font-size:16px}.muted{color:var(--muted)}.eyebrow{font-size:11px;color:var(--teal);letter-spacing:2px;font-weight:650;margin-bottom:6px}.shell{max-width:1320px;margin:0 auto;padding:34px}.page-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.page-title p{color:var(--muted);margin-top:6px}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:26px}.stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px 24px;display:flex;align-items:center;justify-content:space-between}.stat strong{font-size:29px;font-weight:550;color:var(--navy)}.stat span{font-size:12px;color:var(--muted)}.panel{background:white;border:1px solid var(--line);border-radius:13px;padding:24px}.panel-head{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:20px}.search{width:270px}.empty{text-align:center;padding:66px 20px}.empty .empty-icon{font-size:34px;color:var(--teal);margin-bottom:16px}.empty p{margin:10px auto 24px;max-width:430px;color:var(--muted)}.records-table{border-collapse:collapse;width:100%;text-align:left}.records-table th{font-size:12px;font-weight:500;color:var(--muted);padding:12px;background:#f7faf8;border-bottom:1px solid var(--line)}.records-table td{padding:17px 12px;border-bottom:1px solid #edf1ef}.records-table tr:last-child td{border-bottom:0}.record-name{font-weight:650}.tag{font-size:11px;border-radius:5px;background:var(--teal-light);color:var(--teal);padding:3px 7px;white-space:nowrap}.tag.warn{background:#fff0dc;color:var(--gold)}.storage-note{font-size:12px;color:var(--muted);margin-top:18px;line-height:1.8}.record-banner{background:white;border-bottom:1px solid var(--line);padding:18px 32px;display:flex;justify-content:space-between;gap:20px;align-items:center;position:sticky;top:0;z-index:10}.record-banner h1{font-size:19px}.record-banner .muted{font-size:12px}.save-state{font-size:12px;color:var(--teal);min-width:135px}.workspace{max-width:1500px;margin:auto;display:grid;grid-template-columns:264px minmax(0,1fr);min-height:calc(100vh - 155px)}.sidebar{border-right:1px solid var(--line);padding:22px 17px;position:sticky;top:94px;align-self:start;max-height:calc(100vh - 110px);overflow:auto}.sidebar .search{width:100%;font-size:12px;margin-bottom:16px}.nav-group{font-size:11px;color:var(--muted);letter-spacing:1px;margin:20px 10px 8px}.module-link{display:flex;width:100%;align-items:center;gap:7px;text-align:left;border:0;background:transparent;margin:3px 0;padding:9px 11px;font-size:12px}.module-link.active{background:#deeee7;color:#08675c;font-weight:650}.module-link .module-title{flex:1}.module-link .mini-count{font-size:10px;color:var(--muted);white-space:nowrap}.module-link.off{opacity:.55}.workspace-content{padding:30px 35px 70px;min-width:0;max-width:1030px}.section-top{margin-bottom:22px}.section-top p{margin-top:10px;color:var(--muted)}.section-meta{display:flex;align-items:center;gap:10px;margin-bottom:12px}.section-meta label{font-size:12px}.notice{background:#edf5f1;border-left:3px solid #76a990;padding:12px 16px;border-radius:0 7px 7px 0;font-size:12px;margin:15px 0;color:#456c5e}.notice.warn{background:#fff6e8;border-color:#d3aa65;color:#876127}.notice.error{background:#fff0ee;border-color:var(--red);color:var(--red)}details.instructions{background:#fff;border:1px solid var(--line);border-radius:9px;padding:13px 16px;margin:14px 0 22px;font-size:12px;color:var(--muted)}details summary{cursor:pointer;font-weight:600;color:var(--ink)}details p{margin-top:9px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 22px}.field{min-width:0}.field.wide{grid-column:1/-1}.field>label{display:block;font-size:13px;font-weight:550;margin-bottom:6px}.field .required{color:var(--red);margin-left:3px}.input-row{display:flex;gap:7px;align-items:center}.input-row .control{flex:1;min-width:0}.input-row .unit{font-size:12px;color:var(--muted)}input,select,textarea{width:100%;color:var(--ink);background:#fff;border:1px solid #cedbd5;border-radius:7px;padding:9px 11px;outline:none;min-height:40px}input:focus,select:focus,textarea:focus{border-color:#2b8b76;box-shadow:0 0 0 3px #12786c12}input:disabled,select:disabled,textarea:disabled{background:#f1f4f2;color:#899b93}input[readonly]{background:#f3f7f5;border-style:dashed}textarea{resize:vertical;min-height:80px}.field .status-select{width:92px;font-size:11px;padding:8px 4px;color:var(--muted);background:#f8faf9}.date-control{display:flex;gap:7px;align-items:center;flex:1;min-width:0}.date-control .date-display{flex:1;color:var(--ink);background:#f8faf9}.date-picker-button{white-space:nowrap;padding:8px 10px;font-size:12px;color:var(--teal);border-color:#a9cfc0;background:#f4faf7}.date-picker-dialog{padding:22px 0 8px}.date-picker-dialog input{font-size:16px;min-height:48px}.field .help{font-size:11px;color:var(--muted);margin-top:5px;line-height:1.6}.check-group{display:flex;flex-wrap:wrap;gap:7px}.check-option{font-weight:400!important;font-size:12px!important;display:flex!important;align-items:center;gap:6px;margin:0!important;padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:white}.check-option:has(input:checked){border-color:#5aa38e;background:#edf7f1}.check-option input{width:14px;min-height:14px;height:14px;margin:0}.question-card{background:#fff;border:1px solid var(--line);border-radius:11px;margin:13px 0;padding:20px 23px}.question-head{display:flex;gap:13px;margin-bottom:15px}.question-number{background:#e9f2ec;color:var(--teal);min-width:33px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:6px;font-size:11px;padding:2px 6px}.question-head h3{font-size:14px;font-weight:600;line-height:1.7;flex:1}.question-card .question-copy{font-size:13px;line-height:1.8;margin:-5px 0 14px}.question-card details{font-size:11px;color:var(--muted);margin-top:13px}.question-card details summary{font-weight:400;color:var(--muted)}.question-card details .anchor{padding:3px 0;line-height:1.6}.question-card .form-grid{gap:12px 18px}.question-card .meta{font-size:11px;color:var(--muted);margin-bottom:11px}.repeat-group{margin-top:25px}.repeat-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px;margin-top:12px}.repeat-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.progress-track{height:5px;width:100%;background:#e1eae5;border-radius:5px;overflow:hidden}.progress-track span{height:5px;background:#2c9477;display:block}.progress-line{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-bottom:7px}.section-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding-top:22px;margin-top:30px}.settings-grid{display:grid;grid-template-columns:1fr 340px;gap:24px;align-items:start}.settings-grid .form-grid{margin-top:22px}.settings-steps{font-size:13px}.settings-steps li{margin:14px 0}.test-result{font-size:12px;padding:12px;background:#f1f6f2;border-radius:7px;margin-top:16px;white-space:pre-wrap}.settings-actions{margin-top:23px}.inline-link{word-break:break-all;font-size:12px}.dialog-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}dialog{border:1px solid var(--line);border-radius:15px;padding:27px;width:min(780px,94vw);max-height:90vh;overflow:auto;color:var(--ink)}dialog::backdrop{background:#18352f75;backdrop-filter:blur(2px)}.plan-group{display:grid;grid-template-columns:1fr 1fr;gap:8px}.plan-group label{padding:8px 10px;border-radius:7px;border:1px solid var(--line);font-size:12px;display:flex;gap:9px;align-items:center}.plan-group input{width:14px;height:14px;min-height:14px}.dialog-footer{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}.source-line{font-size:11px;color:var(--muted);margin:7px 0}.stimulus{background:white;text-align:center;padding:25px 10px}.word-card{font-size:70px;letter-spacing:9px;padding:65px 10px;font-family:"Songti SC","SimSun",serif}.cubes{display:flex;gap:40px;justify-content:center;padding:40px}.cube{width:65px;height:65px;background:black;position:relative}.cube:after{content:attr(data-number);position:absolute;top:70px;left:25px;color:black}.park{max-width:100%;border:1px solid var(--line);display:block;margin:16px auto}.loading{padding:100px;text-align:center;color:var(--muted)}#toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%) translateY(90px);opacity:0;transition:all .2s;z-index:100;background:#183e36;color:white;padding:12px 22px;border-radius:9px;max-width:90vw;box-shadow:0 8px 30px #173c3025}#toast.visible{transform:translateX(-50%) translateY(0);opacity:1}#toast.error{background:#9b443a}.footer-hint{font-size:11px;color:var(--muted);margin-top:25px}.validation{color:var(--red);font-size:11px}.mobile-module{display:none}.legend{font-size:11px;padding:5px 0;color:var(--muted)}@media(max-width:1050px){.topbar{padding:0 20px;gap:24px}.local-badge{display:none}.workspace{grid-template-columns:220px 1fr}.workspace-content{padding:25px}.record-banner{padding:16px 22px}.settings-grid{grid-template-columns:1fr}.sidebar{top:110px}.form-grid{gap:17px 14px}}@media(max-width:720px){.topbar{height:68px;padding:0 15px;gap:15px}.brand{font-size:15px}.brand-icon{display:none}.topbar nav{gap:3px}.nav-button{font-size:12px;padding:23px 4px 18px}.shell{padding:23px 15px}.page-title{align-items:start;flex-direction:column}.page-title h1{font-size:24px}.stats{gap:8px}.stat{padding:12px;flex-direction:column;align-items:start}.stat strong{font-size:24px}.records-table th:nth-child(4),.records-table td:nth-child(4){display:none}.records-table td{padding:13px 7px}.records-table{font-size:12px}.panel{padding:17px}.panel-head{align-items:stretch;flex-direction:column}.search{width:100%}.workspace{display:block}.sidebar{display:none}.workspace-content{padding:20px 15px}.record-banner{position:relative;align-items:start;flex-direction:column;padding:16px 15px;gap:12px}.record-banner .actions{gap:6px}.record-banner button{font-size:12px;padding:7px 10px}.form-grid{grid-template-columns:1fr}.question-card{padding:17px}.mobile-module{display:block;margin-bottom:20px}.plan-group{grid-template-columns:1fr}.settings-grid{display:block}.settings-steps{margin-top:20px}.question-head h3{font-size:13px}.cubes{gap:20px}.cube{width:45px;height:45px}.cube:after{top:50px;left:18px}.word-card{font-size:50px}.storage-note{font-size:11px}}

/* 移动端增强：iPad 竖屏也使用模块下拉菜单，避免侧栏挤压表单。 */
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
@media (max-width:900px){
  .workspace{display:block}
  .sidebar{display:none}
  .mobile-module{display:block;margin:0 15px 18px}
  .mobile-module label{display:block;font-size:12px;font-weight:600;margin-bottom:6px}
  .mobile-module select{min-height:44px}
  input,select,textarea{font-size:16px}
}
@media (max-width:720px){
  body{padding-bottom:env(safe-area-inset-bottom)}
  .topbar{min-height:68px;height:auto;padding-top:max(10px,env(safe-area-inset-top));padding-bottom:4px;align-items:center;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .topbar nav{flex:0 0 auto;white-space:nowrap}
  .nav-button{min-height:44px;padding-top:10px;padding-bottom:8px}
  button,.date-picker-button{min-height:44px}
  input,select,textarea{min-height:44px}
  .record-banner .actions{width:100%}
  .record-banner .actions button{min-height:44px}
  .question-card .form-grid{gap:14px}
  .section-top .section-meta{flex-wrap:wrap;align-items:flex-start}
  .section-top .section-meta>.check-option{flex:0 0 auto;white-space:nowrap}
  .section-top .section-meta>.check-option input{flex-shrink:0}
  .section-top .section-meta>.muted{flex:1 1 100%;min-width:0;max-width:100%;overflow-wrap:anywhere}
}
