:root{--blue:#225e99;--navy:#183d65;--ink:#253d56;--muted:#718398;--line:#e0e9f2;--soft:#f3f7fb;--pale:#eaf3fb;--gold:#b88c4c;font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",system-ui,sans-serif;font-size:16px;color:var(--ink);background:#f7f9fc}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button{border:0;background:none;color:inherit}button,a,input,textarea{outline-offset:4px}button:focus-visible,a:focus-visible{outline:3px solid #73a9df}a{color:inherit;text-decoration:none}[hidden]{display:none!important}h1,h2,h3,p{margin:0}small{font-size:.875rem}button{font-size:.94rem}input,textarea{width:100%;border:1px solid #d4e0eb;background:#fff;border-radius:9px;padding:12px 14px;color:var(--ink);min-width:0}input:focus,textarea:focus{outline:2px solid #91b9dd;border-color:transparent}textarea{line-height:1.8;resize:vertical}label{display:block;font-size:.94rem;font-weight:500;line-height:1.7}label>input,label>textarea{display:block;margin-top:8px}label small{font-weight:400;color:var(--muted);margin-left:6px}.primary{background:var(--blue);color:white;padding:12px 20px;border-radius:9px;box-shadow:0 4px 10px #225e9915;font-weight:500}.primary:hover{background:#184c7e}.quiet{border:1px solid var(--line);border-radius:8px;background:white;padding:10px 16px}.quiet:hover{background:var(--soft)}.text-button{color:var(--blue);padding:6px 0;font-size:.875rem}.full{width:100%}.muted{color:var(--muted);font-size:.94rem;line-height:1.8}.error{font-size:.9rem;line-height:1.7;color:#ad3548;min-height:0}.error:not(:empty){padding:10px 12px;background:#fff2f3;border-radius:8px}.icon-button{width:34px;height:34px;border-radius:8px;display:inline-grid;place-items:center;font-size:1.4rem;flex:none}.icon-button:hover{background:var(--pale)}.eyebrow{display:block;letter-spacing:.12em;font-size:.8rem;color:#5b7d9c;font-weight:500}.wordmark{display:flex;align-items:center;gap:11px;font-size:1.35rem;font-family:"Microsoft YaHei",sans-serif;font-weight:700;letter-spacing:.05em;color:var(--navy)}.brand-icon{background:var(--blue);color:white;display:grid;place-items:center;width:38px;height:40px;border-radius:11px 11px 11px 3px;font-size:2rem;font-weight:400}.loading{height:100vh;display:grid;place-items:center;color:var(--muted)}.auth{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr;background:#fff}.auth-intro{position:relative;overflow:hidden;background:linear-gradient(135deg,#e9f4ff,#e7f0f8 65%,#f6fbff);padding:8vh 9vw;display:flex;flex-direction:column;align-items:flex-start}.auth-intro>.eyebrow{margin-top:12vh}.auth-intro h1{font-family:"Songti SC","Noto Serif CJK SC",SimSun,serif;font-size:clamp(2rem,3.2vw,3.2rem);line-height:1.65;font-weight:500;letter-spacing:.05em;margin:20px 0}.auth-intro p{line-height:2;color:#67849f}.auth-intro small{margin-top:auto;padding-top:140px;color:#7791a7}.auth-side{display:grid;place-items:center;padding:40px}.login-panel{width:100%;max-width:360px;display:grid;gap:22px}.login-panel h2{font-size:1.8rem;color:var(--navy);font-weight:600}.login-panel h2+.muted{margin-top:-12px}.auth-note{color:var(--muted);font-size:.875rem;text-align:center;line-height:1.8}.mini-brand{display:none;color:var(--blue);font-size:1.2rem;margin-bottom:18px}.link-button{text-align:center}.book-art{position:absolute;width:170px;height:115px;right:-18px;bottom:55px;border:1px solid #b4cde3;border-radius:70% 5% 5% 5%;transform:rotate(-18deg);background:#ffffff66;box-shadow:-14px 15px 0 #ffffff4d,-28px 30px 0 #ffffff3b}.book-art span{position:absolute;left:65px;top:35px;color:#759bbd;font-family:serif;letter-spacing:.2em}.book-art i{position:absolute;height:170px;width:1px;left:-60px;top:-30px;background:#aec7de;transform:rotate(28deg)}.app{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:34px 20px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow-y:auto}.sidebar .wordmark{padding-left:7px}.side-sub{font-size:.8rem;color:#8ba0b3;margin:13px 0 34px 9px;letter-spacing:.1em}nav{display:flex;flex-direction:column;gap:6px}.nav-item{display:flex;align-items:center;gap:13px;text-align:left;width:100%;padding:12px 14px;color:#61758a;border-radius:9px;min-height:46px;font-size:.94rem;margin-bottom:3px}.nav-item span{font-size:1.15rem;width:20px;text-align:center;font-weight:400;color:#7895ac}.nav-item b{margin-left:auto;font-size:.8rem;font-weight:400;min-width:22px;text-align:right;color:#8aa0b5}.nav-item.active{background:#eaf3fc;color:var(--blue);font-weight:600}.nav-item.active span,.nav-item.active b{color:var(--blue)}.nav-item:hover{background:var(--soft)}.nav-label{font-size:.75rem;letter-spacing:.1em;color:#94a4b4;margin:27px 14px 13px}.trash-nav{margin-top:20px}.side-footer{margin-top:auto;padding:32px 4px 4px;display:flex;align-items:center;gap:10px}.side-footer strong{display:block;font-size:.85rem;font-weight:500}.side-footer small{display:block;color:#90a0ae;font-size:.78rem;margin-top:5px;max-width:120px;overflow:hidden;text-overflow:ellipsis}.privacy-icon{color:var(--blue);font-size:1.6rem}.side-footer button{margin-left:auto;font-size:1.1rem;color:#8999aa}main{min-width:0}.topbar{height:84px;background:#ffffffd9;border-bottom:1px solid var(--line);padding:0 44px;display:flex;align-items:center;justify-content:space-between;gap:14px}.topbar>span{color:#8a9bac;font-size:.85rem}.topbar>div{display:flex;gap:10px}.main-content{max-width:1460px;margin:0 auto;padding:32px 44px}.hero{min-height:210px;border:1px solid #dce9f4;border-radius:16px;background:linear-gradient(110deg,#e5f0fb,#f4f9ff);padding:36px 40px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between}.hero h1{font-family:"Songti SC","Noto Serif CJK SC",SimSun,serif;color:var(--navy);font-size:clamp(1.8rem,2.5vw,2.4rem);letter-spacing:.06em;font-weight:500;margin:14px 0 16px}.hero p{color:#7891a8;font-size:.92rem;line-height:1.7}.hero-decoration{width:175px;height:160px;position:relative;color:#7da4c7;flex:none;margin-right:10px}.hero-decoration>span{position:absolute;font-size:7rem;top:12px;left:40px;transform:rotate(-20deg);color:#9fbed9}.orbit{position:absolute;width:148px;height:148px;border:1px solid #cfdfed;border-radius:50%;top:5px;left:10px}.hero-decoration i{position:absolute;background:#dbc49d;width:8px;height:8px;border-radius:50%;right:28px;top:17px}.workspace{padding-top:36px}.section-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px;gap:12px}.section-top h2{font-size:1.35rem;font-weight:600;color:var(--navy)}.section-top p{font-size:.8rem;color:#8b9bac;margin-top:8px}.view-note{font-size:.8rem;color:#93a2b0}.search-bar{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:6px 7px 6px 16px;margin-bottom:24px}.search-bar>span{font-size:1.7rem;color:#8099af}.search-bar input{border:0;padding:8px 0;background:transparent;font-size:.94rem}.search-bar input:focus{outline:0}.search-bar:focus-within{outline:2px solid #91b9dd}.search-button{background:#edf4fb;color:var(--blue);padding:10px 20px;border-radius:7px;flex:none}.filter-line{display:flex;align-items:center;justify-content:space-between;margin:-8px 0 16px;color:var(--muted);font-size:.875rem}.quote-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.quote-card{background:white;border:1px solid var(--line);border-radius:12px;padding:25px 26px 17px;position:relative;display:flex;flex-direction:column;min-height:245px;transition:box-shadow .2s,border-color .2s}.quote-card:hover{box-shadow:0 8px 24px #1a42670a;border-color:#c3d7e8}.card-top{display:flex;justify-content:space-between;align-items:start;gap:12px}.tags{display:flex;gap:6px;flex-wrap:wrap}.tag{font-size:.75rem;color:#6083a3;background:#f0f6fc;padding:4px 10px;border-radius:5px;font-weight:400;line-height:1.5}.tag:nth-child(3n+2){color:#8e795a;background:#f7f3ec}.tag:nth-child(3n+3){color:#5a8b85;background:#eff7f5}.favorite-button{color:#acbccc;line-height:1;font-size:1.4rem;padding:0 0 0 8px}.favorite-button.on{color:#ba975b}.quote-title{font-size:1rem;font-weight:600;color:var(--navy);margin-top:20px;line-height:1.7;word-break:break-word}.quote-text{font-family:"Songti SC","Noto Serif CJK SC",SimSun,serif;font-size:1.13rem;line-height:1.9;color:#3d5269;white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;margin:15px 0 20px}.card-source{font-size:.75rem;color:#96a6b5;margin-top:auto;line-height:1.7;overflow-wrap:anywhere}.card-bottom{border-top:1px solid #edf2f7;margin-top:16px;padding-top:13px;display:flex;justify-content:space-between;align-items:center;gap:10px}.card-bottom>div{display:flex;gap:14px}.card-bottom button{color:#6f8aa2;font-size:.8rem;padding:3px 0}.card-bottom button:hover{color:var(--blue)}.card-bottom .copy{color:var(--blue)}.empty{text-align:center;background:white;border:1px dashed #cddce9;border-radius:12px;padding:52px 25px}.empty-icon{display:grid;place-items:center;margin:0 auto 20px;font-size:2.6rem;color:#96b6d0;background:#f0f7fc;border-radius:50%;width:78px;height:78px}.empty h3{font-size:1.2rem;font-weight:500;color:var(--navy);margin-bottom:14px}.empty p{max-width:380px;margin:0 auto 24px;font-size:.9rem;line-height:1.9;color:#8b9bac}.pagination{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:28px;font-size:.875rem;color:var(--muted)}.main-footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:38px;padding-top:20px;color:#9cabb9;font-size:.75rem;letter-spacing:.08em}dialog{width:min(680px,calc(100% - 30px));border:1px solid var(--line);border-radius:16px;box-shadow:0 24px 100px #16345530;padding:30px;max-height:92vh;color:var(--ink)}dialog::backdrop{background:#18354e55;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}.dialog-heading h2{font-size:1.4rem;color:var(--navy);margin-top:7px}#quote-form>label,#import-form>label{margin-bottom:18px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:24px}.category-heading{display:flex;justify-content:space-between;align-items:center;font-size:.94rem}.hint{font-size:.8rem;color:var(--muted);line-height:1.9;margin:4px 0 12px}.category-checks{display:flex;gap:9px;flex-wrap:wrap}.category-checks label{font-size:.85rem;position:relative}.category-checks input{width:16px;display:inline-block;margin:0 5px 0 0;vertical-align:middle;accent-color:var(--blue)}.category-checks label{padding:7px 10px;background:var(--soft);border-radius:6px}.dialog-actions{border-top:1px solid var(--line);margin-top:25px;padding-top:20px;display:flex;gap:12px;justify-content:flex-end}.detail-content{font-family:"Songti SC","Noto Serif CJK SC",SimSun,serif;white-space:pre-wrap;overflow-wrap:anywhere;font-size:1.25rem;line-height:2;margin:28px 0}#detail-title{font-size:1.5rem;line-height:1.8;margin-bottom:12px;overflow-wrap:anywhere}#detail-source{font-size:.875rem}#delete-dialog{max-width:440px}.or-line{font-size:.8rem;color:var(--muted);text-align:center;margin:20px 0;border-top:1px solid var(--line);padding-top:20px}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);padding:13px 24px;border-radius:10px;background:#1b4266;color:#fff;z-index:1000;box-shadow:0 8px 28px #183d6530;max-width:90vw;font-size:.9rem;line-height:1.7}#list-error{margin-bottom:20px}
@media(min-width:1600px){.quote-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1100px){.app{grid-template-columns:210px minmax(0,1fr)}.sidebar{padding:28px 14px 16px}.topbar{padding:0 28px}.main-content{padding:26px 28px}.hero{padding:30px}.hero-decoration{width:115px;transform:scale(.8)}.topbar>span{display:none}.topbar{justify-content:flex-end}.quote-card{padding:22px 20px 16px}}@media(max-width:780px){.app{display:block}.sidebar{position:static;width:100%;height:auto;padding:18px 20px 10px;border-right:0;border-bottom:1px solid var(--line)}.sidebar .wordmark{font-size:1.15rem;padding:0}.brand-icon{width:32px;height:34px;font-size:1.6rem}.side-sub,.nav-label,.side-footer{display:none}.sidebar nav{margin-top:18px;display:flex;flex-direction:row;gap:6px;overflow-x:auto;padding-bottom:4px}#category-nav{display:contents}.nav-item{flex:none;width:auto;gap:7px;padding:9px 12px;min-height:38px;margin:0;font-size:.85rem;white-space:nowrap}.nav-item span{display:none}.nav-item b{font-size:.75rem;margin-left:3px;min-width:0}.topbar{height:70px;padding:0 20px}.topbar>div{width:100%;justify-content:space-between}.topbar button{padding:10px 12px;font-size:.85rem}.main-content{padding:20px}.hero{min-height:175px;padding:26px 22px}.hero h1{font-size:1.7rem}.hero .eyebrow{font-size:.65rem}.hero-decoration{display:none}.hero p{font-size:.8rem}.workspace{padding-top:28px}.quote-grid{grid-template-columns:1fr;gap:16px}.section-top{margin-bottom:20px}.view-note{display:none}.quote-card{min-height:220px;padding:24px}.quote-text{font-size:1.15rem}.quote-title{font-size:1.05rem}.main-footer{font-size:.7rem}.auth{grid-template-columns:1fr}.auth-intro{display:none}.auth-side{padding:35px 25px}.mini-brand{display:block}.login-panel{max-width:380px}.field-row{grid-template-columns:1fr;gap:18px}dialog{padding:24px 20px}.detail-content{font-size:1.15rem}.dialog-heading{margin-bottom:22px}#logout-mobile{display:inline-block!important}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
select{font:inherit;width:100%;color:var(--ink);margin-top:8px;padding:12px 36px 12px 14px;border:1px solid #d4e0eb;border-radius:9px;appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%236d8295' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center}.member-section{font-size:1rem;margin:28px 0 12px;font-weight:600}.member-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.member-row strong{font-size:.94rem;font-weight:500;display:block;overflow-wrap:anywhere}.member-row small{display:block;color:var(--muted);font-size:.8rem;margin-top:7px}.member-row .quiet{font-size:.8rem;flex:none}#invite-form{margin-top:22px}#invite-result{margin-top:22px;padding:16px;background:var(--soft);border-radius:9px}#invite-link{font-size:.8rem}#members-error{margin-top:16px}@media(max-width:780px){.topbar{height:auto;min-height:70px;padding:12px 20px}.topbar>div{flex-wrap:wrap;gap:8px;justify-content:flex-start}.topbar button{font-size:.8rem;padding:8px 10px}}
