:root{--bg:#f7f2e9;--surface:#fffcf6;--ink:#302b25;--secondary:#70675c;--muted:#796f63;--line:#e5dacb;--accent:#a44837;--accent-hover:#873b2d;--accent-soft:#f4e7dd;--highlight:#f0dfb9;--error:#af322f;--sans:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;--serif:"Noto Serif SC","Source Han Serif SC","Songti SC","STSong","SimSun",serif}
*{box-sizing:border-box}html{scroll-padding-top:74px}body{margin:0;background:#e9e0d3;color:var(--ink);font:15px/1.55 var(--sans);-webkit-font-smoothing:antialiased;overscroll-behavior-y:none}body.dialog-open{overflow:hidden}button,input,textarea,select{font:inherit;color:inherit}button,a,summary{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{border:0;background:none;cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{opacity:.5;cursor:not-allowed}button,a,input,select,textarea{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b75d47}button{transition:background .15s,color .15s,opacity .15s}button:active{opacity:.7}h1,h2,h3,p{margin:0}input,select,textarea{min-width:0}input::placeholder,textarea::placeholder{color:#8d8173}.hidden,.sprite{display:none!important}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip{position:fixed;top:-60px;left:16px;padding:12px;background:var(--accent);color:#fff;z-index:100}.skip:focus{top:8px}.icon{display:inline-block;width:22px;height:22px;flex:none;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.app-shell{max-width:820px;margin:auto;min-height:100dvh;background:var(--bg);box-shadow:0 0 0 1px #ded2c2}.container{max-width:820px;margin:auto;padding:0 20px 104px}.header{position:sticky;top:0;z-index:12;background:#f7f2e9f5;backdrop-filter:blur(18px);padding-top:env(safe-area-inset-top)}.header-inner{height:64px;padding:0 20px;display:flex;align-items:center;gap:14px;max-width:820px;margin:auto}.brand{display:flex;align-items:center;gap:9px;font-size:21px;font-weight:750;letter-spacing:.8px;white-space:nowrap;min-height:44px}.brand-mark{display:grid;place-items:center;background:var(--accent);color:#fff;width:31px;height:31px;font:22px/1 var(--serif);border-radius:10px;letter-spacing:0}.app-title{font-size:14px;color:var(--secondary);border-left:1px solid #d6c9b7;padding-left:14px}.header-tools{display:flex;align-items:center;margin-left:auto;gap:2px}.icon-button{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;color:var(--secondary);border-radius:50%;flex:none}.icon-button:hover{background:#eee6d9}.icon-button .icon{width:21px;height:21px}.search-panel{padding:0 0 18px;border-bottom:1px solid var(--line)}.mode-switch{display:flex;gap:24px;padding:0 0 12px}.mode-switch button{position:relative;min-height:44px;padding:6px 0;font-size:17px;color:var(--secondary);font-weight:500}.mode-switch button[aria-pressed=true]{color:var(--ink);font-weight:700}.mode-switch button[aria-pressed=true]:after{content:"";position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:20px;height:3px;background:var(--accent);border-radius:3px}.search-row{display:flex;gap:10px;margin-bottom:12px}.search-input-wrap{display:flex;align-items:center;gap:10px;flex:1;background:var(--surface);border:1px solid #ddcfbc;border-radius:14px;padding:0 14px;min-width:0;min-height:56px}.search-input-wrap>.icon{width:19px;height:19px;color:#81715c}.search-input-wrap label{white-space:nowrap;font-size:14px;font-weight:500}.search-input-wrap input{width:66px;flex:1;max-width:92px;border:0;background:transparent;padding:5px 2px;text-align:center;font-size:27px;line-height:1.4;font-weight:650;font-variant-numeric:tabular-nums;outline-offset:0;caret-color:var(--accent)}.input-unit{font-size:14px;color:var(--secondary);margin-left:auto}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 20px;border-radius:12px;font-size:15px;font-weight:600;border:1px solid var(--line);background:var(--surface)}.button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.button.primary:hover{background:var(--accent-hover)}.button.secondary{background:#eee5d8;border-color:transparent}.search-button{width:76px;min-width:76px;min-height:56px;padding:8px;font-size:16px;border-radius:14px}.filter-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.range-switch{display:inline-flex;align-items:center;padding:3px;background:#eee6d9;border-radius:10px;min-height:44px}.range-switch button{padding:8px 11px;min-height:38px;white-space:nowrap;border-radius:8px;font-size:13px;color:var(--secondary)}.range-switch button[aria-pressed=true]{background:var(--surface);color:var(--accent);font-weight:650;box-shadow:0 1px 3px #4a352010}.book-filter{min-width:0;flex:1}.book-filter select{width:100%;max-width:170px;height:44px;white-space:nowrap;text-overflow:ellipsis;background:transparent;border:0;font-size:13px;padding:0 3px;cursor:pointer}.filter-button{position:relative;display:flex;align-items:center;gap:5px;min-height:44px;padding:7px 0 7px 5px;margin-left:auto;font-size:13px;color:var(--secondary)}.filter-button .icon{width:18px;height:18px}.filter-button.has-filters{color:var(--accent);font-weight:650}.filter-count{display:grid;place-items:center;background:var(--accent);color:white;min-width:17px;height:17px;line-height:1;font-size:10px;border-radius:6px;padding:2px}.text-panel{margin-top:14px;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:14px}.fieldheading{display:flex;justify-content:space-between;align-items:center;margin-top:-7px}.fieldheading label{font-size:14px;font-weight:600}.text-button{min-height:44px;padding:7px 0 7px 10px;color:var(--accent);font-size:13px}.text-panel textarea{width:100%;display:block;border:0;padding:8px 0;resize:vertical;min-height:108px;max-height:320px;line-height:1.8;background:transparent;font-size:16px}.text-meta{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--secondary)}.text-meta label{display:flex;align-items:center;gap:8px}.text-meta select{min-height:36px;font-size:13px;border:0;background:#f1eade;border-radius:7px;padding:4px 8px}.inline-error{font-size:13px;color:var(--error);line-height:1.6;overflow-wrap:anywhere}.inline-error:not(:empty){margin-top:12px;padding:10px 12px;border-radius:10px;background:#fff0ed}.results-top{display:flex;align-items:center;justify-content:space-between;margin:22px 0 4px}.results-top h2{font-size:17px;font-weight:700}.stroke-standard{font-size:12px;color:var(--secondary)}.query-summary{font-size:12px;color:var(--secondary);line-height:1.8;margin-bottom:14px}.query-summary strong{font-weight:500;color:var(--secondary)}.results{display:grid;gap:12px}.result-card{border:1px solid #e6dbca;background:var(--surface);border-radius:18px;padding:18px 18px 6px;box-shadow:0 2px 6px #6b4a2803;min-width:0}.result-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}.pair-block{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:17px;align-items:center;min-width:0}.pair{font:31px/1.2 var(--serif);letter-spacing:3px;grid-column:1;grid-row:1}.pair-pinyin{font-size:12px;color:var(--secondary);grid-column:1;grid-row:2;line-height:1.5;letter-spacing:.3px;margin-top:5px;max-width:110px;overflow-wrap:anywhere}.stroke-equation{grid-column:2;grid-row:1/3;align-self:center;border-left:1px solid var(--line);padding-left:16px;font-size:12px;line-height:1.8;color:var(--secondary);font-variant-numeric:tabular-nums}.stroke-equation b{font-weight:600;color:var(--accent);white-space:nowrap}.bookmark{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;flex:none;color:#827360;background:#f6f0e6}.bookmark .icon{width:21px;height:21px}.bookmark.saved{background:var(--accent-soft);color:var(--accent)}.bookmark.saved .icon{fill:#a4483720}.result-quote{font-family:var(--serif);font-size:20px;line-height:1.85;padding:11px 13px;background:#f6f0e6;border-radius:10px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:264px;overflow:auto;overscroll-behavior:contain}.result-quote mark,.detail-quote mark{padding:1px 2px;border-radius:3px;color:#805120;background:var(--highlight);box-decoration-break:clone;-webkit-box-decoration-break:clone;font-weight:600}.result-source{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap;font-size:12px;color:var(--secondary);line-height:1.7;margin:12px 0 2px;overflow-wrap:anywhere}.source-dot{color:#b5a48e}.result-source span:first-child{color:#786850}.result-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px}.pair-relation{font-size:11px;color:#946b46;background:var(--accent-soft);border-radius:5px;padding:2px 6px;white-space:nowrap}.card-actions{display:flex;align-items:center;gap:12px}.card-actions button{display:flex;align-items:center;gap:5px;min-height:44px;padding:7px 0;font-size:12px;color:var(--secondary);white-space:nowrap}.card-actions .icon{width:16px;height:16px}.card-actions button:hover{color:var(--accent)}.coverage-note{font-size:12px;line-height:1.7;color:#725b32;background:#fff5df;border-radius:10px;padding:10px 13px;margin:0 0 12px;overflow-wrap:anywhere}.load-more{width:100%;margin-top:16px;background:transparent;border-color:#ded1bd;font-size:14px;min-height:48px}.load-more .icon{width:17px;height:17px}.result-end{font-size:12px;color:var(--secondary);text-align:center;margin:18px 0 8px}.empty{padding:35px 20px;text-align:center;background:white;border:1px solid var(--line);border-radius:18px;grid-column:1/-1}.empty-symbol{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 16px;font:25px var(--serif);border-radius:14px;color:var(--accent);background:var(--accent-soft)}.empty h3{font-size:16px;font-weight:600}.empty p{font-size:13px;color:var(--secondary);margin:8px 0 0;line-height:1.8}.empty .button{margin-top:20px}.skeleton{height:210px;border-radius:18px;background:linear-gradient(110deg,#eee5d8 30%,#fff 45%,#eee5d8 60%);background-size:220% 100%;animation:loading 1.5s ease infinite}@keyframes loading{to{background-position-x:-200%}}
.bottom-nav{position:fixed;z-index:15;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:820px;display:grid;grid-template-columns:repeat(4,1fr);background:#fffffff7;backdrop-filter:blur(20px);border-top:1px solid #ded1bd;padding:8px 12px max(9px,env(safe-area-inset-bottom));box-shadow:0 -4px 20px #5c422403}.bottom-nav a{min-height:49px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;color:#897968;font-size:11px;position:relative}.bottom-nav .icon{width:23px;height:23px;stroke-width:1.7;position:relative;z-index:1}.bottom-nav a.active{color:var(--accent);font-weight:650}.bottom-nav a.active:before{content:"";position:absolute;width:48px;height:30px;top:0;border-radius:11px;background:var(--accent-soft)}.bottom-nav a.active .icon{stroke-width:2}.page-intro{padding:15px 0 20px;display:flex;align-items:baseline;justify-content:space-between;gap:12px}.page-intro h1{font-size:24px;line-height:1.4;letter-spacing:.3px}.page-intro>p,#favorites-status{font-size:13px;color:var(--secondary)}.library-overview{display:flex;gap:12px;justify-content:space-between;background:#f1e7d7;border:1px solid #e1d3be;border-radius:16px;padding:18px 22px;margin-bottom:18px}.library-overview>div{display:flex;flex-direction:column;gap:4px}.stat-num{font-size:24px;font-weight:650;line-height:1.3;font-variant-numeric:tabular-nums;color:#80533c}.stat-caption{font-size:11px;color:#85715a}.book-grid{display:grid;gap:12px}.book-card{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:18px 18px 14px 83px;min-width:0}.book-symbol{position:absolute;left:18px;top:21px;width:46px;height:61px;border-radius:3px 7px 7px 3px;background:#eae0ce;border-left:3px solid #b99a72;display:grid;place-items:center;font:27px var(--serif);color:#795e3c;box-shadow:2px 3px 4px #253c3210}.book-card:nth-child(4n+2) .book-symbol{background:#f2ece1;border-left-color:#b6a17b;color:#7a684a}.book-card:nth-child(4n+3) .book-symbol{background:#f0e7d8;border-left-color:#b09c7c;color:#826c4e}.book-card:nth-child(4n) .book-symbol{background:#eee1db;border-left-color:#b5978b;color:#8c6c5f}.book-card h2{font-size:17px;margin-bottom:5px}.book-card>p{font-size:12px;color:var(--secondary);line-height:1.7;overflow-wrap:anywhere}.book-status{display:inline-block;font-size:11px;color:var(--accent);background:var(--accent-soft);padding:2px 6px;border-radius:5px;margin:8px 0}.book-card .coverage{font-size:12px;line-height:1.8;margin:3px 0 8px}.book-card .button{width:100%;min-height:44px;font-size:13px;background:#faf5eb;border-color:#e6dac6;padding:8px 12px}.book-card .icon{width:17px;height:17px}.account-card,.redeem-card,.orders-card,.plan-card{background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:20px;margin-bottom:14px;min-width:0}.account-profile{display:flex;gap:14px;align-items:center}.avatar{width:50px;height:50px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;border-radius:17px;font:25px var(--serif);flex:none}.account-profile h2{font-size:19px;overflow-wrap:anywhere}.account-profile p{font-size:12px;color:var(--secondary);margin-top:4px}.account-card>.button{width:100%;margin-top:18px}.quota-row{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--secondary);background:#f7f0e5;border-radius:10px;padding:12px;margin-top:18px}.quota-row b{font-weight:600;color:var(--ink)}.account-actions{display:flex;justify-content:space-between;align-items:center;margin-top:8px;font-size:13px}.account-actions button,.account-actions a{min-height:44px;display:inline-flex;align-items:center;padding:4px 0}.account-actions button{color:var(--secondary)}.account-actions a{color:var(--accent)}.section-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.section-header h2,.orders-card h2{font-size:16px}.redeem-card form{display:flex;gap:8px}.redeem-card input{flex:1;width:100%;min-height:46px;border:1px solid #ddcfbb;border-radius:10px;padding:10px 12px;background:#fffcf6;font-size:16px}.redeem-card .button{padding:10px 16px}.orders-card h2{margin-bottom:14px}.orders-card #orders{font-size:13px;color:var(--secondary)}.order-row{display:flex;justify-content:space-between;gap:10px;padding:13px 0;border-bottom:1px solid var(--line);font-size:12px}.order-row:last-child{border-bottom:0;padding-bottom:0}.order-row strong{display:block;color:var(--ink);font-size:13px;margin-bottom:5px}.order-row small{font-size:11px;color:var(--secondary)}.plan-area{padding-top:8px}.soon-label{font-size:11px;border-radius:5px;background:#eee5d8;padding:4px 7px;color:var(--secondary)}.plan-card h3{font-size:16px}.plan-price{font-size:28px;line-height:1.4;font-weight:650;color:var(--accent);margin-top:12px;font-variant-numeric:tabular-nums}.plan-price small{font-size:11px;font-weight:400;color:var(--secondary);margin-left:5px}.plan-card ul{padding-left:18px;margin:14px 0;font-size:13px;color:var(--secondary);line-height:2}.plan-state{font-size:12px;color:var(--secondary);display:flex;align-items:center;gap:6px;border-top:1px solid var(--line);padding-top:13px}.plan-state .icon{width:16px;height:16px}.settings-list{overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:17px;margin-top:8px}.settings-list>button,.settings-list>a{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:56px;padding:12px 18px;text-align:left;font-size:14px;border-bottom:1px solid var(--line)}.settings-list>:last-child{border-bottom:0}.settings-list .icon{width:17px;height:17px;color:#a2917b}.settings-list>button:hover,.settings-list>a:hover{background:#faf5eb}
.modal,.filter-sheet{border:0;color:var(--ink);background:var(--surface);padding:0;width:calc(100% - 32px);max-width:500px;max-height:88dvh;border-radius:22px;box-shadow:0 20px 80px #4a332630;overscroll-behavior:contain}.modal::backdrop,.filter-sheet::backdrop{background:#3c30245c;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px 10px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:1}.modal-head h2{font-size:18px;font-weight:650;line-height:1.4}.modal-head .icon-button{margin-right:-6px}.modal-body{padding:22px;overflow-wrap:anywhere}.modal-body p{font-size:14px;line-height:1.9;color:var(--secondary)}.modal-body p+p{margin-top:12px}.modal-body h3{font-size:15px;margin:22px 0 8px}.modal-body a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.modal-body .button{text-decoration:none}.detail-pair{font:36px var(--serif);margin-bottom:8px}.detail-pinyin{font-size:14px;color:var(--secondary)}.detail-strokes{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:13px;color:var(--secondary);margin:14px 0}.detail-strokes strong{color:var(--accent)}.detail-strokes span{padding:5px 9px;background:var(--accent-soft);border-radius:7px}.detail-quote{font:21px/1.9 var(--serif);background:#f7f0e3;padding:16px;border-radius:12px;margin:18px 0 12px;white-space:pre-wrap}.detail-meta{font-size:12px!important;line-height:1.9;overflow-wrap:anywhere}.detail-note{font-size:12px;line-height:1.8;color:var(--secondary);margin-top:16px;padding:12px;background:#f7f0e5;border-radius:10px}.detail-actions{display:flex;gap:10px;margin-top:20px}.detail-actions .button{flex:1;min-width:0;font-size:13px;padding:10px 8px}.auth-tabs{display:flex;background:#f1e8dc;border-radius:10px;padding:3px;margin-bottom:20px}.auth-tabs button{flex:1;border-radius:8px;min-height:42px;font-size:14px;color:var(--secondary)}.auth-tabs .active{background:#fff;color:var(--accent);font-weight:600;box-shadow:0 1px 4px #50371e10}.auth-form{display:flex;flex-direction:column}.auth-form label{font-size:14px;font-weight:500;margin-bottom:8px}.auth-form input,.modal textarea{width:100%;min-height:48px;background:#fffcf7;border:1px solid #deceb8;border-radius:11px;padding:11px 12px;margin-bottom:16px;font-size:16px}.auth-form .button{margin-top:10px;min-height:48px}.auth-note{font-size:12px!important;line-height:1.8!important;margin-top:18px;color:var(--secondary)}.filter-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:100%;max-width:520px;max-height:92dvh;border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom)}.sheet-handle{width:34px;height:4px;border-radius:5px;background:#d7c9b5;margin:10px auto 0}.filter-sheet .modal-head{padding-top:4px;border-bottom:0}.filter-sheet-body{padding:0 22px 14px}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0 19px;border-bottom:1px solid var(--line);cursor:pointer;min-height:72px}.switch-row strong{display:block;font-size:15px;font-weight:600}.switch-row small{display:block;font-size:12px;color:var(--secondary);margin-top:4px}.switch-row input{appearance:none;width:46px;height:28px;min-width:46px;border-radius:20px;background:#cfbfaa;position:relative;cursor:pointer;transition:background .15s}.switch-row input:before{content:"";position:absolute;left:3px;top:3px;width:22px;height:22px;background:#fff;border-radius:50%;box-shadow:0 1px 4px #4a351b20;transition:transform .15s}.switch-row input:checked{background:var(--accent)}.switch-row input:checked:before{transform:translateX(18px)}.filter-section{margin-top:22px}.filter-section>label{display:block;font-size:14px;font-weight:600;margin-bottom:10px}.filter-section input,.filter-section select{width:100%;min-height:48px;border:1px solid #e0d1bb;background:#fbf5eb;border-radius:11px;padding:10px 12px;font-size:16px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.two-fields select{font-size:14px}.sheet-actions{display:flex;gap:12px;padding:18px 22px 20px;background:#fff;position:sticky;bottom:0}.sheet-actions .secondary{flex:1}.sheet-actions .primary{flex:2;min-height:48px}.toast{position:fixed;bottom:calc(86px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:100;background:#493a2cf2;color:#fff;border-radius:12px;padding:12px 18px;box-shadow:0 7px 25px #493a2c20;width:max-content;max-width:calc(100% - 40px);font-size:13px;text-align:center;pointer-events:none}
@media(min-width:700px){.container{padding-left:28px;padding-right:28px}.header-inner{padding-left:28px;padding-right:28px;height:72px}.search-panel{padding-bottom:22px}.mode-switch{padding-top:4px}.search-row{max-width:560px}.search-input-wrap{max-width:440px}.search-input-wrap input{max-width:none;text-align:left;padding-left:20px}.filter-toolbar{max-width:560px}.book-filter select{max-width:none}.filter-button{padding:7px 12px}.results,.book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.result-card{padding-left:17px;padding-right:17px}.result-top{gap:6px}.pair-block{column-gap:13px}.stroke-equation{padding-left:12px}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.plan-area{padding-top:0}.bottom-nav{padding-top:10px;padding-bottom:12px}.bottom-nav a{flex-direction:row;gap:9px;font-size:13px;min-height:42px}.bottom-nav a.active:before{width:90px;height:40px;top:1px;border-radius:12px}.bottom-nav span{z-index:1}.filter-sheet{inset:0;margin:auto;border-radius:22px;max-height:86dvh;height:fit-content}.sheet-handle{display:none}.filter-sheet .modal-head{padding-top:12px}.results-top{margin-top:24px}.page-intro{padding-top:20px}.library-overview{justify-content:space-around}}
@media(max-width:374px){.container{padding-left:14px;padding-right:14px}.header-inner{padding-left:14px;padding-right:12px;gap:10px}.header-tools{gap:0}.app-title{padding-left:10px}.search-input-wrap{gap:7px;padding:0 10px}.search-input-wrap label{font-size:13px}.search-input-wrap>.icon{width:17px;height:17px}.search-button{width:67px;min-width:67px}.search-input-wrap input{width:49px;font-size:25px}.range-switch button{padding:8px 9px;font-size:12px}.filter-toolbar{gap:5px}.book-filter select{font-size:12px;max-width:100%}.filter-button{font-size:12px;gap:3px}.filter-button .icon{width:16px;height:16px}.result-card{padding:16px 14px 5px}.pair{font-size:29px}.pair-block{column-gap:12px}.stroke-equation{font-size:11px;padding-left:12px}.pair-pinyin{font-size:11px}.result-quote{font-size:19px;padding:10px 11px}.bookmark{width:40px;min-width:40px;height:44px;background:transparent}.card-actions{gap:10px}.library-overview{padding:17px 16px}.stat-num{font-size:21px}.stat-caption{font-size:10px}.book-card{padding-left:77px}.filter-sheet-body{padding-left:18px;padding-right:18px}.sheet-actions{padding-left:18px;padding-right:18px}}
@media(max-width:699px){.modal{inset:auto 0 0;margin:0 auto;width:100%;max-width:520px;max-height:92dvh;border-radius:23px 23px 0 0;padding-bottom:env(safe-area-inset-bottom)}}
.results-top h2{scroll-margin-top:80px}.range-switch button{min-height:44px}.range-switch{min-height:50px}.text-meta select{min-height:44px}.bookmark{min-width:44px;min-height:44px}.bottom-nav a{min-height:44px}.detail-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px}.result-tag{font-size:11px;background:var(--accent-soft);color:var(--accent);padding:4px 8px;border-radius:6px;white-space:nowrap}.detail-char{display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid var(--line);border-radius:10px}.detail-char>strong{font:26px var(--serif);color:var(--ink)}.detail-char>small{font-size:12px;color:var(--secondary)}.detail-strokes>span{background:none;padding:0}.detail-pair{margin-bottom:0}.book-coverage summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-size:12px;color:var(--secondary);list-style:none}.book-coverage summary:after{content:"＋";font-size:17px}.book-coverage[open] summary:after{content:"−"}.book-coverage .coverage{margin:0 0 14px}.book-coverage summary:focus-visible{outline:3px solid #b75d47;outline-offset:2px}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}


/* 起好名 · 纸色、墨色与朱砂 */
body{background:#e9dfd1;background-image:radial-gradient(ellipse at 20% 0,#f8f0e3 0,transparent 65%);color:var(--ink)}
.app-shell{max-width:520px;background:var(--bg);box-shadow:0 0 0 1px #d8c9b738,0 12px 80px #5c42240b}
.container{max-width:520px;padding:0 18px 100px}
.header{background:#f7f2e9ed;border-bottom:1px solid #e5dacb70}
.header-inner{height:64px;padding:0 18px;gap:12px}
.brand{font-family:var(--serif);font-weight:700;font-size:23px;letter-spacing:2px;gap:7px}
.brand-mark{display:block;background:transparent;width:36px;height:36px;border-radius:0;object-fit:contain}
.app-title{border:0;padding:0;font-size:12px;color:#8c7a63;letter-spacing:.5px}
.header-tools{gap:0}.header-tools .icon-button{width:36px}.header-tools .icon-button:first-child{display:none}
.icon-button:hover{background:#eee3d3}
.naming-panel{position:relative;margin-top:16px;padding:0 18px 18px;border:1px solid #dfcfb9;border-radius:18px;background:#fffcf6;box-shadow:0 3px 18px #61402504;overflow:hidden}
.naming-panel:before{content:"";position:absolute;top:0;left:25px;right:25px;height:2px;background:linear-gradient(90deg,transparent,#c3a16c,transparent)}
.surname-field{display:flex;align-items:center;gap:15px;min-height:79px;border-bottom:1px solid var(--line);position:relative}
.surname-field>label{font-size:15px;font-weight:550;white-space:nowrap;color:#514538}
.surname-field input{border:0;background:transparent;padding:13px 0;font:25px/1.4 var(--serif);flex:1;width:100%;letter-spacing:2px;caret-color:var(--accent)}
.surname-field input::placeholder{font:17px/1.5 var(--sans);letter-spacing:0;color:#a0917e}
.field-flower{font-size:24px;color:#c1a477;padding-right:2px}
.preference-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid #e5dacb80;min-height:63px}
.field-label{font-size:14px;color:#71624f;white-space:nowrap}
.choice-group{display:flex;gap:5px;flex:1;max-width:230px;justify-content:flex-end}
.choice-group button{flex:1;min-height:44px;padding:8px 10px;border:1px solid transparent;border-radius:9px;font-size:14px;color:#776854;white-space:nowrap}
.choice-group button[aria-pressed=true]{background:#f3e6da;border-color:#d7b79a;color:#954733;font-weight:600}
.style-field{padding-top:16px}.style-choices{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:10px 0 0}
.style-choices button{min-height:44px;padding:8px 3px;border:1px solid #e3d6c4;border-radius:9px;font-size:14px;color:#786850;background:#fffdf8}
.style-choices button[aria-pressed=true]{background:#f3e6da;border-color:#b78061;color:#91432e;font-weight:600}
.naming-options{padding-bottom:5px}.naming-options summary{display:flex;align-items:center;justify-content:space-between;min-height:52px;font-size:13px;color:#786850;cursor:pointer;list-style:none}.naming-options summary::-webkit-details-marker{display:none}
.optional-label{display:flex;align-items:center;gap:2px;font-size:12px;color:#8e7d64}.optional-label .icon{width:14px;height:14px;transform:rotate(90deg)}.naming-options[open] .optional-label .icon{transform:rotate(-90deg)}
.naming-options .filter-section{margin:3px 0 15px}.naming-options .filter-section>label{font-size:13px;font-weight:400}
.naming-options .filter-section input,.naming-options .filter-section select{background:#fbf6ed;border-radius:9px}
.naming-button{width:100%;min-height:50px;border-radius:10px;font-size:17px;letter-spacing:2px;background:#a44837;box-shadow:0 3px 8px #9c4c3620}
.naming-button .icon{width:19px;height:19px;position:absolute;right:34px}
.button.primary{background:#a44837;border-color:#a44837;color:#fffcf5}.button.primary:hover{background:#873b2d;border-color:#873b2d}
.results-top{margin:23px 2px 5px}.results-top h2{font:600 20px/1.5 var(--serif);letter-spacing:1px}
.section-ornament{font:12px var(--serif);letter-spacing:1px;color:#9b8666}
.query-summary{margin-left:2px;margin-bottom:14px}.query-summary:empty{margin-bottom:10px}
.results,.book-grid{grid-template-columns:minmax(0,1fr);gap:14px}
.result-card{position:relative;border:1px solid #e0d3bf;background:#fffcf6;border-radius:15px;padding:19px 18px 6px;box-shadow:0 3px 12px #5d402305}
.result-top{gap:10px;margin-bottom:14px}.name-identity{min-width:0}.full-name{font:36px/1.35 var(--serif);letter-spacing:4px;color:#382d22;overflow-wrap:anywhere}.full-pinyin{font-size:13px;letter-spacing:.7px;color:#9c7956;margin-top:5px;overflow-wrap:anywhere}
.name-meaning{font-size:15px;line-height:1.9;color:#65533e;margin:12px 0}.name-style-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 15px}.name-style-tag{color:#8b684b;border:1px solid #e5d5bd;background:#f9f0e1;font-size:11px;line-height:1.5;padding:3px 9px;border-radius:5px}
.name-strokes{font-size:11px;color:#917b61;line-height:1.6}.name-strokes strong{font-weight:500}
.bookmark{background:#f6eee2;color:#aa9072;border-radius:12px}.bookmark.saved{background:#f5e2d8;color:var(--accent)}
.bookmark.saved .icon{fill:#a4483726}
.result-quote{background:#f5edde;border:1px solid #ece0ce;border-left:2px solid #c9ab7a;border-radius:3px 9px 9px 3px;padding:12px 13px;color:#67533d;font-size:19px;line-height:1.9}
.result-quote mark,.detail-quote mark{background:#e9d1a8;color:#704524;padding:1px 2px}
.result-source{color:#97846d;margin-top:13px}.result-source span:first-child{color:#80694c}
.result-footer{min-height:46px}.card-actions{gap:16px}.card-actions button{color:#8c7255;font-size:12px}.pair-relation{color:#956f4b;background:#f3e9da;border-radius:4px}
.stroke-profile{padding:0 15px 14px;background:#fffcf6;border:1px solid #e1d2bd;border-radius:14px;margin:16px 0 13px}.surname-field.compact{min-height:62px}.surname-field.compact input{font-size:22px}.surname-field.compact input::placeholder{font-size:15px}
.stroke-profile .preference-row{padding:8px 0;border:0;min-height:59px}.stroke-count-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.stroke-count-options button{border:1px solid #e5d6c1;background:#faf5eb;border-radius:9px;min-height:48px;padding:8px 4px;font-size:14px}.stroke-count-options small{font-size:11px;display:inline-block;margin-left:3px;color:#947e63}.stroke-count-options button[aria-pressed=true]{border-color:#b98567;background:#f3e6da;color:#93412e}
.search-panel{padding-bottom:18px}.search-row{max-width:none;margin-bottom:10px;gap:9px}.search-input-wrap{max-width:none;border-radius:11px;min-height:52px;padding:0 14px}.search-input-wrap input{font-size:26px;max-width:none;text-align:center;padding-left:2px}.search-button{min-height:52px;width:78px;min-width:78px;border-radius:11px}.stroke-calculation{font-size:12px;line-height:1.8;color:#92704c;overflow-wrap:anywhere;margin:2px 2px 10px}.stroke-calculation:empty{display:none}
.mode-switch{gap:24px;padding:3px 2px 9px}.mode-switch button{font-size:15px}.mode-switch button[aria-pressed=true]:after{width:15px;height:2px;background:#ae543d}
.filter-toolbar{max-width:none;gap:7px}.filter-button{padding:7px 0 7px 4px}.range-switch{background:#ece2d2;border-radius:8px;padding:2px;min-height:48px}.range-switch button{border-radius:6px}.book-filter select{max-width:none}.text-panel{background:#fffcf6;border-color:#e1d2bf;border-radius:12px}
.pair{color:#453322}.stroke-equation{border-left-color:#e2d4bf}.pair-pinyin{color:#9c7956}.empty{border:1px dashed #dfcfb9;background:transparent;border-radius:14px;padding:25px 18px}.empty-symbol{background:#f1e4d2;color:#a4774c;border-radius:12px;width:42px;height:42px;margin-bottom:12px}.empty h3{font:18px var(--serif);letter-spacing:1px;color:#79634a}.empty p{font-size:12px;color:#9c876c}.empty .button{margin-top:16px}
.bottom-nav{max-width:520px;background:#fffcf5f5;border-color:#e2d2bb;padding:7px 12px max(9px,env(safe-area-inset-bottom));box-shadow:0 -3px 20px #50372204}
.bottom-nav a{min-height:47px;flex-direction:column;gap:4px;font-size:11px;color:#958269}.bottom-nav .icon{width:22px;height:22px;stroke-width:1.6}.bottom-nav a.active{color:#a44837}.bottom-nav a.active:before{display:none}.bottom-nav a.active .icon{stroke-width:2}.bottom-nav a.active:after{content:"";position:absolute;width:15px;height:2px;top:-7px;background:#a44837;border-radius:2px}
.page-intro{padding-top:20px}.page-intro h1{font:25px/1.4 var(--serif);letter-spacing:2px}.account-grid{display:block}.plan-area{padding-top:8px}.account-card,.redeem-card,.orders-card,.plan-card,.settings-list{border-radius:15px}.avatar{border-radius:12px}.account-profile h2{font-family:var(--serif)}
.modal,.filter-sheet{background:#fffcf6;box-shadow:0 20px 80px #38271938}.modal-head,.sheet-actions{background:#fffcf6}.modal-head h2{font-family:var(--serif);font-size:20px;letter-spacing:1px}.auth-tabs .active{background:#fffcf6}.modal-body .detail-quote{background:#f5edde;border-left:2px solid #c6a779;border-radius:3px 9px 9px 3px}.book-card .button{border-color:#ddcfb8}
.load-more{border-color:#d9c7ac;border-radius:10px;color:#8f6445;min-height:48px}.skeleton{background:linear-gradient(110deg,#efe4d3 30%,#fffcf7 45%,#efe4d3 60%);background-size:220% 100%}.toast{background:#4a392aee}
@media(min-width:700px){.header-inner{height:68px}.container{padding-top:0}.filter-sheet{max-width:480px}.modal{max-width:480px}.library-overview{justify-content:space-between}.results-top{margin-top:23px}}
@media(max-width:374px){.container{padding-left:13px;padding-right:13px}.header-inner{padding-left:13px;padding-right:13px;gap:8px}.brand{font-size:22px}.brand-mark{width:34px;height:34px}.app-title{font-size:11px}.naming-panel{padding-left:14px;padding-right:14px}.surname-field{gap:11px;min-height:73px}.surname-field input{font-size:24px}.surname-field>label{font-size:14px}.choice-group{gap:3px}.choice-group button{padding:8px 7px;font-size:13px}.preference-row{gap:10px}.field-label{font-size:13px}.style-choices{gap:5px}.style-choices button{font-size:13px}.full-name{font-size:32px;letter-spacing:3px}.result-card{padding-left:15px;padding-right:15px}.result-quote{font-size:18px}.stroke-profile{padding-left:12px;padding-right:12px}.stroke-count-options button{font-size:13px}.stroke-count-options small{font-size:10px}.filter-toolbar{gap:4px}.range-switch button{padding-left:7px;padding-right:7px}.search-input-wrap label{font-size:14px}}
.naming-placeholder{text-align:center;color:#a08a6e;font:14px/1.8 var(--serif);letter-spacing:1px;padding:28px 16px;border-top:1px solid #e4d6bf;border-bottom:1px solid #e4d6bf}.pair-block{display:flex;flex-direction:column;align-items:flex-start;gap:3px}.stroke-equation{border-left:0;padding-left:0;font-size:12px}.pair-pinyin{max-width:none}.stroke-equation b{color:var(--accent)}
.results-top h2{scroll-margin-top:8px}.bottom-nav a{color:#7c6a55}.bottom-nav a.active{color:#a44837}.full-pinyin,.pair-pinyin{color:#826247}.result-source{color:#826d54}.name-strokes{color:#80684b}.surname-field input::placeholder{color:#80705b}.naming-placeholder{color:#897257}
