:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #66727f;
  --line: #dce2e8;
  --surface: #ffffff;
  --soft: #f3f6f8;
  --blue: #2468c9;
  --blue-dark: #194e99;
  --green: #237a63;
  --warm: #a75c24;
  --danger: #b83a46;
  --shadow: 0 10px 28px rgba(30, 51, 70, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); line-height: 1.55; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }

.site-header {
  min-height: 70px;
  padding: 10px max(22px, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; box-shadow: 0 3px 10px rgba(28, 58, 82, 0.16); }
.brand span { display: grid; line-height: 1.15; }
.brand strong { font-size: 17px; }
.brand small { color: var(--muted); margin-top: 4px; }
nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }

.content { width: min(1120px, calc(100% - 44px)); margin: 0 auto; }
.content.narrow { width: min(760px, calc(100% - 44px)); }
.band { padding: 72px 0; }
.muted-band { background: var(--soft); border-top: 1px solid var(--line); }
.intro { padding: 74px 0 66px; background: #eef6fb; border-bottom: 1px solid #d7e7f1; }
.eyebrow { margin: 0 0 9px; color: var(--blue-dark); font-weight: 700; font-size: 13px; }
h1, h2, h3, p { letter-spacing: 0; }
h1 { margin: 0 0 16px; font-size: clamp(32px, 5vw, 48px); line-height: 1.14; }
h2 { margin: 0; font-size: 26px; line-height: 1.25; }
.intro p:last-child, .lead { font-size: 18px; color: #53616d; max-width: 690px; }
.section-heading { margin-bottom: 26px; display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.section-heading p { color: var(--muted); margin: 0; }

.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 0 4px; }
summary { padding: 21px 0; font-weight: 650; cursor: pointer; }
details p { margin: -3px 0 22px; color: var(--muted); max-width: 820px; }

.feedback-layout { display: grid; grid-template-columns: minmax(240px, 0.75fr) minmax(360px, 1.25fr); gap: 64px; align-items: start; }
.feedback-copy { position: sticky; top: 106px; }
.feedback-copy > p { color: var(--muted); }
.privacy-note { margin-top: 26px; padding-left: 14px; border-left: 3px solid var(--green); display: grid; gap: 2px; }
.privacy-note span { color: var(--muted); font-size: 14px; }

.feedback-form, .admin-login form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 26px;
  display: grid;
  gap: 17px;
}
label { display: grid; gap: 7px; color: #3e4a55; font-size: 14px; font-weight: 600; }
input, textarea, select {
  width: 100%;
  border: 1px solid #c9d1d9;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}
textarea { resize: vertical; min-height: 150px; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 104, 201, 0.12); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.checkbox-row { grid-template-columns: 20px 1fr; align-items: start; font-weight: 500; }
.checkbox-row input { width: 18px; height: 18px; margin: 2px 0 0; }
.form-actions { display: flex; gap: 16px; align-items: center; min-height: 46px; }
.inline-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
button {
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  min-height: 44px;
  padding: 9px 18px;
  font-weight: 700;
}
button:hover { background: var(--blue-dark); }
button:disabled { opacity: 0.55; cursor: wait; }
.secondary-button { color: var(--ink); border-color: #c7cfd7; background: #fff; }
.secondary-button:hover { background: var(--soft); }
.form-status { margin: 0; color: var(--muted); font-size: 14px; }
.form-status.success { color: var(--green); }
.form-status.error { color: var(--danger); }

footer {
  min-height: 74px;
  padding: 22px max(22px, calc((100% - 1120px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.policy { padding-top: 64px; padding-bottom: 80px; }
.policy h1 { max-width: 720px; }
.policy h2 { margin-top: 42px; font-size: 22px; }
.policy p { color: #4f5d68; }
.draft-warning { margin-top: 44px; padding: 18px; background: #fff7eb; border-left: 4px solid var(--warm); }

.admin-body { background: var(--soft); }
.admin-main { padding-top: 48px; padding-bottom: 70px; }
.admin-login { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: start; }
.admin-login p { color: var(--muted); max-width: 540px; }
.admin-title-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.admin-title-row h1 { font-size: 34px; margin-bottom: 0; }
.summary-strip { margin: 28px 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: #fff; }
.summary-item { padding: 18px; border-right: 1px solid var(--line); }
.summary-item:last-child { border-right: 0; }
.summary-item span { display: block; color: var(--muted); font-size: 13px; }
.summary-item strong { display: block; font-size: 27px; margin-top: 3px; }
.toolbar { display: grid; grid-template-columns: 180px minmax(260px, 1fr) auto; gap: 14px; align-items: end; margin-bottom: 12px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 980px; font-size: 13px; }
th, td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); background: #f8fafb; font-size: 12px; position: sticky; top: 0; }
td:nth-child(1) { width: 160px; }
td:nth-child(3) { width: 190px; }
td:nth-child(4) { width: 260px; }
.ticket-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; }
.ticket-meta { color: var(--muted); display: grid; gap: 4px; }
.ticket-content strong { display: block; font-size: 15px; margin-bottom: 6px; }
.ticket-content p { margin: 0; white-space: pre-wrap; }
.ticket-actions { display: grid; gap: 8px; }
.ticket-actions textarea { min-height: 70px; padding: 8px; }
.ticket-actions button { min-height: 36px; padding: 6px 12px; justify-self: start; }
.status-pill { display: inline-block; padding: 3px 7px; border-radius: 999px; background: #eaf1f8; color: var(--blue-dark); font-size: 12px; }

@media (max-width: 760px) {
  .site-header { position: static; align-items: flex-start; }
  nav { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .band { padding: 50px 0; }
  .intro { padding: 54px 0 48px; }
  h1 { font-size: 34px; }
  .section-heading, .admin-title-row { align-items: flex-start; flex-direction: column; }
  .feedback-layout, .admin-login { grid-template-columns: 1fr; gap: 30px; }
  .feedback-copy { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
  .summary-item:nth-child(2) { border-right: 0; }
  .summary-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .toolbar { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
