*{box-sizing:border-box} :root{--paper:#f6f5f0;--white:#fffefa;--ink:#25382c;--muted:#7b8178;--line:#e3e5da;--green:#344c3b;--lime:#dde9b7;--orange:#a8663d;--soft:#eceee5;--red:#a34038} body{margin:0;background:var(--paper);color:var(--ink);font-family:"Microsoft YaHei UI","PingFang SC",system-ui,sans-serif;font-size:14px;line-height:1.6} button,input{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.45}button,a,input{outline-offset:4px}button:focus-visible,a:focus-visible{outline:2px solid var(--green)}button{border:1px solid var(--line);border-radius:12px;padding:11px 18px;background:var(--white);color:var(--ink);transition:background .12s}button:hover:not(:disabled){background:var(--soft)}button.primary{background:var(--green);border-color:var(--green);color:white}button.primary:hover:not(:disabled){background:#243e2d}button.ghost{background:transparent;border-color:transparent}button.small{padding:6px 12px;border-radius:8px;font-size:12px}button.danger{color:var(--red)}h1,h2,h3,p{margin:0}h1{font-size:32px;line-height:1.4;letter-spacing:-1px;font-weight:650}h2{font-size:20px;font-weight:600}h3{font-size:16px;font-weight:600}small,.muted{color:var(--muted)}.loading{padding:80px;text-align:center;color:var(--muted)}.shell{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:236px;padding:32px 22px 22px;display:flex;flex-direction:column;border-right:1px solid var(--line);background:#f0f1e9}.brand{display:flex;align-items:center;gap:12px;padding:0 10px 34px}.brand-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--green);color:white;font-size:25px;font-family:serif}.brand strong{font-size:21px;letter-spacing:2px}.brand small{display:block;font-size:10px;letter-spacing:1px;margin-top:1px}.nav-caption{font-size:11px;letter-spacing:2px;color:var(--muted);padding:16px 12px 10px}.nav{display:flex;align-items:center;width:100%;text-align:left;gap:12px;border:0;background:transparent;padding:12px;border-radius:11px;margin:3px 0;color:#687363}.nav.active{background:#e0e6d5;color:var(--ink);font-weight:600}.nav span:first-child{display:grid;place-items:center;width:24px;height:24px;border:1px solid #c8cfbe;border-radius:7px;font-size:12px}.nav.active span:first-child{background:var(--green);border-color:var(--green);color:white}.sidebar-note{padding:20px 12px;color:#89917f;font-size:12px;line-height:1.9;margin-top:18px}.user-bar{margin-top:auto;border-top:1px solid var(--line);padding:20px 8px 0;display:flex;align-items:center;gap:9px}.avatar{width:30px;height:30px;border-radius:50%;background:#dfe5d5;display:grid;place-items:center}.user-name{max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-bar button{margin-left:auto}.main{margin-left:236px;width:calc(100% - 236px);padding:34px 5.2vw 56px;max-width:1600px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:42px;font-size:12px;color:var(--muted)}.tag{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:99px;padding:5px 11px;font-size:11px}.dot{width:6px;height:6px;border-radius:50%;background:#65845c;display:inline-block}.dot.pending{background:#bf8851}.dot.error{background:var(--red)}.eyebrow{color:var(--orange);font-size:11px;letter-spacing:2px;margin-bottom:12px}.lead{margin-top:12px;color:var(--muted);max-width:620px}.hero-title{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:30px}.goal-card{background:var(--white);border:1px solid var(--line);border-radius:20px;overflow:hidden;display:grid;grid-template-columns:1fr 240px;margin-bottom:24px;box-shadow:0 5px 24px #25382c03}.goal-copy{padding:30px 34px}.goal-letter{font-family:Georgia,serif;font-size:13px;border:1px solid var(--line);padding:5px 9px;border-radius:7px;margin-right:9px}.goal-copy h2{margin:14px 0 7px}.goal-copy p{color:var(--muted);font-size:13px}.goal-copy .actions{margin-top:25px}.goal-number{background:#eef1e5;padding:30px;display:flex;flex-direction:column;justify-content:center}.big-number{font-size:56px;font-family:Georgia,serif;line-height:1.15;margin:9px 0}.goal-number small{font-size:12px}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.section-line{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:34px 0 15px}.section-line small{font-size:12px}.round-trail{display:flex;gap:12px;overflow-x:auto;padding-bottom:10px}.trail-item{min-width:150px;padding:17px 20px;background:var(--white);border:1px solid var(--line);border-radius:13px}.trail-item strong{font-family:Georgia,serif;font-size:29px;display:block;margin:6px 0}.empty{padding:34px;border:1px dashed #cdd3c3;border-radius:15px;color:var(--muted);text-align:center}.hint-row{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:30px}.hint-row div{padding:18px 0;border-top:1px solid var(--line)}.hint-row b{font-size:12px;display:block;margin-bottom:6px}.hint-row p{font-size:12px;color:var(--muted)}.study-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}.study-header h1{font-size:23px;letter-spacing:0}.study-header p{font-size:12px;color:var(--muted);margin-top:5px}.progress-track{height:5px;border-radius:5px;background:#e6e8dd;overflow:hidden;margin:12px 0}.progress-fill{height:100%;background:var(--green);transition:width .12s}.progress-caption{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}.progress-caption strong{color:var(--ink);font-weight:500}.word-card{margin:24px 0 18px;min-height:380px;background:var(--white);border:1px solid var(--line);border-radius:22px;padding:40px 45px 24px;text-align:center;display:flex;flex-direction:column;align-items:center}.word-caption{font-size:11px;letter-spacing:2px;color:var(--muted);margin-bottom:23px}.word{font:normal 66px/1.18 Georgia,"Times New Roman",serif;color:#213e2d;overflow-wrap:anywhere;max-width:100%;letter-spacing:-1px}.phonetic{font:17px/1.7 "Segoe UI",sans-serif;color:var(--muted);margin-top:13px;white-space:pre-line}.answer{margin-top:22px;border-top:1px solid var(--line);padding:21px 5px 3px;width:100%;max-width:650px;text-align:center;white-space:pre-line;line-height:1.9;font-size:17px;overflow-wrap:anywhere}.answer .pos{font-size:13px;color:var(--orange);margin-bottom:8px;display:block}.answer-hidden{margin-top:auto;padding-top:23px;color:#a2a797;font-size:12px}.keys{display:grid;grid-template-columns:1fr 1fr 1fr;gap:13px}.key-button{display:flex;justify-content:center;align-items:center;gap:13px;padding:17px;border-radius:13px;font-size:15px}.key-button.known{background:var(--green);border-color:var(--green);color:white}.key-button.unknown{background:#ece5da;border-color:#ece5da;color:#7d5535}.key-button.skip{background:transparent}.key-button kbd{border:1px solid currentColor;border-radius:5px;min-width:23px;padding:0 5px;opacity:.65;font:12px/22px system-ui}.study-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:20px;font-size:12px;color:var(--muted)}.study-stats{display:flex;gap:18px}.study-stats strong{color:var(--ink);font-weight:500}.saved-note{text-align:center;color:var(--muted);font-size:11px;margin-top:25px}.book-list{display:flex;flex-direction:column;gap:12px}.book-row{display:flex;align-items:center;gap:20px;padding:22px 24px;background:var(--white);border:1px solid var(--line);border-radius:15px}.book-count{min-width:73px;font:30px/1.2 Georgia,serif}.book-count small{font:11px system-ui;display:block;margin-top:4px}.book-info{flex:1;min-width:0}.book-info h3{overflow-wrap:anywhere}.book-info p{font-size:11px;color:var(--muted);margin-top:7px}.filters{display:flex;gap:8px;margin-bottom:20px}.filters button.selected{background:var(--green);color:white;border-color:var(--green)}.panel{border:1px solid var(--line);border-radius:18px;background:var(--white);padding:28px;margin-bottom:20px}.panel p{color:var(--muted);font-size:13px;margin-top:10px}.panel .actions{margin-top:20px}.complete{padding:45px 30px;text-align:center}.complete-mark{width:60px;height:60px;border-radius:50%;display:grid;place-items:center;background:var(--lime);margin:0 auto 22px;font-size:30px}.complete h1{font-size:32px}.complete-numbers{font:54px Georgia,serif;margin:25px 0}.complete-numbers span{color:#a5ae97;margin:0 22px;font-size:32px}.complete .actions{justify-content:center;margin-top:25px}.auth{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}.auth-intro{background:var(--green);padding:8vw;display:flex;flex-direction:column;justify-content:center;color:var(--white);position:relative}.auth-intro .brand{padding:0;margin-bottom:70px}.auth-intro .brand-icon{background:var(--lime);color:var(--ink)}.auth-intro .brand small{color:#b7c6ab}.auth-intro h1{font-size:48px;font-weight:500;line-height:1.6;letter-spacing:1px}.auth-intro p{margin-top:25px;color:#becbb7;font-size:14px}.auth-intro .auth-count{margin-top:65px;padding-top:25px;border-top:1px solid #ffffff25;font-size:13px;color:#becbb7}.auth-count b{font:32px Georgia,serif;color:var(--lime);margin-right:10px}.auth-form-wrap{display:flex;align-items:center;justify-content:center;padding:40px}.auth-form{width:100%;max-width:340px}.auth-form h2{font-size:27px}.auth-form .lead{font-size:13px;margin-bottom:32px}.field{display:block;margin:18px 0;font-size:12px}.field input{display:block;margin-top:8px;width:100%;padding:13px 15px;border:1px solid #d9dfd0;border-radius:10px;background:var(--white);color:var(--ink)}.auth-form button[type=submit]{width:100%;margin-top:12px}.auth-switch{margin-top:18px;text-align:center;font-size:12px;color:var(--muted)}.auth-switch button{font-size:12px;padding:4px 8px;color:var(--green)}.form-error{min-height:24px;color:var(--red);font-size:12px}.auth-foot{margin-top:45px;font-size:11px;color:var(--muted);text-align:center}.connection-warning{padding:12px 16px;border-radius:10px;background:#f8e9d5;color:#89582d;font-size:12px;margin:15px 0}.connection-warning button{margin-left:8px}dialog{border:1px solid var(--line);border-radius:18px;padding:30px;background:var(--white);color:var(--ink);max-width:560px;width:calc(100% - 36px);max-height:85vh}dialog::backdrop{background:#1c2d2455;backdrop-filter:blur(3px)}dialog h2{margin-bottom:10px}dialog p{font-size:13px;color:var(--muted)}dialog .actions{justify-content:flex-end;margin-top:24px}.word-table{max-height:48vh;overflow:auto;margin-top:20px}.word-table table{border-collapse:collapse;width:100%;font-size:12px}.word-table td,.word-table th{padding:10px 8px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}.word-table th{position:sticky;top:0;background:var(--white)}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:12px 22px;border-radius:12px;box-shadow:0 8px 25px #0002;z-index:20;font-size:13px;max-width:90vw;display:none}#toast.show{display:block}.table-search{width:100%;margin-top:16px;padding:10px;border:1px solid var(--line);border-radius:8px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:1500px){.main{padding-left:80px;padding-right:80px}}@media(max-width:1000px){.sidebar{width:190px;padding:26px 14px}.main{margin-left:190px;width:calc(100% - 190px);padding:28px 30px}.goal-card{grid-template-columns:1fr 175px}.goal-copy{padding:25px}.goal-number{padding:23px}.word{font-size:58px}.word-card{padding:35px 25px}.hint-row{gap:15px}.book-row{padding:19px;gap:13px}.book-row .actions{flex-direction:column;gap:5px}.auth-intro{padding:7vw}.auth-intro h1{font-size:39px}}@media(max-width:700px){.shell{display:block}.sidebar{position:relative;width:100%;padding:15px 18px;display:block;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:0 0 12px;gap:9px}.brand-icon{width:32px;height:32px;font-size:21px;border-radius:10px}.brand strong{font-size:17px}.brand small,.sidebar-note,.nav-caption{display:none}.sidebar nav{display:flex;gap:5px}.nav{padding:8px;font-size:12px;justify-content:center;gap:6px;margin:0}.nav span:first-child{width:20px;height:20px;font-size:10px}.user-bar{position:absolute;top:16px;right:15px;margin:0;border:0;padding:0;font-size:11px}.user-bar .avatar{display:none}.user-name{max-width:80px}.main{margin:0;width:100%;padding:22px 19px 35px}.topbar{margin-bottom:25px;font-size:10px}.hero-title{margin-bottom:20px;display:block}.hero-title .tag{margin-top:15px}h1{font-size:27px}.goal-card{grid-template-columns:1fr 115px;border-radius:16px}.goal-copy{padding:23px 18px}.goal-copy h2{font-size:17px}.goal-copy p{font-size:12px}.goal-number{padding:15px}.big-number{font-size:39px}.goal-number small{font-size:10px}.goal-letter{font-size:11px}.hint-row{grid-template-columns:1fr;gap:0}.hint-row div{padding:12px 0}.study-header{gap:9px}.study-header h1{font-size:19px}.study-header .actions button{padding:6px 9px;font-size:11px}.word-card{min-height:325px;padding:26px 18px 20px;margin-top:19px}.word{font-size:48px}.phonetic{font-size:15px}.answer{font-size:15px}.keys{gap:7px}.key-button{padding:15px 5px;font-size:13px;gap:7px}.key-button kbd{min-width:20px;font-size:10px}.study-footer{align-items:flex-start;gap:5px}.study-stats{gap:9px;font-size:11px}.saved-note{margin-top:18px}.book-row{flex-wrap:wrap;gap:13px;padding:17px}.book-row .actions{flex-direction:row;margin-left:86px}.book-info h3{font-size:14px}.book-count{font-size:27px}.auth{display:block}.auth-intro{padding:26px 26px 32px}.auth-intro .brand{margin-bottom:22px}.auth-intro h1{font-size:29px;line-height:1.45}.auth-intro p{font-size:12px;margin-top:12px}.auth-intro .auth-count{display:none}.auth-form-wrap{padding:35px 26px}.auth-foot{margin-top:26px}.complete{padding:25px 10px}.complete-numbers{font-size:43px}.complete-numbers span{margin:0 12px}.panel{padding:22px}.section-line h2{font-size:18px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* 翻词只浏览，按 1/2 才修改判断。 */
.word-card{min-height:300px;padding-top:27px}.word-caption{margin-bottom:15px}
.word-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 17px}.word-navigation button{min-width:130px;padding:9px 16px;background:transparent}.choice-badge{font-size:12px;color:var(--muted)}.choice-badge.known{color:var(--green)}.choice-badge.unknown{color:var(--orange)}
.jump-row{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:17px;font-size:11px;color:var(--muted)}.jump-row input{width:85px;padding:5px 8px;border:1px solid var(--line);border-radius:7px;background:var(--white);color:var(--ink);font:inherit}.jump-row button{padding:4px 9px;font-size:11px}
@media(max-width:700px){.word-navigation{gap:5px}.word-navigation button{min-width:105px;padding:8px;font-size:12px}.choice-badge{font-size:11px}.jump-row{flex-wrap:wrap;gap:7px}.jump-row span{width:100%;text-align:center}.word-card{min-height:280px}}

