html,body,#root{background:#c7b79f;height:100%;min-height:100dvh;margin:0}body{font-family:"FangSong",STFangsong,Songti SC,Noto Serif SC,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;overflow:hidden}*{box-sizing:border-box}button,input,textarea,select{font:inherit}.word-page{height:100dvh;padding:max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));color:#242b40;background:#f8f7f4;font-family:system-ui,PingFang SC,Microsoft YaHei,sans-serif;overflow:auto}.word-reader{grid-template-rows:auto 5px auto auto minmax(210px,1fr) auto;gap:clamp(12px,2dvh,20px);width:min(100%,680px);min-height:min(100%,820px);margin-inline:auto;display:grid}.word-header,.word-options,.word-actions,.word-groups{align-items:center;gap:8px;display:flex}.word-header,.word-actions{justify-content:space-between}.word-header h1{letter-spacing:.04em;margin:0;font-size:clamp(1.3rem,4vw,1.75rem);font-weight:750}.word-options{flex-wrap:wrap;gap:clamp(8px,3vw,20px)}.word-switch{color:#34435e;cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:8px;align-items:center;gap:6px;min-height:44px;padding:0 4px;font-size:.875rem;font-weight:650;display:inline-flex}.word-switch-track{background:#69758e;border-radius:99px;align-items:center;width:30px;height:18px;padding-inline:3px;display:flex}.word-switch-track:before{content:"";background:#fff;border-radius:50%;width:12px;height:12px}.word-switch[aria-checked=true] .word-switch-track{background:#344e88;justify-content:flex-end}.word-count{color:#58637b;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:.875rem}.word-count strong{color:#242b40;font-size:1rem}.word-reader progress{appearance:none;background:#e3e7ee;border:0;border-radius:10px;width:100%;height:100%;overflow:hidden}.word-reader progress::-webkit-progress-bar{background:#e3e7ee}.word-reader progress::-webkit-progress-value{background:#5b73ab;border-radius:10px}.word-reader progress::-moz-progress-bar{background:#5b73ab;border-radius:10px}.word-groups{flex-wrap:wrap}.word-groups button,.word-actions button{cursor:pointer;color:inherit;background:#fff;border:1px solid #d9deea;font-weight:650}.word-groups button{border-radius:999px;min-height:36px;padding:5px clamp(9px,3vw,15px);font-size:.875rem}.word-groups button[aria-current=true]{color:#344e88;background:#e8efff;border-color:#d9e3f8}.word-card{border:1px solid #252f480d;border-radius:clamp(22px,5vw,34px);grid-template-rows:repeat(2,minmax(0,1fr));display:grid;overflow:hidden;box-shadow:0 12px 30px #242b4010}.word-half{white-space:nowrap;place-items:center;padding:6px 12px;font-family:PingFang SC,Microsoft YaHei,Noto Sans CJK SC,sans-serif;font-size:clamp(2.75rem,min(24vw,22dvh),10rem);font-weight:650;line-height:1;display:grid}.word-half--pink{background:#fbe3ed}.word-half--blue{background:#e0edff}.word-actions button{border-radius:14px;justify-content:center;align-items:center;gap:10px;min-height:46px;padding:8px clamp(14px,4vw,22px);display:inline-flex}.word-actions button:disabled{cursor:default;color:#626b7f;background:0 0}.word-actions .word-next{color:#fff;background:#293958;border-color:#293958}.word-actions button:not(:disabled):hover,.word-groups button:hover{border-color:#6279ad}.word-reader button:focus-visible{outline-offset:3px;outline:2px solid #4a65a3}
