:root {
  --ink: #18201b;
  --muted: #637068;
  --line: #e1dfd6;
  --paper: #f8f4eb;
  --panel: #fffdf8;
  --green: #08ae72;
  --green-deep: #0f6b4c;
  --mint: #e8f7ef;
  --orange: #f28a34;
  --gold: #ffd96a;
  --red: #d9563d;
  --shadow: 0 20px 58px rgba(64, 45, 24, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(225, 223, 214, 0.85);
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 218px;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(242, 138, 52, 0.24);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.15;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  font-size: 14px;
}

nav a {
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 7px;
  color: #26342d;
  font-weight: 700;
}

nav a:hover {
  background: #efe8da;
}

.hero-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  gap: clamp(26px, 5vw, 80px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(34px, 6vw, 82px) clamp(18px, 5vw, 76px);
  background:
    radial-gradient(circle at 8% 16%, rgba(255, 217, 106, 0.48), transparent 28%),
    radial-gradient(circle at 72% 18%, rgba(8, 174, 114, 0.18), transparent 28%),
    linear-gradient(135deg, #fff9ea 0%, #f8f4eb 48%, #edf7ef 100%);
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
}

.hero-copy p {
  max-width: 760px;
  margin: 22px 0 0;
  color: #4d5c53;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.button.primary {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #261b0d;
  box-shadow: 0 14px 28px rgba(242, 138, 52, 0.24);
}

.button.secondary {
  border: 1px solid #d8d2c4;
  background: rgba(255, 253, 248, 0.72);
  color: #23312a;
}

.button.secondary.danger {
  border-color: rgba(217, 86, 61, 0.32);
  color: var(--red);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-row span {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid #d8d2c4;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.66);
  color: #375145;
  font-size: 14px;
  font-weight: 800;
}

.live-panel {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow);
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.panel-top strong {
  font-size: 18px;
}

.panel-top em {
  margin-left: auto;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(8, 174, 114, 0.12);
}

.panel-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.panel-stats div {
  min-height: 94px;
  padding: 14px;
  border: 1px solid #ece6d9;
  border-radius: 8px;
  background: #fffdf8;
}

.panel-stats strong,
.panel-stats span {
  display: block;
}

.panel-stats strong {
  color: var(--green-deep);
  font-size: 32px;
  line-height: 1.1;
}

.panel-stats span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.mini-posts {
  display: grid;
  gap: 10px;
}

.mini-posts article {
  padding: 14px;
  border-radius: 8px;
  background: var(--mint);
}

.mini-posts span {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
}

.mini-posts strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.section {
  padding: 72px clamp(18px, 5vw, 76px);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 28px;
}

.section-heading.compact {
  max-width: 760px;
}

.section h2 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.14;
}

.section p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.publish-section {
  background: #fffdf8;
}

.account-section {
  background: #f4efe4;
  border-bottom: 1px solid var(--line);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  max-width: 1080px;
}

.auth-card,
.guard-card,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 10px 36px rgba(64, 45, 24, 0.08);
}

.auth-card {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
}

.auth-status {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  background: var(--mint);
}

.auth-status small {
  grid-column: 2;
  color: var(--muted);
  font-weight: 800;
}

.status-dot.muted {
  background: #9aa59e;
  box-shadow: 0 0 0 7px rgba(154, 165, 158, 0.16);
}

.phone-form,
.code-form {
  display: grid;
  gap: 14px;
}

.recaptcha-box {
  min-height: 78px;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.auth-actions p {
  margin: 0;
  color: var(--green-deep);
  font-weight: 900;
}

.guard-card {
  padding: clamp(18px, 3vw, 28px);
}

.guard-card h3,
.admin-panel h3 {
  margin: 0;
  font-size: 22px;
}

.guard-card ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 22px;
  color: #4d5c53;
  font-weight: 700;
}

.post-form {
  display: grid;
  gap: 18px;
  max-width: 1080px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 36px rgba(64, 45, 24, 0.08);
}

.choice-layout,
.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
label span {
  color: #303a34;
  font-size: 14px;
  font-weight: 900;
}

legend {
  margin-bottom: 10px;
}

label {
  display: grid;
  gap: 8px;
}

.choice-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.choice-group.wide {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.choice-group label {
  display: block;
}

.choice-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-group span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #d9d5c9;
  border-radius: 8px;
  background: #fffdf8;
  color: #29332d;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
}

.choice-group input:checked + span {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d9d5c9;
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 16px;
  outline: none;
  padding: 12px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(8, 174, 114, 0.14);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: #fff7e3;
}

.checkbox-row input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.checkbox-row span {
  color: #4e4435;
  font-weight: 700;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

#form-message {
  margin: 0;
  color: var(--green-deep);
  font-weight: 900;
}

.error-text {
  color: var(--red) !important;
}

.feed-section {
  background: #f4efe4;
  border-block: 1px solid var(--line);
}

.feed-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #d9d5c9;
  border-radius: 8px;
  background: #fffdf8;
  color: #29332d;
  cursor: pointer;
  font-weight: 900;
}

