:root { --paper:#fbf8f5; --ink:#233f38; --muted:#5f6f68; --green:#244d40; --coral:#b84b34; --line:#dedfd6; --rose:#f2d7cb; --soft:#eef0e7; --white:#fffefa; }
* { box-sizing:border-box; }
html { color-scheme:light; scroll-behavior:smooth; scroll-padding-top:24px; }
body { margin:0; background:var(--paper); color:var(--ink); font:16px/1.65 "Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; }
[hidden] { display:none!important; }
a { color:inherit; text-underline-offset:4px; }
button,input,textarea,select { font:inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { opacity:.55; cursor:not-allowed; }
:focus-visible { outline:3px solid var(--coral); outline-offset:4px; }
::selection { background:var(--rose); color:var(--ink); }
.page { width:min(1160px,calc(100% - 64px)); margin:auto; }
.skip { position:fixed; left:20px; top:-100px; z-index:10; padding:12px 20px; background:var(--white); }
.skip:focus { top:12px; }
.site-header { display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:100px; border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; gap:10px; text-decoration:none; font-size:28px; font-weight:750; letter-spacing:-1.5px; }
.brand img { border-radius:10px; }
.brand-dot { color:var(--coral); }
.site-header nav { display:flex; gap:26px; }
.site-header nav a { color:var(--muted); font-size:14px; text-decoration:none; padding:12px 0; }
.site-header nav a[aria-current],.site-header nav a:hover { color:var(--green); text-decoration:underline; text-decoration-color:var(--coral); text-decoration-thickness:2px; text-underline-offset:8px; }
.lang { font-size:13px; font-weight:650; text-decoration:none; border:1px solid var(--line); border-radius:30px; padding:8px 16px; white-space:nowrap; }
.hero { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:72px; padding:70px 0 80px; }
.eyebrow { color:var(--coral); font-size:11px; font-weight:750; letter-spacing:1.7px; margin:0 0 22px; }
.small-flower { font-size:24px; vertical-align:middle; margin-right:8px; }
h1,h2,h3,p { overflow-wrap:anywhere; }
h1 { font-family:Georgia,"Noto Serif CJK SC","Songti SC",serif; font-size:clamp(38px,4.6vw,62px); font-weight:500; line-height:1.1; letter-spacing:-2px; margin:0 0 26px; text-wrap:balance; }
html[lang=zh-CN] h1 { line-height:1.3; letter-spacing:-1px; }
html[lang=zh-CN] .hero h1 { white-space:pre-line; text-wrap:initial; }
h2 { font-size:clamp(24px,2.5vw,32px); line-height:1.25; letter-spacing:-.8px; margin:0 0 18px; font-weight:600; }
h3 { font-size:20px; line-height:1.35; margin:0 0 12px; }
p { margin:0 0 18px; }
.intro { font-size:16px; color:var(--muted); max-width:570px; }
.trust { display:flex; flex-wrap:wrap; gap:10px 18px; padding:0; margin:25px 0; list-style:none; font-size:12px; font-weight:600; }
.trust li::before { content:'✓'; margin-right:6px; color:var(--green); }
.hero-note { display:flex; align-items:center; gap:20px; margin-top:35px; border-top:1px solid var(--line); padding-top:18px; font:10px/1.5 ui-monospace,monospace; letter-spacing:1px; color:var(--muted); }
.note-flower { margin-left:auto; font-size:45px; line-height:1; color:var(--coral); }
.saver-card { padding:30px; background:var(--white); border:1px solid var(--line); border-radius:20px; box-shadow:0 15px 45px -28px #57413560; }
.card-top { display:flex; align-items:center; gap:12px; font:10px ui-monospace,monospace; letter-spacing:1.5px; margin-bottom:22px; }
.card-icon { width:34px; height:34px; border-radius:50%; display:grid; place-content:center; background:var(--rose); font-size:22px; }
.status-dot { width:7px; height:7px; border-radius:50%; background:var(--green); margin-left:auto; }
.saver-card h2 { font-size:24px; letter-spacing:-.5px; margin-bottom:10px; }
.hint,.fine { color:var(--muted); }
.hint { font-size:14px; }
.fine { font-size:12px; line-height:1.6; }
label { font-size:13px; font-weight:650; }
.label-row,.input-bottom,.count-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.label-row { margin-bottom:8px; }
.input-bottom { font:11px ui-monospace,monospace; color:var(--muted); margin:0 0 10px; }
.text-button { border:0; background:none; padding:10px 0; min-height:44px; color:var(--green); font-size:13px; font-weight:650; }
.text-button:hover { color:var(--coral); }
textarea,input[type=text],input[type=number],select { width:100%; border:1px solid #c6cec5; border-radius:9px; background:var(--white); color:var(--ink); padding:13px; }
textarea { display:block; resize:vertical; min-height:90px; }
textarea::placeholder,input::placeholder { color:#778079; opacity:1; }
#note-text { background:#f7f7f1; min-height:118px; font-size:14px; }
.primary,.secondary { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:46px; border-radius:8px; padding:10px 18px; font-size:13px; font-weight:650; text-decoration:none; }
.primary { background:var(--green); color:white; border:1px solid var(--green); }
.primary:hover { background:#183a2d; }
.secondary { background:var(--white); color:var(--ink); border:1px solid #c6cec5; }
.secondary:hover { background:var(--soft); }
#parse-submit { display:flex; width:100%; justify-content:space-between; font-size:14px; }
#parse-submit span { font-size:20px; }
#input-hint { margin:12px 0 4px; font-size:11px; }
.demo { display:block; margin:0 auto; }
.permission { border-top:1px solid var(--line); text-align:center; margin:6px 0 0; padding-top:14px; font-size:11px; }
.feedback:empty { display:none; }
.feedback { color:var(--green); font-size:13px; margin:12px 0; }
.error,.notice { background:#fbe8de; border-left:3px solid var(--coral); padding:12px 16px; font-size:14px; margin:16px 0; color:#833722; }
.panel { padding:30px; border:1px solid var(--line); border-radius:16px; background:var(--white); }
.result { margin-bottom:70px; }
.result .eyebrow { margin-bottom:10px; }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:25px; }
.section-head h2,.section-head h3 { margin-bottom:0; }
.section-aside { font-size:12px; color:var(--muted); text-align:right; }
.actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:16px 0; }
.actions a { min-height:44px; display:inline-flex; align-items:center; }
.files-heading { border-top:1px solid var(--line); padding-top:22px; margin-top:24px; }
.pill { border:1px solid var(--line); border-radius:30px; padding:4px 12px; font-size:12px; }
.note-description { white-space:pre-wrap; overflow-wrap:anywhere; }
.tags { color:var(--coral); font-size:13px; overflow-wrap:anywhere; }
.tags span { display:inline-block; background:#f6e7de; border-radius:6px; padding:3px 8px; margin:4px; }
.check { display:flex; align-items:center; gap:7px; min-height:44px; }
input[type=checkbox] { width:18px; height:18px; accent-color:var(--green); }
.media-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:18px; margin:20px 0; }
.media-card { min-width:0; background:#f5f5ed; border-radius:10px; overflow:hidden; padding:10px; }
.media-card img { display:block; width:100%; aspect-ratio:3/4; object-fit:contain; background:#eceee4; border-radius:6px; }
.media-card a { display:flex; justify-content:center; margin-top:8px; }
.video-card { grid-column:1/-1; }
.media-card video { display:block; width:100%; max-height:480px; background:#1d3028; border-radius:6px; }
.media-card select { margin:10px 0; }
.tools-section { padding:48px 0 55px; border-top:1px solid var(--line); }
.tools-section .eyebrow { margin-bottom:12px; }
.tool-grid { display:grid; grid-template-columns:1fr 1fr; gap:26px; }
.tool-card { display:grid; grid-template-columns:42% 1fr; border:1px solid var(--line); border-radius:14px; overflow:hidden; text-decoration:none; transition:transform .2s,box-shadow .2s; }
.tool-card:hover { transform:translateY(-3px); box-shadow:0 8px 25px -18px #243f38; }
.tool-art { position:relative; overflow:hidden; min-height:250px; padding:20px; }
.text-art { background:#ebeedf; }
.art-label { display:block; font:8px ui-monospace,monospace; letter-spacing:1px; }
.text-art strong { display:block; font:85px/1.2 Georgia,serif; letter-spacing:-6px; margin-top:15px; }
.coral { color:var(--coral); font-size:40px; margin-left:3px; }
.art-line { height:5px; border-radius:4px; background:#bbcab4; display:block; width:86%; margin:10px 0; }
.art-line.short { width:60%; }
.art-tag { font:11px Georgia,serif; display:block; margin-top:20px; }
.cover-art { background:#f0d3c6; }
.cover-shape { position:relative; background:#d27452; color:#fff5de; border:6px solid #fff6e9; width:120px; height:155px; margin:20px auto 0; transform:rotate(-9deg); box-shadow:5px 8px 0 #263f3820; padding:12px 6px; }
.cover-shape span { font:22px/.95 Georgia,serif; letter-spacing:-1px; }
.cover-shape i { display:block; font-size:55px; font-style:normal; text-align:right; line-height:1; }
.ratio-label { display:block; font:10px ui-monospace,monospace; text-align:center; margin-top:18px; }
.tool-card-copy { background:var(--white); padding:25px 24px; }
.tool-number { font:9px ui-monospace,monospace; color:var(--muted); letter-spacing:1px; }
.tool-card h3 { font-size:21px; margin:15px 0 12px; }
.tool-card p { font-size:13px; color:var(--muted); }
.tool-link { font-size:12px; font-weight:700; }
.steps-section { border-top:1px solid var(--line); padding:45px 0; }
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:40px; padding:0; margin:35px 0 0; list-style:none; }
.step-number { font:14px Georgia,serif; display:block; color:var(--coral); margin-bottom:18px; }
.steps h3 { font-size:17px; }
.steps p { font-size:14px; color:var(--muted); }
.faq-section { display:grid; grid-template-columns:1fr 1.4fr; gap:60px; border-top:1px solid var(--line); padding:50px 0 70px; }
.faq-section .eyebrow { margin-bottom:14px; }
.faq-section a { font-size:13px; }
details { border-bottom:1px solid var(--line); }
summary { cursor:pointer; font-size:14px; font-weight:600; padding:19px 26px 19px 0; }
details p { font-size:14px; color:var(--muted); }
.site-footer { display:grid; grid-template-columns:1fr 1.8fr auto; align-items:start; gap:35px; padding:35px 0; border-top:1px solid var(--line); font-size:12px; color:var(--muted); }
.footer-brand { font-size:24px; letter-spacing:-1px; font-weight:700; color:var(--green); text-decoration:none; }
.site-footer p { margin:8px 0; font-size:11px; }
.footer-links { display:flex; gap:20px; padding-top:10px; }
.ga-consent-widget { grid-column:1/-1; }
.article { max-width:760px; margin:65px auto 90px; }
.article h1 { font-size:clamp(34px,4vw,49px); }
.article h2 { margin:35px 0 15px; font-size:25px; }
.article p { color:var(--muted); }
.toc { display:grid; gap:9px; background:var(--soft); border-radius:12px; padding:22px; font-size:14px; margin:30px 0; }
.tool-intro { text-align:center; padding:60px 0 35px; }
.tool-intro h1 { font-size:clamp(34px,4vw,48px); max-width:800px; margin:0 auto 22px; }
.tool-intro .intro { margin:0 auto 16px; }
.local-badge { font-size:12px; color:var(--green); }
.studio { display:grid; grid-template-columns:1.1fr 1fr; gap:40px; align-items:start; margin:15px 0 50px; }
.studio-controls { display:grid; gap:10px; }
.studio-controls .fine { margin-bottom:5px; }
.studio-controls .actions { margin:5px 0; }
.count-row { align-items:start; font-size:11px; color:var(--muted); margin-bottom:8px; flex-wrap:wrap; }
.count-row input { width:70px; padding:4px 7px; }
.count-row label { font-size:11px; font-weight:400; }
.over-target { color:#a83e28; font-weight:600; }
.studio-preview { padding:25px; border-radius:16px; background:var(--soft); min-width:0; }
.studio-preview .eyebrow { margin-bottom:16px; }
.caption-preview { border:1px solid var(--line); background:var(--white); border-radius:12px; min-height:340px; padding:28px; margin-bottom:18px; }
.preview-avatar { width:42px; height:42px; background:var(--rose); color:var(--coral); border-radius:50%; display:grid; place-content:center; font-size:28px; margin-bottom:10px; }
.caption-preview h2 { font-size:22px; }
.caption-preview p { font-size:14px; }
input[type=range] { width:100%; accent-color:var(--green); min-height:26px; }
input[type=file] { width:100%; font-size:12px; }
input[type=file]::file-selector-button { padding:10px; border:1px solid var(--line); background:var(--soft); border-radius:8px; margin-right:10px; color:var(--ink); }
#cover-canvas { display:block; max-width:100%; width:auto; max-height:640px; height:auto; margin:auto; border-radius:8px; }
.cover-empty { display:flex; flex-direction:column; justify-content:center; text-align:center; min-height:440px; padding:20px; border:1px dashed #aebcab; border-radius:12px; }
.cover-empty>span { font-size:85px; line-height:1.3; color:var(--coral); }
.cover-empty h2 { font-family:Georgia,"Songti SC",serif; font-size:30px; margin-top:25px; }
.cover-empty p { color:var(--muted); font-size:13px; }
.tool-bottom { padding:20px 0 45px; }
.tool-bottom h2 { font-size:24px; }
.tool-bottom .actions { gap:26px; font-size:13px; }
@media(max-width:1000px) { .hero { gap:35px; } .site-header nav { gap:16px; } .tool-card { grid-template-columns:38% 1fr; } .tool-card-copy { padding:22px 18px; } .tool-art { padding:16px 12px; } .text-art strong { font-size:67px; } .coral { font-size:28px; } }
@media(max-width:760px) { .page { width:calc(100% - 36px); } .site-header { flex-wrap:wrap; gap:12px; padding:18px 0 12px; } .brand { font-size:26px; } .site-header nav { order:3; width:100%; justify-content:space-between; gap:12px; } .site-header nav a { font-size:12px; } .hero { display:flex; flex-direction:column; gap:20px; padding:24px 0 32px; } .hero-copy { display:contents; } .hero-copy .eyebrow { order:1; margin-bottom:8px; } .hero h1 { order:2; max-width:100%; font-size:32px; line-height:1.15; letter-spacing:-1px; margin:0 0 14px; } .saver-card { order:3; padding:20px 18px; border-radius:18px; box-shadow:0 10px 30px -15px #57413550; } .card-top { margin-bottom:12px; } .saver-card h2 { font-size:20px; margin:0 0 4px; } .saver-card .hint { font-size:13px; margin:0 0 12px; } .saver-card textarea { min-height:84px; } .hero-copy .intro { order:4; font-size:14px; line-height:1.5; margin:12px 0 6px; } .trust { order:5; margin:6px 0 0; gap:8px 14px; } .hero-note { display:none; } .tool-grid { grid-template-columns:1fr; gap:20px; } .tool-card { grid-template-columns:40% 1fr; } .section-head { align-items:start; flex-wrap:wrap; gap:12px; } .section-aside { text-align:left; } .tools-section { padding:35px 0; } .steps { gap:25px; } .faq-section { grid-template-columns:1fr; gap:20px; padding:35px 0 45px; } .site-footer { grid-template-columns:1fr; gap:15px; } .footer-links { padding-top:0; } .studio { grid-template-columns:1fr; gap:22px; } .tool-intro { padding:40px 0 20px; } .panel { padding:22px; } .article { margin:40px auto 60px; } }
@media(max-width:420px) { .page { width:calc(100% - 24px); } .site-header { padding:12px 0 8px; gap:8px; } .brand { font-size:22px; } .hero { gap:12px; padding:14px 0 22px; } .hero-copy .eyebrow { margin-bottom:4px; font-size:10px; } .hero h1 { font-size:24px; line-height:1.15; margin-bottom:8px; } .saver-card { padding:14px 12px; } .card-top { margin-bottom:8px; } .saver-card h2 { font-size:18px; margin:0 0 2px; } .saver-card .hint { font-size:12px; margin:0 0 8px; } .saver-card textarea { min-height:72px; } .steps { grid-template-columns:1fr; gap:15px; margin-top:25px; } .step-number { margin-bottom:9px; } .steps p { margin-bottom:5px; } .tool-card-copy { padding:20px 15px; } .cover-shape { width:105px; height:145px; } .tool-card h3 { font-size:19px; } .art-label { font-size:7px; } .text-art strong { font-size:60px; } .coral { font-size:25px; } .tool-art { min-height:255px; } .media-grid { grid-template-columns:1fr 1fr; gap:10px; } .media-card .secondary { padding:8px; font-size:12px; } .brand img { width:30px; height:30px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .tool-card { transition:none; } }
