.year-word-modal{position:fixed;inset:0;z-index:1600;display:grid;place-items:center;padding:24px;background:rgba(20,21,18,.76);backdrop-filter:blur(12px)}
.year-word-preview.has-result{flex:0 0 auto;min-height:360px}
.year-word-modal.hidden{display:none}.year-word-dialog{position:relative;width:min(1280px,96vw);height:min(850px,94vh);overflow:hidden;border:1px solid rgba(224,207,178,.22);border-radius:28px;background:#141a17;color:#f2eadc;box-shadow:0 30px 90px rgba(0,0,0,.42);display:grid;grid-template-rows:auto 1fr auto}
.year-word-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:26px 30px 20px;border-bottom:1px solid rgba(224,207,178,.15)}.year-word-dialog>header span,.year-word-preview-heading>span,.year-word-dialog .step{font:600 11px/1.4 system-ui;letter-spacing:.22em;color:#c49b67}.year-word-dialog h2{margin:4px 0 2px;font:600 30px/1.2 "Source Han Serif CN",serif}.year-word-dialog h3{margin:5px 0 12px;font:600 19px/1.35 "Source Han Serif CN",serif}.year-word-dialog p{margin:0;color:#a99f90}.year-word-close{width:42px;height:42px;border:1px solid rgba(232,218,194,.25);border-radius:50%;background:transparent;color:#eee4d3;font-size:26px}
.year-word-body{min-height:0;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(410px,.92fr)}.year-word-body>main{overflow:auto;padding:24px 30px}.year-word-body>main>section{padding:0 0 24px;margin:0 0 24px;border-bottom:1px solid rgba(226,211,186,.12)}.year-word-body>aside{min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:24px 18px 40px 24px;background:#0d1210;border-left:1px solid rgba(226,211,186,.12);display:flex;flex-direction:column}.year-word-preview-heading h3{font-size:25px;margin-bottom:4px}.year-word-preview-heading p{min-height:22px}
.year-word-modes,.year-word-templates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.year-word-modes button,.year-word-templates button,.year-word-suggestions button{position:relative;text-align:left;border:1px solid rgba(221,202,170,.24);border-radius:14px;background:rgba(255,255,255,.025);color:#eee4d4;padding:14px;transition:background .18s,border-color .18s}.year-word-modes button:hover,.year-word-templates button:hover,.year-word-suggestions button:hover{background:rgba(216,188,142,.07)}.year-word-modes button.active,.year-word-templates button.active,.year-word-suggestions button.active{border-color:#c69d65;background:linear-gradient(135deg,rgba(143,111,68,.24),rgba(88,93,71,.18))}.year-word-modes strong,.year-word-modes small,.year-word-templates strong,.year-word-templates small{display:block}.year-word-modes small,.year-word-templates small{margin-top:4px;color:#a99f90;line-height:1.45}.year-word-templates span{font:600 9px system-ui;letter-spacing:.15em;color:#b89161}.year-word-templates i{position:absolute;right:11px;top:10px;color:#d4b27e;font-style:normal}
#yearWordStory{box-sizing:border-box;width:100%;height:112px;resize:vertical;border:1px solid rgba(221,202,170,.24);border-radius:14px;background:#0d1310;color:#f3eadb;padding:13px 15px;font:14px/1.7 system-ui;outline:none}#yearWordStory:focus,.year-word-manual input:focus{border-color:#bd9865;box-shadow:0 0 0 3px rgba(189,152,101,.1)}.year-word-story-meta{display:flex;justify-content:space-between;margin:7px 2px 11px;color:#8f887c}.year-word-keywords{display:flex;flex-wrap:wrap;gap:7px}.year-word-keywords button{border:1px solid rgba(221,202,170,.18);border-radius:999px;background:transparent;color:#bdb4a6;padding:6px 11px}.year-word-keywords button.active{border-color:#b99260;background:#3b3528;color:#f3e7d3}.year-word-recommend-action{margin-top:15px}.year-word-recommend-action>button{box-sizing:border-box;width:100%;min-height:50px;border:1px solid #b99768;border-radius:13px;background:#8d704b;color:#fff7e9;padding:12px 20px;display:flex;align-items:center;justify-content:center;gap:9px;font:600 16px/1.3 system-ui;box-shadow:0 8px 22px rgba(0,0,0,.14);transition:background .18s,border-color .18s}.year-word-recommend-action>button:hover{background:#997a51;border-color:#c4a06e}.year-word-recommend-action>button:disabled{cursor:wait;opacity:.88}.year-word-recommend-action>button span{color:#f2d7aa;font-size:17px}.year-word-recommend-action>p{margin-top:8px!important;text-align:center;font-size:12px;line-height:1.5;color:#91887a!important}.year-word-recommend-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:11px 0 0;padding:0;list-style:none}.year-word-recommend-progress:empty{display:none}.year-word-recommend-progress li{position:relative;padding:8px 8px 8px 24px;border-radius:9px;background:rgba(255,255,255,.035);color:#736d63;font-size:11px;white-space:nowrap}.year-word-recommend-progress li:before{content:"";position:absolute;left:9px;top:50%;width:6px;height:6px;margin-top:-3px;border-radius:50%;background:#5f5a52}.year-word-recommend-progress li.active{color:#e8d8bd;background:rgba(174,139,91,.12)}.year-word-recommend-progress li.active:before{background:#d0a96f;box-shadow:0 0 0 4px rgba(208,169,111,.1)}.year-word-recommend-progress li.done{color:#9b927f}.year-word-recommend-progress li.done:before{background:#75836a}
.year-word-suggestions{display:grid;gap:11px}.year-word-suggestions h4{margin:0;color:#d8c5a5;font:600 14px/1.5 system-ui}.year-word-suggestions>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.year-word-suggestions>p{padding:20px;border:1px dashed rgba(221,202,170,.2);border-radius:14px;text-align:center}.year-word-suggestions button{min-width:0;display:grid;grid-template-columns:50px minmax(0,1fr);align-items:center;gap:9px;padding:13px}.year-word-suggestions b{font:600 40px/1 "Source Han Serif CN",serif;color:#e6cfaa}.year-word-suggestions span,.year-word-suggestions strong,.year-word-suggestions small{display:block;min-width:0}.year-word-suggestions strong{color:#e8ddca;font-size:13px;line-height:1.4}.year-word-suggestions small{margin-top:5px;color:#a99f90;font-size:11px;line-height:1.45}.year-word-choice-divider{display:flex;align-items:center;gap:12px;margin:18px 0 14px;color:#756f65;font-size:12px}.year-word-choice-divider:before,.year-word-choice-divider:after{content:"";height:1px;flex:1;background:rgba(221,202,170,.13)}.year-word-manual{box-sizing:border-box;min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:7px;color:#b9af9e}.year-word-manual label{color:#e7dbca;font-weight:600}.year-word-manual small{color:#8f877b}.year-word-manual input{box-sizing:border-box;display:block;width:100%;min-width:0;height:52px;border:1px solid rgba(221,202,170,.24);border-radius:12px;background:#0d1310;color:#f0dfc4;text-align:center;font:600 28px/1 "Source Han Serif CN",serif;outline:none}.year-word-manual input::placeholder{color:#6f6a61;font:400 14px/1 system-ui}.field-error{min-height:18px!important;margin:0!important;color:#d98c78!important;font-size:12px}
.year-word-preview{min-height:0;margin-top:18px;flex:1;display:grid;place-items:center;overflow:hidden;border:1px solid rgba(230,214,188,.13);border-radius:19px;background:radial-gradient(circle at 65% 32%,#34342d,#121815 60%,#080b09)}.year-word-placeholder{text-align:center}.year-word-placeholder strong{display:block;font:700 190px/1 "Source Han Serif CN",serif;color:#d5c09b;opacity:.86}.year-word-placeholder small{letter-spacing:.2em;color:#8f8678}.year-word-compare{width:100%;height:100%;display:grid;grid-template-columns:32% 68%;gap:1px;background:#3a362f}.year-word-compare figure{position:relative;margin:0;overflow:hidden;background:#111}.year-word-compare img{width:100%;height:100%;object-fit:cover}.year-word-compare figcaption{position:absolute;left:10px;bottom:10px;padding:5px 8px;border-radius:999px;background:rgba(0,0,0,.62);font-size:11px}.year-word-preview.landscape{aspect-ratio:4/3;flex:none}.year-word-orientation,.year-word-result-actions{display:flex;gap:8px;margin-top:12px}.year-word-orientation button,.year-word-result-actions button{flex:1;border:1px solid rgba(221,202,170,.24);border-radius:10px;background:transparent;color:#ddd1bd;padding:9px}.year-word-orientation button.active,.year-word-result-actions button.primary{background:#8d724c;color:#fff4e3;border-color:#8d724c}.year-word-result-actions{flex-wrap:wrap;padding-bottom:16px}.year-word-result-actions button{min-width:29%}
.year-word-dialog>footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 30px;border-top:1px solid rgba(224,207,178,.14);background:#111714}.year-word-dialog>footer p{color:#d6cbbb}.year-word-dialog>footer p.error{color:#e28f7c}.year-word-dialog>footer small{display:block;margin-top:4px;color:#857e72}.year-word-dialog>footer>button{min-width:250px;border:0;border-radius:14px;background:#9a7b50;color:#fff7e8;padding:11px 24px;font:600 16px system-ui}.year-word-dialog>footer>button small{color:#ead9bd;font-size:11px}.year-word-dialog>footer>button:disabled,.year-word-dialog>footer>button.is-disabled{opacity:.42}.year-word-dialog>footer>button.is-disabled{cursor:pointer}
.year-word-confirm{position:absolute;inset:0;z-index:4;display:grid;place-items:center;background:rgba(6,8,7,.78);backdrop-filter:blur(8px)}.year-word-confirm.hidden,.year-word-orientation.hidden,.year-word-result-actions.hidden{display:none}.year-word-confirm>div{width:min(420px,86%);padding:28px;border:1px solid rgba(224,207,178,.25);border-radius:20px;background:#1a211d;box-shadow:0 20px 60px rgba(0,0,0,.4)}.year-word-confirm>div>span{font:600 10px system-ui;letter-spacing:.18em;color:#c99f69}.year-word-confirm dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:20px 0}.year-word-confirm dl div{padding:12px;border:1px solid rgba(224,207,178,.13);border-radius:11px}.year-word-confirm dt{font-size:12px;color:#938a7c}.year-word-confirm dd{margin:4px 0 0;font-weight:600}.year-word-confirm>div>div{display:flex;gap:9px}.year-word-confirm button{flex:1;border:1px solid rgba(224,207,178,.22);border-radius:10px;background:transparent;color:#e9decb;padding:10px}.year-word-confirm button.primary{background:#94764d}
@media(max-width:1100px){.year-word-suggestions>div{grid-template-columns:1fr}.year-word-recommend-progress{grid-template-columns:1fr}.year-word-recommend-progress li{white-space:normal}}
@media(max-width:900px){.year-word-modal{padding:0}.year-word-dialog{width:100vw;height:100vh;border-radius:0}.year-word-body{grid-template-columns:1fr}.year-word-body>aside{display:none}.year-word-dialog>header{padding:18px 20px}.year-word-body>main{padding:20px}.year-word-dialog>footer{padding:14px 20px}.year-word-dialog>footer>button{min-width:210px}}
@media(max-width:620px){.year-word-dialog>footer{align-items:stretch;flex-direction:column;gap:12px}.year-word-dialog>footer>button{width:100%;min-width:0}.year-word-modes,.year-word-templates{grid-template-columns:1fr}.year-word-story-meta{gap:12px}.year-word-recommend-action>button{min-height:52px}}
