:root {
  color-scheme: light;
  --paper: #f8f8fc;
  --surface: #fff;
  --ink: #161429;
  --muted: #555268;
  --accent: #5538ce;
  --accent-dark: #4226af;
  --mist: #eeebff;
  --border: #dedbed;
  --width: 960px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
button, input, textarea, select { font: inherit; }
a { color: var(--accent-dark); }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #8974eb; outline-offset: 3px; }
.wrap { max-width: var(--width); width: calc(100% - 64px); margin-inline: auto; }
.top { background: #fff; border-bottom: 1px solid var(--border); }
.nav { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.nav nav { display: flex; gap: clamp(12px, 4vw, 32px); }
.nav nav a { text-decoration: none; color: var(--muted); font-weight: 650; font-size: .9rem; }
.nav nav a:hover { color: var(--accent); }
.brand { color: var(--ink); font-size: 1.18rem; font-weight: 850; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; background: var(--accent); border-radius: 10px; }
.brand-icon::before, .hero-front i::before { content: ""; width: 0; height: 0; border-left: 10px solid white; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 2px; }
.intro { display: grid; align-items: center; grid-template-columns: 1fr 235px; gap: 40px; padding: 70px 0 35px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--accent-dark); font-weight: 700; font-size: .9rem; margin: 0; }
.eyebrow span { display: inline-block; width: 10px; height: 10px; border: 2px solid var(--accent); border-radius: 4px; }
h1 { font-size: clamp(2.65rem, 7vw, 5rem); line-height: 1.12; letter-spacing: -.06em; margin: 10px 0 18px; font-weight: 860; }
h1 span { color: var(--accent); }
.lede { max-width: 530px; margin: 0; font-size: 1.08rem; color: var(--muted); }
.hero-mark { position: relative; height: 165px; isolation: isolate; }
.hero-card { position: absolute; height: 137px; width: 186px; border-radius: 20px; top: 15px; }
.hero-rear { background: #ece8ff; border: 1px solid #d7cdfa; transform: rotate(11deg); right: 2px; }
.hero-front { right: 24px; transform: rotate(-8deg); background: #281b5c; display: grid; place-items: center; box-shadow: 0 16px 32px #341e672a; }
.hero-front i { background: #7155e8; width: 55px; height: 55px; border-radius: 50%; display: grid; place-items: center; }
.hero-front i::before { border-left-width: 17px; border-top-width: 9px; border-bottom-width: 9px; }
.hero-front b { height: 3px; position: absolute; bottom: 14px; left: 14px; right: 14px; border-radius: 6px; background: linear-gradient(90deg,#ad9dfb 64%,#4e3a8a 64%); }
.input-card, .result-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: clamp(18px,4vw,30px); box-shadow: 0 12px 40px #21143e09; }
.label-row, .action-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.label-row { margin-bottom: 12px; font-weight: 750; }
textarea { display: block; width: 100%; min-height: 105px; resize: vertical; border-radius: 12px; border: 1px solid var(--border); padding: 13px 15px; background: #faf9fe; color: var(--ink); }
textarea::placeholder { color: #655f75; }
.action-row { margin-top: 14px; }
.action-row p { color: var(--muted); font-size: .88rem; margin: 0; max-width: 480px; }
.primary, .quiet { font-weight: 710; padding: 9px 15px; border-radius: 9px; line-height: 1.35; min-height: 42px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.primary { background: var(--accent); border: 1px solid var(--accent); color: #fff; }
.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.submit { min-width: 134px; min-height: 46px; }
.quiet { background: var(--mist); border: 1px solid transparent; color: var(--accent-dark); }
.quiet:hover { border-color: #c9bff8; }
.paste { min-height: 35px; font-size: .88rem; }
.status { min-height: 0; margin: 14px 0 0; font-size: .94rem; font-weight: 650; color: var(--accent-dark); }
.status.error { color: #a22946; }
#stop { margin-top: 9px; }
.result-card { margin-top: 18px; scroll-margin-top: 20px; }
.result-top { display: flex; align-items: flex-start; gap: 18px; }
.thumbnail { width: 150px; min-height: 104px; aspect-ratio: 16/10; background: #eeebff; border-radius: 12px; color: #544a79; display: grid; place-items: center; flex: none; font-size: .85rem; overflow: hidden; position: relative; }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.result-meta { min-width: 0; }
.result-meta h2 { margin: 0 0 6px; font-size: clamp(1.1rem,3vw,1.55rem); overflow-wrap: anywhere; }
.stamp { display: inline-block; color: #5234ab; font-weight: 740; font-size: .85rem; margin: 0 0 5px; }
.byline, .media-note { color: var(--muted); font-size: .91rem; margin: 4px 0; overflow-wrap: anywhere; }
.media-note { margin: 14px 0 0; }
.media-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.media-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
.media-row p { margin: 0 6px 0 0; color: var(--muted); font-size: .92rem; }
.media-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.media-buttons input { flex-basis: 100%; min-width: 0; }
.select-wrap { display: flex; align-items: center; gap: 12px; margin-top: 15px; font-weight: 650; }
.select-wrap select { max-width: min(70vw, 460px); min-height: 42px; border-radius: 8px; padding: 5px 28px 5px 10px; color: var(--ink); background: var(--paper); border: 1px solid var(--border); }
.media-quality { margin: 0 8px 0 0; }
h2 { margin: 0 0 14px; font-size: 1.44rem; letter-spacing: -.02em; }
.guide { margin-top: 50px; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); list-style: none; padding: 0; gap: 12px; margin: 0; }
.steps li { padding: 20px; border: 1px solid var(--border); background: #fff; border-radius: 15px; }
.step { background: var(--mist); color: var(--accent-dark); border-radius: 8px; display: inline-grid; width: 31px; height: 31px; place-items: center; font-size: .9rem; font-weight: 800; }
.steps h3 { font-size: 1.02rem; margin: 9px 0 3px; }
.steps p, details p { margin: 0; color: var(--muted); font-size: .94rem; }
.faq { margin-top: 38px; }
.faq-list { padding: 0 19px; border: 1px solid var(--border); background: #fff; border-radius: 15px; }
details { padding: 12px 0; }
.faq-list details + details { border-top: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 650; }
details p { margin: 6px 0 2px; }
.legal { display: grid; grid-template-columns: repeat(3,1fr); padding: 16px 0; gap: 16px; margin-top: 25px; border-top: 1px solid var(--border); }
.legal summary { font-size: .92rem; }
.footer { border-top: 1px solid var(--border); padding: 20px 0 30px; display: flex; gap: 15px; align-items: center; color: var(--muted); }
.footer p { font-size: .87rem; margin: 0; }
.admin-panel { max-width: 580px; padding: 40px 0; }
.admin-panel h1 { font-size: clamp(2rem, 6vw, 3rem); }
.admin-fields { display: grid; gap: 10px; }
.admin-fields p { margin: 0 0 7px; color: var(--muted); }
.admin-fields label { font-weight: 710; }
.admin-fields input[type=number] { width: 100%; border: 1px solid var(--border); border-radius: 9px; padding: 8px 11px; margin-bottom: 6px; }
.admin-fields button { justify-self: start; }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .nav { min-height: 60px; }
  .intro { grid-template-columns: 1fr; padding: 42px 0 23px; }
  .hero-mark { display: none; }
  .lede { font-size: 1rem; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 15px; }
  .guide { margin-top: 32px; }
  .faq { margin-top: 26px; }
}
@media (max-width: 430px) {
  .action-row { align-items: stretch; flex-direction: column-reverse; }
  .submit { width: 100%; }
  .brand { gap: 6px; }
  .nav nav { gap: 12px; }
  .thumbnail { width: 93px; min-height: 72px; }
  .media-quality { width: 100%; margin-bottom: 4px; }
  .legal { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