@media(min-width:701px) and (max-height:850px){.main{padding-top:20px;padding-bottom:20px}.topbar{margin-bottom:22px}.study-header{margin-bottom:12px}.word-card{min-height:235px;padding:20px 30px 16px;margin-top:16px;margin-bottom:16px}.word-caption{margin-bottom:10px}.word{font-size:54px}.phonetic{font-size:15px;margin-top:6px}.answer-hidden{padding-top:14px}.word-navigation{margin-bottom:12px}.study-footer{margin-top:12px}.jump-row{margin-top:10px}.saved-note{margin-top:12px}}

[hidden]{display:none!important}.home-extras{display:flex;flex-direction:column;align-items:flex-end;gap:9px}.word-card{position:relative}.word-visuals{display:flex;align-items:center;justify-content:center;gap:28px;width:100%}.word-reading{min-width:0;flex:1}.word-visuals.has-image{max-width:800px}.mnemonic-frame{flex:0 0 215px;width:215px;height:215px;display:grid;place-items:center;overflow:hidden;border-radius:16px;background:#faf9f4;color:var(--muted);font-size:11px}.mnemonic-frame img{width:100%;height:100%;object-fit:contain}.mnemonic-frame.image-loading:after{content:'图片加载中…';position:absolute;font-size:11px;color:var(--muted)}.image-gallery-dialog{max-width:940px}.mnemonic-gallery{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:22px}.mnemonic-gallery figure{margin:0;min-width:0}.mnemonic-gallery figcaption{font:18px/1.5 Georgia,serif;margin-bottom:8px;text-align:center}.mnemonic-gallery img{display:block;width:100%;aspect-ratio:1;object-fit:contain;background:#faf9f4;border-radius:12px}
@media(min-width:701px) and (max-height:850px){.mnemonic-frame{width:170px;height:170px;flex-basis:170px}}
@media(max-width:700px){.home-extras{align-items:flex-start;margin-top:12px}.home-extras .tag{margin-top:0}.word-visuals{gap:12px}.mnemonic-frame{width:125px;height:125px;flex-basis:125px;border-radius:10px}.mnemonic-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}}

