:root {
  --bg: #fbfaf6;
  --ink: #22303f;
  --ink-strong: #17222e;
  --muted: #8b95a5;
  --teal: #0e6f68;
  --teal-dark: #0a5a54;
  --pill: #f1efe8;
  --card: #ffffff;
  --border: #ececea;
  --yellow: #ffe9a8;
  --radius-lg: 26px;
  --radius-md: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg); color: var(--ink); min-height: 100vh;
  display: flex; flex-direction: column; position: relative; overflow-x: hidden;
}
/* ===== 柔和渐变光斑背景 ===== */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-blobs::before, .bg-blobs::after, .bg-blobs .blob {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
}
.bg-blobs::before {
  width: 620px; height: 520px; left: -180px; top: 180px;
  background: radial-gradient(circle at 40% 40%, #d8e9fd 0%, rgba(216,233,253,0) 70%);
}
.bg-blobs::after {
  width: 640px; height: 560px; right: -200px; top: 60px;
  background: radial-gradient(circle at 60% 40%, #fdeecb 0%, rgba(253,238,203,0) 70%);
}
.bg-blobs .blob {
  width: 560px; height: 460px; left: 30%; bottom: -220px;
  background: radial-gradient(circle at 50% 50%, #fbe0e0 0%, rgba(251,224,224,0) 70%);
}
/* ===== 顶部导航（胶囊居中） ===== */
header { position: sticky; top: 0; z-index: 10; background: rgba(251,250,246,.82); backdrop-filter: blur(12px); }
.nav {
  max-width: 1080px; margin: 0 auto; padding: 14px 20px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.logo { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; color: var(--ink-strong); justify-self: start; }
.logo .box {
  width: 34px; height: 34px; border-radius: 10px; background: var(--ink-strong); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.logo em { font-style: normal; }
nav.links {
  display: flex; gap: 4px; background: var(--pill); border-radius: 999px; padding: 5px;
}
nav.links a {
  padding: 8px 18px; border-radius: 999px; font-size: 14px; color: var(--muted);
  transition: all .18s; white-space: nowrap;
}
nav.links a:hover { color: var(--ink); }
nav.links a.active { background: #fff; color: var(--ink-strong); font-weight: 600; box-shadow: 0 1px 4px rgba(34,48,63,.08); }
.nav-right { justify-self: end; }
/* ===== 主内容 ===== */
main { flex: 1; max-width: 1080px; margin: 0 auto; padding: 24px 20px 80px; width: 100%; position: relative; }
footer {
  color: var(--muted); text-align: center; padding: 26px 20px; font-size: 13px;
}
/* ===== 首页 Hero ===== */
.hero { text-align: center; padding: 72px 0 40px; }
.hero h1 {
  font-size: clamp(46px, 9vw, 88px); line-height: 1.18; font-weight: 900;
  color: var(--ink-strong); letter-spacing: .02em;
}
.hero .sub { color: var(--muted); font-size: 16px; margin: 26px 0 38px; letter-spacing: .12em; }
.cta-row { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; background: var(--teal); color: #fff;
  border: none; padding: 13px 26px 13px 30px; border-radius: 999px; font-size: 15px;
  cursor: pointer; transition: all .18s; font-weight: 600; text-decoration: none;
}
.btn .arrow {
  width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.18);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
  transition: transform .18s;
}
.btn:hover { background: var(--teal-dark); }
.btn:hover .arrow { transform: rotate(45deg); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); font-weight: 500; }
.btn.ghost:hover { border-color: var(--muted); background: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
/* 头像组 */
.voice-group { display: flex; align-items: center; gap: 14px; text-align: left; }
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  box-shadow: 0 2px 6px rgba(34,48,63,.12); margin-left: -10px;
}
.avatars span:first-child { margin-left: 0; }
.voice-group .t1 { font-size: 14px; font-weight: 600; color: var(--ink-strong); }
.voice-group .t2 { font-size: 13px; color: var(--muted); }
.voice-group a { color: var(--muted); }
.voice-group a:hover { color: var(--teal); }
/* 手写体点缀 */
.script-lines { margin-top: 64px; font-size: clamp(20px, 3.4vw, 30px); line-height: 1.9; }
.script-lines .line {
  font-family: "Segoe Script", "Bradley Hand", "Comic Sans MS", "PingFang SC", cursive;
  color: var(--ink); font-weight: 600;
}
.hl { background: linear-gradient(transparent 55%, var(--yellow) 55%, var(--yellow) 92%, transparent 92%); padding: 0 4px; }
.circle-mark { border: 2.5px solid var(--ink-strong); border-radius: 50%; padding: 2px 14px 6px; display: inline-block; transform: rotate(-2deg); }
/* ===== 特性（页面下方温和展示） ===== */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 76px; }
.feature {
  background: rgba(255,255,255,.75); backdrop-filter: blur(6px); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px; transition: all .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(34,48,63,.08); }
.feature .icon {
  width: 44px; height: 44px; border-radius: 14px; background: var(--pill);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px;
}
.feature h3 { font-size: 16px; margin-bottom: 8px; color: var(--ink-strong); }
.feature p { color: var(--muted); font-size: 13.5px; line-height: 1.8; }
.steps { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.step {
  background: rgba(255,255,255,.75); border-radius: 999px; padding: 10px 20px;
  border: 1px solid var(--border); font-size: 13.5px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.step b { color: var(--teal); font-size: 15px; }
/* ===== 通用卡片 / 表单 ===== */
.card {
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
}
.page-title { text-align: center; margin-bottom: 10px; font-size: 34px; font-weight: 900; color: var(--ink-strong); }
.page-sub { text-align: center; color: var(--muted); margin-bottom: 30px; font-size: 14px; line-height: 1.9; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 9px; color: var(--ink-strong); }
.form-group .hint { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }
input[type=text], textarea, select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 14px;
  font-size: 15px; font-family: inherit; background: #fafaf8; transition: border .15s, background .15s; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--teal); background: #fff; }
textarea { min-height: 170px; resize: vertical; }
.type-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.type-picker label {
  margin: 0; padding: 9px 20px; border: 1.5px solid var(--border); border-radius: 999px;
  font-size: 14px; font-weight: 500; cursor: pointer; color: var(--muted); transition: all .15s;
}
.type-picker input { display: none; }
.type-picker label:has(input:checked) { border-color: var(--teal); background: #e7f2f0; color: var(--teal); font-weight: 600; }
.form-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 14px; flex-wrap: wrap; }
.form-footer .tip { color: var(--muted); font-size: 12px; }
/* 提示条 */
.alert { padding: 13px 18px; border-radius: 14px; margin-bottom: 20px; font-size: 14px; display: none; line-height: 1.7; }
.alert.ok { background: #e9f7f1; color: #0c6b4d; border: 1px solid #bfe8d8; display: block; }
.alert.err { background: #fdeeee; color: #b04040; border: 1px solid #f5cfcf; display: block; }
/* ===== 公示墙 ===== */
.wall-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.wall-head h2 { font-size: 34px; font-weight: 900; color: var(--ink-strong); }
.wall-filters {
  display: flex; gap: 4px; background: rgba(255,255,255,.9); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px; flex-wrap: wrap;
}
.wall-filters button {
  padding: 8px 16px; border-radius: 999px; border: none; background: transparent;
  color: var(--muted); font-size: 13.5px; cursor: pointer; transition: all .15s;
  display: flex; align-items: center; gap: 6px;
}
.wall-filters button .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.wall-filters button.on { background: var(--ink-strong); color: #fff; }
.wall-filters button.on .dot { background: var(--yellow); }
.wall-list { display: flex; flex-direction: column; gap: 16px; }
.feed {
  background: rgba(255,255,255,.92); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 30px; transition: box-shadow .2s;
}
.feed:hover { box-shadow: 0 8px 28px rgba(34,48,63,.07); }
.feed-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.badge { font-size: 12px; padding: 4px 12px; border-radius: 999px; font-weight: 600; background: var(--pill); color: var(--ink); }
.badge.t-投诉 { background: #fdeeee; color: #b04040; }
.badge.t-建议 { background: #fdf3e0; color: #a5720f; }
.badge.t-表扬 { background: #e9f7f1; color: #0c6b4d; }
.feed-head .time { color: var(--muted); font-size: 12px; margin-left: auto; }
.feed h3 { font-size: 17px; margin-bottom: 10px; color: var(--ink-strong); }
.feed .content { color: #4a5666; font-size: 14.5px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }
.reply-box {
  margin-top: 16px; padding: 14px 18px; background: #f2f8f7; border-radius: 14px;
  font-size: 14px; line-height: 1.8; color: var(--teal-dark);
}
.reply-box b { display: block; margin-bottom: 4px; }
/* 空状态 */
.empty-card {
  background: rgba(255,255,255,.92); border: 1px solid var(--border); border-radius: var(--radius-lg);
  text-align: center; padding: 80px 30px;
}
.empty-card .mail-icon {
  width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 26px; background: #fff;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 38px; box-shadow: 0 10px 26px rgba(34,48,63,.08); position: relative;
}
.empty-card .mail-icon::after {
  content: "♥"; position: absolute; right: -12px; bottom: -10px; font-size: 18px; color: #e88c8c;
}
.empty-card h3 { font-size: 19px; color: var(--ink-strong); margin-bottom: 12px; }
.empty-card p { color: var(--muted); font-size: 14px; line-height: 2; }
.empty-card .wait { margin-top: 18px; font-size: 13px; color: var(--teal); display: inline-flex; align-items: center; gap: 6px; }
.empty-card .wait .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 15px; }
.load-more { display: block; margin: 26px auto 0; }
/* ===== 后台 ===== */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: rgba(255,255,255,.92); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; text-align: center; }
.stat b { font-size: 28px; color: var(--teal); display: block; }
.stat span { color: var(--muted); font-size: 13px; }
.admin-item { border-left: 4px solid var(--border); }
.admin-item.pending { border-left-color: #e5a53c; }
.admin-item.approved { border-left-color: #35a06b; }
.admin-item.rejected { border-left-color: #d96a6a; }
.admin-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.admin-actions .btn { padding: 8px 16px; font-size: 13px; }
.admin-actions .btn.ok { background: #35a06b; }
.admin-actions .btn.ok:hover { background: #2c8759; }
.admin-actions .btn.no { background: #d96a6a; }
.admin-actions .btn.no:hover { background: #c05555; }
.admin-actions input { flex: 1; min-width: 200px; padding: 9px 14px; font-size: 13px; }
.status-tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.status-tag.pending { background: #fdf3e0; color: #a5720f; }
.status-tag.approved { background: #e9f7f1; color: #0c6b4d; }
.status-tag.rejected { background: #fdeeee; color: #b04040; }
.login-wrap { max-width: 400px; margin: 60px auto; }
/* 宣言框（投诉入口顶部） */
.manifesto {
  border: 1px solid #b9cfe6; border-radius: 6px; text-align: center;
  padding: 64px 30px; margin: 20px 0 34px; position: relative;
}
.manifesto h2 {
  font-size: clamp(30px, 5.4vw, 52px); font-weight: 900; color: var(--ink-strong); line-height: 1.4;
}
.manifesto .meta { margin-top: 26px; color: var(--ink); font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.manifesto .meta .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
@media (max-width: 720px) {
  .nav { grid-template-columns: auto 1fr; padding: 12px 14px; }
  .logo { grid-column: 1; }
  nav.links { grid-column: 1 / -1; grid-row: 2; justify-self: center; margin-top: 10px; }
  .nav-right { display: none; }
  .card { padding: 26px 20px; }
  .cta-row { gap: 18px; }
  .feed { padding: 20px; }
}
