:root {
  --background: #f6f7fa;
  --surface: #ffffff;
  --text: #1d2737;
  --muted: #626d7e;
  --border: #e3e7ee;
  --accent: #c63c1c;
  --accent-hover: #bf3415;
  --accent-soft: #fff0e9;
  --success: #17764d;
  --success-soft: #e9f6ee;
  --error: #b93025;
  --radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--background);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #f2a28d; outline-offset: 4px; }
.shell { max-width: 1088px; padding: 0 32px; margin: 0 auto; }
.topbar { height: 96px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--accent); color: white; border-radius: 11px; box-shadow: 0 4px 10px #d9432018; }
.brand-mark svg { width: 23px; height: 23px; }
.brand-divider { margin: 0 12px; color: #c3c9d2; font-weight: 400; }
.brand-tool { font-weight: 400; color: var(--muted); font-size: 14px; }
.platform { border: 1px solid #e8ddd5; border-radius: 100px; padding: 6px 13px; background: #fff7f1; color: #a0492e; font-size: 13px; }
.intro { padding: 46px 0 28px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 1px; }
h1 { font-size: 32px; line-height: 1.35; margin: 0 0 12px; letter-spacing: -.5px; }
.intro-copy { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 0; }
.workspace { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: stretch; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: 0 5px 20px #17233504; min-width: 0; }
.panel-heading { display: flex; align-items: center; gap: 11px; min-height: 28px; margin-bottom: 26px; }
.step { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: var(--accent); background: var(--accent-soft); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.result-panel .step { color: #53657d; background: #eef2f6; }
.result-panel { scroll-margin-top: 20px; }
h2 { font-size: 17px; line-height: 1.5; margin: 0; font-weight: 650; }
label { display: block; font-size: 14px; margin-bottom: 10px; font-weight: 500; }
textarea { width: 100%; resize: vertical; min-height: 162px; max-height: 420px; border: 1px solid #d9dfe8; border-radius: 10px; background: #fbfcfe; padding: 14px 15px; line-height: 1.7; color: var(--text); font-size: 14px; display: block; transition: border-color .15s, box-shadow .15s; }
textarea::placeholder { color: #778293; opacity: 1; }
textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #d9432010; outline: none; background: white; }
.input-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 8px 0 18px; color: var(--muted); font-size: 12px; }
.text-button { color: var(--accent); background: none; border: 0; padding: 7px 0; font-size: 13px; white-space: nowrap; }
.text-button:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.text-button:disabled { opacity: .5; text-decoration: none; }
.primary-button { width: 100%; min-height: 48px; border: 0; border-radius: 10px; padding: 12px 16px; background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; font-weight: 600; transition: background .15s; }
.primary-button:hover:not(:disabled) { background: var(--accent-hover); }
.primary-button:disabled { opacity: .75; }
.arrow { width: 19px; height: 19px; }
.spinner { width: 17px; height: 17px; border: 2px solid #ffffff55; border-top-color: white; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.example-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.empty-state { padding: 26px 4px 28px; text-align: center; }
.result-illustration { width: 88px; height: 88px; display: grid; place-items: center; margin: 0 auto 20px; background: #f5f7fa; border-radius: 24px; color: #8291a5; }
.result-illustration svg { width: 63px; height: 63px; }
.empty-state h3 { font-size: 16px; margin: 0 0 10px; font-weight: 500; }
.empty-state p { color: var(--muted); line-height: 1.8; font-size: 14px; margin: 0; }
.success-tag { font-size: 12px; color: var(--success); background: var(--success-soft); border-radius: 100px; padding: 5px 9px; margin-left: auto; white-space: nowrap; }
.field-label { font-size: 13px; color: var(--muted); font-weight: 400; margin: 0 0 9px; }
#product-name { font-size: 19px; font-weight: 600; line-height: 1.6; margin: 0 0 24px; overflow-wrap: anywhere; }
.commerce-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; padding: 17px 18px; background: var(--accent-soft); border-radius: 10px; }
.commerce-grid > div { min-width: 0; }
.commerce-grid dt { color: var(--muted); font-size: 13px; margin-bottom: 7px; }
.commerce-grid dd { margin: 0; color: var(--accent); font-size: 27px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.4; overflow-wrap: anywhere; }
.commerce-grid dd.unavailable { color: var(--muted); font-size: 18px; line-height: 2.1; }
.commerce-notes { margin: 12px 0 22px; }
.commerce-notes p { margin: 4px 0 0; font-size: 12px; line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; }
#product-id { display: block; width: 100%; min-width: 0; font: 600 23px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--text); background: #f5f7fa; border: 1px solid var(--border); border-radius: 9px; padding: 14px 13px; letter-spacing: .4px; }
.copy-button { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 45px; background: white; color: var(--accent); border: 1px solid #edb8a8; border-radius: 9px; font-size: 14px; }
.copy-button:hover { background: var(--accent-soft); }
.copy-button svg { width: 18px; height: 18px; }
.result-note { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 13px 0 0; }
.status-message { color: var(--muted); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; margin: 16px 0 0; }
.status-message:empty { display: none; }
.status-message.error { color: var(--error); padding: 12px 14px; background: #fff2ef; border-radius: 9px; }
.tips { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); padding: 20px 3px 0; }
.tips svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; }
.tips p { margin: 0; font-size: 13px; line-height: 1.8; }
.notice { color: var(--error); font-size: 14px; }
footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px 0 32px; margin-top: 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; line-height: 1.8; }
@media (max-width: 720px) {
  .shell { padding: 0 20px; }
  .topbar { height: 76px; }
  .intro { padding: 32px 0 24px; }
  h1 { font-size: 28px; }
  .workspace { grid-template-columns: 1fr; gap: 16px; }
  .panel { padding: 23px; }
  .empty-state { padding: 10px 0 20px; }
  .brand-tool, .brand-divider { display: none; }
  .input-tools { font-size: 12px; }
  footer { margin-top: 24px; }
}
@media (max-width: 380px) {
  .shell { padding: 0 14px; }
  .panel { padding: 19px; }
  #product-id { font-size: 21px; }
  .success-tag { padding: 5px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1.8s !important; transition: none !important; }
}