/* 学习页头部只保留进度，保存状态与次要操作放在侧栏。 */
.sidebar-bottom{margin-top:auto}.sidebar-status{padding:16px 5px 0}.sidebar-status .tag{max-width:100%;white-space:normal;font-size:10px}.sidebar-bottom .user-bar{margin-top:17px}.sidebar-study-actions{display:flex;flex-direction:column;gap:7px;padding:0 4px}.sidebar-study-actions button{font-size:11px}.main.study-main{padding-top:16px}.study-progress{margin:0 0 14px}.study-progress .progress-caption{line-height:20px}.study-progress .progress-track{margin:6px 0 0}.study-main .word-card{margin-top:0}#answer-region:empty{display:none}
@media(max-width:700px){.sidebar-bottom{margin:0}.sidebar-status{padding:5px 0 0}.sidebar-status .tag{border:0;padding:0;font-size:9px}.sidebar-study-actions{flex-direction:row;gap:5px;padding:7px 0 0}.sidebar-study-actions button{padding:4px 8px}.sidebar-bottom .user-bar{margin-top:0}.main.study-main{padding-top:12px}}

/* 鼠标停留时保持判断按钮原来的底色和文字颜色。 */
.key-button.known:hover:not(:disabled){background:var(--green);border-color:var(--green);color:#fff}
.key-button.unknown:hover:not(:disabled){background:#ece5da;border-color:#ece5da;color:#7d5535}

/* 助记图在单词正上方，图片、单词、音标居中排列。 */
.word-visuals{flex-direction:column;gap:12px}.word-reading{flex:none;width:100%;text-align:center}.mnemonic-frame{flex:0 0 auto;position:relative}

.display-settings{border:0;padding:0 10px;margin:24px 0 0;display:grid;gap:9px}.display-settings legend{padding:0;margin-bottom:11px;color:var(--muted);font-size:11px}.display-settings label{display:flex;align-items:center;gap:9px;font-size:13px;cursor:pointer;white-space:nowrap}.display-settings input{width:15px;height:15px;margin:0;accent-color:var(--green);cursor:pointer}.word-pos{font-size:14px;color:var(--orange);margin-top:8px;white-space:pre-line}.display-settings #retry-preferences{margin-top:3px;font-size:11px;padding:5px 8px;color:var(--red)}
@media(max-width:700px){.display-settings{margin:10px 0 0;padding:0;grid-template-columns:repeat(4,1fr);gap:5px}.display-settings legend{margin-bottom:6px;font-size:10px}.display-settings label{font-size:11px;gap:5px}.display-settings input{width:13px;height:13px}.display-settings #retry-preferences{grid-column:1/-1}}

/* 登录页保持简洁，其余页面减少重复标题和空白。 */
.auth{display:grid;grid-template-columns:minmax(0,340px);justify-content:center;align-content:center;padding:30px 20px}.auth-form-wrap{width:100%;padding:0}.auth-form{max-width:none}.auth-form .brand{padding:0;margin-bottom:28px;justify-content:center}.home-extras{flex-direction:row;align-items:center;gap:12px;flex-wrap:wrap}.goal-copy h2{margin:0}.goal-copy .actions{margin-top:20px}.goal-number .big-number{margin-bottom:0}
@media(max-width:700px){.hero-title{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.home-extras{margin-top:0}.home-extras .tag{margin-top:0}}

/* 三个学习按钮逐行居中。 */
.keys{grid-template-columns:minmax(0,1fr);width:100%;max-width:320px;margin-inline:auto;gap:10px}.keys .key-button{padding:11px 18px;min-height:48px}

/* 判断数量与进度集中在顶部。 */
.study-progress .progress-caption{align-items:center;gap:4px 12px;flex-wrap:wrap}.progress-details{display:flex;align-items:center;gap:18px;margin-left:auto;max-width:100%;flex-wrap:wrap}.study-progress .study-stats{gap:12px;font-size:11px;flex-wrap:wrap}.study-footer{justify-content:flex-end}
.progress-details #save-status{padding:0 7px;line-height:20px;white-space:nowrap}

/* 返回未筛词与按序号跳转放在同一组。 */
.jump-row{flex-wrap:wrap;gap:12px;margin-top:18px}.jump-controls{display:flex;align-items:center;gap:8px}.jump-row label{display:flex;align-items:center;gap:6px;white-space:nowrap}.jump-row button{padding:6px 12px;white-space:nowrap}

/* 词性、中文各占一行；长内容可横向滚动，短内容居中。 */
.pos-line,.meaning-line{width:100%;max-width:100%;overflow-x:auto}.pos-line .word-pos,.meaning-line .answer{width:max-content;min-width:100%;max-width:none;white-space:nowrap;overflow-wrap:normal;text-align:center}
@media(max-width:700px){.display-settings{grid-template-columns:repeat(3,1fr);row-gap:8px}}
.progress-position{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.familiar-hint{margin-top:14px;max-width:100%;font-size:15px;line-height:1.6;text-align:center;color:var(--green);overflow-wrap:anywhere}.familiar-hint .hint-meaning{font-size:12px;color:var(--muted)}
.sidebar{overflow-y:auto}
.word-examples{width:100%;max-width:760px;margin-top:18px;text-align:center}.example-group+.example-group{margin-top:14px}.example-item+.example-item{margin-top:9px}.example-label{font-size:11px;line-height:1.5;color:var(--muted);margin-bottom:2px}.example-en{font-size:15px;line-height:1.6;overflow-wrap:anywhere}.example-en b{font-weight:650;color:var(--green)}@media(max-width:700px){.word-examples{margin-top:14px}.example-en{font-size:14px}.example-group+.example-group{margin-top:12px}}
.collocation{margin-top:18px;max-width:100%;text-align:center;font-size:15px;line-height:1.7;overflow-wrap:anywhere}.collocation-zh{margin-top:3px;color:var(--muted);font-size:13px}.content-credit{margin-top:18px;color:var(--muted);font-size:11px}.content-credit a{color:inherit;text-underline-offset:3px}
.catalog-select{display:block;margin:0 0 18px;padding:0 8px;color:var(--muted);font-size:11px}.catalog-select select{display:block;width:100%;margin-top:6px;padding:8px 7px;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--ink);font:inherit;font-size:12px}.catalog-select select:disabled{opacity:.5}@media(max-width:700px){.catalog-select{padding:0;margin:0 0 10px;max-width:250px}}

/* 助记图保持小尺寸，图片加载不改变卡片内的占位。 */
.mnemonic-frame{width:160px;height:160px;flex-basis:auto;border-radius:12px}.mnemonic-frame.image-loading:after{content:''}
@media(max-width:700px){.mnemonic-frame{width:125px;height:125px}}

/* 内容各自占一块，可调整顺序和大小；隐藏块不占间距。 */
.study-content{align-items:center;flex-direction:column;width:100%}.study-content>*{flex-shrink:0;margin:0}.study-content .word{font-size:var(--study-word-size,66px)}.study-content .phonetic{font-size:var(--study-phonetic-size,17px);margin:0}.study-content .word-pos{font-size:var(--study-pos-size,14px);margin:0}.study-content .short-meaning{font-size:var(--study-short-size,22px);line-height:1.7;text-align:center;max-width:100%;overflow-wrap:anywhere}.study-content .answer{font-size:var(--study-meaning-size,17px);margin:0;padding:12px 5px 0}.study-content .collocation{font-size:var(--study-collocation-size,15px)}.study-content .collocation-zh{font-size:.86em}.study-content .familiar-hint{font-size:var(--study-familiar-size,15px)}.study-content .hint-meaning{font-size:.8em}.study-content .example-en{font-size:var(--study-examples-size,15px)}.study-content .example-label{font-size:calc(var(--study-examples-size,15px)*.75)}.study-content .mnemonic-frame{width:var(--study-image-size,160px);height:var(--study-image-size,160px);max-width:100%;aspect-ratio:1}.study-content .word-examples{margin:0}
.layout-dialog{position:fixed;inset:14px 14px 14px auto;margin:0;width:350px;max-width:calc(100% - 28px);max-height:calc(100dvh - 28px);padding:20px;overflow:auto}.layout-dialog::backdrop{background:#25382c0a;backdrop-filter:none}.layout-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.layout-heading h2{margin:0;font-size:18px}.layout-dialog p{font-size:11px;margin-top:8px}.layout-blocks{margin-top:14px}.layout-row{display:grid;grid-template-columns:minmax(0,1fr) 58px 78px;gap:9px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line);font-size:12px}.layout-moves{display:flex;gap:3px}.layout-moves button{padding:1px 7px;border-radius:5px;font-size:15px}.layout-size{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:10px}.layout-size input{width:56px;padding:4px;border:1px solid var(--line);border-radius:5px;background:var(--white);color:var(--ink);font-size:12px}.layout-general{margin-top:16px;display:grid;gap:10px;font-size:12px}.layout-general label{display:grid;grid-template-columns:60px minmax(0,1fr) 34px;gap:9px;align-items:center}.layout-general input{min-width:0;width:100%;accent-color:var(--green)}.layout-general output{font-size:11px;text-align:right;color:var(--muted)}.layout-bottom{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:20px}.layout-bottom span{font-size:11px;color:var(--muted)}
@media(min-width:1100px){body:has(.layout-dialog[open]) .study-main{padding-right:390px}}
@media(max-width:1000px){.study-content .word{font-size:var(--study-word-size,58px)}}
@media(min-width:701px) and (max-height:850px){.study-content .word{font-size:var(--study-word-size,54px)}.study-content .phonetic{font-size:var(--study-phonetic-size,15px)}}
@media(max-width:700px){.study-content .word{font-size:var(--study-word-size,48px)}.study-content .phonetic{font-size:var(--study-phonetic-size,15px)}.study-content .answer{font-size:var(--study-meaning-size,15px)}.study-content .example-en{font-size:var(--study-examples-size,14px)}.study-content .mnemonic-frame{width:var(--study-image-size,125px);height:var(--study-image-size,125px)}.layout-dialog{inset:8px 8px 8px auto;max-height:calc(100dvh - 16px);max-width:calc(100% - 16px)}}

/* 进度与操作区各占固定位置，只有中间的单词卡片滚动，内容不盖住按钮。 */
body:has(.study-controls){overflow:hidden}.shell:has(.study-controls){height:100vh;height:100dvh;min-height:0}.main.study-main:has(.study-controls){height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding-bottom:max(12px,env(safe-area-inset-bottom))}.study-main:has(.study-controls)>.study-progress{flex:0 0 auto;margin-bottom:12px}.study-main:has(.study-controls)>#sync-warning{flex:0 0 auto;max-height:25%;overflow:auto}.study-main:has(.study-controls)>#sync-warning:empty{display:none}.study-main:has(.study-controls)>.word-card{flex:1 1 0;min-height:0;margin:0 0 12px;overflow:auto;overflow-anchor:none;overscroll-behavior:contain;scrollbar-gutter:stable both-edges;justify-content:flex-start}.study-main:has(.study-controls)>.word-card>*{flex-shrink:0}.word-card:focus-visible{outline:2px solid var(--green);outline-offset:2px}.study-controls{flex:0 0 auto;display:flex;flex-direction:column;gap:10px;padding-top:10px;border-top:1px solid var(--line)}.study-controls .word-navigation{width:100%;max-width:680px;align-self:center;margin:0;min-height:40px}.study-controls .keys{margin:0 auto}.study-controls .jump-row{margin:0}
@media(max-width:700px){.shell:has(.study-controls){display:flex;flex-direction:column}.shell:has(.study-controls)>.sidebar{flex:0 0 auto;min-height:70px;max-height:26vh;max-height:26dvh;padding-top:12px;padding-bottom:10px;overflow:auto}.main.study-main:has(.study-controls){flex:1 1 0;height:auto;padding:10px 12px max(10px,env(safe-area-inset-bottom))}.study-main:has(.study-controls)>.study-progress{margin-bottom:8px}.study-main:has(.study-controls)>.word-card{padding:14px 12px;margin-bottom:8px}.study-controls{gap:6px;padding-top:6px}.study-controls .keys{gap:6px}.study-controls .key-button{min-height:40px;padding:6px 16px}.study-controls .word-navigation{min-height:34px}.study-controls .word-navigation button{padding:6px 8px;min-width:100px}.study-controls .jump-row{gap:6px}.study-controls .jump-row input{padding:3px 6px}.study-controls .jump-row button{padding:4px 10px}}

/* 按操作区实际宽度切换：宽时三键一行，窄时保持逐行显示。 */
.study-controls{container-type:inline-size}
@container(min-width:560px){.study-controls .keys{grid-template-columns:repeat(3,minmax(0,1fr));max-width:680px;gap:12px}}

/* 英文和对应中文保持同一行，短内容居中，长内容可完整横向查看。 */
.study-content .collocation,.example-item{width:100%;max-width:100%;overflow-x:auto}
.collocation-line,.example-line{display:flex;align-items:baseline;justify-content:center;gap:12px;width:max-content;min-width:100%;white-space:nowrap}
.collocation-line .collocation-zh,.example-line .example-label{margin:0}

/* 单词与短中文合成一行，音标与词性合成另一行；字号、开关各自保留。 */
.word-pair,.word-meta-pair{width:100%;max-width:100%;overflow-x:auto}
.word-pair-line,.word-meta-line{display:flex;align-items:baseline;justify-content:center;gap:16px;width:max-content;min-width:100%;white-space:nowrap}
.word-pair-line .word,.word-pair-line .short-meaning{max-width:none;overflow-wrap:normal}
.word-meta-line{gap:12px}.word-meta-line .phonetic{white-space:nowrap}.word-meta-line .pos-line{width:auto;max-width:none;overflow:visible}
.layout-member>span:first-child{padding-left:10px;color:var(--muted)}.layout-same-line{font-size:10px;text-align:center;color:var(--muted)}

.speech-setting{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.speech-setting select{min-width:64px;padding:3px 6px;border:1px solid var(--line);border-radius:6px;background:var(--white);color:var(--ink);font:inherit;font-size:12px}
.speech-setting .speech-help-link{padding:2px 0;font-size:11px;white-space:nowrap;color:var(--muted);text-decoration:underline;text-underline-offset:3px;min-height:24px}
.speech-help-entry{padding:1px 5px;font-size:11px;white-space:nowrap;min-height:24px}.speech-help-entry[data-speech-issue="true"]{color:var(--orange)}
.speech-help-steps{padding-left:22px;margin:18px 0;display:grid;gap:12px;font-size:13px;line-height:1.8}.speech-help-address input{font-size:12px}.speech-help-note{font-size:12px;color:var(--muted)}
@media(max-width:700px){.speech-setting{grid-column:span 2}.speech-setting select{font-size:11px}}

/* 学习页都可折叠设置；手机和平板默认收起，电脑默认展开。 */
.study-progress .mobile-settings-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:3px 8px;white-space:nowrap;font-size:11px}
.shell:has(.study-controls)>.study-sidebar:not(.mobile-settings-open){display:none}
.shell:has(.study-controls)>.study-sidebar:not(.mobile-settings-open)+.main.study-main{margin-left:0;width:100%;max-width:none}
.study-content .word-examples{max-width:100%}
@media(min-width:701px){.shell:has(.study-controls)>.study-sidebar:not(.mobile-settings-open)+.main.study-main{padding-left:24px;padding-right:24px}}
@media(min-width:1100px){body:has(.layout-dialog[open]) .shell:has(.study-controls)>.study-sidebar:not(.mobile-settings-open)+.main.study-main{padding-right:390px}}
.word-relations{width:100%;max-width:100%;color:var(--green);text-align:center;font-size:var(--study-familiar-size,15px);line-height:1.8}.word-relations[hidden]{display:none}.relation-row{max-width:100%;overflow-x:auto;white-space:nowrap;overscroll-behavior-x:contain}.relation-row+.relation-row{margin-top:4px}.relation-line{display:inline-flex;align-items:baseline;gap:12px;max-width:none;padding:1px 2px}.relation-label{font-size:.8em;color:var(--muted);flex:none}.relation-items{display:inline-flex;align-items:baseline;gap:18px}.relation-item{display:inline-block}.relation-meaning,.relation-pos{font-size:.85em}.relation-pos{color:var(--orange)}
.word-association{width:100%;max-width:100%;text-align:center;color:var(--green);font-size:var(--study-familiar-size,15px);line-height:1.7}.word-association[hidden]{display:none}.association-label{font-size:.8em;color:var(--muted);margin-right:6px}.association-anchors{overflow-x:auto;white-space:nowrap}.association-hint{font-size:.9em;margin-top:3px;overflow-wrap:anywhere}
.part-meaning{font-size:.85em}.part-plus{color:var(--muted)}.word-part-source{font-size:.72em;color:var(--muted);margin-left:12px;text-decoration:none}.word-part-source:hover{text-decoration:underline}.association-hint{max-width:56em;margin-inline:auto}
.misc-related+.misc-related,.misc-decomposition+.misc-related{margin-top:7px}.misc-related b{font-weight:650;color:var(--orange)}
.misc-spelling+*{margin-top:7px}.spelling-parts{letter-spacing:.025em}.spelling-dot{color:var(--orange);padding:0 .18em}
/* 过词品牌文字只放首页和登录页；学习页沿用紧凑布局。 */
.brand-icon{flex:none;object-fit:contain}
.brand-slogan{margin:0;font-size:clamp(26px,2.4vw,34px);font-weight:600;line-height:1.6;letter-spacing:0;overflow-wrap:anywhere}
.brand-opening{display:block;margin-bottom:3px;color:var(--muted);font-size:.65em;font-weight:400}
.brand-familiar{background:linear-gradient(transparent 72%,var(--lime) 72%,var(--lime) 94%,transparent 94%);box-decoration-break:clone;-webkit-box-decoration-break:clone}
.brand-promise{margin:12px 0 0;color:#687363;font-size:13px;line-height:1.7;text-wrap:pretty}
.home-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}
.home-branding{min-width:0}
.home-heading .home-extras{justify-content:flex-end;gap:8px}
.home-heading .tag{margin-top:0}
.home-catalog{font-size:13px;font-weight:500;white-space:nowrap}
.learning-path{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;list-style:none;padding:0;margin:0 0 24px}
.learning-path li{display:flex;align-items:flex-start;gap:10px;min-width:0;padding:15px 0;border-top:1px solid var(--line)}
.learning-path li>span{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:var(--soft);color:var(--green);font-size:12px}
.learning-path strong{font-size:14px;font-weight:600}.learning-path p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.learning-content{color:var(--muted);font-size:12px;line-height:1.5}.goal-copy .learning-content+h2{margin-top:10px}.book-content-label{margin:0 0 20px}
@media(max-width:700px){.learning-path{gap:8px;margin-bottom:16px}.learning-path li{gap:6px;flex-direction:column;padding:12px 0}.learning-path li>span{width:19px;height:19px;font-size:10px}.learning-path strong{font-size:11px;white-space:nowrap}.learning-path p{display:none}}
.auth-branding{text-align:center;margin-bottom:26px}
.auth-branding .brand{margin:0 0 22px;justify-content:center}
.auth-branding .brand strong{font-size:28px;letter-spacing:3px}
.auth-branding .brand-slogan{font-size:25px}
.registration-note{font-size:12px;color:var(--muted);margin:20px 0 0}
.account-panel{width:100%;max-width:520px}.auth:has(.account-panel){grid-template-columns:minmax(0,520px)}
.account-message h1{font-size:27px;letter-spacing:0;margin-top:16px}.account-message .actions{margin-top:20px}
.account-contact{border-top:1px solid var(--line);margin-top:20px;padding-top:16px;overflow-wrap:anywhere;white-space:pre-line}
.account-contact strong{font-size:13px}.account-pending{border-top:1px solid var(--line);margin-top:22px;padding-top:12px}
.member-validity{color:var(--muted);font-size:10px;padding:0 6px;margin:12px 0 0}
.member-search{display:flex;gap:9px;margin-bottom:18px}.member-search input{min-width:0;flex:1;max-width:330px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--white);color:var(--ink)}
.member-filters{flex-wrap:wrap;gap:8px}.member-list{display:grid;gap:12px}.member-row{padding:22px 24px;border:1px solid var(--line);border-radius:16px;background:var(--white)}
.member-row-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.member-row-heading h2{font-size:18px;overflow-wrap:anywhere}
.member-badge{display:inline-block;border-radius:99px;background:var(--soft);padding:3px 10px;font-size:11px;color:var(--muted)}
.member-badge.pending{background:#f3ead9;color:#8a6435}.member-badge.active{background:#e5eddb;color:var(--green)}.member-badge.expired,.member-badge.rejected{background:#f3e6e0;color:#975947}
.member-meta{display:flex;gap:8px 24px;flex-wrap:wrap;color:var(--muted);font-size:12px;margin:9px 0 14px}.member-row .actions{gap:8px}
.member-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin:20px 0;font-size:12px;color:var(--muted)}
.member-contact-panel{margin-top:28px}.member-contact-panel textarea{display:block;width:100%;margin:15px 0 12px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);font:inherit;resize:vertical}.member-contact-panel [role=status]{font-size:12px;color:var(--muted);margin-left:12px}
@media(max-width:700px){.member-row{padding:18px}.member-meta{flex-direction:column;gap:5px}.member-filters button{padding:7px 10px}.account-message{padding:22px}.account-message h1{font-size:23px}.member-pagination{gap:10px}}
@media(max-width:700px){.home-heading{display:block;margin-bottom:20px}.home-heading .home-extras{justify-content:flex-start;margin-top:12px}.brand-slogan{font-size:24px}.brand-opening{font-size:15px}.brand-promise{margin-top:9px;font-size:12px}.auth-branding .brand-slogan{font-size:23px}.auth-branding{margin-bottom:22px}}
@media(max-width:700px){.shell:has(.study-controls)>.study-sidebar:not(.mobile-settings-open){display:none}.study-progress .progress-caption{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px}.study-progress .progress-position{grid-column:1;grid-row:1;gap:8px;min-width:0;font-size:11px}.study-progress .progress-details{grid-column:1/-1;grid-row:2;width:100%;margin-left:0;gap:6px 10px}.study-progress .mobile-settings-toggle{grid-column:2;grid-row:1;display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:3px 8px;white-space:nowrap;font-size:11px}}

/* 会员分组与词书功能管理 */
.member-group-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}
.member-group-row label{display:flex;align-items:center;gap:8px}
.member-group-row select,.member-search select{max-width:240px}
.member-search{flex-wrap:wrap}
.group-edit{display:flex;align-items:center;gap:8px;margin:12px 0}
.group-edit input{min-width:0;flex:1}
.catalog-feature-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:20px}
.catalog-feature-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;margin:20px 0}
.catalog-feature-options label{display:flex;align-items:center;gap:8px;font-size:14px}
.catalog-feature-result{margin-left:12px;font-size:13px;color:var(--muted)}
@media(max-width:500px){.member-search select{width:100%;max-width:none}.catalog-feature-options{grid-template-columns:1fr}}
