:root {
  color-scheme: light;
  --ink: #202039;
  --muted: #68667d;
  --purple: #6c4bff;
  --pink: #ff579b;
  --mint: #48d8c1;
  --paper: #fffdfd;
  --lavender: #f0edff;
  --border: #e4e0f1;
  --shadow: 0 24px 65px rgba(61, 39, 135, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: linear-gradient(180deg, #fbf9ff 0, #fff 34rem, #fff9fc 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.3rem; font-weight: 850; letter-spacing: -0.06em; }
.brand img { border-radius: 13px; object-fit: cover; box-shadow: 0 7px 16px rgba(105, 76, 255, 0.24); }
.brand-accent { color: var(--pink); }
nav { display: flex; align-items: center; gap: 30px; font-size: 0.94rem; font-weight: 650; color: var(--muted); }
nav a:hover { color: var(--purple); }

.hero {
  width: min(1180px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
  min-height: 510px;
  margin: 0 auto;
  padding: 44px 0 72px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.eyebrow { margin: 0 0 12px; color: var(--purple); font-size: .75rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 680px; margin-bottom: 21px; font-size: clamp(2.7rem, 5.2vw, 5rem); line-height: .99; letter-spacing: -.085em; }
h1 em { color: var(--purple); font-style: normal; }
.hero-description { max-width: 500px; color: var(--muted); font-size: 1.1rem; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 29px; }
.button { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 1px solid transparent; border-radius: 13px; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--purple), #8b6dff 70%, var(--pink)); box-shadow: 0 11px 23px rgba(101, 68, 245, .25); }
.button-primary:hover { box-shadow: 0 15px 29px rgba(101, 68, 245, .34); }
.button-quiet { border-color: var(--border); background: #fff; color: var(--ink); }
.hero-stats { display: flex; gap: clamp(18px, 4vw, 44px); margin: 48px 0 0; }
.hero-stats div { display: grid; gap: 5px; }
.hero-stats dt { font-size: 1.1rem; font-weight: 850; letter-spacing: -.05em; }
.hero-stats dd { margin: 0; color: var(--muted); font-size: .8rem; }
.hero-art { min-width: 0; display: flex; justify-content: flex-end; }
.hero-art img { width: min(100%, 640px); display: block; border-radius: 22px; box-shadow: 0 22px 48px rgba(74, 47, 146, .16); }

.creator-section, .how-section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 88px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.07em; }
.section-heading > p { max-width: 360px; margin-bottom: 4px; color: var(--muted); line-height: 1.65; }
.creator-grid { display: grid; grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--border); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.template-panel { min-height: 635px; padding: 20px; border-right: 1px solid var(--border); background: linear-gradient(180deg, #faf9ff, #fff); }
.search-field { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--purple); }
.search-field input { width: 100%; height: 42px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.template-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 10px; }
.template-filters { display: flex; min-width: 0; gap: 5px; }
.template-filters button, .category-filter select, .template-favorite { min-height: 32px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: #514c6b; font-size: .74rem; font-weight: 750; }
.template-filters button { min-width: 0; flex: 1; padding: 5px 7px; }
.template-filters button[aria-pressed="true"] { border-color: #a695ff; background: #f0edff; color: var(--purple); }
.category-filter select { max-width: 112px; padding: 5px 24px 5px 8px; outline: 0; }
.template-meta { display: flex; gap: 4px; margin: 17px 2px 10px; color: var(--muted); font-size: .78rem; }
.template-list { position: relative; max-height: 535px; overflow: auto; padding-right: 5px; }
.template-list:focus { outline: none; }
.template-list-spacer { width: 1px; pointer-events: none; }
.template-list-rows { position: absolute; inset: 0 5px auto 0; }
.template-button { width: 100%; height: 56px; display: grid; align-content: center; gap: 3px; margin-bottom: 5px; padding: 8px 11px; border: 0; border-radius: 10px; background: transparent; color: #4d4a65; text-align: left; transition: background .16s ease, color .16s ease; }
.template-name { overflow: hidden; font-size: .86rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.template-key { overflow: hidden; color: #88839f; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .69rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.template-button[aria-selected="true"] .template-key { color: #765ce2; }
.template-button:hover, .template-button[aria-selected="true"] { background: #ece8ff; color: #5636dd; font-weight: 750; }
.template-empty { padding: 25px 10px; color: var(--muted); font-size: .9rem; text-align: center; }

.workbench { padding: clamp(22px, 4vw, 44px); background: radial-gradient(circle at 94% 3%, #f2eeff 0, transparent 24rem), #fff; }
.selected-template { display: grid; grid-template-columns: minmax(160px, 210px) 1fr; align-items: center; gap: 25px; padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.preview-frame { position: relative; min-height: 150px; display: grid; place-items: center; overflow: hidden; border-radius: 17px; background: linear-gradient(135deg, #e2dcff, #ffe0ed); }
.preview-frame img { width: 100%; min-height: 150px; object-fit: cover; }
.preview-fallback { position: absolute; color: #675d94; font-size: .86rem; }
.template-summary h3, .result-heading h3 { margin-bottom: 7px; font-size: 1.55rem; letter-spacing: -.045em; }
.template-summary p:last-child { margin-bottom: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.template-favorite { margin-top: 13px; padding: 6px 10px; color: var(--purple); }
.template-favorite[aria-pressed="true"] { border-color: #b894ff; background: #f0edff; }
.template-favorite:disabled { cursor: not-allowed; opacity: .55; }
.generator-form { display: grid; gap: 24px; padding-top: 28px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 11px; font-size: .98rem; font-weight: 800; }
legend span { color: var(--muted); font-size: .79rem; font-weight: 500; }
.upload-zone { min-height: 120px; display: grid; place-content: center; justify-items: center; gap: 7px; border: 1.5px dashed #c9c0f3; border-radius: 15px; background: #fbfaff; color: #635b83; text-align: center; cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.upload-zone:hover, .upload-zone.dragging { border-color: var(--purple); background: #f2efff; }
.upload-zone strong { color: var(--purple); }
.upload-zone small { color: #88839f; }
.upload-icon { color: var(--purple); font-size: 1.7rem; line-height: 1; }
#imageInput { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.field-note { min-height: 20px; margin: 8px 2px 0; color: var(--muted); font-size: .8rem; }
.local-image-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 9px; margin-top: 11px; }
.local-image-preview { position: relative; min-width: 0; margin: 0; padding: 5px; border: 1px solid var(--border); border-radius: 11px; background: #fff; }
.local-image-preview img { display: block; width: 100%; aspect-ratio: 1; border-radius: 7px; background: #f5f2ff; object-fit: cover; }
.local-image-preview figcaption { overflow: hidden; margin-top: 5px; color: var(--muted); font-size: .68rem; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.local-image-remove { position: absolute; top: 9px; right: 9px; width: 23px; height: 23px; display: grid; place-items: center; padding: 0; border: 1px solid #fff; border-radius: 999px; background: rgba(43, 36, 75, .78); color: #fff; font-size: 1rem; line-height: 1; box-shadow: 0 2px 7px rgba(33, 28, 55, .2); }
.local-image-remove:hover { background: #c62d5f; }
.image-source-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.image-source-option { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; color: #514c6b; font-size: .84rem; font-weight: 700; cursor: pointer; }
.image-source-option:has(input:checked) { border-color: #a695ff; background: #f1efff; color: var(--purple); }
.image-source-option input { accent-color: var(--purple); }
.qq-avatar-fields { padding: 14px; border: 1px solid #d9d2ff; border-radius: 15px; background: #fbfaff; }
.qq-avatar-note { margin: 0 0 12px; color: #635b83; font-size: .82rem; line-height: 1.65; }
.qq-avatar-inputs { display: grid; gap: 10px; }
.qq-avatar-slot { display: grid; gap: 6px; color: #514c6b; font-size: .82rem; font-weight: 750; }
.qq-role-label { margin-left: 4px; color: var(--purple); font-size: .72rem; }
.qq-avatar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.qq-avatar-row input { min-width: 0; min-height: 42px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; outline: 0; color: var(--ink); }
.qq-avatar-row input:focus { border-color: #9c88ff; box-shadow: 0 0 0 3px #eeeaff; }
.qq-role-button { min-height: 42px; padding: 8px 10px; border: 1px solid #d8d1ff; border-radius: 10px; background: #fff; color: var(--purple); font-size: .76rem; font-weight: 750; }
.qq-role-button[aria-pressed="true"] { border-color: var(--purple); background: #edeaff; }
.text-inputs { display: grid; gap: 9px; }
.text-input { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; outline: 0; color: var(--ink); transition: border-color .16s ease, box-shadow .16s ease; }
.text-input:focus, .search-field:focus-within { border-color: #9c88ff; box-shadow: 0 0 0 3px #eeeaff; }
.text-add { margin-top: 10px; padding: 0; border: 0; background: transparent; color: var(--purple); font-size: .85rem; font-weight: 750; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 4px; }
.form-status { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.generation-actions { display: flex; flex-shrink: 0; align-items: center; gap: 9px; }
.cancel-generate { min-height: 42px; padding: 8px 13px; font-size: .82rem; }
.generate-button:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }
.result-panel { margin-top: 35px; padding-top: 28px; border-top: 1px solid var(--border); }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.result-heading .eyebrow { margin-bottom: 6px; }
.result-heading h3 { margin: 0; }
.result-panel img { display: block; max-width: 100%; max-height: 680px; margin: 0 auto; border-radius: 14px; box-shadow: 0 16px 34px rgba(49, 39, 89, .17); }

.how-section { padding-top: 40px; padding-bottom: 98px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; margin: 0; list-style: none; }
.steps li { min-height: 190px; padding: 25px; border: 1px solid var(--border); border-radius: 20px; background: #fff; }
.steps span { display: inline-grid; width: 36px; height: 29px; place-items: center; border-radius: 9px; background: #eeeaff; color: var(--purple); font-size: .76rem; font-weight: 850; }
.steps h3 { margin: 20px 0 7px; font-size: 1.18rem; letter-spacing: -.04em; }
.steps p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.guide-page { background: linear-gradient(180deg, #fbf9ff 0, #fff 28rem, #fff9fc 100%); }
.guide-main { width: min(1000px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 82px; }
.guide-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .75fr); align-items: center; gap: clamp(28px, 6vw, 80px); padding: 45px 0 68px; }
.guide-hero h1 { margin-bottom: 17px; font-size: clamp(2rem, 2.8vw, 3.1rem); line-height: 1.1; letter-spacing: -.055em; }
.guide-hero > div > p:not(.eyebrow) { max-width: 610px; margin-bottom: 0; color: var(--muted); font-size: 1.04rem; line-height: 1.75; }
.guide-key-card { display: grid; gap: 13px; padding: 24px; border: 1px solid #d7cdfd; border-radius: 21px; background: linear-gradient(145deg, #f8f6ff, #fefaff); box-shadow: var(--shadow); }
.guide-key-card p { margin: 0; color: var(--purple); font-size: .78rem; font-weight: 850; letter-spacing: .08em; }
.guide-key-card code { overflow-wrap: anywhere; padding: 11px; border-radius: 10px; background: #292440; color: #f8f6ff; font: .73rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.guide-key-card small { color: var(--muted); font-size: .78rem; line-height: 1.6; }
.guide-section { padding: 38px 0 44px; }
.guide-section + .guide-section { border-top: 1px solid var(--border); }
.guide-section-heading { margin-bottom: 24px; }
.guide-section-heading .eyebrow { margin-bottom: 8px; }
.guide-section-heading h2 { margin: 0; font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -.06em; }
.guide-steps, .guide-reference-grid, .guide-limits-grid { display: grid; gap: 16px; padding: 0; margin: 0; }
.guide-steps { grid-template-columns: repeat(3, 1fr); list-style: none; }
.guide-steps li, .guide-card { padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.guide-steps span { display: inline-grid; width: 36px; height: 29px; place-items: center; border-radius: 9px; background: #eeeaff; color: var(--purple); font-size: .76rem; font-weight: 850; }
.guide-steps h3, .guide-card h3 { margin: 17px 0 8px; font-size: 1.03rem; letter-spacing: -.025em; }
.guide-steps p, .guide-card > p, .guide-card li { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.7; }
.guide-reference-grid { grid-template-columns: repeat(2, 1fr); }
.guide-card-wide { grid-column: 1 / -1; }
.guide-card code, .guide-steps code, .new-api-key code { overflow-wrap: anywhere; color: #5840cc; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .78rem; }
.guide-card > h3:first-child { margin-top: 0; }
.guide-card > p + .guide-code { margin-top: 14px; }
.guide-code { overflow: auto; margin: 0; padding: 15px; border-radius: 13px; background: #25213e; color: #f5f2ff; font: .75rem/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre; }
.guide-code code { color: inherit; font: inherit; }
.guide-tip { margin: 13px 0 0 !important; padding-left: 11px; border-left: 3px solid #b8aaff; color: #625d7a !important; }
.guide-fields { margin-top: 16px; }
.guide-table-wrap { overflow-x: auto; }
.guide-fields table { width: 100%; border-collapse: collapse; color: var(--muted); font-size: .84rem; line-height: 1.6; text-align: left; }
.guide-fields th, .guide-fields td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.guide-fields th { color: var(--ink); font-size: .8rem; }
.guide-fields tbody tr:last-child td { border-bottom: 0; }
.guide-limits-grid { grid-template-columns: repeat(3, 1fr); }
.guide-limits-grid ul { display: grid; gap: 6px; padding-left: 19px; margin: 0; }
.guide-limits-grid li::marker { color: var(--purple); }
.footer-meta { display: flex; align-items: center; justify-content: flex-end; gap: 13px; }
.footer-meta a { flex: 0 0 auto; color: var(--purple); font-size: .78rem; font-weight: 750; }
.footer-meta a:hover { color: var(--pink); }

.notice-page { background: linear-gradient(180deg, #fbf9ff 0, #fff 22rem, #fff9fc 100%); }
.notice-main { width: min(1080px, calc(100% - 40px)); display: grid; grid-template-columns: 190px minmax(0, 820px); justify-content: center; column-gap: 36px; margin: 0 auto; padding: 48px 0 82px; }
.notice-hero, .notice-sections { width: auto; margin-inline: 0; }
.notice-hero { grid-column: 2; }
.notice-hero { padding: 44px 0 48px; }
.notice-hero h1 { margin-bottom: 16px; font-size: clamp(2rem, 2.8vw, 3rem); line-height: 1.1; letter-spacing: -.055em; }
.notice-hero > p:not(.eyebrow) { margin-bottom: 13px; color: var(--muted); font-size: 1.02rem; line-height: 1.78; }
.notice-consent { margin-top: 21px !important; padding: 13px 15px; border: 1px solid #d9d0ff; border-radius: 13px; background: #f7f5ff; color: #534a7c !important; font-size: .88rem !important; font-weight: 700; }
.notice-layout { grid-column: 1 / -1; display: grid; grid-template-columns: 190px minmax(0, 820px); align-items: start; justify-content: center; gap: 36px; }
.notice-toc { position: sticky; top: 22px; display: grid; gap: 5px; padding: 16px; border: 1px solid var(--border); border-radius: 17px; background: rgba(255, 255, 255, .78); }
.notice-toc p { margin: 0 0 5px; color: var(--purple); font-size: .75rem; font-weight: 850; letter-spacing: .08em; }
.notice-toc a { padding: 7px 8px; border-radius: 8px; color: var(--muted); font-size: .82rem; font-weight: 650; }
.notice-toc a:hover { background: #f1efff; color: var(--purple); }
.notice-sections { display: grid; gap: 16px; }
.notice-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding: 25px; border: 1px solid var(--border); border-radius: 20px; background: #fff; }
.notice-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #f0edff; font-size: 1.05rem; }
.notice-card h2, .notice-contact h2 { margin: 3px 0 13px; font-size: 1.25rem; letter-spacing: -.04em; }
.notice-card ul { display: grid; gap: 8px; padding-left: 20px; margin: 0; color: var(--muted); }
.notice-card li { padding-left: 2px; font-size: .89rem; line-height: 1.72; }
.notice-card li::marker { color: var(--purple); }
.notice-note { margin: 15px 0 0; padding: 11px 12px; border-left: 3px solid #c4b8ff; border-radius: 0 9px 9px 0; background: #f8f7ff; color: #5e587b; font-size: .83rem; line-height: 1.65; }
.notice-contact { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 29px; border: 1px solid #d9d0ff; border-radius: 20px; background: linear-gradient(130deg, #f5f2ff, #fff7fb); }
.notice-contact .eyebrow { margin-bottom: 7px; }
.notice-contact h2 { margin-top: 0; }
.notice-contact p:last-child { max-width: 440px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.qq-group-link { min-width: 190px; display: flex; align-items: center; gap: 11px; padding: 14px 16px; border: 1px solid #cfc2ff; border-radius: 15px; background: #fff; box-shadow: 0 11px 26px rgba(101, 68, 245, .12); color: var(--purple); transition: transform .18s ease, box-shadow .18s ease; }
.qq-group-link:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(101, 68, 245, .2); }
.qq-group-link > span:first-child { font-size: 1.3rem; }
.qq-group-link > span:nth-child(2) { display: grid; gap: 2px; flex: 1; }
.qq-group-link small { color: var(--muted); font-size: .68rem; font-weight: 700; }
.qq-group-link strong { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .95rem; letter-spacing: .02em; }
.qq-group-arrow { font-size: 1rem; }
.notice-updated { margin: 9px 0 0; color: var(--muted); font-size: .78rem; text-align: right; }
.notice-back { margin: 5px 0 0; text-align: right; }
footer { width: min(1180px, calc(100% - 40px)); display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 0 auto; padding: 29px 0 34px; border-top: 1px solid var(--border); }
footer .brand { font-size: 1.05rem; } footer p { margin: 0; color: var(--muted); font-size: .78rem; }

.account-dialog { width: min(620px, calc(100% - 28px)); max-height: min(760px, calc(100vh - 28px)); padding: 0; border: 0; border-radius: 22px; background: transparent; box-shadow: 0 28px 80px rgba(26, 19, 62, .3); }
.account-dialog::backdrop { background: rgba(31, 24, 61, .38); backdrop-filter: blur(3px); }
.account-card { padding: clamp(22px, 5vw, 34px); overflow: auto; border-radius: 22px; background: #fff; }
.account-heading, .account-profile, .account-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.account-heading h2 { margin: 0; font-size: 1.75rem; letter-spacing: -.055em; }
.dialog-close { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); font-size: 1.5rem; line-height: 1; }
.account-guest { padding: 22px; border: 1px solid #ddd5ff; border-radius: 17px; background: #faf9ff; }
.account-guest > p:first-child { margin: 0 0 18px; color: #5d5876; line-height: 1.7; }
.account-auth-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-bottom: 16px; }
.account-auth-tabs button { min-height: 37px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--muted); font-size: .82rem; font-weight: 750; }
.account-auth-tabs button[aria-selected="true"] { border-color: #a695ff; background: #f0edff; color: var(--purple); }
.account-auth-form { display: grid; gap: 11px; margin-bottom: 18px; }
.account-auth-form label { display: grid; gap: 6px; color: #514c6b; font-size: .79rem; font-weight: 750; }
.account-auth-form input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; outline: 0; color: var(--ink); }
.account-auth-form input:focus { border-color: #9c88ff; box-shadow: 0 0 0 3px #eeeaff; }
.account-auth-form .button { justify-self: start; min-height: 42px; padding: 8px 15px; font-size: .82rem; }
.account-form-actions { display: flex; align-items: center; gap: 12px; }
.account-form-intro { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.account-bind-qq { margin: -12px 0 22px; min-height: 40px; padding: 8px 13px; font-size: .8rem; }
.account-profile { margin: 18px 0 26px; padding: 15px; border: 1px solid var(--border); border-radius: 16px; background: #fbfaff; }
.account-profile > div { flex: 1; min-width: 0; }
.account-profile strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-profile p { margin: 4px 0 0; color: var(--muted); font-size: .77rem; }
.account-initial { width: 39px; height: 39px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 13px; background: linear-gradient(135deg, var(--purple), var(--pink)); color: #fff; font-weight: 850; }
.text-button { padding: 6px 0; border: 0; background: transparent; color: var(--purple); font-size: .8rem; font-weight: 750; }
.api-key-section, .usage-section { padding-top: 22px; border-top: 1px solid var(--border); }
.account-section-heading p { margin: 5px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.api-key-section h3 { margin: 0; font-size: 1.05rem; }
.api-key-create { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; margin-top: 15px; }
.api-key-create input { min-width: 0; min-height: 43px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 11px; outline: 0; color: var(--ink); }
.api-key-create input:focus { border-color: #9c88ff; box-shadow: 0 0 0 3px #eeeaff; }
.api-key-create .button { min-height: 43px; padding: 8px 14px; font-size: .82rem; }
.new-api-key { display: grid; gap: 8px; margin-top: 13px; padding: 13px; border: 1px solid #cfc2ff; border-radius: 13px; background: #f7f4ff; }
.new-api-key p { margin: 0; color: #625990; font-size: .78rem; }
.new-api-key code { padding: 8px; border-radius: 8px; background: #fff; }
.new-api-key .text-button { justify-self: start; }
.api-key-list { display: grid; gap: 8px; padding: 0; margin: 14px 0 0; list-style: none; }
.api-key-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px; border: 1px solid var(--border); border-radius: 12px; }
.api-key-list strong, .api-key-list small { display: block; }
.api-key-list strong { font-size: .84rem; }
.api-key-list small { margin-top: 3px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .7rem; }
.api-key-list p { margin: 0; color: var(--muted); font-size: .8rem; }
.usage-section { margin-top: 22px; }

.header-account-links { display: flex; align-items: center; gap: 8px; }
.header-account-link { color: var(--ink); font-size: .86rem; font-weight: 750; }
.header-account-link:hover { color: var(--purple); }
.header-account-separator { color: #a29bb8; font-size: .84rem; font-weight: 600; user-select: none; }

.auth-page { min-height: 100vh; background: linear-gradient(135deg, #fbfaff 0, #f7f5ff 48%, #fffafb 100%); }
.auth-site-header, .account-site-header { width: min(1180px, calc(100% - 56px)); display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 82px; margin: 0 auto; }
.auth-home-link, .account-site-header nav a { color: var(--muted); font-size: .83rem; font-weight: 700; }
.auth-home-link:hover, .account-site-header nav a:hover { color: var(--purple); }
.auth-main { width: min(1080px, calc(100% - 56px)); display: grid; grid-template-columns: minmax(0, .9fr) minmax(380px, .72fr); align-items: center; gap: clamp(48px, 9vw, 150px); min-height: calc(100vh - 82px); margin: 0 auto; padding: 56px 0 84px; }
.auth-main-single { display: flex; justify-content: center; }
.auth-intro { max-width: 510px; }
.auth-intro h1 { margin: 10px 0 19px; font-size: clamp(2.5rem, 4.6vw, 4.25rem); line-height: 1.05; letter-spacing: -.07em; }
.auth-intro > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.85; }
.auth-assurance-list { display: grid; gap: 11px; padding: 0; margin: 32px 0 0; list-style: none; color: #575173; font-size: .87rem; }
.auth-assurance-list li { position: relative; padding-left: 24px; }
.auth-assurance-list li::before { position: absolute; left: 0; color: var(--purple); content: "✓"; font-weight: 900; }
.auth-card { width: 100%; padding: clamp(30px, 4vw, 45px); border: 1px solid #e2dcff; border-radius: 24px; background: rgba(255, 255, 255, .96); box-shadow: 0 24px 70px rgba(59, 44, 121, .12); }
.auth-card-compact { max-width: 510px; }
.auth-main-single .auth-card { max-width: 510px; }
.auth-kicker { margin: 0 0 10px; color: var(--purple); font-size: .75rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.auth-card h1, .auth-card h2 { margin: 0; color: var(--ink); font-size: clamp(1.75rem, 3vw, 2.3rem); letter-spacing: -.055em; }
.auth-card h1 + .auth-form { margin-top: 32px; }
.auth-card-description { margin: 13px 0 27px; color: var(--muted); font-size: .89rem; line-height: 1.7; }
.auth-form { display: grid; gap: 15px; }
.auth-form label { display: grid; gap: 7px; color: #514c6b; font-size: .78rem; font-weight: 750; }
.auth-form input { width: 100%; min-height: 47px; padding: 10px 13px; border: 1px solid #ddd7ed; border-radius: 11px; outline: 0; background: #fff; color: var(--ink); font-size: .92rem; transition: border-color .16s ease, box-shadow .16s ease; }
.auth-form input:focus { border-color: #9c88ff; box-shadow: 0 0 0 3px #eeeaff; }
.auth-code-input { font: 700 1.12rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .22em; text-align: center; }
.auth-form-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: -2px; color: var(--muted); font-size: .76rem; }
.auth-form-meta a, .auth-switch a, .auth-policy-note a { color: var(--purple); font-weight: 750; }
.auth-submit { width: 100%; min-height: 48px; justify-content: center; margin-top: 3px; }
.auth-divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 26px 0 17px; color: #968fae; font-size: .72rem; }
.auth-divider::before, .auth-divider::after { height: 1px; background: #e7e2f1; content: ""; }
.auth-provider-button { width: 100%; min-height: 45px; border: 1px solid #dcd5ee; border-radius: 11px; background: #fff; color: #38324f; font-size: .85rem; font-weight: 750; transition: border-color .16s ease, background .16s ease; }
.auth-provider-button:hover:not(:disabled) { border-color: #a998ff; background: #fbfaff; }
.auth-provider-button:disabled { cursor: not-allowed; opacity: .55; }
.auth-switch, .auth-policy-note { margin: 23px 0 0; color: var(--muted); font-size: .8rem; text-align: center; }
.auth-policy-note { margin-top: 17px; line-height: 1.65; }
.auth-secondary-action { margin-top: 15px; }
.auth-status { min-height: 1.5em; margin: 18px 0 0; color: #5e587b; font-size: .8rem; line-height: 1.6; }
.auth-status.is-error, .account-page-status.is-error { color: #c62d5f; }

.account-page { min-height: 100vh; background: linear-gradient(180deg, #fbfaff 0, #fff 29rem, #fff9fc 100%); }
.account-site-header { border-bottom: 1px solid #ebe6f4; }
.account-site-header nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.account-site-header .text-button { margin-left: 12px; }
.account-main { width: min(1040px, calc(100% - 56px)); margin: 0 auto; padding: 56px 0 90px; }
.account-hero { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.account-hero h1 { margin: 8px 0 10px; font-size: clamp(2rem, 3.5vw, 3.15rem); letter-spacing: -.065em; }
.account-hero p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.7; }
.account-overview-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 17px; margin-bottom: 17px; }
.account-identity-card, .account-binding-card, .account-dashboard-section { border: 1px solid var(--border); border-radius: 20px; background: #fff; box-shadow: 0 8px 27px rgba(46, 37, 89, .04); }
.account-identity-card { display: flex; align-items: center; gap: 15px; padding: 25px; }
.account-identity-card > div { min-width: 0; flex: 1; }
.account-label { margin: 0 0 7px; color: var(--muted); font-size: .75rem; font-weight: 750; }
.account-identity-card h2, .account-binding-card h2 { overflow: hidden; margin: 0; color: var(--ink); font-size: 1.32rem; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.account-email { overflow: hidden; margin: 6px 0 0; color: var(--muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.account-status { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; background: #eefbe9; color: #3e7a29; font-size: .7rem; font-weight: 750; }
.account-status.is-pending { background: #fff7df; color: #9b6d11; }
.account-binding-card { display: grid; align-content: start; gap: 8px; padding: 25px; }
.account-binding-card > p:not(.account-label) { min-height: 3em; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.account-binding-card .button { justify-self: start; margin-top: 5px; min-height: 38px; padding: 7px 12px; font-size: .78rem; }
.account-dashboard-section { margin-top: 17px; padding: 27px; }
.account-section-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.account-section-heading .eyebrow { margin-bottom: 7px; }
.account-section-heading h2 { margin: 0; font-size: 1.34rem; letter-spacing: -.045em; }
.account-section-heading p:not(.eyebrow) { max-width: 600px; margin: 8px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.account-dashboard-section .api-key-create { max-width: 640px; margin-top: 22px; }
.account-dashboard-section .new-api-key { max-width: 760px; }
.account-dashboard-section .api-key-list { max-width: 760px; }
.account-usage-summary { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.65; }
.account-page-status { min-height: 1.5em; margin: 18px 0 0; color: var(--muted); font-size: .82rem; }

.admin-page { min-height: 100vh; background: linear-gradient(180deg, #fbf9ff 0, #fff 32rem, #fff9fc 100%); }
.admin-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 82px; }
.admin-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; margin-bottom: 42px; }
.admin-header .brand { min-width: max-content; }
.admin-header > div { text-align: center; }
.admin-header .eyebrow { margin: 0 0 7px; }
.admin-header h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.055em; }
.admin-login-card { width: min(500px, 100%); margin: 0 auto; padding: clamp(24px, 4vw, 38px); border: 1px solid #ddd5ff; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.admin-login-card h2 { margin: 0 0 10px; font-size: 1.55rem; letter-spacing: -.04em; }
.admin-login-card > p:not(.eyebrow) { margin: 0 0 22px; color: var(--muted); font-size: .88rem; line-height: 1.65; }
.admin-login-card .field-note { min-height: 1.4em; margin: 3px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.admin-stats article { display: grid; gap: 7px; padding: 20px; border: 1px solid var(--border); border-radius: 17px; background: #fff; }
.admin-stats small { color: var(--muted); font-size: .78rem; font-weight: 700; }
.admin-stats strong { color: var(--ink); font-size: 1.65rem; letter-spacing: -.055em; }
.admin-section { margin-top: 20px; padding: 25px; border: 1px solid var(--border); border-radius: 20px; background: #fff; }
.admin-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.admin-section-heading .eyebrow { margin-bottom: 6px; }
.admin-section-heading h2 { margin: 0; font-size: 1.3rem; letter-spacing: -.045em; }
.admin-search { display: grid; gap: 6px; color: var(--muted); font-size: .75rem; font-weight: 750; }
.admin-search input { min-height: 38px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; outline: 0; color: var(--ink); }
.admin-search input:focus { border-color: #9c88ff; box-shadow: 0 0 0 3px #eeeaff; }
.admin-table-wrap { overflow-x: auto; }
.admin-table-wrap table { width: 100%; min-width: 700px; border-collapse: collapse; color: var(--muted); font-size: .82rem; text-align: left; }
.admin-table-wrap th, .admin-table-wrap td { padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table-wrap th { color: var(--ink); font-size: .75rem; white-space: nowrap; }
.admin-table-wrap tbody tr:last-child td { border-bottom: 0; }
.admin-table-wrap strong, .admin-table-wrap small { display: block; }
.admin-table-wrap small { margin-top: 3px; color: var(--muted); font-size: .7rem; }
.admin-table-wrap code { color: #5840cc; font-size: .73rem; }
.admin-status { display: inline-block; padding: 4px 7px; border-radius: 999px; background: #f0edff; color: #6350c8; font-size: .71rem; font-weight: 750; white-space: nowrap; }
.admin-status.pending { background: #fff7df; color: #9b6d11; }
.admin-status.disabled { background: #fff0f3; color: #c62d5f; }
.admin-audit-list { display: grid; gap: 9px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.admin-audit-list li { padding: 11px 13px; border-radius: 10px; background: #faf9ff; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; gap: 34px; min-height: auto; padding-top: 38px; }
  .hero-copy { max-width: 620px; }
  .hero-art { order: -1; justify-content: center; }
  .hero-art img { max-width: 620px; }
}
@media (max-width: 820px) {
  .site-header { min-height: 70px; } nav { display: none; }
  .hero { padding-top: 35px; } .hero-art img { max-width: 460px; }
  .creator-grid { grid-template-columns: 1fr; } .template-panel { min-height: auto; border-right: 0; border-bottom: 1px solid var(--border); } .template-list { max-height: 260px; }
  .notice-main { display: block; } .notice-hero, .notice-sections { width: min(100%, 760px); margin-inline: auto; } .notice-layout { grid-template-columns: 1fr; gap: 18px; } .notice-toc { position: static; grid-template-columns: repeat(3, 1fr); } .notice-toc p { grid-column: 1 / -1; }
  .admin-header { grid-template-columns: 1fr auto; margin-bottom: 30px; } .admin-header > div { grid-column: 1 / -1; grid-row: 2; text-align: left; } .admin-stats { grid-template-columns: repeat(2, 1fr); } .admin-section { padding: 20px; }
  .auth-main { grid-template-columns: 1fr; gap: 34px; min-height: auto; padding-top: 38px; } .auth-intro { max-width: 620px; } .auth-main-single { display: flex; } .account-overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-header, .hero, .creator-section, .how-section, footer { width: min(100% - 28px, 1180px); }
  .hero { min-height: auto; padding-bottom: 55px; } h1 { font-size: clamp(2.5rem, 13vw, 3.8rem); } .hero-stats { gap: 16px; }
  .section-heading, .form-actions, footer { align-items: flex-start; flex-direction: column; } .creator-section { padding-top: 58px; } .workbench { padding: 20px; }
  .selected-template { grid-template-columns: 1fr; } .preview-frame { max-height: 200px; } .preview-frame img { max-height: 200px; }
  .template-tools { grid-template-columns: 1fr; } .category-filter select { max-width: none; width: 100%; } .steps, .guide-steps, .guide-reference-grid, .guide-limits-grid { grid-template-columns: 1fr; } .result-heading { align-items: flex-start; flex-direction: column; }
  .local-image-previews { grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); }
  .qq-avatar-row { grid-template-columns: 1fr; } .qq-role-button { justify-self: start; } .generation-actions { width: 100%; } .generation-actions .button { flex: 1; }
  .api-key-create { grid-template-columns: 1fr; } .api-key-create .button { justify-self: start; } .account-profile { align-items: flex-start; flex-wrap: wrap; }
  .guide-main { width: min(100% - 28px, 1000px); padding-top: 16px; } .guide-hero { grid-template-columns: 1fr; padding: 28px 0 48px; } .guide-key-card { padding: 19px; } .guide-card-wide { grid-column: auto; } .guide-fields { padding: 17px; } .guide-fields th, .guide-fields td { min-width: 100px; padding: 10px; }
  .footer-meta { align-items: flex-start; flex-direction: column; gap: 7px; } .notice-main { width: min(100% - 28px, 1000px); padding-top: 18px; } .notice-hero { padding: 28px 0 38px; } .notice-layout { grid-template-columns: 1fr; gap: 18px; } .notice-toc { position: static; grid-template-columns: repeat(2, 1fr); } .notice-toc p { grid-column: 1 / -1; } .notice-card { grid-template-columns: 1fr; padding: 20px; } .notice-contact { align-items: flex-start; flex-direction: column; padding: 21px; } .qq-group-link { width: 100%; min-width: 0; } .notice-updated, .notice-back { text-align: left; }
  .admin-shell { width: min(100% - 28px, 1120px); padding-top: 24px; } .admin-header { gap: 14px; } .admin-header .brand img { width: 28px; height: 28px; } .admin-stats { grid-template-columns: 1fr 1fr; gap: 10px; } .admin-stats article { padding: 15px; } .admin-section-heading { align-items: flex-start; flex-direction: column; } .admin-search { width: 100%; } .admin-search input { width: 100%; } .admin-section { padding: 16px; }
  .header-account-links { gap: 6px; } .header-account-link { font-size: .82rem; } .auth-site-header, .account-site-header { width: min(100% - 28px, 1180px); min-height: 68px; } .auth-site-header .brand img, .account-site-header .brand img { width: 30px; height: 30px; } .auth-main { width: min(100% - 28px, 1080px); padding: 28px 0 52px; } .auth-intro h1 { font-size: 2.55rem; } .auth-card { padding: 25px 21px; border-radius: 19px; } .auth-form-meta { align-items: flex-start; flex-direction: column; gap: 7px; } .account-site-header nav { display: none; } .account-main { width: min(100% - 28px, 1040px); padding: 32px 0 58px; } .account-hero { align-items: flex-start; flex-direction: column; margin-bottom: 22px; } .account-identity-card, .account-binding-card, .account-dashboard-section { padding: 20px; border-radius: 17px; } .account-identity-card { align-items: flex-start; flex-wrap: wrap; } .account-status { margin-left: 54px; } .account-dashboard-section .api-key-create { grid-template-columns: 1fr; } .account-dashboard-section .api-key-create .button { justify-self: start; }
}
