/* ---------- hero ---------- */
.hero {
  padding: 64px 0 34px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: -10%;
  top: -30%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle at 40% 40%, rgba(104, 64, 200, .12), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: center;
  position: relative;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--brand);
  position: relative;
}

.hero-copy h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 10px;
  background: rgba(104, 64, 200, .18);
  border-radius: 4px;
  z-index: -1;
}

.hero-note {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
}

.hero-note span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.check {
  color: var(--brand);
  font-weight: 900;
  font-style: normal;
}

/* hero 扫码下载卡片 */
.hero-qr {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
  padding: 16px 24px 16px 16px;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(23, 19, 38, .08);
  scroll-margin-top: 96px;
}

.hero-qr-code {
  width: 192px;
  height: 192px;
  flex: none;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.hero-qr-code svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-qr-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.hero-qr-info b {
  font-size: 17px;
  color: var(--ink);
}

.hero-qr-info span {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.55;
}

.hero-qr-info .hero-qr-tag {
  width: fit-content;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(104, 64, 200, .1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

/* device mock */
.stage {
  position: relative;
  height: 440px;
}

.phone {
  position: absolute;
  right: 26px;
  top: 6px;
  /* 宽度按真实手机截图 9:20 的比例收窄，屏幕区与截图比例一致，铺满后不裁切 */
  width: 200px;
  height: 420px;
  background: #1A1233;
  border-radius: 32px;
  padding: 9px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
}

.screen {
  width: 100%;
  height: 100%;
  background: #F7F9FC;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

/* 真实 App 截图铺满屏幕：不拉伸、不留白，轻微溢出时优先保住顶部状态栏 */
.screen-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.printer {
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 236px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadow);
}

/* 真实标签打印预览图：铺满小票卡内部，按 640:392 自适应高度 */
.printer-shot {
  display: block;
  width: 100%;
  height: auto;
}

.float {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
}

.f1 {
  top: 34px;
  left: 8px;
  animation: float 5s ease-in-out infinite;
}

.f2 {
  top: 118px;
  left: 8px;
  bottom: auto;
  right: auto;
  animation: float 6s ease-in-out infinite .8s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- cards ---------- */
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  transition: .25s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #D8E0EC;
}

.ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-l);
  color: var(--brand-d);
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 16.5px;
  margin: 0 0 7px;
}

.card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--sub);
}

/* ---------- 版本标记与表格说明 ---------- */
.yes {
  color: var(--brand);
  font-weight: 900;
}

.no {
  color: #C9C2DC;
  font-weight: 700;
}

.table-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
}

/* ---------- 完整功能清单 ---------- */
.feature-table .ft-group td {
  background: #FAF6FF;
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--brand-d);
  letter-spacing: .4px;
}

.feature-table .ft-count {
  margin-left: 8px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.feature-table .ft-name {
  width: 210px;
  font-weight: 700;
  color: var(--ink);
}

.feature-table .ft-value {
  color: var(--sub);
}

/* 高级版专享：置于表格末尾，紫 / 橙两色高亮区分层级 */
.feature-table tr.ft-adv td {
  background: #F5EEFF;
}

.feature-table tr.ft-adv td:first-child {
  box-shadow: inset 3px 0 0 var(--brand);
}

.feature-table tr.ft-adv-amber td {
  background: var(--accent-l);
}

.feature-table tr.ft-adv-amber td:first-child {
  box-shadow: inset 3px 0 0 var(--accent);
}

.feature-table .ft-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2px;
  vertical-align: 1px;
}

.feature-table .ft-badge-violet {
  background: #E8DAFF;
  color: var(--brand-d);
}

.feature-table .ft-badge-amber {
  background: #FFE9C7;
  color: var(--accent-d);
}

.feature-table th.c,
.feature-table td.c {
  width: 88px;
}

