:root {
  --ink: #17312b;
  --muted: #687b73;
  --line: #d9e2dc;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --green: #1f6a4f;
  --green-deep: #164638;
  --mint: #e6f1e9;
  --coral: #a84d37;
  --gold: #c68c3a;
  --shadow: 0 10px 30px rgba(23, 49, 43, 0.08);
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #c68c3a;
  outline-offset: 3px;
}
.profile-side .btn {
  background: transparent;
}
h1,
h2,
h3,
p,
dd {
  overflow-wrap: anywhere;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
.shell {
  min-height: 100vh;
}
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: rgba(247, 248, 244, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-size: 16px;
}
.nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 13px;
  border-radius: 10px;
}
.nav button:hover,
.nav button.active {
  background: var(--mint);
  color: var(--green-deep);
  font-weight: 700;
}
.user-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green-deep);
  background: #d6eadc;
  font-weight: 700;
}
.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 15px;
  font-weight: 700;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  color: #fff;
  background: var(--green);
}
.btn-primary:hover {
  background: var(--green-deep);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-soft {
  background: var(--mint);
  color: var(--green-deep);
}
.main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 5vw 80px;
}
.eyebrow {
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.055em;
  margin-bottom: 17px;
}
h2 {
  font-size: 28px;
  letter-spacing: -0.04em;
}
h3 {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 6px;
}
.muted {
  color: var(--muted);
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 38px;
  align-items: center;
  padding: 36px 0 50px;
}
.hero-copy {
  max-width: 610px;
}
.hero-copy p {
  max-width: 500px;
  font-size: 18px;
  color: var(--muted);
}
.hero-art {
  min-height: 315px;
  padding: 26px;
  background: #dbe8dd;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}
.hero-art:after {
  content: "";
  position: absolute;
  inset: 26px 22px 28px 40px;
  border: 1px solid rgba(31, 106, 79, 0.2);
  border-radius: 18px;
  transform: rotate(-5deg);
}
.hero-note {
  position: relative;
  z-index: 1;
  background: #fffdf6;
  padding: 22px;
  width: 78%;
  box-shadow: var(--shadow);
  transform: rotate(3deg);
  margin: 32px auto 0;
}
.hero-note strong {
  display: block;
  font-size: 29px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.hero-note span {
  display: block;
  color: var(--coral);
  font-weight: 700;
  margin-top: 16px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 13px;
}
.chip.active {
  color: var(--green-deep);
  background: var(--mint);
  border-color: #b9d4c2;
  font-weight: 700;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.event-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.event-card-media {
  height: 150px;
  background-position: center;
  background-size: cover;
}
.event-card-body {
  padding: 17px 18px 18px;
}
.event-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 11px;
}
.tag {
  color: var(--green-deep);
  background: var(--mint);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
}
.event-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  font-size: 13px;
  color: var(--muted);
}
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.85fr);
  gap: 26px;
}
.detail-cover {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
}
.detail-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  align-self: start;
}
.detail-panel dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px 12px;
  font-size: 14px;
}
.detail-panel dt {
  color: var(--muted);
}
.detail-panel dd {
  margin: 0;
  font-weight: 600;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
}
.page-head h1 {
  font-size: 39px;
  margin-bottom: 6px;
}
.form-wrap {
  max-width: 760px;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field.full {
  grid-column: 1/-1;
}
label {
  font-weight: 700;
  font-size: 13px;
}
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 13px;
  background: #fbfcfa;
  color: var(--ink);
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 106, 79, 0.12);
}
textarea {
  resize: vertical;
  min-height: 130px;
}
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}
.auth-layout {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 30px 16px;
}
.auth-card {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.auth-card h1 {
  font-size: 34px;
}
.auth-switch {
  display: flex;
  gap: 10px;
  margin: 20px 0 24px;
  border-bottom: 1px solid var(--line);
}
.auth-switch button {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 9px 0;
  background: transparent;
  color: var(--muted);
  margin-right: 16px;
}
.auth-switch button.active {
  color: var(--green-deep);
  border-color: var(--green);
  font-weight: 800;
}
.stack {
  display: grid;
  gap: 14px;
}
.profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}
.profile-side {
  background: var(--green-deep);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px;
}
.profile-side .avatar {
  width: 56px;
  height: 56px;
  font-size: 23px;
  margin-bottom: 24px;
  background: #b7d7c0;
}
.profile-side p {
  color: #c8dfcf;
  font-size: 13px;
}
.profile-list {
  display: grid;
  gap: 12px;
}
.empty {
  padding: 48px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 120px);
  background: var(--green-deep);
  color: #fff;
  padding: 11px 17px;
  border-radius: 10px;
  opacity: 0;
  transition: 0.2s;
  z-index: 20;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
@media (max-width: 780px) {
  .topbar {
    height: auto;
    min-height: 64px;
    padding: 12px 18px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .nav {
    order: 3;
    width: 100%;
    overflow: auto;
    justify-content: space-between;
  }
  .nav button {
    padding: 7px 8px;
    white-space: nowrap;
  }
  .main {
    padding: 24px 18px 60px;
  }
  .hero,
  .detail,
  .profile {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 18px;
  }
  .hero-art {
    min-height: 230px;
  }
  .event-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .toolbar,
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .user-actions .btn-ghost {
    display: none;
  }
  .detail-cover {
    height: 240px;
  }
}
