:root {
  --primary: #1a8f7a;
  --primary-dark: #116d5d;
  --secondary: #f2994a;
  --bg: #f4f8f6;
  --surface: #ffffff;
  --surface-soft: #eef6f3;
  --text: #18332f;
  --muted: #6a7d78;
  --line: #dce8e4;
  --success: #2ead6b;
  --danger: #e05a47;
  --shadow: 0 18px 46px rgba(24, 51, 47, 0.14);
  --radius: 18px;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: #eaf2ef;
}

button,
input,
textarea,
select {
  font: inherit;
}

.stage {
  min-height: 100dvh;
  height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px minmax(280px, 420px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 32px;
  overflow: hidden;
}

.brief {
  display: none;
}

.brief h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

.brief p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

.phone {
  grid-column: 2;
  grid-row: 1;
  width: 390px;
  height: 844px;
  background: #0c201c;
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--shadow);
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 118px;
  height: 25px;
  border-radius: 0 0 17px 17px;
  background: #0c201c;
  transform: translateX(-50%);
  z-index: 5;
}

.screen {
  height: 820px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--bg);
  position: relative;
}

.screen-inner {
  height: 100%;
  overflow-y: auto;
  padding: 0 18px 92px;
  scrollbar-width: none;
}

.screen-inner::-webkit-scrollbar {
  display: none;
}

.status {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.status-icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.bar {
  width: 17px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  position: relative;
}

.bar::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 2px;
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 1px;
}

.nav-top {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 8px;
}

.nav-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(24, 51, 47, 0.08);
  cursor: pointer;
}

.icon {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.hero {
  min-height: 170px;
  border-radius: 28px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(26, 143, 122, 0.96), rgba(21, 117, 156, 0.92)),
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.34), transparent 36%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -24px;
  width: 142px;
  height: 142px;
  border-radius: 50%;
  border: 24px solid rgba(255, 255, 255, 0.16);
}

