:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #28233a;
  background: #f7f2ed;
  --ink: #28233a;
  --muted: #7d768c;
  --paper: #fffdf9;
  --peach: #ffcab9;
  --peach-deep: #ef8e75;
  --lavender: #ded7ff;
  --lavender-deep: #7565c9;
  --mint: #bfe8d7;
  --line: #e9e1db;
  --shadow: 0 24px 60px rgba(75, 60, 89, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 8% 2%, #fff6ea 0, transparent 28%), #f7f2ed; }
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
#copy-dialog { width:min(560px,90vw); padding:24px; border:1px solid #e7dfda; border-radius:18px; color:var(--ink); background:#fff; }
#copy-dialog::backdrop { background:rgba(25,20,35,.45); }
#copy-dialog p { line-height:1.7; }
#copy-link-value { box-sizing:border-box; width:100%; resize:vertical; font-size:16px; padding:12px; border:1px solid #ddd; border-radius:8px; }
.copy-dialog-actions { display:flex; justify-content:flex-end; gap:12px; margin-top:16px; }
.copy-dialog-actions button { padding:10px 16px; border-radius:8px; background:#eee9f8; }

.page-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.site-header { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid rgba(89,72,99,.12); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; color: #fff; font-family: Georgia, serif; font-size: 23px; font-style: italic; border-radius: 13px 13px 13px 4px; background: var(--ink); box-shadow: 7px 7px 0 var(--peach); }
.brand b, .brand small { display: block; }
.brand b { font-size: 17px; letter-spacing: 1px; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 8px; letter-spacing: 2.1px; }
.site-header nav { display: flex; align-items: center; gap: 35px; color: #716a7d; font-size: 13px; }
.site-header nav a { position: relative; padding: 34px 0 29px; }
.site-header nav a::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; }
.site-header nav a:hover, .site-header nav a.active { color: var(--ink); }
.site-header nav a.active::after { background: var(--peach-deep); }
.header-note { padding: 10px 16px; color: #625a72; font-size: 12px; border: 1px solid #dcd4cf; border-radius: 999px; background: rgba(255,255,255,.55); }

.workspace { display: grid; grid-template-columns: 215px 1fr; min-height: 580px; overflow: hidden; margin: 36px 0 80px; border: 1px solid rgba(83,65,93,.13); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.tool-nav { padding: 32px 17px; border-right: 1px solid var(--line); background: #f4f0ec; }
.tool-nav > p { margin: 0 12px 18px; color: #9a929d; font-size: 10px; letter-spacing: 2px; }
.tool-nav > button { width: 100%; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 5px; padding: 13px 10px; margin-bottom: 7px; text-align: left; color: #928a98; border-radius: 12px; background: transparent; }
.tool-nav > button.current { color: var(--ink); background: #fff; box-shadow: 0 8px 22px rgba(68,53,77,.07); }
.tool-nav > button span { color: #aaa1ae; font-size: 9px; }
.tool-nav > button b { font-size: 12px; }
.tool-nav > button i { font-size: 8px; font-style: normal; }
.tool-nav > button.current i { color: #4f8c71; }
.side-tip { margin: 40px 10px 0; padding-top: 19px; border-top: 1px solid #ded8d3; }
.side-tip b { font-size: 10px; }
.side-tip p { color: #948c97; font-size: 10px; line-height: 1.7; }
.tool-panel { padding: 36px 42px 42px; min-width: 0; }
.tool-heading, .tool-heading > div, .author, .result header, .format, .format-actions, .cover-actions { display: flex; align-items: center; }
.tool-heading { justify-content: space-between; }
.tool-heading > div { gap: 13px; }
.tool-icon { display: grid; width: 44px; height: 44px; place-items: center; font-size: 21px; border-radius: 13px; background: var(--peach); }
.tool-heading small { display: block; color: #9c94a1; font-size: 8px; letter-spacing: 2px; }
.tool-heading h2 { margin: 4px 0 0; font-family: "Songti SC", STSong, serif; font-size: 22px; }
.status { display: flex; align-items: center; gap: 7px; color: #63806f; font-size: 10px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #67b28c; box-shadow: 0 0 0 4px #e1f2e9; }
.platforms { display: flex; flex-wrap: wrap; gap: 9px; margin: 28px 0 22px; }
.platforms span { display: flex; align-items: center; gap: 7px; padding: 7px 10px 7px 7px; color: #6e6775; font-size: 10px; border: 1px solid #e9e2dd; border-radius: 11px; background: #fff; }
.platforms b { display: grid; width: 25px; height: 25px; place-items: center; color: #fff; font-size: 9px; border-radius: 8px; }
.douyin,.twitter { background: #17151c; }.kuaishou{background:#ff5a30}.red{background:#ff3150}.bili{background:#19a9e5}.youtube{background:#f22}.weixin{background:#18bd65}
.parser { padding: 22px; border: 1px solid #e9e2de; border-radius: 19px; background: #fffaf7; }
.field-label { display: flex; justify-content: space-between; margin-bottom: 11px; }
.field-label label { font-size: 12px; font-weight: 700; }
#clear-button { color: #a49ba7; font-size: 10px; background: transparent; }
.field { position: relative; padding: 15px 76px 15px 16px; border: 1px solid #e4dcd7; border-radius: 13px; background: #fff; }
textarea { width: 100%; min-height: 72px; resize: vertical; color: var(--ink); font-size: 12px; line-height: 1.7; border: 0; outline: none; background: transparent; }
textarea::placeholder { color: #b8b0ba; }
#paste-button { position: absolute; top: 12px; right: 11px; padding: 8px 12px; color: #7c5c53; font-size: 10px; border-radius: 9px; background: #ffe5db; }
.parse-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 13px; }
.parse-row p { margin: 0; color: #98919b; font-size: 9px; }
.parse-row p span { color: #74ab91; }
.parse-button { min-width: 166px; height: 47px; display: flex; align-items: center; justify-content: center; gap: 15px; color: #fff; font-size: 12px; font-weight: 700; border-radius: 12px; background: var(--ink); box-shadow: 0 9px 18px rgba(39,34,55,.17); }
.parse-button:hover { transform: translateY(-1px); }
.parse-button:disabled { color: #aaa3af; background: #e6e0e5; box-shadow: none; }
.parse-button b { font-size: 18px; }
.error { display: flex; gap: 13px; margin-top: 18px; padding: 17px; color: #9e4d42; border: 1px solid #f2c7bd; border-radius: 15px; background: #fff5f1; }
.error > b { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; color: #fff; border-radius: 10px; background: #e58170; }
.error strong, .error span { display: block; }.error strong{font-size:12px}.error span{margin-top:4px;font-size:10px}
.result { display: grid; grid-template-columns: minmax(250px, .8fr) 1.2fr; overflow: hidden; margin-top: 20px; border: 1px solid #e7dfda; border-radius: 19px; background: #fff; }
.cover { position: relative; min-height: 320px; background: #25212e; }
.cover img, .cover video { width: 100%; height: 100%; position: absolute; inset: 0; border: 0; object-fit: contain; background: #17141e; }
.cover > span { position: absolute; bottom: 13px; padding: 7px 10px; color: #fff; font-size: 9px; border-radius: 9px; background: rgba(30,26,39,.78); backdrop-filter: blur(8px); }
#platform-badge { left: 13px; } #duration { right: 13px; }
.result-body { min-width: 0; padding: 24px; }
.author { gap: 9px; }
.author > img, .avatar-fallback { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.avatar-fallback { display: grid; place-items: center; color: #695e7f; font-weight: 700; background: var(--lavender); }
.author-copy { min-width: 0; flex: 1; }.author-copy b,.author-copy small{display:block}.author-copy b{font-size:11px}.author-copy small{margin-top:3px;color:#aaa2ad;font-size:9px}
.author em { padding: 7px 9px; color: #4e8469; font-size: 9px; font-style: normal; border-radius: 999px; background: #e7f5ee; }
.result h3 { margin: 19px 0 12px; font-family: "Songti SC", STSong, serif; font-size: 19px; line-height: 1.45; }
.stats { display: flex; gap: 18px; padding: 10px 0 16px; color: #a199a6; font-size: 9px; border-bottom: 1px solid #eee7e3; }
.stats b { margin-right: 3px; color: #5e5668; }
.result-notice { margin: 14px 0 0; padding: 10px 12px; color: #725f4d; font-size: 9px; line-height: 1.7; border-radius: 9px; background: #fff5e9; }
.result header { justify-content: space-between; margin: 18px 0 9px; }.result header b{font-size:11px}.result header span{color:#aaa2ad;font-size:9px}
.formats { overflow: hidden; border: 1px solid #e9e2de; border-radius: 12px; }
.format { justify-content: space-between; gap: 12px; padding: 11px; border-bottom: 1px solid #eee8e4; }.format:last-child{border-bottom:0}
.quality b,.quality small{display:block}.quality b{font-size:11px}.quality small{margin-top:3px;color:#aaa2ad;font-size:8px}
.format-actions { gap: 6px; }.format-actions button,.format-actions a,.cover-actions button,.cover-actions a{padding:8px 10px;font-size:9px;border-radius:8px}
.format-actions button,.cover-actions button{color:#756d7b;background:#f1eeef}.format-actions a,.cover-actions a{color:#fff;background:var(--lavender-deep)}
.format-actions button.active { color:#fff; background:var(--peach-deep); }
.cover-actions { gap: 8px; }.cover-actions > *{flex:1;text-align:center}

.guide small { color: #968ca2; font-size: 9px; letter-spacing: 2px; }
.guide h2 { margin: 7px 0 0; font-family: "Songti SC", STSong, serif; font-size: 31px; }
.guide { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; margin-bottom: 80px; padding: 44px; color: #fff; border-radius: 26px 26px 26px 8px; background: var(--ink); }
.guide > div > p { max-width: 320px; color: #aaa4b5; font-size: 11px; line-height: 1.8; }
.guide ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.guide li { padding: 19px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.04); }
.guide li span { display: grid; width: 25px; height: 25px; place-items: center; color: var(--ink); font-size: 9px; border-radius: 8px; background: var(--peach); }
.guide li b { display: block; margin-top: 18px; font-size: 11px; }.guide li p{margin:7px 0 0;color:#aaa4b5;font-size:9px;line-height:1.7}
.site-footer { min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 25px; color: #908895; font-size: 10px; border-top: 1px solid #dfd7d1; }
.brand.compact .brand-mark { width: 34px; height: 34px; font-size: 18px; box-shadow: 5px 5px 0 var(--peach); }.brand.compact b{font-size:13px}
.toast { position: fixed; z-index: 20; left: 50%; bottom: 28px; padding: 11px 17px; color: #fff; font-size: 11px; border-radius: 999px; background: rgba(40,35,58,.92); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.tool-nav > button b { font-size: 14px; }
.tool-nav > button i { font-size: 12px; }
.image-tool { padding: 32px; }
.mail-tool { font-size: 16px; }
.mail-intro { color: var(--muted); margin: 22px 0; line-height: 1.7; }
.mail-workspace { display: grid; grid-template-columns: minmax(0,1fr); gap: 22px; align-items: start; }
.mail-controls, .mail-inbox { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; min-width: 0; }
.mail-controls { display: flex; flex-direction: column; gap: 14px; }
.mail-controls label { font-weight: 700; }
.mail-controls textarea, .mail-controls select { width: 100%; min-width: 0; padding: 12px; font: inherit; border: 1px solid var(--line); border-radius: 10px; background: #faf8ff; color: var(--ink); }
.mail-create-row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.mail-domain-field { display: grid; gap: 10px; flex: 0 1 300px; min-width: 0; max-width: 100%; }
.mail-provider-field { display: grid; gap: 10px; flex: 0 1 210px; min-width: 0; max-width: 100%; }
.mail-session-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.mail-session-actions button { white-space: nowrap; }
.mail-create-row .image-generate { width: auto; margin: 0; min-height: 46px; }
#mail-address { font-size: 20px; line-height: 1.6; min-height: 92px; overflow-wrap: anywhere; word-break: break-all; resize: vertical; }
.mail-address-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mail-tool #mail-copy { color: #fff; background: #6351bb; font-size: 16px; }
.mail-privacy-details { color: #6e6477; font-size: 14px; line-height: 1.7; }
.mail-privacy-details summary { cursor: pointer; }
.mail-controls #mail-domain-note { margin: 0; }
.mail-tool button { padding: 12px 15px; border-radius: 10px; background: #eee9f6; font-size: 14px; }
.mail-tool button:disabled { opacity: .5; cursor: not-allowed; }
.mail-tool button:focus-visible, .mail-tool textarea:focus-visible, .mail-tool select:focus-visible { outline: 2px solid var(--lavender-deep); outline-offset: 3px; }
.mail-tool .image-generate { background: var(--lavender-deep); font-size: 16px; }
.mail-tool .mail-danger { background: #fff0ec; color: #963a2b; }
.mail-warning { padding: 16px; border: 1px solid #e7bc80; background: #fff6e8; border-radius: 12px; line-height: 1.8; }
.mail-warning a { text-decoration: underline; font-weight: 700; }
#mail-lifetime, #mail-status { font-size: 14px; line-height: 1.7; color: #6e6477; }
.mail-inbox header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.mail-inbox h3 { font-size: 20px; margin: 0; }
#mail-count { font-size: 14px; background: #eee9f6; border-radius: 20px; padding: 3px 9px; }
.mail-empty { padding: 65px 10px; color: var(--muted); text-align: center; line-height: 1.8; }
.mail-tool .mail-message { display: grid; gap: 8px; width: 100%; text-align: left; border: 1px solid var(--line); margin: 10px 0; background: #fffdfb; overflow-wrap: anywhere; }
.mail-message b { font-size: 16px; }.mail-message small, .mail-message span { font-size: 14px; color: var(--muted); }
.mail-pages { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; margin-top: 20px; }
#mail-detail { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
#mail-body { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 16px; line-height: 1.8; }
#mail-sender { font-size: 14px; color: var(--muted); }#mail-codes { display: flex; gap: 8px; flex-wrap: wrap; }
.mail-code-card { display: flex; flex: 1 1 240px; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; margin: 12px 0; border: 2px solid #7965cf; border-radius: 14px; background: #f3efff; }
.mail-code-card small { display: block; font-size: 14px; color: #584879; }
.mail-code-card strong { display: block; font-size: 32px; letter-spacing: .12em; color: #39276d; line-height: 1.5; overflow-wrap: anywhere; }
.mail-tool .mail-code-card button { background: #6351bb; color: #fff; font-size: 16px; }
.mail-tool .mail-message .mail-code-preview { display: block; justify-self: start; background: #eee8ff; border: 1px solid #b8a7f0; border-radius: 9px; padding: 9px 14px; color: #39276d; font-size: 22px; font-weight: 700; letter-spacing: .08em; }
@media(max-width:600px) { .mail-controls, .mail-inbox { padding: 16px; } .mail-create-row { align-items: stretch; } .mail-domain-field, .mail-provider-field { flex-basis: 100%; } .mail-session-actions { width: 100%; } .mail-create-row button { flex: 1; } #mail-address { font-size: 18px; } }
@media(max-width:1150px) { .mail-workspace { grid-template-columns: 1fr; } }
.image-tool .tool-heading h2 { font-family: inherit; font-weight: 700; font-size: 26px; line-height: 1.3; }
.image-tool .tool-heading small { font-size: 12px; }
.image-tool-icon { background: var(--lavender); color: #6351bb; }
.image-provider { font-size: 14px; color: var(--muted); }
.image-intro { color: var(--muted); font-size: 16px; margin: 20px 0 28px; }
.image-workspace { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 20px; align-items: start; }
.image-form, .image-output { padding: 20px; min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.image-field-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.image-field-heading label, .image-ratios legend { font-size: 16px; font-weight: 700; }
.image-field-heading > span { color: var(--muted); font-size: 12px; }
#image-prompt { min-height: 185px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 16px; background: #fffdfb; }
#image-prompt::placeholder { color: #857b8b; }
#image-prompt:focus-visible { outline: 2px solid var(--lavender-deep); outline-offset: 2px; }
.image-ratios { margin: 24px 0; padding: 0; border: 0; min-width: 0; }
.image-ratio-options { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 3px; margin-top: 12px; }
.image-ratio-options label { position: relative; cursor: pointer; min-width: 0; }
.image-ratio-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.image-ratio-options label > span { min-height: 122px; padding: 10px 1px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; border: 1px solid transparent; border-radius: 10px; }
.image-ratio-options i { display: block; width: 42px; max-width: 90%; height: auto; aspect-ratio: var(--ratio); border: 2px solid #bbb4c3; border-radius: 5px; margin: auto 0 12px; }
.image-ratio-options b { font-size: 14px; font-weight: 500; }
.image-ratio-options small { font-size: 12px; color: #78717f; margin-top: 4px; text-align: center; overflow-wrap: anywhere; }
.image-ratio-options input:checked + span { background: #f0ebff; border-color: #a797e6; }
.image-ratio-options input:checked + span i { background: #ded7ff; border-color: var(--lavender-deep); }
.image-ratio-options input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.image-generate { width: 100%; padding: 16px 12px; font-size: 16px; font-weight: 700; border-radius: 12px; color: #fff; background: var(--lavender-deep); }
.image-generate:disabled { cursor: not-allowed; color: #6c627d; background: #e7e1f2; }
.image-integration-note { color: #7a624d; font-size: 14px; line-height: 1.65; margin-bottom: 0; }
.image-output { display: grid; gap: 18px; }
.image-canvas { width: 100%; aspect-ratio: 1; min-height: 210px; max-height: 540px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; border-radius: 12px; text-align: center; padding: 18px; background: #f5f2f8; }
.image-canvas span { color: var(--lavender-deep); font-size: 60px; line-height: 1; }
.image-canvas p { margin: 8px 0 0; font-size: 16px; line-height: 1.6; }
.image-canvas small { color: var(--muted); font-size: 14px; line-height: 1.6; }
.image-output-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 14px; }
.image-privacy { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 14px 0 0; }
.image-privacy a { text-decoration: underline; }
#generated-image { display: block; width: 100%; height: 100%; max-height: 500px; object-fit: contain; }
.image-result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.image-result-actions > * { flex: 1; padding: 12px; font-size: 14px; text-align: center; border-radius: 10px; background: #eee9f6; }
.image-result-actions a { color: #fff; background: var(--lavender-deep); }
@media (min-width:901px) and (max-width:1150px) { .image-workspace { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .page-shell { width: min(100% - 28px, 720px); }
  .site-header nav { display: none; }
  .workspace { grid-template-columns: 1fr; }
  .tool-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .tool-nav > p, .tool-nav .side-tip, .tool-nav > button:disabled { display: none; }
  .tool-nav > button { width: auto; flex: 1; margin: 0; grid-template-columns: 1fr auto; }
  .tool-nav > button > span { display: none; }
  .tool-panel { padding: 30px; }
  .guide { grid-template-columns: 1fr; }
  .result { grid-template-columns: 1fr; }.cover{min-height:400px}
}

@media (max-width: 620px) {
  .page-shell { width: 100%; }
  .site-header { height: 74px; padding: 0 18px; }.header-note{display:none}
  .brand-mark { width: 37px; height: 37px; }.brand b{font-size:15px}
  .workspace { margin-top: 20px; border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
  .tool-panel { padding: 27px 18px 35px; }.status{display:none}.platforms{gap:7px}.platforms span{padding-right:7px;font-size:9px}
  .image-workspace { grid-template-columns: 1fr; }
  .image-provider { display: none; }
  .image-form, .image-output { padding: 16px; }
  .parse-row { align-items: stretch; flex-direction: column; }.parse-button{width:100%}
  .result { grid-template-columns: 1fr; }.cover{min-height:270px}.result-body{padding:19px}
  .guide { margin: 0 14px 55px; padding: 30px 21px; border-radius: 22px; }.guide ol{grid-template-columns:1fr}.guide li{display:grid;grid-template-columns:30px 1fr;column-gap:9px}.guide li span{grid-row:1 / span 2}.guide li b{margin-top:3px}.guide li p{grid-column:2}
  .site-footer { padding: 25px 18px; align-items:flex-start; flex-direction:column; }.site-footer>p{margin:0}
}
.mail-link-card { padding: 16px; margin-bottom: 12px; border: 1px solid #ded6f4; border-radius: 14px; background: #f8f5ff; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mail-link-card a { color: #604ab7; font-size: 18px; font-weight: 700; text-decoration: underline; overflow-wrap: anywhere; }
.mail-link-card small { flex-basis: 100%; overflow-wrap: anywhere; color: #686079; }
.mail-link-card button { padding: 8px 16px; }
