:root {
  --teal: #0f4c5c;
  --deep: #08343f;
  --teal-soft: #dcefeb;
  --orange: #f26b4b;
  --orange-soft: #f9ddd4;
  --mint: #7cc7a8;
  --mint-soft: #e5f3ec;
  --cream: #f7f0e3;
  --paper: #fffdf8;
  --text: #1f2933;
  --muted: #68777d;
  --line: #dfe8e5;
  --shadow: 0 18px 50px rgba(8, 52, 63, 0.11);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  background: #dfe9e5;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 5%, rgba(124, 199, 168, 0.28), transparent 30rem),
    radial-gradient(circle at 92% 15%, rgba(242, 107, 75, 0.16), transparent 26rem),
    #e8efec;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.stage {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 430px) 1fr;
  gap: 72px;
  align-items: center;
  padding: 32px 0;
}

.intro {
  max-width: 570px;
}

.intro-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.intro-brand img {
  width: 62px;
  height: 62px;
  border-radius: 16px;
}

.intro-brand strong {
  display: block;
  color: var(--teal);
  font-size: 24px;
}

.intro-brand span {
  color: var(--muted);
  font-size: 14px;
}

.intro h1 {
  margin: 0 0 20px;
  color: var(--teal);
  font-size: clamp(42px, 6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.intro p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

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

.intro-points span {
  border: 1px solid rgba(15, 76, 92, 0.18);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 10px 15px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  margin-top: 30px;
  border-radius: 14px;
  padding: 13px 20px;
  background: var(--teal);
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.phone {
  position: relative;
  width: 100%;
  min-height: 840px;
  overflow: hidden;
  border: 8px solid var(--deep);
  border-radius: 44px;
  background: #f8faf8;
  box-shadow: 0 34px 90px rgba(8, 52, 63, 0.26);
}

.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 20;
  width: 104px;
  height: 24px;
  border-radius: 0 0 16px 16px;
  background: var(--deep);
  transform: translateX(-50%);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px 18px 26px;
  background: linear-gradient(180deg, #f8faf8 72%, rgba(248, 250, 248, 0));
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.mini-brand strong {
  display: block;
  color: var(--teal);
  font-size: 17px;
}

.mini-brand span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.header-action {
  border: 0;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  background: white;
  box-shadow: 0 6px 20px rgba(8, 52, 63, 0.08);
  color: var(--teal);
  font-size: 18px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-pill {
  border: 1px solid rgba(15, 76, 92, 0.16);
  border-radius: 999px;
  padding: 9px 12px;
  background: white;
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.app-scroll {
  height: 760px;
  overflow-y: auto;
  padding: 0 16px 112px;
  scrollbar-width: none;
}

.app-scroll::-webkit-scrollbar {
  display: none;
}

.view[hidden] {
  display: none;
}

.benefit-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 23px;
  border-radius: 26px;
  background:
    linear-gradient(125deg, rgba(124, 199, 168, 0.14), transparent 45%),
    linear-gradient(145deg, var(--teal), var(--deep));
  color: white;
  box-shadow: var(--shadow);
}

.benefit-card::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -52px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(242, 107, 75, 0.92);
}

.benefit-card::before {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -58px;
  width: 175px;
  height: 175px;
  border-radius: 50%;
  border: 34px solid rgba(255, 255, 255, 0.09);
}

.benefit-card .label {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: var(--teal-soft);
}

.benefit-card .amount {
  position: relative;
  z-index: 1;
  margin: 8px 0 2px;
  font-size: 45px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.benefit-card .amount small {
  margin-right: 4px;
  font-size: 17px;
  font-weight: 500;
}

.benefit-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: 23px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.benefit-meta button {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

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

.section-head h2 {
  margin: 0;
  color: var(--teal);
  font-size: 19px;
}

.section-head button,
.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

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

.quick-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 6px 12px;
  background: white;
  text-align: center;
}

.quick-item img {
  width: 46px;
  height: 46px;
}

.quick-item span {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  font-weight: 700;
}

.campaign-card {
  display: grid;
  grid-template-columns: 1fr 122px;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  border-radius: 23px;
  padding: 20px;
  background: var(--orange-soft);
}

.campaign-card h3 {
  margin: 0 0 7px;
  color: var(--teal);
  font-size: 18px;
}

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

.campaign-card button {
  margin-top: 13px;
  border: 0;
  border-radius: 11px;
  padding: 9px 14px;
  background: var(--orange);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.campaign-orbit {
  position: relative;
  height: 120px;
}

.campaign-orbit::before,
.campaign-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.campaign-orbit::before {
  inset: 8px 15px 8px 5px;
  background: var(--orange);
}

.campaign-orbit::after {
  inset: 27px 34px 27px 24px;
  background: var(--cream);
}

.product-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 154px;
  gap: 11px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.product-scroll::-webkit-scrollbar {
  display: none;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: white;
}

.product-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 112px;
  background: linear-gradient(145deg, var(--cream), #fff);
  font-size: 46px;
}

.product-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-art small {
  position: absolute;
  top: 9px;
  left: 9px;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--orange);
  color: white;
  font-size: 9px;
  font-weight: 700;
}

.product-copy {
  padding: 12px;
}

.product-copy h3 {
  min-height: 36px;
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.4;
}

.product-copy p {
  min-height: 26px;
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  color: var(--orange);
  font-size: 17px;
  font-weight: 800;
}

.price small {
  font-size: 10px;
}

.add-button {
  border: 0;
  border-radius: 50%;
  width: 29px;
  height: 29px;
  background: var(--teal);
  color: white;
  font-size: 19px;
  line-height: 1;
}

.service-row {
  display: grid;
  gap: 11px;
}

.service-card {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 13px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  background: white;
}

.service-card img {
  width: 62px;
  height: 62px;
}

.service-card h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

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

.service-card b {
  color: var(--orange);
  font-size: 16px;
}

.service-card button {
  grid-column: 3;
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  background: var(--teal);
  color: white;
  font-size: 11px;
  font-weight: 700;
}

.tab-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 1px 14px;
  scrollbar-width: none;
}

.tab-strip::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: white;
  color: var(--muted);
  font-size: 12px;
}

.chip.active {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 11px 14px;
  background: white;
}

.search-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

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

.catalog-grid .product-card {
  min-width: 0;
}

.cart-fab {
  position: sticky;
  bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 118px;
  margin: 16px 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  background: var(--teal);
  color: white;
  box-shadow: 0 12px 28px rgba(8, 52, 63, 0.2);
  font-size: 12px;
  font-weight: 700;
}

.cart-fab span {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--orange);
  font-size: 10px;
}

.page-title {
  margin: 8px 0 16px;
  color: var(--teal);
  font-size: 28px;
}

.subcopy {
  margin: -8px 0 19px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

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

.order-card {
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 16px;
  background: white;
}

.order-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
  font-size: 11px;
  color: var(--muted);
}

.status {
  color: var(--orange);
  font-weight: 700;
}

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

.order-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--cream);
  font-size: 28px;
}