.hero h2 {
  position: relative;
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero p {
  position: relative;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
  font-size: 14px;
}

.hero .hero-actions {
  position: relative;
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.pill {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.pill.light {
  background: #fff;
  color: var(--primary-dark);
}

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

.quick {
  min-height: 82px;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(24, 51, 47, 0.06);
  cursor: pointer;
}

.quick .icon {
  color: var(--primary);
}

.section-head {
  margin: 22px 2px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-head h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

.card {
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
  box-shadow: 0 8px 22px rgba(24, 51, 47, 0.06);
}

.activity-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 12px;
  cursor: pointer;
}

.cover {
  min-height: 96px;
  border-radius: 16px;
  background: linear-gradient(135deg, #cdebe2, #ffd9b5);
  position: relative;
  overflow: hidden;
}

.cover::before,
.cover::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.cover::before {
  width: 54px;
  height: 54px;
  left: 16px;
  top: 18px;
}

.cover::after {
  width: 80px;
  height: 18px;
  right: -18px;
  bottom: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.tag.orange {
  background: #fff1e3;
  color: #a85414;
}

.tag.gray {
  background: #edf0ef;
  color: var(--muted);
}

.card h4 {
  margin: 8px 0 8px;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

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

.stat {
  padding: 15px 8px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 22px;
  color: var(--primary-dark);
}

.stat span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0 16px;
  overflow-x: auto;
}

.tab {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 40px;
  white-space: nowrap;
  background: #e7efec;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.tab.active {
  background: var(--primary);
  color: #fff;
}

.detail-cover {
  height: 205px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(26,143,122,0.95), rgba(242,153,74,0.72)),
    linear-gradient(45deg, #fff, transparent);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.detail-cover::before {
  content: "";
  position: absolute;
  inset: auto 24px 28px 24px;
  height: 72px;
  border-radius: 26px 26px 10px 10px;
  background: rgba(255,255,255,0.36);
}

.detail-title {
  margin: 6px 0 8px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.info-list {
  display: grid;
  gap: 10px;
}

.info-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.info-row .icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex: 0 0 auto;
  margin-top: 2px;
}

.bottom-action {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 84px;
  padding: 12px 18px 20px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(220,232,228,0.8);
}

.primary-btn,
.secondary-btn {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 17px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(26, 143, 122, 0.25);
}

.secondary-btn {
  background: var(--surface-soft);
  color: var(--primary-dark);
}

.form {
  display: grid;
  gap: 13px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 13px;
  font-weight: 800;
}

.input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  outline: none;
}

textarea.input {
  min-height: 96px;
  resize: none;
}

.helper {
  color: var(--muted);
  font-size: 12px;
}

.success-wrap {
  height: 650px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.success-mark {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #dcf5e8;
  color: var(--success);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.success-wrap h2 {
  margin: 0 0 10px;
  font-size: 25px;
  letter-spacing: 0;
}

.success-wrap p {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.service {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service .icon {
  color: var(--primary);
}

.service h4 {
  margin: 12px 0 4px;
}

.service p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.donate-card {
  margin-bottom: 12px;
}

.progress {
  height: 9px;
  border-radius: 999px;
  background: #e4ece9;
  overflow: hidden;
  margin: 12px 0 8px;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.feed-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, #b9e5db, #ffd6ad);
}

.profile-head {
  min-height: 174px;
  border-radius: 28px;
  background: var(--primary);
  color: #fff;
  padding: 22px;
}

.profile-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-user .avatar {
  width: 62px;
  height: 62px;
  border-radius: 23px;
  background: rgba(255,255,255,0.28);
}

.profile-user h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.profile-user p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
}

.menu-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.menu-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.menu-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-main .icon {
  color: var(--primary);
}

.booking-state {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 78px;
  background: rgba(255,255,255,0.94);
  border-top: 1px solid rgba(220,232,228,0.9);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 8px 12px;
  backdrop-filter: blur(14px);
}

.nav-item {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item .icon {
  width: 22px;
  height: 22px;
}

.side-panel {
  grid-column: 3;
  grid-row: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  max-height: calc(100dvh - 64px);
  overflow: hidden;
}

.panel-card {
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 22px;
}

.panel-card h2,
.panel-card h3 {
  margin: 0 0 12px;
  letter-spacing: 0;
}

.panel-card p,
.panel-card li {
  color: var(--muted);
  line-height: 1.7;
}

.flow-line {
  white-space: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
}

.flow-list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  max-height: 620px;
  overflow-y: auto;
  padding-right: 2px;
}

.flow-list button {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
}

.flow-list button.active {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--surface-soft);
  font-weight: 800;
}

.search-box {
  min-height: 48px;
  border-radius: 17px;
  background: var(--surface);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  box-shadow: 0 8px 22px rgba(24, 51, 47, 0.06);
  cursor: pointer;
}

.search-box.active {
  color: var(--text);
  border: 1px solid var(--primary);
}

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(12, 32, 28, 0.48);
  display: flex;
  align-items: flex-end;
  padding: 18px;
}

.sheet {
  width: 100%;
  border-radius: 26px;
  background: #fff;
  padding: 12px 18px 18px;
  box-shadow: 0 -18px 38px rgba(12, 32, 28, 0.16);
}

.sheet-handle {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: #d8e4e0;
  margin: 0 auto 18px;
}

.sheet h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: 0;
}

.sheet p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
}

.sheet .primary-btn {
  margin-bottom: 10px;
}

.auth-brand {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.auth-logo {
  width: 76px;
  height: 76px;
  border-radius: 28px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  box-shadow: 0 14px 28px rgba(26, 143, 122, 0.24);
}

.auth-logo .icon {
  width: 34px;
  height: 34px;
}

.auth-brand h1 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: 0;
}

.auth-brand p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 18px;
  background: #e7efec;
  margin-bottom: 18px;
}

.segmented button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.segmented button.active {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 6px 14px rgba(24, 51, 47, 0.08);
}

.switch {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #dce8e4;
  padding: 3px;
  flex: 0 0 auto;
}

.switch i {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(24, 51, 47, 0.18);
}

.switch.on {
  background: var(--primary);
}

.switch.on i {
  transform: translateX(20px);
}

.board-body {
  background: #eaf2ef;
  padding: 34px;
}

.board-title {
  max-width: 1240px;
  margin: 0 auto 24px;
}

.board-title h1 {
  margin: 0 0 8px;
  font-size: 32px;
  letter-spacing: 0;
}

.board-title p {
  margin: 0;
  color: var(--muted);
}

.screen-grid {
  max-width: 1420px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(390px, 390px));
  gap: 28px;
  align-items: start;
}

.screen-shot {
  display: grid;
  gap: 10px;
}

.screen-shot > h2 {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 0;
}

@media (max-width: 980px) {
  .stage {
    grid-template-columns: 1fr;
    height: auto;
    overflow: auto;
    justify-items: center;
    padding: 18px;
  }

  .brief,
  .side-panel {
    grid-column: auto;
    grid-row: auto;
    width: min(390px, 100%);
  }

  .brief {
    display: flex;
    align-items: start;
    flex-direction: column;
  }

  .phone {
    grid-column: auto;
    grid-row: auto;
    width: min(390px, 100%);
  }

  .side-panel {
    max-height: none;
    overflow: visible;
  }

  .flow-list {
    max-height: none;
    overflow: visible;
  }
}
