:root{font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#182842;background:#f4f7fc;font-size:16px;line-height:1.65;--ink:#182842;--muted:#62738b;--line:#dfe6f0;--brand:#315ddd;--soft:#eef3ff;--green:#11756a;--red:#b63349}*{box-sizing:border-box}body{margin:0}a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:44px;padding:.62rem 1rem;border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink);font-weight:600;cursor:pointer;text-decoration:none}button:hover,.button:hover{background:#f0f4fa;text-decoration:none}button:disabled{opacity:.55;cursor:wait}button.primary,.button.primary{background:var(--brand);border-color:var(--brand);color:white}button.primary:hover{background:#244bc1}.quiet{background:transparent}.danger{color:var(--red)}input,select,textarea{width:100%;padding:.72rem .85rem;border:1px solid #cdd7e5;border-radius:9px;background:#fff;color:var(--ink);min-height:46px}select{appearance:none;padding-right:2.4rem;background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2362738b' stroke-width='1.8'/%3E%3C/svg%3E");background-position:right .85rem center;background-repeat:no-repeat}textarea{min-height:130px;resize:vertical}input[type=checkbox]{width:20px;min-height:20px;vertical-align:middle;accent-color:var(--brand)}label{display:block;font-size:.9rem;font-weight:600;margin-bottom:.4rem}label.check{display:flex;align-items:center;gap:.6rem}*:focus-visible{outline:3px solid #81a8ff;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.8rem,4vw,3rem);line-height:1.3;letter-spacing:-.035em}h2{font-size:1.3rem;line-height:1.4}h3{font-size:1.05rem}p{margin-bottom:1rem}.muted{color:var(--muted)}.small{font-size:.875rem}.eyebrow{font-size:.875rem;letter-spacing:.06em;font-weight:700;color:var(--brand)}.topbar{background:#fff;border-bottom:1px solid var(--line)}.topbar-inner{max-width:1120px;min-height:76px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;gap:1rem}.brand{display:flex;align-items:center;gap:.7rem;color:var(--ink);font-weight:800;letter-spacing:.02em}.brand:hover{text-decoration:none}.brand-mark{display:grid;grid-template-columns:repeat(2,8px);gap:4px;padding:11px;border-radius:12px;background:var(--brand)}.brand-mark i{height:8px;background:#fff;border-radius:2px}.topnav{display:flex;align-items:center;gap:1.2rem;font-size:.9rem}.container{max-width:1120px;margin:0 auto;padding:2rem 1.5rem}.hero{padding:2.5rem 0 1.5rem;max-width:800px}.hero p{max-width:650px;font-size:1.05rem}.panel{background:white;border:1px solid var(--line);border-radius:16px;padding:1.5rem;box-shadow:0 4px 18px #163c6310}.searchbar{display:flex;gap:.7rem}.searchbar input{flex:1}.filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1.2rem}.chips{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}.chip,.tag{display:inline-flex;align-items:center;padding:.22rem .65rem;border-radius:7px;background:var(--soft);color:#3c5489;font-size:.875rem;font-weight:500}.chip{min-height:36px;border-color:transparent}.chip.active{background:var(--brand);color:#fff}.tag.green{background:#e6f5ef;color:var(--green)}.tag.orange{background:#fff0dc;color:#895a16}.results-head,.row{display:flex;align-items:center;justify-content:space-between;gap:1rem}.results-head{margin:1.8rem 0 1rem}.results-head h2{margin:0}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.resource-card{display:flex;flex-direction:column;min-height:235px}.resource-card h3{font-size:1.15rem;margin:1rem 0 .6rem}.card-top{display:flex;justify-content:space-between;align-items:center;gap:.8rem}.file-mark{display:inline-flex;padding:.35rem .55rem;border-radius:7px;font-size:.8rem;font-weight:800;background:#eef2ff;color:var(--brand)}.resource-card p{color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-bottom{margin-top:auto;padding-top:1rem;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line)}.empty{text-align:center;padding:3rem 1.5rem;color:var(--muted);grid-column:1/-1;background:white;border:1px dashed #c6d2e5;border-radius:14px}.empty strong{display:block;font-size:1.1rem;color:var(--ink);margin-bottom:.5rem}.pager{display:flex;justify-content:center;align-items:center;gap:1rem;margin:1.5rem 0}.footer{max-width:1120px;margin:2rem auto 0;padding:1.5rem;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:1rem;color:var(--muted);font-size:.875rem}.notice{padding:.85rem 1rem;border-radius:9px;background:#edf2ff;color:#365185;margin:1rem 0;font-size:.9rem}.notice.error{background:#fff0f1;color:var(--red)}.notice.success{background:#e8f6f0;color:var(--green)}.hidden,[hidden]{display:none!important}.prewrap{white-space:pre-wrap;overflow-wrap:anywhere}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.field{margin-bottom:1rem}.span2{grid-column:1/-1}.narrow{max-width:760px}.tabs{display:flex;gap:.5rem;padding:.4rem;background:#e9eef7;border-radius:12px;margin-bottom:1.5rem}.tabs button{flex:1;background:transparent;border:0;color:var(--muted)}.tabs button.active{background:white;color:var(--brand);box-shadow:0 2px 6px #14325a12}.receipt{border:1px solid #9fcbbd;background:#f0faf6;border-radius:12px;padding:1.2rem;margin-top:1rem}.receipt code{display:block;padding:.6rem;background:#fff;border-radius:6px;font-size:.95rem;overflow-wrap:anywhere}.history-item{padding:1rem 0;border-bottom:1px solid var(--line)}.history-item:last-child{border:0}.conversation{border-left:3px solid #d3ddf0;padding-left:1rem;margin:1rem 0}.message{padding:1rem;border-radius:10px;background:#f4f7fb;margin-bottom:.8rem}.message.admin{background:#eef3ff}.login{max-width:430px;margin:8vh auto;padding:2rem}.login .brand{margin-bottom:2rem}.login h1{font-size:1.7rem}.login button{width:100%}.admin-layout{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:#15243d;color:#fff;padding:1.6rem 1rem;display:flex;flex-direction:column}.sidebar .brand{color:white;padding:0 .6rem 1.6rem}.sidebar .brand-mark{background:#527af0}.sidebar p{font-size:.875rem;color:#a9bad5;padding:0 .6rem}.sidebar nav{display:grid;gap:.35rem}.sidebar nav button{justify-content:flex-start;background:transparent;border:0;color:#c5d1e6;min-height:48px}.sidebar nav button.active{background:#2d4267;color:#fff}.sidebar-foot{margin-top:auto;padding:.8rem .6rem;font-size:.875rem;color:#a9bad5}.admin-main{min-width:0}.admin-header{background:white;border-bottom:1px solid var(--line);padding:1.2rem 2rem;display:flex;justify-content:space-between;align-items:center;gap:1rem}.admin-header h1{font-size:1.35rem;margin:0}.admin-header .actions{display:flex;gap:.6rem;align-items:center}.admin-content{padding:2rem;max-width:1500px}.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:1.5rem}.stat-label{font-size:.875rem;color:var(--muted);margin:0}.stat-number{font-size:2rem;line-height:1.4;font-weight:800}.toolbar{display:flex;gap:.7rem;align-items:center;flex-wrap:wrap;margin-bottom:1rem}.toolbar input{flex:1;min-width:180px}.toolbar select{width:auto;min-width:130px}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:12px}table{width:100%;border-collapse:collapse;font-size:.9rem;text-align:left}th,td{padding:1rem;border-bottom:1px solid var(--line);vertical-align:top}th{font-size:.875rem;background:#f7f9fc;color:var(--muted);white-space:nowrap}tr:last-child td{border-bottom:0}.cell-content{min-width:230px;max-width:400px}.cell-content p{margin-bottom:.3rem}.table-actions{display:flex;gap:.4rem;white-space:nowrap}.table-actions button{min-height:36px;font-size:.875rem;padding:.3rem .7rem}.app-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.app-card{display:flex;flex-direction:column}.app-card .button{margin-top:auto}.file-list{list-style:none;padding:0;margin:1rem 0}.file-list li{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--line)}.file-list .actions{display:flex;gap:.5rem;flex-shrink:0}dialog{border:1px solid var(--line);border-radius:18px;padding:0;width:min(780px,calc(100vw - 2rem));max-height:90vh;color:var(--ink)}dialog::backdrop{background:#0b1c3c88;backdrop-filter:blur(3px)}.dialog-head{padding:1.2rem 1.5rem;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.dialog-head h2{margin:0}.dialog-body{padding:1.5rem}.dialog-foot{border-top:1px solid var(--line);padding:1rem 1.5rem;display:flex;justify-content:flex-end;gap:.7rem}.dialog-head button{min-height:36px}.badge{display:inline-flex;align-items:center;justify-content:center;background:#c73c55;color:white;border-radius:20px;padding:0 .4rem;min-width:23px;font-size:.8rem}.preview-wrap{height:75vh;width:100%;border:0;background:#e5eaf2}.toast{position:fixed;bottom:1.5rem;left:50%;transform:translateX(-50%);background:#182842;color:white;padding:.8rem 1.2rem;border-radius:10px;max-width:90vw;z-index:50;box-shadow:0 8px 30px #0002}.inline-links{display:flex;gap:1rem;flex-wrap:wrap}.file-size{white-space:nowrap}.grow{flex:1}.break{overflow-wrap:anywhere}.preview-page{background:#dfe5ef}.preview-toolbar{position:sticky;top:0;background:white;padding:.7rem 1rem;display:flex;justify-content:center;align-items:center;gap:.7rem;z-index:2;flex-wrap:wrap}.pdf-container{padding:1rem;display:flex;justify-content:center}.pdf-container canvas{max-width:100%;box-shadow:0 4px 20px #18284230}.password-box{max-width:550px}@media(max-width:950px){.stat-grid,.app-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-layout{grid-template-columns:190px minmax(0,1fr)}.admin-content{padding:1.25rem}.admin-header{padding:1rem 1.25rem}}@media(max-width:650px){.topbar-inner{padding:.8rem 1rem;min-height:66px}.topnav{gap:.8rem;font-size:.875rem}.container{padding:1.2rem 1rem}.hero{padding:1.4rem 0 .8rem}.hero p{font-size:1rem}.grid,.form-grid{grid-template-columns:1fr}.filters{grid-template-columns:1fr 1fr;gap:.75rem}.panel{padding:1.1rem;border-radius:12px}.span2{grid-column:auto}.footer{padding:1rem;flex-direction:column}.file-list li{align-items:flex-start;flex-direction:column}.admin-layout{display:block}.sidebar{position:static;height:auto;padding:.8rem 1rem}.sidebar .brand{padding:0}.sidebar p,.sidebar-foot{display:none}.sidebar nav{display:flex;overflow:auto;margin-top:.8rem}.sidebar nav button{white-space:nowrap;min-height:40px;padding:.4rem .7rem}.admin-header{flex-wrap:wrap}.admin-header .actions{font-size:.875rem}.admin-content{padding:1rem}.stat-grid,.app-grid{grid-template-columns:1fr}.toolbar select{flex:1}.login{margin:4vh 1rem}.dialog-head,.dialog-body{padding:1rem}.searchbar{gap:.5rem}.preview-toolbar button{min-height:38px;padding:.35rem .6rem}}
