:root {
  color-scheme: light dark;
  --ink: #1c2140;
  --muted: #78809c;
  --line: #e7e9f2;
  --violet: #655ee8;
  --violet-dark: #5049d3;
  --lavender: #f4f3ff;
  --pink: #fff0f5;
  --danger: #e54963;
  --success: #1aaf7c;
  --card: rgba(255, 255, 255, .92);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 10% 0%, #fff5fa 0, transparent 28rem), radial-gradient(circle at 100% 10%, #e9e8ff 0, transparent 29rem), #f7f8fc; color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.page-shell { width: min(100%, 720px); margin: 0 auto; padding: 18px 14px 36px; }
.top-link { display: block; width: fit-content; margin: 0 2px 12px auto; color: var(--violet-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.top-link:hover { text-decoration: underline; }
.ticket-card, .result-card { overflow: hidden; border: 1px solid rgba(220, 222, 240, .85); border-radius: 24px; background: var(--card); box-shadow: 0 24px 70px rgba(73, 72, 145, .11); }
.hero { display: flex; gap: 14px; align-items: center; padding: 24px 20px 21px; background: linear-gradient(135deg, #615bdd, #8b83f7 62%, #a7a1ff); color: #fff; }
.hero-mark { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; border-radius: 16px; background: rgba(255,255,255,.18); font-size: 27px; }
.eyebrow { margin: 0 0 5px; font-size: 11px; letter-spacing: .12em; font-weight: 800; opacity: .72; }
h1 { margin: 0; font-size: clamp(23px, 6vw, 30px); letter-spacing: -.04em; }
.hero-copy { margin: 7px 0 0; font-size: 14px; opacity: .86; }
form { padding: 0 20px 22px; }
.form-section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-section { border-bottom: 0; }
.section-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 16px; font-weight: 800; font-size: 16px; }
.section-heading small { color: var(--muted); font-size: 12px; font-weight: 500; }
.section-heading b, label em { color: var(--danger); font-style: normal; }
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field-grid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 46px; border: 1px solid #dfe2ef; border-radius: 12px; background: #fff; color: var(--ink); outline: none; padding: 0 13px; transition: border .18s, box-shadow .18s, background .18s; }
textarea { min-height: 126px; resize: vertical; padding: 13px; line-height: 1.55; }
select:disabled { background: #f2f3f7; color: #9aa0b3; }
input:focus, select:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(101,94,232,.12); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); background: #fffafb; }
.error { min-height: 17px; margin: 5px 0 0; color: var(--danger); font-size: 12px; line-height: 1.4; }
.field-foot { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.field-foot .error { flex: 1; }
.upload-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.upload-panel { border: 1px dashed #c8c8e5; border-radius: 16px; background: linear-gradient(135deg, #fbfbff, #fafaff); padding: 11px; }
.upload-trigger { display: flex; width: 100%; min-height: 92px; flex-direction: column; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: transparent; color: var(--ink); }
.upload-trigger:hover { background: #f2f1ff; }
.upload-trigger small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.upload-icon { color: var(--violet); font-size: 26px; line-height: 1; margin-bottom: 7px; }
.preview-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
.image-item, .video-item { position: relative; overflow: hidden; border-radius: 10px; background: #e9eaf4; }
.image-item { aspect-ratio: 1; }
.image-item img, .video-item video { display: block; width: 100%; height: 100%; object-fit: cover; }
.remove-file { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(27,30,52,.78); color: #fff; font-size: 17px; line-height: 1; }
.video-preview { margin-top: 9px; }
.video-item { height: 138px; }
.attachment-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.submit-button, .secondary-button { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 14px; font-weight: 800; transition: transform .18s, opacity .18s, background .18s; }
.submit-button { margin-top: 23px; background: linear-gradient(135deg, var(--violet), #837cf2); color: #fff; box-shadow: 0 12px 22px rgba(101,94,232,.26); }
.submit-button i { font-size: 20px; font-style: normal; }
.submit-button:hover { transform: translateY(-1px); background: linear-gradient(135deg, var(--violet-dark), var(--violet)); }
.submit-button:disabled { cursor: wait; opacity: .7; transform: none; }
.privacy-note { margin: 12px 0 0; color: var(--muted); text-align: center; font-size: 11px; line-height: 1.5; }
.result-card { margin-top: 34px; padding: 46px 26px; text-align: center; }
.result-card h1 { margin: 10px 0; }
.result-card > p:not(.eyebrow) { margin: 0 auto 24px; max-width: 300px; color: var(--muted); line-height: 1.7; font-size: 14px; }
.result-icon { display: grid; width: 68px; height: 68px; place-items: center; margin: 0 auto; border-radius: 23px; color: #fff; font-size: 35px; font-weight: 800; }
.result-icon.success { background: linear-gradient(135deg, #1ac28a, #33d8a1); }
.result-icon.failure { background: linear-gradient(135deg, #f56a7f, #f68ca1); }
.secondary-button { background: var(--lavender); color: var(--violet-dark); }
.secondary-button:hover { background: #e9e7ff; }
.primary-link, .button-link { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: center; border-radius: 14px; font-weight: 800; text-decoration: none; }
.primary-link { margin: 16px 0 10px; background: linear-gradient(135deg, var(--violet), #837cf2); color: #fff; box-shadow: 0 12px 22px rgba(101,94,232,.26); }
.button-link { background: var(--lavender); color: var(--violet-dark); }
.ticket-number { display: grid; gap: 5px; margin: 20px auto 4px; padding: 16px; border: 1px dashed #bdb9ef; border-radius: 14px; background: var(--lavender); color: var(--muted); font-size: 12px; }
.ticket-number strong { color: var(--violet-dark); font-size: 20px; letter-spacing: .04em; }
.ticket-number button { justify-self: center; border: 0; border-radius: 7px; background: transparent; color: var(--violet-dark); font-size: 12px; text-decoration: underline; }
.compact { padding-top: 20px; padding-bottom: 18px; }
.no-border { border-bottom: 0; }
.verify-choice { display: flex; gap: 18px; margin: 0 0 18px; padding: 0; border: 0; }
.verify-choice legend { margin-bottom: 10px; font-weight: 700; font-size: 14px; }
.verify-choice label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; }
.verify-choice input { width: 17px; min-height: 17px; accent-color: var(--violet); }
.detail-body { padding: 24px 20px 30px; }
.status-row { display: flex; align-items: center; justify-content: space-between; padding: 14px; border-radius: 13px; background: var(--lavender); font-size: 14px; }
.status { padding: 5px 10px; border-radius: 999px; background: #e3e1ff; color: var(--violet-dark); font-size: 12px; }
.status.resolved { background: #ddf7ed; color: #168259; }.status.closed { background: #eceef4; color: #697087; }.status.need_more_info { background: #fff0d6; color: #a46700; }
.detail-grid { display: grid; grid-template-columns: 94px 1fr; gap: 12px; margin: 23px 0; font-size: 14px; line-height: 1.45; }
.detail-grid dt { color: var(--muted); }.detail-grid dd { margin: 0; overflow-wrap: anywhere; }
.detail-section { margin-top: 24px; }.detail-section h2 { margin: 0 0 10px; font-size: 16px; }
.description-box { margin: 0; padding: 13px; border-radius: 12px; background: #f6f7fb; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.file-list { display: grid; gap: 8px; }.file-link { display: block; padding: 11px 12px; border-radius: 10px; background: var(--lavender); color: var(--violet-dark); font-size: 13px; overflow-wrap: anywhere; }
.timeline { margin: 0; padding: 0 0 0 19px; border-left: 2px solid #deddf7; }.timeline li { padding: 0 0 18px 12px; }.timeline li:last-child { padding-bottom: 0; }.timeline time { color: var(--muted); font-size: 12px; }.timeline p { margin: 5px 0 0; line-height: 1.55; font-size: 14px; }
.hidden { display: none; }

@media (min-width: 620px) { .page-shell { padding-top: 42px; } .hero, form { padding-left: 34px; padding-right: 34px; } .field-grid { grid-template-columns: 1fr 1fr; } .upload-grid { grid-template-columns: 1fr 1fr; } }
@media (prefers-color-scheme: dark) { :root { --ink: #eef0ff; --muted: #a9aec7; --line: #2e3150; --card: rgba(29, 31, 55, .94); } body { background: radial-gradient(circle at 10% 0%, #38244e 0, transparent 28rem), radial-gradient(circle at 100% 10%, #272654 0, transparent 29rem), #151624; } input, select, textarea { border-color: #414664; background: #22253d; color: var(--ink); } select:disabled { background: #292c43; color: #8e94ae; } .upload-panel { border-color: #53577d; background: #22253b; } .upload-trigger:hover { background: #2b2e4a; } .secondary-button, .button-link { background: #323351; color: #d9d7ff; }.description-box { background: #262940; }.ticket-number, .status-row { background: #292b49; }.file-link { background: #292b49; color: #d9d7ff; } }