/* ---------- use cases ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.case-card {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42%;
  min-height: 246px;
  border-radius: 16px;
  border: 1px solid var(--case-line);
  background: var(--case-bg);
  overflow: hidden;
  transition: transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s;
}

.case-card:nth-child(1),
.case-card:nth-child(2) {
  grid-column: span 3;
}

/* 下方三张窄卡：图片略窄、标签字号降 0.5px，保证时间与店名不被截断 */
.case-card:nth-child(n+3) {
  grid-template-columns: minmax(0, 1fr) 38%;
}

.case-card:nth-child(n+3) .case-label {
  font-size: 10px;
}

.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(23, 18, 38, .08);
}

.case-violet {
  --case-bg: #F7F2FF;
  --case-line: #EADDFB;
}

.case-rose {
  --case-bg: #FFF5F8;
  --case-line: #F8DFE8;
}

.case-amber {
  --case-bg: #FFFBF1;
  --case-line: #F4E6C9;
}

.case-sky {
  --case-bg: #F4F9FF;
  --case-line: #DDE8FA;
}

.case-mint {
  --case-bg: #F2FBF6;
  --case-line: #D8EEE1;
}

.case-body {
  padding: 16px 14px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

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

.case-ico {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .8);
  display: grid;
  place-items: center;
  font-size: 14px;
  flex: none;
}

.case-head h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -.2px;
}

.case-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--sub);
}

.case-label {
  margin-top: auto;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(23, 18, 38, .06);
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 2px 6px rgba(23, 18, 38, .04);
  font-size: 10.5px;
  color: #6B7280;
}

.cl-shop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 5px;
  margin-bottom: 4px;
  border-bottom: 1px dashed #ECE7F5;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
}

.cl-shop > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cl-chip {
  flex: none;
  font-size: 9px;
  font-weight: 700;
  color: #8B84A3;
  background: #F4F1FA;
  border-radius: 999px;
  padding: 1px 6px;
}

.cl-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  line-height: 1.7;
}

.cl-row span {
  white-space: nowrap;
}

.cl-row > span:last-child {
  color: #1F2430;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cl-foot {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed #ECE7F5;
  font-size: 9.5px;
  color: #9AA1AE;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-photo {
  min-width: 0;
}

.case-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cases-note {
  margin: 16px 0 0;
  font-size: 12px;
  color: #9AA1AE;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: s;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  position: relative;
}

.step .n {
  counter-increment: s;
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 40px;
  font-weight: 900;
  color: #F0EBFB;
  line-height: 1;
}

.step h4 {
  margin: 0 0 6px;
  font-size: 15.5px;
}

.step p {
  margin: 0;
  font-size: 13px;
  color: var(--sub);
}

/* ---------- download ---------- */
.dl {
  background: #1A1233;
  color: #fff;
  border-radius: 24px;
  padding: 44px;
  position: relative;
  overflow: hidden;
}

.dl::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 64, 200, .55), transparent 65%);
}

.dl-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* 未配置安卓地址时不显示二维码，下载内容占满整行 */
.dl-grid-solo {
  grid-template-columns: 1fr;
}

.dl h2 {
  color: #fff;
  font-size: 32px;
  margin: 6px 0 12px;
}

.dl p {
  color: #B9B1CC;
  font-size: 14px;
  margin: 0 0 22px;
}

.dl .kicker {
  color: #C9B8F5;
}

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

