:root {
  --page-bg: #ffffff;
  --panel-bg: #f4f5fa;
  --text-main: #2f2f34;
  --text-muted: #8d8f96;
  --purple: #8d72f5;
  --purple-soft: #b696f1;
  --green: #59c985;
  --green-soft: #92f0bf;
  --border-soft: #d5d5dd;
  --danger: #f4432d;
  --card-shadow: 0 6px 20px rgba(32, 30, 56, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page-bg);
  color: var(--text-main);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body {
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

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

button {
  border: 0;
  background: none;
  padding: 0;
}

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

.page {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px 12px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  height: 52px;
  border: 1.5px solid var(--border-soft);
  border-radius: 28px;
  background: #fff;
}

.search-icon {
  width: 21px;
  height: 21px;
  margin-left: 18px;
  color: #9a9aa1;
  flex: 0 0 auto;
}

.search-box input {
  width: 100%;
  height: 100%;
  padding: 0 18px 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 600;
}

.search-box input::placeholder {
  color: #a4a4a8;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-main);
  background: transparent;
  cursor: pointer;
}

.back-icon {
  width: 28px;
  height: 28px;
}

.back-btn span {
  display: none; /* Hide text, keep icon only */
}

.page-title {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}


.service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 52px;
  padding: 0 14px;
  border: 1.5px solid #7f6cff;
  border-radius: 28px;
  color: #7f6cff;
  background: #fff;
  box-shadow: 0 8px 18px rgba(127, 108, 255, 0.06);
  white-space: nowrap;
}

.service-icon {
  width: 22px;
  height: 22px;
  color: currentColor;
  flex: 0 0 auto;
}

.service-btn span {
  font-size: 15px;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 26px 14px 18px;
}

.feature-card {
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--card-shadow);
}

.feature-main {
  min-height: 126px;
  padding: 18px 16px 14px;
}

.feature-card.is-purple .feature-main {
  background: linear-gradient(90deg, #9a84ef 0%, #bc9ef1 100%);
}

.feature-card.is-green .feature-main {
  background: linear-gradient(90deg, #69cb90 0%, #90f2be 100%);
}

.feature-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.share-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.share-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
}

.share-badge iconify-icon {
  width: 20px;
  height: 20px;
}

.feature-card.is-purple .share-badge iconify-icon {
  color: #9a84ef;
}

.feature-card.is-green .share-badge iconify-icon {
  color: #66d294;
}

.feature-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  background: #fff;
}

.try-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.feature-card.is-purple .try-btn,
.recommend-action .try-btn {
  background: linear-gradient(180deg, #a68af9 0%, #8b71f1 100%);
}

.feature-card.is-green .try-btn {
  background: linear-gradient(180deg, #67cf92 0%, #52b373 100%);
}

.recommend-section {
  margin-top: 0;
  padding: 34px 14px calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--panel-bg);
}

.section-title {
  margin: 0 0 18px;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
}

.recommend-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recommend-card {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr) 82px;
  align-items: stretch;
  gap: 10px 12px;
  padding: 10px 10px 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(50, 50, 70, 0.04);
}

.recommend-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.recommend-image {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
  background: linear-gradient(180deg, #fff9df 0%, #ffe892 100%);
}

.recommend-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.recommend-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #303036;
  font-size: 17px;
  line-height: 1.28;
  font-weight: 800;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.recommend-desc {
  margin: 8px 0 10px;
  color: #8f9096;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}

.recommend-price {
  color: var(--danger);
  font-size: 16px;
  font-weight: 500;
}

.recommend-price strong {
  font-size: 26px;
  font-weight: 500;
}

.recommend-action {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.recommend-action .try-btn {
  min-width: 74px;
  height: 40px;
  border-radius: 6px;
}

.search-box:focus-within {
  border-color: #c0b7f3;
  box-shadow: 0 0 0 4px rgba(141, 114, 245, 0.08);
}

.service-btn:active,
.feature-card:active,
.recommend-card:active {
  transform: translateY(1px);
}

@media (max-width: 360px) {
  .topbar {
    gap: 10px;
  }

  .service-btn {
    padding: 0 12px;
  }

  .service-btn span {
    font-size: 14px;
  }

  .feature-title {
    font-size: 18px;
  }

  .recommend-card {
    grid-template-columns: 84px minmax(0, 1fr) 64px;
    gap: 10px;
  }

  .recommend-image {
    width: 74px;
    height: 74px;
  }

  .recommend-action .try-btn,
  .try-btn {
    min-width: 60px;
    height: 34px;
    font-size: 15px;
  }

  .recommend-title {
    font-size: 16px;
  }

  .recommend-price strong {
    font-size: 22px;
  }
}
