:root {
  color-scheme: light;
  --ink: #101211;
  --muted: #666963;
  --green: #13977f;
  --mint: #dff5ec;
  --paper: #fffdf8;
  --cream: #fbf4e9;
  --line: rgba(21, 24, 23, 0.1);
  --shadow: 0 24px 70px rgba(68, 52, 31, 0.12);
  font-family: "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 22% 8%, rgba(186, 229, 207, 0.42), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(255, 229, 199, 0.8), transparent 32%),
    linear-gradient(180deg, #fffaf1 0%, #fbf5ed 42%, #fffdf8 100%);
}

button,
input,
textarea {
  font: inherit;
}

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

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

.detail-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(16px, 5vw, 64px);
  background: rgba(255, 253, 248, 0.9);
  border-bottom: 1px solid rgba(19, 22, 20, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 38px rgba(61, 47, 28, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #66b99f;
  font-weight: 950;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: linear-gradient(135deg, #eef9f1, #0f927c);
  border-radius: 50%;
  font-size: 12px;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.62);
}

.detail-topbar nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-link,
.top-button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(19, 22, 20, 0.16);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.top-button {
  color: #fff;
  background: var(--green);
  border-color: transparent;
}

.detail-page {
  width: min(420px, calc(100% - 24px));
  margin: 0 auto;
  padding: 0 0 72px;
}

.service-sidebar {
  min-height: 720px;
  padding: 24px 24px 28px;
  background:
    linear-gradient(180deg, rgba(223, 245, 236, 0.92), rgba(255, 253, 248, 0.96)),
    linear-gradient(90deg, rgba(19, 151, 127, 0.28), transparent 7px);
  border-right: 1px solid rgba(51, 41, 27, 0.12);
}

.service-sidebar h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0;
}

.service-sidebar p {
  margin: 0 0 18px;
  color: #6a6c65;
  font-weight: 700;
  line-height: 1.6;
}

.sidebar-kicker {
  margin-bottom: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.back-service-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  background: #111211;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

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

.service-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 56px;
  gap: 14px;
  padding: 8px 10px;
  color: #252822;
  background: rgba(255, 255, 255, 0.83);
  border: 1px solid rgba(28, 32, 29, 0.11);
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(63, 48, 30, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.service-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(63, 48, 30, 0.1);
}

.service-item.is-active {
  color: #fff;
  background: #111211;
  border-color: #111211;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #121413;
  background: #fff;
  border: 1px solid rgba(20, 24, 22, 0.08);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 950;
}

.service-item strong {
  overflow: hidden;
  text-align: left;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-item em {
  padding: 6px 10px;
  color: var(--green);
  background: #eaf8f2;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.service-item.is-active em {
  color: #111211;
  background: #fff;
}

.product-stage {
  display: grid;
  justify-items: center;
  align-items: start;
  min-height: 100vh;
  padding: 0;
}

.product-card {
  width: min(360px, calc(100% - 28px));
  overflow: hidden;
  background: #fffaf4;
  border: 1px solid rgba(34, 28, 21, 0.12);
  border-radius: 24px;
  box-shadow: 0 26px 60px rgba(57, 43, 29, 0.13);
}

.product-card.is-loading {
  margin-top: 24px;
}

.product-cover {
  position: relative;
  min-height: 520px;
  padding: 40px 26px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 45%, rgba(255, 255, 255, 0.72), transparent 22%),
    linear-gradient(180deg, #f5ded2 0%, #f8eadf 100%);
}

.cover-title {
  position: relative;
  z-index: 2;
  color: #232627;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  line-height: 0.88;
  font-weight: 900;
}

.cover-features {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 18px;
  width: 170px;
  margin-top: 24px;
}

.cover-features div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
}

.cover-features span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #151817;
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid rgba(18, 19, 18, 0.22);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 950;
}

.cover-features p {
  margin: 0;
  color: #363936;
  font-size: 13px;
  font-weight: 900;
}

.app-square {
  position: absolute;
  z-index: 2;
  right: 28px;
  top: 182px;
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  color: #fff;
  background: #202223;
  border-radius: 22px;
  font-size: 58px;
  font-family: Georgia, "Times New Roman", serif;
  box-shadow: 0 24px 50px rgba(20, 18, 16, 0.24);
}

.app-square::after {
  content: "";
  width: 74px;
  height: 74px;
  border: 12px solid #f3e3d4;
  border-left-color: transparent;
  border-radius: 50%;
}

.price-strip {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 34px;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr 118px;
  align-items: center;
  gap: 8px 10px;
  min-height: 96px;
  padding: 16px 20px;
  color: #fff;
  background: #1c1d1e;
  border-radius: 14px;
}

.price-strip strong {
  grid-row: span 2;
  font-size: 58px;
  line-height: 0.9;
}

.price-strip small {
  margin-left: 2px;
  font-size: 18px;
}

.price-strip button {
  min-height: 38px;
  color: #161716;
  background: #fff6ef;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 950;
}

.price-strip span {
  font-size: 12px;
  font-weight: 900;
}

.product-info {
  padding: 20px 20px 0;
  background: #fffaf4;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.product-tags span {
  padding: 7px 11px;
  color: #07806a;
  background: #e5faf2;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 950;
}

.product-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.3;
}