.filter-button.active,
.filter-button:hover {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.post-card {
  display: grid;
  gap: 14px;
  min-height: 286px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 8px 24px rgba(64, 45, 24, 0.06);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
}

.pill.warning {
  background: #fff1d6;
  color: #875a12;
}

.post-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.post-card dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.post-card dl > div {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 8px;
}

.post-card dt {
  color: #69746d;
  font-size: 14px;
  font-weight: 900;
}

.post-card dd {
  margin: 0;
  color: #27322b;
  font-size: 14px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed #cbd2c9;
  border-radius: 8px;
  background: #fffdf8;
  color: var(--muted);
}

.empty-state.small {
  padding: 18px;
}

.admin-section {
  background: #fffdf8;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
}

.admin-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 220px;
  padding: clamp(18px, 3vw, 26px);
}

.muted-text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #ece6d9;
  border-radius: 8px;
  background: #fff;
}

.review-card h4,
.review-card p {
  margin: 0;
}

.review-card h4 {
  font-size: 19px;
  line-height: 1.3;
}

.review-card p {
  color: var(--muted);
}

.review-card dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.review-card dl > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
}

.review-card dt {
  color: #69746d;
  font-size: 13px;
  font-weight: 900;
}

.review-card dd {
  margin: 0;
  color: #27322b;
  font-size: 13px;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-section {
  background: #fffdf8;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.category-grid article {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf8, #fff7e7);
}

.category-grid span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.category-grid h3 {
  margin: 34px 0 0;
  font-size: 22px;
}

.category-grid p {
  font-size: 15px;
}

.safety-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  gap: clamp(26px, 5vw, 72px);
  background: var(--green-deep);
  color: #fffdf8;
}

.safety-section .section-kicker {
  color: var(--gold);
}

.safety-section ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  color: rgba(255, 253, 248, 0.86);
  font-size: 17px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
  gap: clamp(26px, 6vw, 88px);
  align-items: center;
  background: #fffdf8;
}

.contact-copy {
  max-width: 780px;
}

.wechat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.wechat-tags span {
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-deep);
  font-weight: 900;
}

.qr-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.qr-panel img {
  width: min(100%, 320px);
  border-radius: 6px;
}

.qr-panel strong {
  font-size: 19px;
}

.qr-panel span {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 24px clamp(18px, 5vw, 76px);
  border-top: 1px solid var(--line);
  background: #1e271f;
  color: rgba(255, 253, 248, 0.76);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1020px) {
  .hero-board,
  .safety-section,
  .contact-section,
  .auth-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-group,
  .choice-group.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  nav a {
    background: #efe8da;
    text-align: center;
  }

  .hero-board {
    min-height: auto;
    padding-top: 46px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section {
    padding-block: 54px;
  }

  .feed-head {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid,
  .post-list,
  .category-grid,
  .panel-stats,
  .choice-group,
  .choice-group.wide {
    grid-template-columns: 1fr;
  }

  .post-card,
  .category-grid article {
    min-height: auto;
  }
}
