/* Website design manual 1.2. Preserve the existing full-illustration layouts. */
:root{--paper:#FFF9F0;--white:#FFFFFF;--green:#587052;--dark:#42372F;--sage:#E7EDE2;--olive:#587052;--peach:#F5D8C8;--rust:#79502E;--muted:#6B6259;--line:#D9D2C5;--control:#85796B;--shadow:0 4px 16px rgba(66,55,47,.08);--sans:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;--serif:var(--sans)}
body{font-size:1rem;line-height:1.7;color:var(--dark);background:var(--paper)}
h1,h2,h3{font-family:var(--sans);font-weight:700}
h1,.hero h1{font-size:2.75rem;line-height:1.3}
.page-heading h1,.detail-hero h1{font-size:2.25rem;line-height:1.35}
h2,.section-head h2,.section-row h2{font-size:1.75rem;line-height:1.4}
h3,.theme-content h3{font-size:1.25rem;line-height:1.4}
.eyebrow,.tag,.helper,.small,.sample-note,.preview-label,.save-note,.hero-note,.form-stepper li,.step-progress{font-size:.875rem}
.eyebrow{color:var(--green)}
.brand-name{font-weight:700;letter-spacing:.04em}
.wrap{width:min(1200px,calc(100% - 64px));max-width:1200px}
.wrap.narrow{max-width:900px}
.hero-grid{width:100%;max-width:none}
.hero-copy{margin-left:max(32px,calc((100% - 1200px)/2))}
.hero-lead{font-size:1rem;color:var(--muted)}
.hero,.hero-art{background:var(--paper)}
.hero:after{background:linear-gradient(90deg,rgba(255,249,240,.97),rgba(255,249,240,.9) 24%,rgba(255,249,240,.4) 40%,transparent 54%)}
.hero h1 em{white-space:normal}
.hero-note{color:var(--muted)}
.site-header{height:80px;background:#fff9f0f5}
.section{padding:72px 0}
.btn,.hero-actions .btn.peach{min-height:48px;min-width:44px;border-radius:999px;font-size:1rem;font-weight:500;line-height:1.4;padding:12px 24px;box-shadow:none}
.btn,.btn.peach{background:var(--green);color:white}
.btn:hover,.btn.peach:hover{background:#455B40}
.btn:active{background:#354831}
.btn.secondary{background:var(--white);color:var(--green);border-color:var(--green)}
.btn.secondary:hover{background:var(--sage)}
.btn.white{background:var(--white);color:var(--green)}
.btn.danger{background:#A33A32;color:white}
.btn.small{min-height:44px;font-size:1rem}
.btn:disabled{background:#E7E2DA;color:#6B6259;opacity:1;transform:none}
.icon-btn,.thumb{min-width:44px;min-height:44px;width:44px;height:44px;flex-shrink:0;border-color:var(--control)}
.pill,.tab,.upload{min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:.875rem}
.text-link{min-height:44px;display:inline-flex;align-items:center;text-decoration:underline;text-underline-offset:4px}
.theme-card,.panel,.portrait-card{border-radius:20px}
.editorial-image,.detail-art{border-radius:24px}
.tag{color:var(--green);border-radius:8px}
.tag.peach{background:var(--peach);color:var(--dark)}
.tag.gray,.form-stepper li{color:var(--muted)}
.form-stepper .circle{border-color:var(--control)}
input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea,select{min-height:48px;border:1px solid var(--control);border-radius:12px;padding:12px 16px;background:white;color:var(--dark);font-size:1rem}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
textarea{min-height:144px}
.field label,.field-label{font-size:1rem;margin-bottom:8px}
.choice{border-color:var(--control);border-radius:12px}
.choice.selected{border-color:var(--green);background:var(--sage)}
.choice.selected strong:before{content:"✓ ";color:var(--green)}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #42372F;outline-offset:3px}
.cta-panel :focus-visible{outline-color:white}
.storage-warning{position:relative;z-index:40;padding:16px max(16px,calc((100% - 1200px)/2));background:#FFF0D8;color:#68410A;border-bottom:2px solid #8A5A13}
.storage-warning[hidden]{display:none}
.storage-warning p{margin:4px 0 12px}
.storage-warning .btn{margin:0 8px 8px 0}
.sample-sheet{width:min(100%,680px);margin:auto;aspect-ratio:1;min-height:min-content;display:flex;flex-direction:column;background:#FFF9F0;border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:var(--shadow)}
.sample-illustration{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}
.sample-illustration img{width:100%;height:auto;max-height:440px;object-fit:contain;display:block}
.sample-copy{padding:16px 24px;text-align:center;flex:none}
.sample-copy .eyebrow{display:block;margin:0 0 8px}
.sample-copy h2{font-size:clamp(1rem,2vw,1.4rem);line-height:1.7;margin:0;overflow-wrap:anywhere}
.sample-page-no{display:block;text-align:center;font-size:.875rem;color:var(--muted);padding:0 8px 12px}
.thumbnails{flex-wrap:wrap;gap:8px}
.product-specs p{overflow-wrap:anywhere}
@media(min-width:768px) and (max-width:1023px){.wrap{width:calc(100% - 48px)}.hero-grid{width:100%}.site-header{height:72px}.nav-links{top:72px}.section{padding:60px 0}.theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.hero-copy{margin:0 24px;width:auto}.hero:after{display:none}.nav-wrap{gap:16px}.nav-actions{gap:12px}.brand-name{font-size:1.35rem}.brand svg{width:36px;height:36px}}
@media(max-width:767px){.wrap{width:calc(100% - 32px)}.hero-grid{width:100%}.hero-copy{width:auto;margin:0 16px;padding:32px 0 24px}.site-header{height:64px}.nav-links{top:64px}.section{padding:44px 0}.theme-grid{grid-template-columns:1fr}.theme-content{padding:20px}.hero h1,h1{font-size:2rem;line-height:1.3}.page-heading h1,.detail-hero h1{font-size:1.75rem}.section-head h2,.section-row h2,h2{font-size:1.5rem}h3,.theme-content h3{font-size:1.125rem}.hero-lead{font-size:1rem}.icon-btn{width:44px;height:44px}.character-row{grid-template-columns:56px minmax(0,1fr) 44px;gap:8px}.character-photo{width:56px}.form-stepper{display:none}.step-progress{font-weight:700;color:var(--green)}.hero-actions{flex-wrap:wrap}.hero-note{font-size:.875rem}.choice-grid{grid-template-columns:1fr}.choice-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.sample-copy{padding:12px 16px}.price-table{table-layout:fixed;width:100%}.price-table .pick{padding:10px 8px;min-width:44px}.price-table th,.price-table td{overflow-wrap:anywhere}}
@media(max-width:360px){.nav-wrap{gap:8px}.brand{gap:7px}.brand-name{font-size:1.15rem}.brand svg{width:30px;height:30px}.nav-actions{gap:8px}.library-link span{display:none}.hero-actions .btn{width:100%}.choice-grid.two{grid-template-columns:1fr}.character-row{grid-template-columns:44px minmax(0,1fr) 44px}.character-photo{width:44px}.book-viewer{padding:12px 8px}}
