:root {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #17211f;
  background: #edf1ef;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.preview-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(390px, 460px);
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 42px;
}

.preview-copy {
  max-width: 350px;
}

.preview-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.preview-title {
  margin: 0;
  font-size: 36px;
  line-height: 1.25;
}

.preview-summary {
  margin: 18px 0 28px;
  color: #63706c;
  font-size: 15px;
  line-height: 1.8;
}

.version-nav {
  display: grid;
  gap: 10px;
}

.version-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  color: #47534f;
  text-decoration: none;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(22, 42, 36, .1);
  border-radius: 6px;
}

.version-link.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.version-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
}

.phone {
  width: 100%;
  height: min(880px, calc(100vh - 60px));
  min-height: 660px;
  position: relative;
  overflow: hidden;
  background: var(--page);
  border: 8px solid #17201e;
  border-radius: 34px;
  box-shadow: 0 28px 80px rgba(28, 47, 42, .2);
}

.phone::before {
  content: "";
  width: 96px;
  height: 22px;
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #17201e;
  border-radius: 0 0 14px 14px;
}

.mobile-app {
  width: 100%;
  max-width: 100vw;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.screen {
  width: 100%;
  max-width: 100vw;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 78px;
  scrollbar-width: none;
}

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

.app-header {
  height: 62px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 20px 12px;
  position: relative;
  z-index: 3;
  background: var(--surface);
}

.brand {
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 19px;
  font-weight: 700;
}

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

.icon-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(20, 39, 34, .12);
  border-radius: 50%;
  font-size: 17px;
}

.hero {
  min-height: 350px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.hero-image {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 23, 20, .06), rgba(7, 23, 20, .72));
}

.hero-content {
  position: absolute;
  right: 24px;
  bottom: 30px;
  left: 24px;
}

.hero-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, .92);
  color: var(--accent);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.hero h1 {
  max-width: 330px;
  margin: 0;
  font-size: 32px;
  line-height: 1.28;
  letter-spacing: 0;
}

.hero p {
  max-width: 330px;
  margin: 12px 0 20px;
  color: rgba(255, 255, 255, .86);
  font-size: 14px;
  line-height: 1.7;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  color: #fff;
  background: var(--accent);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}

.primary-action::after {
  content: "›";
  font-size: 20px;
}

.content-section {
  width: 100%;
  max-width: 100vw;
  padding: 26px 18px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.section-head button {
  padding: 4px;
  color: #7b8582;
  background: transparent;
  font-size: 12px;
}

.service-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.service-item {
  min-width: 0;
  padding: 13px 4px 11px;
  text-align: center;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.service-item img {
  width: 32px;
  height: 32px;
  display: block;
  margin: 0 auto 9px;
  object-fit: contain;
}

.service-item span {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.product-feature {
  width: 100%;
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 190px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.product-feature img {
  min-width: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
}

.product-tag {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.product-copy h3 {
  margin: 8px 0;
  font-size: 18px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.product-copy p {
  margin: 0 0 14px;
  color: #77817e;
  font-size: 12px;
  line-height: 1.6;
}

.price {
  color: var(--accent-strong);
  font-size: 19px;
  font-weight: 700;
}

.article-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.article-row img {
  width: 108px;
  height: 76px;
  object-fit: cover;
  border-radius: 4px;
}

.article-row h3 {
  margin: 4px 0 8px;
  font-size: 15px;
  line-height: 1.5;
}

.article-meta {
  color: #89928f;
  font-size: 11px;
}

.bottom-nav {
  height: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #8b9391;
  background: transparent;
  font-size: 11px;
}

.nav-item img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  opacity: .6;
}

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

.nav-item.active img {
  opacity: 1;
}

.toast {
  max-width: calc(100% - 48px);
  position: absolute;
  z-index: 30;
  bottom: 90px;
  left: 50%;
  padding: 11px 16px;
  transform: translate(-50%, 12px);
  color: #fff;
  background: rgba(14, 24, 21, .9);
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.theme-a {
  --page: #f5f8f7;
  --surface: #fff;
  --ink: #152724;
  --accent: #0f7567;
  --accent-strong: #cc5a33;
  --line: #dde6e2;
}

.theme-b {
  --page: #f7f5ef;
  --surface: #fffdf7;
  --ink: #28342a;
  --accent: #4e6b43;
  --accent-strong: #bb5638;
  --line: #e3e3d7;
  background: #e9ede4;
}

.theme-b .hero {
  margin: 12px;
  min-height: 365px;
  border-radius: 6px;
}

.theme-b .hero-image {
  object-position: 42% center;
}

.theme-b .app-header {
  background: var(--page);
}

.theme-b .hero-label,
.theme-b .primary-action {
  border-radius: 20px;
}

.theme-b .service-item {
  background: transparent;
  border-color: transparent;
}

.theme-b .service-item img {
  width: 38px;
  height: 38px;
  padding: 8px;
  background: #e3ebdc;
  border-radius: 50%;
}

.theme-c {
  --page: #f4f6f9;
  --surface: #fff;
  --ink: #1e2632;
  --accent: #265a88;
  --accent-strong: #e05b3f;
  --line: #e1e5eb;
  background: #e9edf2;
}

.theme-c .app-header {
  color: #fff;
  background: #1d2c3b;
}

.theme-c .icon-button {
  color: #fff;
  border-color: rgba(255, 255, 255, .24);
}

.theme-c .hero {
  min-height: 310px;
}

.theme-c .hero h1 {
  font-size: 28px;
}

.theme-c .service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-c .service-item {
  min-height: 72px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px;
  text-align: left;
}

.theme-c .service-item img {
  margin: 0;
}

.theme-c .service-item span {
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 820px) {
  .preview-shell {
    min-height: 100dvh;
    display: block;
    padding: 0;
  }

  .preview-copy {
    display: none;
  }

  .phone {
    width: 100%;
    max-width: 100vw;
    height: 100dvh;
    min-height: 620px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone::before {
    display: none;
  }
}