.order-main h3 {
  margin: 0 0 5px;
  font-size: 14px;
}

.order-main p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.order-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 13px;
}

.outline-button,
.primary-button,
.ghost-button {
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
}

.outline-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--teal);
}

.primary-button {
  border: 0;
  background: var(--orange);
  color: white;
}

.ghost-button {
  border: 0;
  background: var(--teal-soft);
  color: var(--teal);
}

.profile-card {
  border-radius: 24px;
  padding: 22px;
  background: var(--teal);
  color: white;
}

.profile-card h2 {
  margin: 0 0 7px;
}

.profile-card p {
  margin: 0;
  color: var(--teal-soft);
  font-size: 13px;
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.profile-metrics div {
  border-radius: 14px;
  padding: 12px 9px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}

.profile-metrics b {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.profile-metrics span {
  color: var(--teal-soft);
  font-size: 10px;
}

.community-fund-card {
  margin-top: 12px;
  border: 1px solid rgba(40, 121, 113, 0.18);
  background: linear-gradient(145deg, #dcefeb 0%, #f7fbfa 72%);
  color: var(--text);
}

.community-fund-card h2 {
  color: var(--teal);
}

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

.community-fund-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.community-fund-head > span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--teal);
  color: white;
  font-size: 10px;
  font-weight: 700;
}

.community-fund-card .profile-metrics div {
  border: 1px solid rgba(40, 121, 113, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.community-fund-card .profile-metrics b {
  color: var(--teal);
}

.community-fund-card .profile-metrics span {
  color: var(--muted);
}

.settings-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 16px;
  background: white;
  color: var(--text);
  text-decoration: none;
  text-align: left;
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-row span:first-child {
  font-size: 14px;
}

.settings-row span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.bottom-nav {
  position: absolute;
  right: 14px;
  bottom: 13px;
  left: 14px;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid rgba(223, 232, 229, 0.92);
  border-radius: 23px;
  padding: 9px 7px 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(8, 52, 63, 0.13);
  backdrop-filter: blur(16px);
}

.nav-item {
  border: 0;
  background: transparent;
  color: #869297;
  font-size: 10px;
}

.nav-icon {
  display: block;
  margin-bottom: 3px;
  font-size: 18px;
}

.nav-item.active {
  color: var(--teal);
  font-weight: 700;
}

.cart-dot {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  margin-left: 2px;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-size: 9px;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(8, 52, 63, 0.44);
  backdrop-filter: blur(3px);
}

.sheet-backdrop[hidden] {
  display: none;
}

.sheet {
  width: 100%;
  max-height: 82%;
  overflow-y: auto;
  border-radius: 30px 30px 0 0;
  padding: 24px 19px 22px;
  background: var(--paper);
  animation: sheet-in 0.22s ease-out;
}

@keyframes sheet-in {
  from {
    transform: translateY(30px);
    opacity: 0.4;
  }
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}

.sheet-head h2 {
  margin: 0;
  color: var(--teal);
  font-size: 22px;
}

.close-button {
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #edf2f0;
  color: var(--muted);
  font-size: 19px;
}

.cart-line {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.cart-thumb {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--cream);
  font-size: 25px;
}

.cart-line h3 {
  margin: 0 0 5px;
  font-size: 13px;
}

.cart-line p {
  margin: 0;
  color: var(--orange);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stepper button {
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 28px;
  height: 28px;
  background: white;
}

.summary {
  margin-top: 18px;
  border-radius: 17px;
  padding: 15px;
  background: #f4f8f6;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  color: var(--muted);
  font-size: 12px;
}

.summary-row.total {
  margin-top: 7px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.checkout-button {
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 16px;
  padding: 15px;
  background: var(--orange);
  color: white;
  font-size: 15px;
  font-weight: 800;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 210px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.sheet .form-grid {
  grid-template-columns: 1fr;
}

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

.field.full {
  grid-column: 1 / -1;
}

.sheet .field.full {
  grid-column: auto;
}

.field label {
  color: var(--muted);
  font-size: 11px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: white;
  outline: 0;
}

.toast {
  position: absolute;
  right: 28px;
  bottom: 100px;
  left: 28px;
  z-index: 60;
  border-radius: 14px;
  padding: 12px 16px;
  background: rgba(8, 52, 63, 0.94);
  color: white;
  font-size: 12px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.success-mark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 10px auto 18px;
  border-radius: 50%;
  background: var(--mint-soft);
  color: var(--teal);
  font-size: 36px;
  font-weight: 700;
}

.success-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 900px) {
  .stage {
    grid-template-columns: 1fr;
    width: min(100%, 520px);
    padding: 20px 10px 30px;
  }

  .intro {
    display: none;
  }

  .phone {
    min-height: calc(100vh - 40px);
    border-width: 0;
    border-radius: 28px;
  }

  .app-scroll {
    height: calc(100vh - 118px);
  }
}
