@charset "UTF-8";
:root{--ink:#263632;--muted:#7b8581;--green:#276e5d;--green-dark:#205947;--green-soft:#eaf3ee;--line:#e8ece9;--paper:#fff;--bg:#f6f8f7;--coral:#b96856;--gold:#9d7a33;--shadow:0 12px 40px rgba(32,57,46,.09)}
*{box-sizing:border-box;letter-spacing:0}
body{margin:0;color:var(--ink);background:var(--bg);font:14px/1.6 "PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.4}
button{border:0;background:none}
a{color:inherit;text-decoration:none}
input,select,textarea{border:1px solid #dfe6e1;background:#fff;border-radius:6px;outline:none}
input:focus,select:focus,textarea:focus{border-color:#66a38a;box-shadow:0 0 0 3px #e5f1e9}
button:focus-visible,a:focus-visible{outline:2px solid #498a70;outline-offset:3px}
input[type=checkbox]{accent-color:var(--green);width:16px;height:16px;flex-shrink:0}
svg.lucide{width:18px;height:18px;stroke-width:1.65;flex-shrink:0}
.shell{min-height:100vh;display:grid;grid-template-columns:232px minmax(0,1fr)}
.sidebar{position:sticky;top:0;height:100vh;padding:29px 18px 20px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:30}
.brand{display:flex;align-items:center;gap:11px;padding:0 13px 31px}
.brand-mark{width:37px;height:39px;border-radius:8px;background:var(--green);color:white;display:grid;place-items:center;box-shadow:0 3px 0 #dfece3}
.brand-mark svg{width:23px;height:23px;stroke-width:1.5}
.brand-name{font-size:21px;font-weight:650;line-height:1.3}
.brand-en{display:block;font:9px/1.6 Georgia,serif;color:#8d9791;margin-top:3px}
.nav-item{display:flex;align-items:center;gap:12px;width:100%;border-radius:6px;min-height:44px;padding:10px 13px;text-align:left;color:#6b7770;margin:4px 0;transition:background .15s,color .15s}
.nav-item:hover{background:#f5f7f5}
.nav-item.active{background:var(--green-soft);color:var(--green);font-weight:600}
.nav-item .count{margin-left:auto;font-size:11px;background:#fff9;padding:0 6px;border-radius:4px;color:#658373;min-width:22px;text-align:center}
.nav-label{font-size:11px;color:#98a19b;padding:27px 13px 8px;display:flex;align-items:center;justify-content:space-between}
.course-nav{font-size:13px;gap:11px;padding:10px 13px;min-height:42px}
.course-dot{width:7px;height:7px;border-radius:50%;flex:none;background:var(--course-color,#68927f)}
.sidebar-bottom{margin-top:auto;padding-top:35px}
.help-link{display:flex;align-items:center;gap:10px;color:#7c8880;font-size:12px;padding:12px}
.user-profile{border-top:1px solid var(--line);padding:19px 8px 0;display:flex;gap:10px;align-items:center;text-align:left;width:100%}
.avatar{height:34px;width:34px;border-radius:50%;background:#ece6df;color:#8b7462;display:grid;place-items:center;font-size:12px;flex:none}
.user-name{font-size:13px;font-weight:550}
.user-id{font-size:10px;color:#98a19b}
.user-profile .lucide{margin-left:auto;color:#a3aaa6;width:15px}
.workspace{min-width:0}
.topbar{height:77px;display:flex;align-items:center;justify-content:space-between;padding:0 38px;border-bottom:1px solid var(--line);background:#fff;gap:16px}
.breadcrumb{display:flex;align-items:center;gap:12px;color:#969e99;font-size:12px;white-space:nowrap}
.breadcrumb .current{color:#4e5c53}
.breadcrumb svg{width:12px}
.top-actions{display:flex;align-items:center;gap:17px}
.prototype-tag{color:#a2aaa4;font-size:10px;white-space:nowrap}
.role-switch{background:#f1f4f2;display:flex;padding:3px;border-radius:7px;gap:2px}
.role-switch button{font-size:11px;padding:5px 12px;border-radius:5px;color:#838d86;white-space:nowrap}
.role-switch button.active{background:#fff;color:var(--green);box-shadow:0 1px 4px #21382a12}
.icon-btn{height:32px;min-width:32px;padding:7px;display:inline-flex;align-items:center;justify-content:center;color:#7b8880;border-radius:5px;position:relative;flex:none}
.icon-btn:hover{background:#eef3ef;color:var(--green)}
.icon-btn svg{width:17px;height:17px}
.icon-btn[data-tooltip]:hover:after{content:attr(data-tooltip);position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);background:#263b30;color:#fff;font-size:11px;white-space:nowrap;padding:4px 7px;border-radius:4px;z-index:100;pointer-events:none}
.icon-btn.starred{color:#b68b3b}
.icon-btn.starred svg{fill:#f6eacb}
.mobile-menu{display:none}
.main{padding:31px 38px 25px;max-width:1550px;margin:0 auto}
.page-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:27px}
h1{font-size:27px;font-weight:600;line-height:1.4;margin:0 0 7px}
.page-description{font-size:12px;color:#8a958d;margin:0}
.heading-note{font-size:12px;color:#8c978f;display:flex;gap:7px;align-items:center}
.heading-note svg{width:15px;color:#a6b2a7}
.section-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.section-label h2{font-size:14px;font-weight:600;margin:0;display:flex;align-items:center;gap:7px}
.section-label h2 svg{width:15px;color:var(--gold)}
.section-label span{font-size:10px;color:#a0aaa3}
.featured-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:32px}
.featured-card{border:1px solid var(--line);background:#fff;border-radius:8px;overflow:hidden;transition:transform .15s,box-shadow .15s;position:relative}
.featured-card:hover{transform:translateY(-2px);box-shadow:0 6px 20px #244d3510}
.feature-art{height:130px;position:relative;overflow:hidden;display:flex;justify-content:center;align-items:flex-start;background:#edf3ef}
.feature-art.tone-1{background:#f1eeea}.feature-art.tone-2{background:#edf0f5}
.feature-art canvas{width:190px;height:245px;margin-top:15px;box-shadow:0 2px 10px #183c2310;transform:rotate(-4deg)}
.feature-art.tone-1 canvas{transform:rotate(3deg);margin-top:19px}
.feature-art.tone-2 canvas{transform:rotate(-2deg);width:230px;height:180px;margin-top:24px}
.art-label{position:absolute;top:12px;left:13px;background:#fff9;border:1px solid #fff7;border-radius:4px;padding:2px 7px;color:#698170;font-size:9px}
.featured-body{padding:15px 16px 13px}
.feature-title{font-size:14px;font-weight:600;text-align:left;display:block;padding:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:6px}
.feature-meta{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#95a098;gap:8px}
.feature-meta .icon-btn{height:24px;width:24px;min-width:24px;padding:4px;color:#94a599}
.library-section{min-width:0}
.library-bar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:16px}
.view-tabs{display:flex;gap:22px;align-items:center;min-width:0}
.view-tab{font-size:13px;color:#8c978f;padding:7px 0;white-space:nowrap;border-bottom:2px solid transparent;display:flex;gap:7px;align-items:center}
.view-tab.active{color:var(--green);border-color:var(--green);font-weight:600}
.tab-count{font-size:10px;background:#eaf0ec;line-height:18px;min-width:22px;padding:0 5px;border-radius:4px;font-weight:400}
.filters{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.search-wrap{display:flex;align-items:center;position:relative;width:220px}
.search-wrap input{width:100%;height:35px;font-size:11px;padding:8px 74px 8px 10px;background:#fff}
.search-wrap .search-submit{position:absolute;right:2px;top:2px;width:32px;min-width:32px;height:31px;padding:6px;border-left:1px solid #e6ece7;border-radius:0 4px 4px 0;color:#276e5d}
.search-wrap .search-submit svg{position:static;width:16px;height:16px}
.search-clear{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:30px;min-width:30px;height:30px;padding:6px}
.search-wrap .search-clear{right:36px}
.search-clear[hidden]{display:none}
.search-clear svg{position:static;width:16px;height:16px}
.search-clear[data-tooltip]:hover:after{left:auto;right:0;transform:none}
.search-wrap input::-webkit-search-cancel-button,.audit-search-wrap input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.audit-search-wrap{position:relative;display:block}
.audit-filters .audit-search-wrap input[type=search]{padding-right:40px}
.filter-select{height:35px;padding:5px 28px 5px 10px;font-size:11px;max-width:180px}
.table-wrap{border:1px solid var(--line);border-radius:7px;background:white;overflow:auto}
table{width:100%;border-collapse:collapse;text-align:left;table-layout:fixed}
th{font-size:10px;font-weight:400;color:#929e95;background:#fafcfb;height:39px;border-bottom:1px solid var(--line)}
td{border-bottom:1px solid #edf0ee;height:77px;font-size:11px;color:#929b94}
tr:last-child td{border-bottom:0}
th:first-child,td:first-child{padding-left:19px}
th:last-child,td:last-child{padding-right:16px}
tbody tr:hover{background:#fcfdfc}
.document-table .col-name{width:39%}.document-table .col-course{width:19%}.document-table .col-date{width:14%}.document-table .col-access{width:13%}.document-table .col-actions{width:15%}
.file-cell{display:flex;align-items:center;gap:12px;min-width:0;padding-right:12px}
.file-icon{width:37px;height:43px;background:#fcefeb;color:#c87b68;border:1px solid #f5e6df;border-radius:5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;flex:none}
.file-icon svg{width:17px;height:19px;stroke-width:1.4}
.file-icon small{font:8px/1.4 sans-serif;font-weight:600;margin-top:1px}
.file-icon.md{background:#edf4f0;border-color:#e3eee7;color:#729783}
.file-icon.xmind{background:#f3edf6;border-color:#ece4f1;color:#a085b6}
.file-icon.xls,.file-icon.xlsx{background:#eaf4ed;border-color:#dceadf;color:#4e8b67}
.file-icon.doc,.file-icon.docx{background:#edf3fc;border-color:#dfe8f6;color:#547eaf}
.file-icon.ppt,.file-icon.pptx{background:#fcf0e9;border-color:#f4e2d7;color:#bf7857}
.file-icon.zip{background:#f8f3e7;border-color:#ece3cb;color:#a88b46}
.file-icon.rar{background:#f1edf7;border-color:#e5ddf0;color:#8b76a3}
.file-icon.png,.file-icon.jpg,.file-icon.jpeg,.file-icon.webp{background:#eef5f5;border-color:#dfeaea;color:#6b9294}
.file-info{min-width:0}
.file-name{font-size:12px;font-weight:500;color:#3c4c41;text-align:left;padding:0;max-width:100%;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.file-name:hover{color:var(--green)}
.file-sub{font-size:10px;color:#a0aaa2;margin-top:4px;display:flex;align-items:center;gap:8px;white-space:nowrap}
.new-tag{font-size:8px;color:#8eaa8f;background:#f0f5ed;padding:0 4px;border-radius:2px}
.course-tag{font-size:10px;color:#8d968f;background:#f4f6f4;border:1px solid #edf0ed;padding:3px 7px;display:inline-block;border-radius:4px;max-width:95%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
.access-tag{font-size:10px;color:#7e9785;display:inline-flex;gap:4px;align-items:center;white-space:nowrap}
.access-tag svg{width:11px;height:11px}
.access-tag.view{color:#a68d69}.access-tag.download{color:#828f9c}
.row-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px}
.read-btn{background:#edf4ef;border:1px solid #e4eee6;color:#5f8a6b;padding:5px 10px;border-radius:4px;white-space:nowrap;font-size:10px;min-height:28px}
.read-btn:hover{background:#dfeee3;color:#276e5d}
.read-btn svg{width:13px;height:13px;vertical-align:-2px;margin-right:4px}
.table-footer{display:flex;justify-content:space-between;align-items:center;padding:15px 0;color:#9ca69e;font-size:10px;gap:10px}
.pagination{display:flex;align-items:center;gap:6px}
.pagination .current{background:#e9f1eb;color:#608467;min-width:26px;height:26px;display:grid;place-items:center;border-radius:4px}
.footer-note{margin-top:18px;text-align:center;color:#b6beb8;font-size:9px}
.footer-note span{margin:0 8px}
.btn{border-radius:5px;padding:8px 14px;display:inline-flex;justify-content:center;align-items:center;gap:7px;font-size:12px;min-height:36px;white-space:nowrap;border:1px solid #dfe7e1;background:#fff}
.btn svg{width:15px;height:15px}
.btn:hover{background:#f1f5f2}
.btn.primary{color:#fff;background:var(--green);border-color:var(--green)}
.btn.primary:hover{background:var(--green-dark)}
.btn.danger{background:#fff2ef;border-color:#f2dcd5;color:#b46e5d}
.button-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.admin-stats{display:flex;gap:28px;margin-bottom:24px;border-bottom:1px solid var(--line);padding-bottom:19px}
.stat-label{font-size:11px;color:#8d978f;margin-bottom:4px}
.stat-value{font:24px/1.2 Georgia,serif;color:#466451}
.stat-value small{font:10px "PingFang SC",sans-serif;color:#a5afa7;margin-left:8px}
.admin-toolbar{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:14px;flex-wrap:wrap}
.admin-table{min-width:720px}
.admin-table td{height:73px}
.admin-table .check-col{width:38px}.admin-table .name-col{width:32%}.admin-table .groups-col{width:22%}.admin-table .state-col{width:12%}.admin-table .action-col{width:17%}
.state-tag{font-size:10px;display:inline-flex;gap:5px;align-items:center;color:#69917a}
.state-tag:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}
.state-tag.hidden{color:#b59a66}.state-tag.deleted{color:#ba7c72}
.empty{padding:62px 20px;text-align:center;color:#98a59b}
.empty svg{width:32px;height:32px;margin-bottom:10px;color:#aec0b2}
.empty p{margin:4px 0;font-size:13px}.empty small{font-size:11px}
.groups-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.group-card{border:1px solid var(--line);border-radius:8px;padding:22px;background:#fff}
.group-symbol{width:39px;height:39px;display:grid;place-items:center;border-radius:7px;background:var(--course-bg,#eef3ee);color:var(--course-color,#729582);margin-bottom:20px}
.group-card h3{font-size:16px;font-weight:500;margin:0 0 8px;overflow-wrap:anywhere}
.group-card .group-id{font-size:10px;color:#a7b0a9}
.group-stats{display:flex;gap:28px;margin:23px 0 18px;font-size:10px;color:#9aa69c}
.group-stats strong{display:block;font:23px Georgia,serif;color:#68816f;margin-bottom:4px}
.group-bottom{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:15px;align-items:center;font-size:10px;color:#a3aca5}
.editor-dialog{border:0;padding:0;width:650px;max-width:calc(100vw - 28px);max-height:90vh;border-radius:9px;background:#fff;box-shadow:0 24px 100px #13281f30;color:var(--ink)}
dialog::backdrop{background:#1e352f66;backdrop-filter:blur(3px)}
.dialog-head{padding:21px 25px 18px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px;position:sticky;top:0;background:#fff;z-index:2}
.dialog-head h2{font-size:18px;margin:0;font-weight:550}
.dialog-head p{font-size:11px;color:#a2aca4;margin:5px 0 0}
.dialog-body{padding:21px 25px 25px}
.dialog-footer{padding:15px 25px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px;position:sticky;bottom:0;background:#fff;z-index:2}
.field{display:block;margin-bottom:20px}
.field-label{display:block;font-size:12px;color:#617567;margin-bottom:7px}
.field input:not([type=checkbox]),.field select,.field textarea{width:100%;padding:9px 11px;font-size:12px}
.field textarea{resize:vertical;min-height:100px;line-height:1.7}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.dropzone{border:1px dashed #c8dbcd;background:#f7faf7;padding:22px;text-align:center;border-radius:6px;display:block;cursor:pointer;margin-bottom:20px}
.dropzone svg{color:#7fa389;width:28px;height:28px;margin-bottom:6px}
.dropzone strong{display:block;font-weight:500;font-size:12px;color:#60876a}
.dropzone span{display:block;font-size:10px;color:#a7b3a9;margin-top:4px}
.dropzone input{display:block;margin:12px auto 0;max-width:100%;font-size:11px}
.permission-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;font-size:12px;color:#617567}
.permission-top select{font-size:11px;padding:5px 9px}
.permission-rows{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.permission-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #f0f3f0;gap:12px;font-size:12px}
.permission-row:last-child{border:0}
.permission-name{display:flex;align-items:center;gap:9px;min-width:0}
.permission-row select{font-size:11px;padding:7px 9px;min-width:132px}
.note{font-size:10px;color:#a1ada4;line-height:1.9;margin-top:12px;display:flex;align-items:flex-start;gap:6px}
.note svg{width:13px;height:17px;flex:none}
.watermark-sample{background:#f6f8f6;border:1px solid #e7eee8;padding:13px 16px;border-radius:5px;font-size:11px;color:#788c7d;display:flex;gap:9px;align-items:center;margin-top:17px}
.status-box{padding:15px;background:#f4f8f4;border-radius:5px;font-size:12px;margin:15px 0;color:#6d8b74}
.error-box{background:#fcf0ed;color:#b57464}
.import-table{font-size:11px;margin-top:15px;border:1px solid var(--line)}
.import-table th,.import-table td{padding:9px 8px;height:auto}
.import-table td:first-child,.import-table th:first-child{padding-left:8px}
.reader-dialog{border:0;padding:0;margin:0;width:100vw;height:100dvh;max-width:none;max-height:none;border-radius:0;background:#edf0ed;color:var(--ink);overflow:hidden}
.reader-head{height:74px;background:white;border-bottom:1px solid #e2e8e3;display:flex;align-items:center;justify-content:space-between;padding:0 25px;gap:15px}
.reader-title-wrap{display:flex;align-items:center;gap:17px;min-width:0}
.reader-heading{min-width:0}.reader-heading h2{font-size:15px;font-weight:550;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reader-heading p{font-size:10px;color:#9aa69d;margin:4px 0 0}
.reader-layout{display:grid;grid-template-columns:220px minmax(0,1fr);height:calc(100dvh - 74px)}
.reader-outline{background:#fff;padding:25px 16px;border-right:1px solid #e1e8e2;display:flex;flex-direction:column}
.outline-title{font-size:11px;color:#9daa9f;margin:0 12px 15px}
.outline-item{padding:11px 12px;font-size:11px;border-radius:5px;text-align:left;color:#8b9b8f;margin:3px 0}
.outline-item.active{background:#edf4ee;color:#527a5c}
.reading-identity{margin-top:auto;border-top:1px solid var(--line);padding:15px 10px 0;font-size:10px;color:#9caaa0;line-height:2}
.reading-identity strong{font-weight:400;color:#64816d}
.reader-main{min-width:0;position:relative;display:flex;flex-direction:column}
.reader-toolbar{height:54px;flex:none;display:flex;align-items:center;justify-content:center;gap:12px;border-bottom:1px solid #dfe6df;background:#f7f9f7;font-size:11px;color:#8e9d91}
.toolbar-group{display:flex;align-items:center;gap:5px}.toolbar-divider{height:18px;width:1px;background:#dde5dd;margin:0 7px}
.reader-page-input{width:35px;height:28px;text-align:center;border:1px solid #dce6dc;border-radius:4px;font-size:11px;padding:0}
.paper-viewport{overflow:auto;flex:1;padding:28px;overscroll-behavior:contain;text-align:center}
.reader-paper{display:block;width:740px;max-width:100%;height:auto;background:#fff;box-shadow:0 3px 18px #213b2511;margin:0 auto;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.reader-caption{font-size:10px;color:#a3afa5;padding:17px 0 5px;text-align:center}
.toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,12px);opacity:0;pointer-events:none;padding:11px 19px;background:#2d493a;color:white;border-radius:7px;font-size:12px;box-shadow:var(--shadow);z-index:200;transition:.2s;max-width:calc(100vw - 30px);text-align:center}
.toast.visible{opacity:1;transform:translate(-50%,0)}
.login-page{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;background:#fff}
.login-intro{background:#edf3ee;padding:50px;display:flex;flex-direction:column;justify-content:space-between}
.login-intro .brand{padding:0}.login-intro h1{font-size:36px;font-weight:500;line-height:1.8;margin-bottom:20px}
.login-intro p{color:#8ca091;font-size:13px;line-height:2}
.login-art{height:240px;position:relative;overflow:hidden;margin-top:30px}
.login-art canvas{width:220px;height:290px;transform:rotate(-7deg);position:absolute;left:40px;top:18px;box-shadow:0 4px 28px #24483214}
.login-art canvas:last-child{left:210px;top:45px;transform:rotate(8deg)}
.login-main{display:flex;align-items:center;justify-content:center;padding:35px;position:relative}
.login-form{width:340px;max-width:100%}.login-form h2{font-size:24px;font-weight:550;margin:0 0 7px}.login-form>p{font-size:12px;color:#9ca89e;margin:0 0 32px}
.login-form .field input{height:45px}
.otp-row{display:flex;gap:10px}.otp-row input{min-width:0}.otp-row button{font-size:11px;flex:none;min-width:102px}
.login-submit{width:100%;height:44px;margin-top:8px}
.login-back{position:absolute;top:25px;right:30px;color:#94a399;font-size:11px}
.login-demo{font-size:10px;color:#a7b1a9;text-align:center;margin-top:20px}
.settings-grid{max-width:720px;background:#fff;border:1px solid var(--line);padding:25px;border-radius:7px}
.settings-grid h3{font-size:14px;font-weight:500;margin:0 0 22px}
.settings-grid .form-row{margin-bottom:8px}
.settings-grid .note{margin-bottom:20px}
.sidebar-scrim{display:none}.mobile-course{display:none}
.page-description{font-size:13px;color:#7d8b81}
.feature-title{font-size:15px}
.feature-meta{font-size:11px;color:#7d8e81}
th{font-size:12px;color:#7e8c82}
td{font-size:12px;color:#7c8a80}
.file-name{font-size:14px}
.file-sub{font-size:11px;color:#85948a}
.course-tag{font-size:11px;color:#77877c}
.access-tag{font-size:11px;color:#64846e}
.access-tag.view{color:#977951}
.access-tag.download{color:#718191}
.read-btn{font-size:12px;color:#477958;padding:5px 11px}
.view-tab{font-size:14px}
.search-wrap input,.filter-select{font-size:12px}
.section-label h2{font-size:15px}
@media(min-width:1600px){.main{padding-top:38px}.feature-art{height:155px}}
@media(max-width:1200px){.shell{grid-template-columns:210px minmax(0,1fr)}.sidebar{padding-left:12px;padding-right:12px}.main{padding-left:25px;padding-right:25px}.topbar{padding:0 25px}.library-bar{align-items:flex-start;gap:12px;flex-direction:column}.filters{width:100%}.search-wrap{flex:1;max-width:330px}.document-table .col-name{width:36%}.document-table .col-date{width:13%}.document-table .col-actions{width:19%}.feature-title{font-size:12px}.featured-body{padding:12px}.groups-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.col-date,.date-cell{display:none}.document-table .col-name{width:42%}.document-table .col-course{width:18%}.document-table .col-access{width:18%}.document-table .col-actions{width:22%}.prototype-tag{display:none}.featured-grid{gap:10px}.feature-art{height:105px}.feature-art canvas{width:150px;height:200px}.feature-art.tone-2 canvas{width:180px;height:140px}.feature-meta{font-size:9px}.heading-note{display:none}.groups-grid{gap:12px}.brand-name{font-size:19px}}
@media(max-width:720px){.shell{display:block}.sidebar{position:fixed;left:-250px;width:232px;transition:left .2s;height:100dvh;box-shadow:var(--shadow)}.shell.menu-open .sidebar{left:0}.shell.menu-open .sidebar-scrim{display:block;position:fixed;inset:0;background:#1e352f44;z-index:25}.mobile-menu{display:inline-flex}.topbar{height:62px;padding:0 16px;gap:6px}.breadcrumb{gap:7px;font-size:11px}.breadcrumb .root-crumb,.breadcrumb>svg{display:none}.top-actions{gap:6px}.top-actions>.icon-btn{display:none}.role-switch button{font-size:10px;padding:5px 9px}.main{padding:25px 17px 20px}.page-heading{margin-bottom:22px;align-items:flex-start}h1{font-size:24px}.page-description{font-size:11px}.featured-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:24px}.featured-card:nth-child(3){display:none}.feature-art{height:110px}.featured-body{padding:11px}.feature-title{font-size:12px}.feature-meta .icon-btn{display:none}.feature-meta{font-size:9px;align-items:flex-start;gap:3px;flex-direction:column}.feature-art .art-label{font-size:8px;padding:1px 5px;left:8px;top:9px}.section-label h2{font-size:13px}.section-label span{font-size:9px}.library-bar{gap:13px}.view-tabs{width:100%;gap:20px}.view-tab{font-size:12px}.filters{gap:7px;flex-wrap:nowrap}.search-wrap{width:auto;max-width:none;min-width:100px}.search-wrap input{font-size:11px}.filter-select{font-size:10px;max-width:90px;padding-right:14px}.mobile-course{display:block;margin:0 0 18px;width:100%;height:36px;font-size:11px;padding:0 10px;background:#fff}.table-wrap.student-table{border:none;background:transparent;overflow:visible}.document-table,.document-table tbody{display:block;width:100%}.document-table thead{display:none}.document-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;padding:17px 0;gap:9px;border-bottom:1px solid #e6ece7;background:transparent}.document-table td{border:0;height:auto;padding:0!important}.document-table .file-cell{gap:11px;padding:0}.document-table .file-name{font-size:12px}.document-table .file-sub{font-size:9px}.document-table .file-icon{width:33px;height:40px}.document-table .name-cell{grid-column:1 / 3;grid-row:1}.document-table .course-cell{display:none}.document-table .access-cell{grid-column:1;grid-row:2;padding-left:44px!important;align-self:center}.document-table .action-cell{grid-column:2;grid-row:2}.document-table .row-actions{gap:7px}.document-table .read-btn{padding:4px 11px;font-size:10px;min-height:27px}.document-table .row-actions .icon-btn{height:27px;min-width:27px;padding:5px}.table-footer{font-size:9px;padding-top:18px}.table-footer .pagination .icon-btn{height:25px;width:25px;min-width:25px}.footer-note{font-size:8px;margin-top:22px}.admin-stats{gap:30px}.admin-stats .stat-value{font-size:22px}.button-group .btn{font-size:10px;padding:7px 9px;gap:5px}.page-heading .button-group{max-width:150px;justify-content:flex-end}.admin-toolbar{gap:12px}.admin-toolbar .search-wrap{min-width:140px;max-width:none}.admin-toolbar .filters{width:auto}.groups-grid{grid-template-columns:1fr}.group-card{padding:20px}.group-symbol{margin-bottom:14px}.group-stats{margin:17px 0}.editor-dialog{max-height:94dvh;max-width:calc(100vw - 20px)}.dialog-head{padding:17px 18px}.dialog-head h2{font-size:17px}.dialog-body{padding:18px}.dialog-footer{padding:13px 18px}.permission-row{font-size:11px;gap:7px}.permission-row select{font-size:10px;min-width:115px;max-width:125px}.permission-top{font-size:11px}.permission-top select{max-width:120px;font-size:10px}.form-row{gap:12px}.reader-head{padding:0 12px;height:66px;gap:8px}.reader-title-wrap{gap:9px}.reader-heading h2{font-size:12px;max-width:230px}.reader-heading p{font-size:9px}.reader-head .access-tag{display:none}.reader-head .btn{font-size:10px;padding:6px 9px;min-height:30px}.reader-layout{display:block;height:calc(100dvh - 66px)}.reader-outline{display:none}.reader-main{height:100%}.reader-toolbar{height:49px;gap:5px;font-size:10px}.reader-toolbar .icon-btn{height:28px;min-width:28px;width:28px}.toolbar-divider{margin:0 4px}.paper-viewport{padding:16px 10px}.reader-paper{max-width:none;width:100%}.reader-caption{font-size:9px}.login-page{display:block}.login-intro{padding:24px;background:#f1f6f1}.login-intro>.intro-content,.login-intro>.login-copyright{display:none}.login-main{min-height:calc(100dvh - 87px);padding:50px 28px}.login-back{top:20px;font-size:10px}.login-form{width:100%;max-width:340px}.settings-grid{padding:18px}.settings-grid .form-row{grid-template-columns:1fr}.toast{bottom:20px;font-size:11px;width:max-content;max-width:calc(100vw - 24px)}}
@media(max-width:720px){.document-table .file-name{font-size:14px}.document-table .file-sub{font-size:10px}.document-table .read-btn{font-size:11px}.feature-title{font-size:13px;white-space:normal;min-height:42px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.feature-meta{font-size:10px}.view-tab{font-size:13px}.page-description{font-size:12px}.search-wrap input{font-size:12px}.access-tag{font-size:11px}.table-footer{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{body.reading-restricted{visibility:hidden}body.reading-restricted:before{visibility:visible;content:"此资料仅限在线浏览";position:fixed;top:40px;left:40px}body.reading-restricted dialog{display:none!important}}
.initial-loading{min-height:100vh;display:grid;place-items:center;color:#6a8975;font-size:15px}
.feature-art img{width:190px;height:auto;margin-top:15px;box-shadow:0 2px 10px #183c2310;transform:rotate(-4deg);pointer-events:none;user-select:none;-webkit-user-select:none}
.feature-art.tone-1 img{transform:rotate(3deg);margin-top:19px}.feature-art.tone-2 img{transform:rotate(-2deg);width:230px;margin-top:24px}
.reader-paper{user-select:none;-webkit-user-select:none;-webkit-user-drag:none;pointer-events:auto;min-height:180px;object-fit:contain}
.reader-loading{color:#8ca393;font-size:12px;padding:30px;text-align:center}
.preview-user{max-width:145px;height:32px;border:1px solid #dbe6df;font-size:11px;padding:4px 8px;background:#fff}
.local-badge{font-size:10px;color:#a0875b;background:#faf3e5;padding:3px 7px;border-radius:4px;white-space:nowrap}
.login-switch{display:flex;gap:20px;border-bottom:1px solid var(--line);margin-bottom:28px}.login-switch button{font-size:13px;color:#91a196;padding:8px 0;border-bottom:2px solid transparent}.login-switch button.active{color:#3e7653;border-color:#3e7653}
.login-art .sample-sheet{width:225px;height:290px;position:absolute;left:35px;top:12px;transform:rotate(-7deg);box-shadow:0 4px 28px #24483214;background:#fff;padding:30px 24px;color:#4f795d;overflow:hidden}
.login-art .sample-sheet:last-child{left:210px;top:45px;transform:rotate(8deg)}
.sample-sheet strong{font-size:14px;font-weight:500;line-height:1.8;display:block;margin:15px 0}.sample-sheet .sample-line{height:5px;background:#edf3ed;margin:15px 0}.sample-sheet .sample-line:nth-child(2n){width:70%}
.loading-button{opacity:.6;cursor:wait!important}
.check-label{display:flex;align-items:center;gap:8px;font-size:12px;color:#698271;margin-bottom:18px}
.file-progress{font-size:12px;color:#6d8b74;margin:8px 0;min-height:20px}
.upload-tip{font-size:11px;color:#8c9d90;margin:5px 0 18px;line-height:1.8}
.admin-table .action-col{width:20%}
.reader-paper.load-error{display:none}
.reader-image-wrap{min-height:300px}
.small-danger{color:#ac786c}
.course-tag{max-width:100%}
.user-profile>span:last-of-type{min-width:0;flex:1}
.user-name{display:inline-block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}
.file-cell>.file-name{min-width:0}
.reading-identity{overflow-wrap:anywhere}
@media(max-width:720px){.feature-art img{width:150px;margin-top:15px}.feature-art.tone-2 img{width:180px}.preview-user{max-width:94px;height:29px;font-size:10px}.top-actions:has(.preview-user){gap:3px}.top-actions:has(.preview-user) .role-switch button{padding:5px 5px;font-size:9px}.local-badge{display:none}.login-switch{margin-top:15px}.reader-head .button-group{flex-wrap:nowrap}.reader-title-wrap{flex:1}.reader-heading h2{max-width:230px}.reader-head:has(.btn) .reader-heading h2{max-width:175px}}
/* Administration tables retain their column structure on narrow screens. */
.account-table { min-width: 680px; }
.audit-table { min-width: 880px; table-layout: fixed; }
.audit-table th:nth-child(1) { width: 18%; }
.audit-table th:nth-child(2) { width: 22%; }
.audit-table th:nth-child(3) { width: 17%; }
.audit-table th:nth-child(4) { width: 25%; }
.audit-table th:nth-child(5) { width: 10%; }
.audit-table th:nth-child(6) { width: 8%; }
.audit-table td, .account-table td { overflow-wrap: anywhere; }
.audit-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 20px; }
.audit-filters .field { min-width: 145px; flex: 1 1 145px; margin: 0; }
.audit-filters input, .audit-filters select { width: 100%; min-width: 0; }
.audit-detail { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 48vh; overflow-y: auto; font-size: 13px; line-height: 1.6; }
.audit-target { overflow-wrap: anywhere; }
.audit-disabled { opacity: .4; cursor: default; }
.sidebar { height: 100vh; height: 100dvh; overflow: hidden; }
.sidebar > .brand, .sidebar-bottom { flex: 0 0 auto; }
.sidebar > nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #98b0a5 #f2f6f3; }
.sidebar > nav::-webkit-scrollbar { width: 7px; }
.sidebar > nav::-webkit-scrollbar-track { background: #f2f6f3; }
.sidebar > nav::-webkit-scrollbar-thumb { background: #98b0a5; border-radius: 4px; }
.sidebar-bottom { margin-top: 0; padding-top: 14px; }
.student-avatar { background: #fff7d8; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 24px; line-height: 1; }
.groups-table { min-width: 960px; table-layout: fixed; }
.groups-table th, .groups-table td { padding-left: 12px; padding-right: 12px; }
.groups-table .row-actions { gap: 4px; }
.group-order { display: flex; align-items: center; gap: 2px; }
.group-order > span { width: 22px; flex: 0 0 22px; font-variant-numeric: tabular-nums; }
.group-order .icon-btn { width: 26px; min-width: 26px; height: 30px; padding: 4px; }
.group-order .icon-btn:disabled { opacity: .3; cursor: default; }
.nav-offline { font-size: 10px; color: #977951; flex-shrink: 0; margin-left: auto; }
.course-nav > span { min-width: 0; overflow-wrap: anywhere; }
.groups-table td { height: auto; padding-top: 14px; padding-bottom: 14px; overflow-wrap: anywhere; }
.groups-table .file-name { white-space: normal; line-height: 1.5; }
.group-list-symbol { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 28px; color: #719e83; background: #f5f8f6; border-radius: 6px; }
.group-count { font-variant-numeric: tabular-nums; }
.captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px 30px; align-items: center; gap: 8px; }
.captcha-row input { min-width: 0; width: 100%; text-transform: uppercase; }
.captcha-art { display: block; width: 140px; height: 50px; background: #f3f7f4; border-radius: 4px; overflow: hidden; }
.captcha-art img { display: block; width: 140px; height: 50px; object-fit: contain; }
.captcha-art img[hidden] { display: none; }
.captcha-row .icon-btn { width: 30px; min-width: 30px; padding: 5px; }
.captcha-row .icon-btn[data-tooltip]:hover:after { left: auto; right: 0; transform: none; }
.captcha-status { display: block; min-height: 16px; font-size: 11px; color: #977951; margin-top: 4px; }
.feature-file-symbol { display: grid; place-items: center; width: 100%; height: 100%; }
.feature-file-symbol .file-icon { width: 64px; height: 76px; }
.feature-file-symbol .file-icon svg { width: 28px; height: 28px; }
#course-confirmation-form { display: flex; flex-direction: column; max-height: 90dvh; }
#course-confirmation-form .dialog-head, #course-confirmation-form .dialog-footer { flex: none; }
#course-confirmation-form .dialog-body { overflow-y: auto; min-height: 0; }
.confirmation-course { font-size: 16px; margin: 0 0 18px; }
.confirmation-notice { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; margin-bottom: 22px; }
.confirmation-target { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; border-left: 3px solid var(--green); padding-left: 12px; margin: 10px 0 22px; font-weight: 500; }
.confirmation-error { color: #a34235; font-size: 12px; margin: 0; overflow-wrap: anywhere; }
#course-confirmation-form .dialog-head h2 { font-size: 20px; }
#course-confirmation-form .dialog-head p { overflow-wrap: anywhere; }
#course-confirmation-form textarea { width: 100%; resize: vertical; }
@media (max-width: 720px) { #course-confirmation-form { max-height: 90dvh; } #course-confirmation-form .dialog-head h2 { font-size: 17px; } #course-confirmation-form .dialog-footer { gap: 8px; } }
.admin-toolbar .filters { flex-wrap: wrap; gap: 8px; }
.admin-toolbar .group-filter { max-width: 240px; min-width: 150px; }
@media (max-width: 720px) {
  .admin-toolbar .filters { width: 100%; }
  .admin-toolbar .filters .search-wrap { flex: 1 1 100%; }
  .admin-toolbar .filters .filter-select { flex: 1 1 120px; max-width: none; min-width: 0; }
  .sidebar > .brand { padding-bottom: 20px; }
}
