@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600;700;900&family=Noto+Sans+TC:wght@400;600;700;900&display=swap");

:root {
  --bg: #090b0e;
  --panel: #11161b;
  --panel-raised: #171d23;
  --line: #2a333c;
  --text: #f4f7f5;
  --muted: #9ca7a1;
  --green: #4eea8a;
  --green-dark: #22c55e;
  --green-soft: rgba(78, 234, 138, .1);
  --danger: #ff8585;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 0, rgba(34, 197, 94, .13), transparent 28rem),
    var(--bg);
  font-family: "Noto Sans", "Noto Sans TC", "Segoe UI", sans-serif;
  line-height: 1.65;
}
html[lang^="zh"] body { font-family: "Noto Sans TC", "Noto Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.feedback-wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.feedback-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(9,11,14,.84);
  backdrop-filter: blur(18px);
}
.feedback-topbar nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.feedback-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; }
.feedback-brand img { border-radius: 10px; filter: drop-shadow(0 0 18px rgba(78,234,138,.22)); }
.back-link { color: #c3cbc6; font-size: 14px; font-weight: 700; }
.back-link:hover { color: var(--green); }

.feedback-hero { padding: 92px 0 62px; border-bottom: 1px solid rgba(255,255,255,.06); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 80px; align-items: end; }
.eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .13em;
}
h1, h2 { margin: 0; font-weight: 900; letter-spacing: -.035em; }
h1 { max-width: 850px; margin-top: 18px; font-size: clamp(44px, 6vw, 78px); line-height: 1.06; }
.hero-lead { max-width: 720px; margin: 24px 0 0; color: #bac3be; font-size: 18px; }
.privacy-card {
  padding: 24px;
  border: 1px solid rgba(78,234,138,.34);
  border-radius: 16px;
  background: var(--green-soft);
}
.privacy-card strong { color: var(--green); font-size: 18px; }
.privacy-card p { margin: 8px 0 0; color: #c3ccc7; }

.feedback-section { padding: 72px 0 100px; }
.board-layout { display: grid; grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr); gap: 34px; align-items: start; }
.feedback-form, .feedback-list-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(17,22,27,.92);
}
.feedback-form { position: sticky; top: 96px; padding: 30px; }
.form-heading { display: flex; gap: 14px; margin-bottom: 28px; }
.section-number { color: var(--green); font-weight: 900; letter-spacing: .08em; }
.form-heading h2, .list-heading h2 { font-size: 28px; line-height: 1.2; }
.form-heading p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.feedback-form label { display: grid; gap: 8px; margin-top: 20px; font-weight: 700; }
.feedback-form small { color: #7f8b84; font-size: 12px; font-weight: 400; }
input, textarea {
  width: 100%;
  border: 1px solid #35404b;
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: #0c1014;
  transition: border-color .16s, box-shadow .16s;
}
input { min-height: 48px; padding: 0 14px; }
textarea { resize: vertical; min-height: 150px; padding: 13px 14px; }
input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(78,234,138,.11); }
.message-meta { display: flex; justify-content: space-between; gap: 16px; }
.honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.turnstile-slot { min-height: 66px; margin-top: 22px; }
.submit-button {
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
  border: 1px solid #68f5a0;
  border-radius: 10px;
  color: #06140b;
  background: var(--green);
  box-shadow: 0 12px 30px rgba(34,197,94,.18);
  font-weight: 900;
  cursor: pointer;
}
.submit-button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.form-status { min-height: 24px; margin: 14px 0 0; font-size: 14px; }
.form-status.error { color: var(--danger); }
.form-status.success { color: var(--green); }

.feedback-list-panel { padding: 30px; }
.list-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.list-heading > div { display: flex; align-items: baseline; gap: 14px; }
.feedback-count { color: var(--muted); font-size: 13px; }
.feedback-list { display: grid; gap: 16px; margin-top: 22px; }
.feedback-card, .loading-card, .empty-card {
  padding: 22px;
  border: 1px solid #27313a;
  border-radius: 14px;
  background: #0d1216;
}
.feedback-card-header { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.feedback-author { font-weight: 900; }
.feedback-date { color: #718078; font-size: 12px; white-space: nowrap; }
.feedback-message { margin: 0; color: #d5ddd8; white-space: pre-wrap; overflow-wrap: anywhere; }
.owner-reply {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--green-soft);
}
.owner-reply-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 5px; }
.owner-reply strong { color: var(--green); font-size: 13px; }
.owner-reply p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.thread-reply-button {
  margin-top: 16px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #d9e2dd;
  background: #11171c;
  font-weight: 800;
  cursor: pointer;
}
.thread-reply-button:hover { border-color: #4a5851; color: var(--text); }
.thread-reply-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0a0f13;
}
.thread-reply-form label { display: grid; gap: 7px; font-weight: 800; }
.thread-reply-form small { color: #7f8b84; font-size: 12px; font-weight: 400; }
.thread-reply-form textarea { min-height: 110px; }
.thread-reply-turnstile { min-height: 66px; }
.thread-reply-actions { display: flex; gap: 10px; }
.thread-reply-submit, .thread-reply-cancel {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 9px;
  font-weight: 900;
  cursor: pointer;
}
.thread-reply-submit { border: 1px solid #68f5a0; color: #06140b; background: var(--green); }
.thread-reply-submit:disabled { cursor: not-allowed; opacity: .45; }
.thread-reply-cancel { border: 1px solid var(--line); color: #d9e2dd; background: transparent; }
.thread-reply-status { min-height: 22px; margin: 0; font-size: 13px; }
.thread-reply-status.error { color: var(--danger); }
.thread-reply-status.success { color: var(--green); }
.loading-card, .empty-card { color: var(--muted); text-align: center; }

.feedback-footer { padding: 28px 0; border-top: 1px solid rgba(255,255,255,.07); color: #7f8a84; font-size: 13px; }
.feedback-footer .feedback-wrap { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 820px) {
  .feedback-hero { padding: 68px 0 46px; }
  .hero-layout, .board-layout { grid-template-columns: 1fr; gap: 28px; }
  h1 { font-size: clamp(39px, 11vw, 58px); }
  .feedback-form { position: static; }
}
@media (max-width: 520px) {
  .feedback-wrap { width: min(calc(100% - 28px), var(--max)); }
  .feedback-brand span { font-size: 14px; }
  .back-link { max-width: 130px; text-align: right; line-height: 1.25; }
  .feedback-form, .feedback-list-panel { padding: 22px 18px; border-radius: 16px; }
  .feedback-footer .feedback-wrap { flex-direction: column; }
}
