:root{--bg:#f4f0e8;--panel:#fffdf9;--ink:#2f3b38;--muted:#68746c;--line:#ded9ce;--accent:#52724e;--soft:#e8f0e4;font-family:"Avenir Next","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg);font-size:17px;line-height:1.65}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 10% 0%,#fffdf9,transparent 35rem)}button,input{font:inherit;color:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #759e72;outline-offset:4px}button{cursor:pointer}h1,h2,p{margin:0}h1{font-size:24px;line-height:32px;letter-spacing:.04em}h2{font-size:24px;line-height:32px;margin:4px 0 12px}.caption,.preview-note,details{font-size:14px;line-height:22px}.caption{color:var(--muted)}.home{width:min(100% - 40px,760px);margin:0 auto;padding:36px 0 28px}.brand{display:flex;align-items:center;gap:14px}.brand img{flex:none}.intro{margin:28px 0 12px;font-size:17px;line-height:28px}.preview-note{display:inline-block;color:#746450;background:#ebe4d7;border-radius:8px;padding:5px 10px;margin-bottom:24px}.book-tool,.age-tool{border:1px solid var(--line);border-radius:24px;background:var(--panel);padding:28px}.book-tool{display:flex;gap:28px;align-items:center}.tool-copy{min-width:0}.book-art{width:144px;min-height:176px;flex:none;display:grid;place-content:center;position:relative;background:#dce8d3;border-radius:5px 14px 14px 5px;border-left:9px solid #afc5a2;transform:rotate(-4deg);box-shadow:4px 10px 18px #384b3520;text-align:center;font-weight:600;line-height:1.6;color:#3e583a}.book-art i{display:block;width:38px;height:22px;background:#f3c9ae;border-radius:50%;margin:16px auto 0}.primary,.secondary{display:flex;align-items:center;justify-content:center;gap:18px;min-height:52px;border-radius:14px;padding:10px 18px;font-size:17px;font-weight:600;text-decoration:none}.primary{background:var(--accent);color:white;margin-top:22px}.primary:hover{background:#42623e}.age-tool{margin-top:20px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.date-symbol{background:var(--soft);border-radius:14px;padding:8px 18px;color:var(--accent)}.date-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:12px 0 18px}label{display:flex;flex-direction:column;gap:8px;font-size:17px;min-width:0}input{width:100%;min-width:0;max-width:100%;height:52px;background:white;border:1px solid #b9c2b4;border-radius:12px;padding:8px 10px;font-size:17px}.secondary{width:100%;background:var(--soft);border:1px solid #b8cbb1;color:#385532}.result{margin-top:20px;padding:18px;background:var(--soft);border-radius:14px;font-size:17px;line-height:28px}.result strong{display:block;font-size:24px;line-height:32px;margin-bottom:6px}.error{margin-top:14px;color:#a04339}details{margin-top:20px;color:var(--muted)}details summary{cursor:pointer}details p{font-size:17px;line-height:28px;margin-top:10px}footer{padding:24px 4px 0;font-size:17px;line-height:28px;color:var(--muted)}footer .caption{margin-top:16px}[hidden]{display:none!important}
@media(max-width:500px){.home{width:calc(100% - 32px);padding-top:26px}.book-tool,.age-tool{padding:22px}.book-tool{align-items:flex-start;gap:16px}.book-art{width:78px;min-height:112px;font-size:14px;border-left-width:5px;margin-top:6px}.book-art i{width:24px;height:14px;margin-top:10px}.tool-copy{flex:1}.tool-copy p br{display:none}.book-tool h2{font-size:24px}.primary{padding-inline:10px;gap:8px}.date-fields{grid-template-columns:1fr;gap:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
