:root {
  color-scheme: light;
  --ink: #172b3e;
  --muted: #738294;
  --blue: #16496d;
  --blue-2: #236b92;
  --line: #e4ebf0;
  --surface: #ffffff;
  --canvas: #f3f6f8;
  --green: #297652;
  --green-bg: #e9f5ee;
  --amber: #94630d;
  --amber-bg: #fff5df;
  --shadow: 0 12px 32px rgba(25, 49, 70, .07);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: var(--canvas); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 10px max(20px, calc((100vw - 1000px) / 2));
  border-bottom: 1px solid rgba(221, 230, 236, .9);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; min-width: 0; align-items: center; gap: 11px; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 16px; letter-spacing: .2px; }
.brand-copy small { color: var(--muted); font-size: 11px; }
.app { width: min(100% - 32px, 760px); min-height: calc(100vh - 126px); margin: 24px auto 44px; }
.site-footer { padding: 0 16px 24px; color: #9aa6b1; font-size: 12px; text-align: center; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: transform .15s ease, background .15s ease;
}
.button:hover { background: #103b5b; }
.button:active { transform: scale(.985); }
.button:disabled { cursor: wait; opacity: .65; }
.button-small { min-height: 40px; padding: 0 16px; border-radius: 12px; font-size: 13px; }
.button-secondary { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.button-secondary:hover { background: #f7fafb; }
.button-plain { border: 0; background: transparent; color: var(--blue); }
.button-full { width: 100%; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(128deg, #153f62 0%, #216b8e 100%);
  box-shadow: 0 16px 36px rgba(23, 74, 108, .2);
  color: #fff;
}
.hero::after {
  position: absolute;
  right: -70px;
  bottom: -145px;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(255, 255, 255, .035), 0 0 0 65px rgba(255, 255, 255, .025);
  content: "";
  pointer-events: none;
}
.eyebrow { display: block; color: #c3d8e6; font-size: 11px; font-weight: 700; letter-spacing: 1.7px; }
.hero h1 { position: relative; z-index: 1; margin: 11px 0 8px; font-size: clamp(25px, 6vw, 34px); line-height: 1.2; }
.hero-copy { max-width: 490px; margin: 0; color: #d6e4ed; font-size: 14px; line-height: 1.7; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 430px; gap: 12px; margin-top: 25px; padding-top: 19px; border-top: 1px solid rgba(255, 255, 255, .18); }
.stat { display: grid; gap: 4px; }
.stat strong { font-size: 22px; }
.stat span { color: #c9dce8; font-size: 11px; }

.notice {
  display: flex;
  gap: 11px;
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #dcebe2;
  border-radius: 15px;
  background: #eff8f2;
  color: #476b56;
  font-size: 12px;
  line-height: 1.65;
}
.notice-icon { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border-radius: 50%; background: #d8ecdf; color: var(--green); font-weight: 800; }
.notice.warning { border-color: #f0e1bf; background: #fff9eb; color: #795f2e; }
.notice.warning .notice-icon { background: #f5e9c9; color: var(--amber); }

.submit-entry {
  display: flex;
  width: 100%;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid #dfe9ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
}
.submit-entry-copy { display: grid; gap: 6px; }
.submit-entry-copy strong { font-size: 17px; }
.submit-entry-copy span { color: var(--muted); font-size: 12px; }
.submit-entry .button { flex: 0 0 auto; }

.video-card {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #e3eaf0;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.video-eyebrow { color: var(--blue-2); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
.video-intro h2 { margin: 7px 0 6px; font-size: 19px; }
.video-intro p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.video-list { display: grid; gap: 18px; margin-top: 17px; }
.video-item { min-width: 0; padding-top: 15px; border-top: 1px solid var(--line); }
.video-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.video-item-head h3 { margin: 5px 0 0; font-size: 14px; line-height: 1.5; }
.video-label { color: #728397; font-size: 10px; font-weight: 700; letter-spacing: .4px; }
.video-item-head a { flex: 0 0 auto; color: var(--blue-2); font-size: 10px; font-weight: 700; }
.video-frame { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #101820; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { margin: 12px 0 0; color: #8996a2; font-size: 10px; line-height: 1.6; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 28px 2px 13px; }
.section-head h2 { margin: 0; font-size: 19px; }
.section-head span { color: #8a97a4; font-size: 11px; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 1px 1px 13px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #66788a;
  cursor: pointer;
  font-size: 12px;
}
.filter.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.ticket-list { display: grid; gap: 12px; }
.ticket-card {
  display: block;
  width: 100%;
  padding: 17px 18px 14px;
  border: 1px solid #e9eef2;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(22, 44, 63, .035);
  cursor: pointer;
  text-align: left;
}
.ticket-top, .ticket-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ticket-id { color: #7c8b9b; font-size: 11px; font-weight: 700; letter-spacing: .5px; }
.ticket-title { display: block; margin-top: 13px; font-size: 16px; font-weight: 700; line-height: 1.45; }
.ticket-description { display: -webkit-box; overflow: hidden; margin-top: 6px; color: #6e7d8c; font-size: 12px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 11px; color: #8c99a5; font-size: 10px; }
.ticket-foot { margin-top: 13px; padding-top: 11px; border-top: 1px solid #f0f3f5; color: #718092; font-size: 11px; }
.ticket-link { color: var(--blue-2); font-weight: 700; white-space: nowrap; }
.status { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: var(--green-bg); color: var(--green); font-size: 10px; }
.status.pending { background: var(--amber-bg); color: var(--amber); }
.status.processing { background: #eaf2fa; color: #356b9c; }

.empty-card, .loading-card, .error-card {
  padding: 34px 22px;
  border: 1px solid #e8edf1;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}
.empty-icon { display: grid; width: 48px; height: 48px; margin: 0 auto 12px; place-items: center; border-radius: 16px; background: #eef4f7; color: var(--blue-2); font-size: 23px; }
.empty-card h3, .error-card h3 { margin: 0 0 7px; font-size: 16px; }
.empty-card p, .error-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.retry { margin-top: 15px; }

.page-heading { margin: 4px 0 18px; }
.page-heading .eyebrow { color: var(--blue-2); }
.page-heading h1 { margin: 9px 0 6px; font-size: 27px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.form-card, .detail-card { padding: 6px 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.form-field { padding: 17px 0; border-bottom: 1px solid #edf1f4; }
.form-field:last-child { border-bottom: 0; }
.form-field label { display: block; margin-bottom: 9px; color: #273d50; font-size: 13px; font-weight: 700; }
.required { color: #c7584c; }
.form-control {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #dfe7ec;
  border-radius: 12px;
  outline: none;
  background: #fbfcfd;
  color: var(--ink);
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { border-color: #5d91ac; box-shadow: 0 0 0 3px rgba(59, 123, 157, .12); }
.form-control.has-error { border-color: #c7584c; box-shadow: 0 0 0 3px rgba(199, 88, 76, .10); }
.form-control::placeholder { color: #a4afb9; }
textarea.form-control { min-height: 128px; resize: vertical; line-height: 1.6; }
.field-hint { display: block; margin-top: 6px; color: #98a4ae; font-size: 11px; text-align: right; }
.field-error { display: block; margin-top: 7px; color: #a7443b; font-size: 12px; line-height: 1.5; }
.consent-row { display: flex; align-items: flex-start; gap: 9px; margin: 16px 1px 18px; color: #718092; font-size: 11px; line-height: 1.6; }
.consent-row input { flex: 0 0 auto; margin-top: 2px; accent-color: var(--blue); }
.form-actions { display: grid; gap: 9px; margin-top: 16px; }
.form-error { margin: 0; padding: 11px 13px; border-radius: 11px; background: #fff0ee; color: #a7443b; font-size: 12px; line-height: 1.55; }

.detail-hero { padding: 22px; border-radius: 20px; background: linear-gradient(130deg, #153f62, #236b8e); color: #fff; box-shadow: var(--shadow); }
.detail-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-hero .ticket-id { color: #d0e0e9; }
.detail-hero .status { background: rgba(255,255,255,.18); color: #fff; }
.detail-hero .status.pending { background: #fff1d4; color: #805a11; }
.detail-hero .status.processing { background: #dcecff; color: #285b87; }
.detail-hero h1 { margin: 17px 0 7px; font-size: 22px; line-height: 1.4; }
.detail-hero p { margin: 0; color: #d1e1ea; font-size: 12px; }
.detail-state { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px; border: 1px solid #dcebe2; border-radius: 15px; background: #eff8f2; color: #3f6c51; }
.detail-state-icon { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; border-radius: 50%; background: #d7ecdf; font-weight: 800; }
.detail-state strong { display: block; font-size: 13px; }
.detail-state small { display: block; margin-top: 3px; color: #6c8976; font-size: 11px; line-height: 1.5; }
.detail-card { margin-top: 14px; padding: 20px; }
.detail-card h2 { margin: 0 0 12px; font-size: 16px; }
.detail-description { margin: 0 0 15px; color: #536678; font-size: 13px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-row { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-top: 1px solid #edf1f4; font-size: 12px; }
.detail-row span:first-child { flex: 0 0 auto; color: #84919d; }
.detail-row span:last-child { color: #344c60; text-align: right; overflow-wrap: anywhere; }
.bottom-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.toast { position: fixed; z-index: 20; right: 16px; bottom: max(20px, env(safe-area-inset-bottom)); left: 16px; width: fit-content; max-width: calc(100% - 32px); margin: 0 auto; padding: 12px 17px; border-radius: 12px; background: rgba(24, 42, 57, .93); color: #fff; font-size: 13px; box-shadow: 0 8px 28px rgba(0,0,0,.16); }

@media (min-width: 760px) {
  .app { margin-top: 34px; }
  .hero { padding: 36px; }
  .form-card { padding-right: 28px; padding-left: 28px; }
  .form-actions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .site-header { min-height: 64px; padding-right: 14px; padding-left: 14px; }
  .brand-logo { width: 39px; height: 39px; }
  .app { width: calc(100% - 24px); margin-top: 14px; }
  .hero { padding: 24px 21px; border-radius: 20px; }
  .submit-entry { min-height: 84px; padding: 15px; }
  .submit-entry .button { padding: 0 13px; font-size: 12px; }
  .video-card { padding: 15px 13px; }
  .video-intro h2 { font-size: 16px; }
  .video-item-head { align-items: flex-start; }
  .video-item-head h3 { font-size: 12px; }
  .form-card { padding-right: 16px; padding-left: 16px; }
}