.pf {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(201, 184, 245, .45);
  border-radius: 12px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: .2s;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.pf:hover {
  background: rgba(255, 255, 255, .2);
  border-color: #C9B8F5;
  box-shadow: 0 8px 22px rgba(104, 64, 200, .35);
  transform: translateY(-1px);
}

.pf:focus-visible {
  outline: 2px solid #C9B8F5;
  outline-offset: 2px;
}

.pf .pi {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  color: #4A2A96;
  display: grid;
  place-items: center;
  font-size: 15px;
  flex: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.pf-text {
  display: block;
  min-width: 0;
}

.pf-text b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.pf-text span {
  font-size: 11.5px;
  color: #CFC7E0;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qrbox {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  color: #111;
}

.qr {
  width: 168px;
  height: 168px;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.qr svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr:empty {
  background:
    repeating-linear-gradient(90deg, #1A1233 0 8px, #fff 8px 16px),
    repeating-linear-gradient(0deg, #1A1233 0 8px, #fff 8px 16px);
  background-blend-mode: multiply;
  opacity: .9;
  position: relative;
}

.qr:empty::after {
  content: "扫码下载";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .92);
  font-size: 12px;
  color: #334;
  font-weight: 700;
}

.qrbox b {
  font-size: 13px;
}

.qrbox small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 3px;
}

.qrbox .qr-version {
  margin-top: 8px;
  color: #A79FB8;
}

/* ---------- official（抖店服务市场风格） ---------- */
.official {
  background: #fff;
  border-top: 1px solid #F2F3F5;
  border-bottom: 1px solid #F2F3F5;
}

.official .sec-head {
  max-width: 760px;
}

.official .kicker {
  color: #1677FF;
  letter-spacing: 1.2px;
}

.official .sec-head h2 {
  color: #1F2329;
  letter-spacing: -.2px;
}

.official .sec-head p {
  color: #6B7280;
  font-size: 14px;
}

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

.cert {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  margin-bottom: 26px;
  align-items: stretch;
}

.official .cert-card {
  background: #fff;
  border: 1px solid #E5E6EB;
  border-radius: 8px;
  padding: 24px 24px 20px;
  box-shadow: none;
}

.official .cert-card h3 {
  margin: 12px 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #1F2329;
  letter-spacing: 0;
}

.official .cert-card .sub {
  color: #6B7280;
  font-size: 12.5px;
  margin: 0 0 16px;
}

.official .badge-verify {
  gap: 4px;
  background: #F2F7FF;
  color: #0E5FE0;
  border: 1px solid #C7DDFF;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  padding: 3px 8px;
}

.official .cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  border-top: 1px solid #F2F3F5;
}

.official .cert-grid > div {
  padding: 18px 0;
  border-bottom: 1px solid #F2F3F5;
}

.official .cert-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
  padding-bottom: 2px;
}

.official .cert-grid .k {
  display: block;
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 3px;
}

.official .cert-grid .v {
  font-size: 14px;
  font-weight: 600;
  color: #1F2329;
  overflow-wrap: anywhere;
}

.official .cert-grid .v i {
  font-style: normal;
  color: #1677FF;
  font-weight: 600;
}

.official .verify-card {
  background: #F7FAFF;
  border: 1px solid #D6E6FF;
  color: #1F2329;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.official .market-shot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  max-width: 570px;
  min-width: 0;
  min-height: 0;
  margin: 0 auto 14px;
  border: 1px solid #E5E6EB;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 35, 41, .06);
  transition: border-color .2s, box-shadow .2s;
}

.official .market-shot:hover {
  border-color: #C9D8F5;
  box-shadow: 0 6px 16px rgba(31, 35, 41, .10);
}

.official .market-shot img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.official .verify-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.official .verify-card .btn-primary {
  background: #1677FF;
  color: #fff;
  border-radius: 6px;
  box-shadow: none;
  font-weight: 600;
}

.official .verify-card .btn-primary:hover {
  background: #0E5FE0;
  transform: none;
  box-shadow: 0 4px 12px rgba(22, 119, 255, .24);
}

.official .adv .card {
  background: #fff;
  border: 1px solid #E5E6EB;
  border-radius: 8px;
  padding: 20px;
  box-shadow: none;
}

.official .adv .card:hover {
  border-color: #C9D8F5;
  box-shadow: 0 6px 16px rgba(31, 35, 41, .06);
  transform: translateY(-2px);
}

.official .adv .ico {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #F2F7FF;
  color: #1677FF;
  font-size: 18px;
  margin-bottom: 12px;
}

.official .adv .card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: 600;
  color: #1F2329;
}

.official .adv .card h3 em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  color: #D92D20;
  background: #FFF1F0;
  border: 1px solid #FFD8D8;
  border-radius: 4px;
  padding: 1px 6px;
}

.official .adv .card p {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.65;
}