.product-info p {
  margin: 0;
  color: #4b4f4c;
  font-weight: 800;
  line-height: 1.6;
}

.product-price {
  margin: 22px 0 18px;
  color: #555952;
  font-size: 17px;
  font-weight: 800;
}

.product-price b {
  margin-left: 8px;
  color: #e63f3b;
  font-size: 34px;
}

.product-foot {
  display: flex;
  justify-content: space-between;
  margin: 0 -20px;
  padding: 14px 20px;
  border-top: 1px solid rgba(32, 27, 21, 0.1);
  font-size: 13px;
  font-weight: 950;
}

.detail-copy {
  width: min(720px, calc(100% - 28px));
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(34, 28, 21, 0.1);
  border-radius: 22px;
}

.detail-copy h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

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

.detail-list p {
  margin: 0;
  color: #464b47;
  line-height: 1.8;
  font-weight: 700;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  min-width: 120px;
  border: 0;
}

.btn-dark {
  color: #fff;
  background: #111211;
}

.btn-light {
  color: #141615;
  background: #eef7f2;
}

.modal {
  width: min(520px, calc(100% - 28px));
  border: 0;
  border-radius: 24px;
  padding: 0;
  color: var(--ink);
  background: #fffdf8;
  box-shadow: 0 28px 80px rgba(24, 19, 13, 0.2);
}

.modal::backdrop {
  background: rgba(12, 12, 10, 0.42);
  backdrop-filter: blur(6px);
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
}

#modalBody {
  padding: 34px;
}

#modalBody h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.modal-muted,
#modalBody p {
  color: var(--muted);
  line-height: 1.75;
}

.order-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.order-form label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid rgba(19, 22, 20, 0.15);
  border-radius: 14px;
  padding: 12px 14px;
  color: #151716;
  background: #fff;
  outline: none;
}

.order-result {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 16px;
  background: #eef9f4;
  border-radius: 16px;
}

.order-result span {
  color: #66706b;
  font-size: 13px;
  font-weight: 900;
}

.order-result strong {
  font-size: 24px;
}

.order-detail {
  display: grid;
  gap: 9px;
  margin: 18px 0;
}

.order-detail div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
}

.order-detail dt {
  color: #73766f;
  font-weight: 900;
}

.order-detail dd {
  margin: 0;
  font-weight: 900;
}

.query-empty {
  padding: 12px 14px;
  color: #8a433f;
  background: #fff0ee;
  border-radius: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 30;
  transform: translateX(-50%) translateY(22px);
  border-radius: 999px;
  background: rgba(18, 19, 18, 0.94);
  color: #fff;
  padding: 12px 18px;
  opacity: 0;
  transition: 0.22s ease;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 860px) {
  .detail-page {
    width: min(420px, calc(100% - 20px));
  }

  .product-stage {
    padding: 0 0 42px;
  }
}

@media (max-width: 560px) {
  .detail-topbar {
    height: auto;
    min-height: 62px;
    gap: 12px;
    padding: 12px 14px;
  }

  .detail-topbar nav {
    gap: 6px;
  }

  .top-link,
  .top-button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .detail-page {
    width: min(100%, calc(100% - 18px));
  }

  .product-cover {
    min-height: 500px;
    padding: 34px 22px 0;
  }

  .cover-title {
    font-size: 46px;
  }

  .app-square {
    right: 24px;
    top: 178px;
    width: 118px;
    height: 118px;
  }

  .price-strip {
    left: 18px;
    right: 18px;
    grid-template-columns: 1fr 104px;
    padding: 14px 16px;
  }

  .price-strip strong {
    font-size: 50px;
  }

  #modalBody {
    padding: 30px 20px;
  }
}
