:root{font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif;color:#233b30;background:#f7f6f2;font-synthesis:none;--green:#365e4c;--border:#d8dfd8}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;transition:background .15s,border-color .15s}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #82a68f;outline-offset:3px}header{height:76px;padding:0 36px;display:flex;align-items:center;gap:24px}.brand{font:700 32px Songti SC,serif;color:#254d3c;text-decoration:none;letter-spacing:2px}.brand-tag{border-left:1px solid #cdd5ce;padding-left:24px;font-size:13px;color:#7c8980}.motto{margin-left:auto;font-family:Songti SC,serif;font-size:16px;letter-spacing:2px}.intro{text-align:center;padding:19px 16px 27px}.intro h1{font:600 36px/1.5 Songti SC,"Noto Serif CJK SC",serif;letter-spacing:2px;margin:0;color:#15271e}.intro p{font:20px Songti SC,serif;color:#738078;margin:8px 0 0}main{display:grid;grid-template-columns:minmax(300px,.35fr) minmax(0,.65fr);gap:22px;max-width:1470px;margin:0 auto;padding:0 30px}.settings{background:#fff;border:1px solid #e0e2dd;border-radius:9px;padding:28px 29px;align-self:start}.section-title,legend{font:600 21px Songti SC,serif;display:block;margin-bottom:13px;letter-spacing:1px}textarea{resize:vertical;width:100%;min-height:152px;line-height:1.8;font-family:Songti SC,serif;font-size:18px;padding:14px;border:1px solid #ced6ce;border-radius:5px;color:#34443a;background:#fdfefd}input[type=text],input:not([type]){width:100%;height:44px;border:1px solid #ced6ce;border-radius:5px;padding:10px 14px;color:#34443a}.text-tools{display:flex;justify-content:space-between;align-items:center;margin:8px 0 28px;gap:8px;font-size:11px;color:#8b968d}.text-tools button{font-size:12px;padding:0;border:0;background:none;color:#6c8074}fieldset{border:0;padding:0;margin:0 0 24px;min-width:0}legend{padding:0}.radio-row{display:flex;align-items:flex-start;gap:14px;margin:7px 0 19px;cursor:pointer}.radio-row:last-child{margin-bottom:0}input[type=radio]{accent-color:var(--green);width:24px;height:24px;margin:1px 0 0}.radio-row strong{display:block;font:20px Songti SC,serif;color:#263c31}.radio-row small{display:block;font-size:13px;margin-top:7px;color:#86928a}.grid-options{display:flex;gap:12px}.grid-options button{flex:1;display:flex;align-items:center;justify-content:center;gap:14px;border:1px solid #cfd6cf;border-radius:5px;background:#fff;color:#536559;height:52px}.grid-options button.selected{border:2px solid var(--green);background:#f8faf7;color:var(--green)}.grid-icon{font:29px Songti SC,serif}.primary{background:var(--green);color:#fff;border:1px solid var(--green);border-radius:6px}.primary:hover{background:#294c3b}.generate{width:100%;height:53px;margin-top:21px;font:21px Songti SC,serif;letter-spacing:2px}.preview{background:#e9ece5;border-radius:9px;padding:20px 23px 0;min-width:0}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.preview-toolbar>div{display:flex;align-items:center;gap:22px}.preview-toolbar h2{font:600 24px Songti SC,serif;margin:0}.preview-toolbar span{font-size:12px}.export-actions{background:#fff;border:1px solid #dce1d9;border-radius:7px;padding:3px;gap:0!important}.export-actions button{border:0;background:none;padding:8px 13px;font-size:14px;color:#233b30}.export-actions>span{height:18px;width:1px;background:#dce1d9}.status{font-size:11px;color:#6f8074;min-height:34px;line-height:1.6;padding:10px 0 6px}.paper-wrap{max-width:550px;margin:auto}.paper{background:#fff;box-shadow:0 6px 20px #233b3020}.paper svg{display:block;width:100%;height:auto}.pagination{display:flex;align-items:center;justify-content:center;gap:24px;padding:15px 0 4px;color:#697a6e;font-size:12px}.pagination button{border:0;background:none;color:var(--green);padding:6px}.pagination select{border:1px solid #ced6ce;border-radius:3px;background:#fff;color:var(--green);padding:3px}.privacy{text-align:center;font-size:11px;color:#8b978d;padding:0 0 14px;margin:13px 0 0}footer{padding:22px 30px;max-width:1470px;margin:auto;font-size:11px;color:#8a938b;display:flex;justify-content:space-between;gap:12px}footer a{color:inherit}.print-pages{display:none}.empty{min-height:400px;display:grid;place-items:center;color:#718077;font-size:14px}@media(min-width:1500px){main{grid-template-columns:440px 1fr}}@media(max-width:900px){header{padding:0 20px}.brand-tag{display:none}.intro h1{font-size:28px}main{padding:0 18px;grid-template-columns:300px 1fr;gap:16px}.settings{padding:22px 20px}.preview{padding:18px 14px 0}.preview-toolbar{align-items:flex-start;flex-direction:column}.preview-toolbar h2{font-size:21px}.pagination{gap:8px}}@media(max-width:680px){header{height:66px}.brand{font-size:26px}.motto{font-size:11px;letter-spacing:0}.intro{padding:20px 15px 26px}.intro h1{font-size:25px;letter-spacing:0}.intro p{font-size:16px}main{display:flex;flex-direction:column;padding:0 14px}.settings{width:100%;padding:23px}.preview-toolbar{flex-direction:row;align-items:center}.preview-toolbar>div{gap:10px}.preview-toolbar h2{font-size:20px}.preview-toolbar span{font-size:10px}.export-actions button{font-size:12px;padding:8px}.privacy{font-size:10px}footer{flex-direction:column;line-height:1.6;padding:22px}.paper-wrap{width:100%}}@page{size:A4 portrait;margin:0}@media print{html,body,#root{background:#fff;margin:0!important;padding:0!important}#root>:not(.print-pages){display:none!important}.print-pages{display:block}.print-page{width:210mm;height:297mm;break-after:page;page-break-after:always;overflow:hidden}.print-page:last-child{break-after:auto;page-break-after:auto}.print-page svg{width:210mm;height:297mm;display:block;print-color-adjust:exact;-webkit-print-color-adjust:exact}}.layout-setting{display:block;margin:0 0 24px;font-size:14px}.layout-setting select{display:block;width:100%;padding:10px;margin-top:9px;border:1px solid var(--border);border-radius:5px;background:#fff;color:var(--green);font-size:14px}.layout-setting small{display:block;font-size:11px;line-height:1.6;color:#86928a;margin-top:7px}.input-tabs{display:flex;gap:4px;background:#f0f3ee;padding:4px;border-radius:6px;margin-bottom:16px}.input-tabs button{flex:1;border:0;border-radius:4px;padding:9px;background:none;color:#687b6f;font-size:13px}.input-tabs button[aria-pressed=true]{background:#fff;color:var(--green);box-shadow:0 1px 4px #233b3014}.poetry-picker{margin-bottom:20px;font-size:13px}.poetry-picker label{display:block;margin:12px 0 8px;font-weight:500}.search-bar{display:flex;gap:8px}.search-bar input{min-width:0}.search-bar button{flex-shrink:0;padding:0 14px}.ai-search{display:flex;flex-direction:column;gap:7px;margin-top:12px}.ai-search button{align-self:flex-start;border:1px solid #c4d3c6;border-radius:5px;padding:8px 12px;color:var(--green);background:#f7faf5}.ai-search small,.poem-detail>small{font-size:11px;line-height:1.7;color:#7d8a81}.search-message{font-size:12px;line-height:1.8;color:#687b6f}.poem-results{list-style:none;padding:0;margin:12px 0;max-height:290px;overflow:auto;border-top:1px solid var(--border)}.poem-results li{border-bottom:1px solid var(--border)}.poem-results button{display:block;width:100%;text-align:left;padding:13px 9px;border:0;background:#fff;color:#354d3e}.poem-results button:hover,.poem-results button[aria-pressed=true]{background:#eef4ec}.poem-results strong,.poem-results span,.poem-results small{display:block}.poem-results strong{font-size:16px;margin-bottom:5px}.poem-results span{font-size:11px;color:#7c8b80}.poem-results small{font-family:Songti SC,serif;margin-top:7px;line-height:1.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.poem-detail{padding:16px;background:#f7f9f4;border:1px solid var(--border);border-radius:6px}.poem-detail h3{margin:0 0 8px;font:600 23px Songti SC,serif}.poem-detail p{font-size:12px;color:#718075}.poem-detail a{font-size:12px;color:var(--green)}.poem-detail>small{display:block;margin-top:9px}.poem-detail textarea{height:270px;font-size:17px;background:#fff}.poem-detail>button{width:100%;padding:12px}.poem-detail .length-warning{color:#965129}.source-note{font-size:11px;line-height:1.7;color:#718075}.privacy{line-height:1.8}.textbook-picker select{display:block;width:100%;min-width:0;padding:10px;border:1px solid var(--border);border-radius:5px;background:#fff;color:var(--green);font:inherit}.textbook-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px}.textbook-filters select{margin-top:8px}.edition-note{font-size:11px;line-height:1.8;color:#75847a}.book-source{display:flex;flex-direction:column;gap:7px;background:#f3f6ef;border-left:3px solid #809779;padding:12px;margin:14px 0}.book-source span{font-size:11px;line-height:1.7;color:#718075}.book-source a{font-size:12px;color:var(--green)}.textbook-types{display:flex;gap:7px;margin:12px 0}.textbook-types button{border:1px solid var(--border);border-radius:20px;padding:6px 13px;background:#fff;color:#687b6f;font-size:12px}.textbook-types button[aria-pressed=true]{background:var(--green);color:#fff;border-color:var(--green)}.textbook-empty{font-size:12px;line-height:1.8;padding:16px;background:#f7f9f4;color:#7d8a81}.textbook-picker .poem-results{max-height:330px}.input-tabs button{white-space:nowrap;padding-inline:6px}.quality-filter{display:flex;align-items:center;gap:8px;font-size:13px;color:#596d60;margin:12px 0}.quality-filter input{width:auto}.source-note a{color:#3c6b50;text-decoration:underline}.motto a{color:inherit}.content-actions{margin:-3px 0 12px;font-size:12px;color:#718075}.content-actions>div{display:flex;gap:8px;margin-top:10px}.content-actions button,.library-heading button{border:1px solid var(--border);border-radius:5px;background:#f7faf5;color:var(--green);padding:8px 12px}.settings .text-tools{margin-bottom:20px}.settings .radio-row{margin:6px 0 12px;gap:10px}.settings .radio-row strong{font-size:17px}.settings .radio-row small{font-size:12px;margin-top:4px}.settings fieldset{margin-bottom:20px}.font-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}.font-controls .layout-setting{margin-bottom:16px;min-width:0}.font-controls select{min-width:0;padding:9px 6px}.advanced-settings{border-top:1px solid var(--border);padding-top:14px}.advanced-settings summary,.book-notes summary{cursor:pointer;font-size:13px;color:var(--green);padding:5px 0}.advanced-settings summary span{font-size:11px;color:#718075;margin-left:14px}.advanced-settings[open] summary{margin-bottom:14px}.advanced-settings .section-title,.advanced-settings legend{font-family:inherit;font-size:14px;font-weight:500;letter-spacing:0}.settings .generate{margin-top:16px}.library-dialog{width:min(920px,calc(100% - 32px));max-height:88dvh;padding:24px;border:1px solid var(--border);border-radius:12px;color:#233b30;background:#fff;overflow:auto;overscroll-behavior:contain}.library-dialog::backdrop{background:#172b2266;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.library-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px}.library-heading h2{margin:0;font:600 25px Songti SC,serif}.library-heading p{font-size:12px;color:#718075;margin:8px 0}.library-heading button{white-space:nowrap}.library-dialog .poetry-picker{margin-bottom:0}.library-dialog .textbook-filters label{margin-top:0;min-width:0}.book-notes{margin:8px 0}.book-browse{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:20px;align-items:start}.book-browse .poem-results{max-height:460px;margin-top:0}.book-placeholder{padding:64px 20px;border:1px dashed var(--border);border-radius:6px;text-align:center;color:#718075;line-height:1.8}.library-dialog .poem-detail textarea{height:210px}.library-dialog .source-note{overflow-wrap:anywhere}.library-dialog:focus-visible,summary:focus-visible{outline:3px solid #82a68f;outline-offset:3px}@media(max-width:680px){.library-dialog{padding:18px;width:calc(100% - 20px);max-height:92dvh}.book-browse{grid-template-columns:1fr;gap:12px}.book-browse .poem-results{max-height:210px}.book-placeholder{display:none}.textbook-filters{gap:8px}.textbook-picker select{font-size:12px;padding:10px 4px}.library-heading h2{font-size:23px}.settings{padding:20px}.advanced-settings summary span{margin-left:8px}}@media print{.library-dialog,.library-dialog::backdrop{display:none!important}}@media(min-width:681px){.library-dialog .textbook-picker{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);column-gap:24px;align-items:start}.textbook-picker>:not(.book-browse){grid-column:1}.textbook-picker .book-browse{display:contents}.book-browse>div:first-child{grid-column:1}.book-browse>.poem-detail,.book-browse>.book-placeholder{grid-column:2;grid-row:1 / span 9}.book-browse .poem-results{max-height:230px}.textbook-picker>.source-note{grid-column:1 / -1}.library-dialog .poem-detail textarea{height:240px}}.feedback-bar{max-width:1410px;margin:20px auto 0;padding:0 24px;display:flex;gap:16px;align-items:center;flex-wrap:wrap;color:#687b6f;font-size:12px}.feedback-bar>button{padding:9px 14px;border:1px solid var(--border);background:#fff;border-radius:6px;color:var(--green)}.feedback-bar label{display:flex;align-items:center;gap:6px}.feedback-bar small{font-size:11px}.feedback-dialog{max-width:540px}.feedback-dialog form>label{display:block;margin:14px 0 8px;font-size:14px}.feedback-dialog select{display:block;width:100%;padding:10px;margin-top:8px;background:#fff;border:1px solid var(--border);border-radius:5px}.feedback-dialog button.primary{padding:12px 22px}.feedback-dialog [role=status]{font-size:13px;line-height:1.7}.feedback-dialog input[type=checkbox]{width:auto}.feedback-bar{display:block;max-width:1470px;padding:0 30px;margin-top:24px}.feedback-invite{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 28px;border:1px solid #cddbcf;border-radius:9px;background:#edf3e9}.feedback-invite strong{font:600 22px Songti SC,serif;color:#294c3b}.feedback-invite p{font-size:14px;line-height:1.7;margin:8px 0 0;color:#586f5f}.feedback-entry{flex-shrink:0;min-height:52px;min-width:190px;padding:14px 24px;border:1px solid var(--green);border-radius:7px;background:var(--green);color:#fff;font-size:17px;font-weight:600}.feedback-entry:hover{background:#294c3b}.feedback-entry span{margin-left:14px}.feedback-privacy{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:12px 0 0}.feedback-privacy label{min-height:32px}.feedback-privacy small{line-height:1.7}@media(max-width:680px){.feedback-bar{padding:0 14px}.feedback-invite{align-items:stretch;flex-direction:column;gap:18px;padding:20px}.feedback-entry{width:100%}.feedback-invite strong{font-size:21px}}.trial-button{width:100%;padding:10px 8px;min-height:44px;border:1px solid var(--border);border-radius:5px;background:#f5f8f2;color:var(--green);font-size:13px}.print-comparisons{margin:10px 0}.print-comparisons summary{cursor:pointer;color:var(--green);font-size:12px;padding:6px 0}.print-comparisons[open] summary{margin-bottom:8px}.history-entry{padding:9px 16px;background:#fff;border:1px solid var(--border);border-radius:6px;white-space:nowrap}.history-dialog{width:min(680px,94vw);max-height:85vh;overflow:auto;border:1px solid var(--border);border-radius:12px;padding:24px;color:#233b30}.history-dialog::backdrop{background:#18271e66}.history-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.history-heading h2{margin:0}.history-dialog p{font-size:14px;line-height:1.7}.history-dialog button{padding:8px 14px;background:#fff;border:1px solid var(--border);border-radius:5px;color:inherit}.history-list article{border-bottom:1px solid var(--border);padding:18px 0}.history-list h3{margin:0}.history-excerpt{white-space:pre-wrap;overflow-wrap:anywhere;color:#66746b}.history-actions{display:flex;gap:12px;margin-top:12px}.history-dialog small{color:#66746b}@media(max-width:600px){header{flex-wrap:wrap;height:auto;padding:16px;gap:12px}.export-actions{flex-wrap:wrap}.history-dialog{padding:16px}}@media print{.history-dialog,.history-entry{display:none!important}}.online-results{margin:20px 0;padding:14px;border:1px solid #d7cdb5;border-radius:6px;background:#fbfaf6}.online-results h3{margin:0 0 10px;font-size:16px}.online-results>p{line-height:1.8}.online-results .poem-results small{white-space:normal;overflow-wrap:anywhere}.online-results .poem-results a{display:inline-block;margin:0 9px 12px;color:var(--green);font-size:12px}.poetry-picker .quality-filter{display:flex;align-items:flex-start;line-height:1.8}.poetry-picker .quality-filter input{flex-shrink:0;margin-top:5px}
