/* ==========================================================================
   168mjbot.com — MJBotApp 内页（应用商店风）
   独立骨架：商店页 Hero + 评分面板 + 标签页 + 评价卡
   ========================================================================== */

.ap-page { background: #f7f8fd; }

/* ---------- Hero ---------- */
.ap-hero {
  background:
    radial-gradient(680px 380px at 86% 16%, rgba(67, 56, 202, .12), transparent 66%),
    linear-gradient(180deg, #eef1fc, #f7f8fd);
  border-bottom: 1px solid rgba(12, 16, 32, .07);
  padding: 26px 0 56px;
}

.ap-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 32px;
}

.ap-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 46px;
  align-items: center;
}

.ap-hero-grid > * { min-width: 0; }

.ap-store-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  color: #4338ca;
}

.ap-store-tag svg { flex: none; }

.ap-hero h1 {
  margin-top: 16px;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -.6px;
  color: #1a1a3d;
}

.ap-hero h1 span { color: #4338ca; }

.ap-hero .lead {
  margin-top: 18px;
  max-width: 540px;
  font-size: 15.5px;
  line-height: 1.95;
  color: #4d5578;
}

.ap-hero .lead strong { color: #312e81; }

.ap-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ap-hero .btn-room { color: #1a1a3d; border-color: rgba(67, 56, 202, .42); background: #fff; }
.ap-hero .btn-room b { color: #4338ca; }

.ap-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(67, 56, 202, .14);
}

.ap-quick div { font-size: 12.5px; color: #7a83a8; }
.ap-quick b { display: block; margin-top: 2px; font-size: 15px; color: #1a1a3d; }

.ap-visual {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(67, 56, 202, .14);
  box-shadow: 0 28px 64px rgba(49, 46, 129, .14);
}

/* ---------- 评分面板 ---------- */
.ap-rating {
  margin-top: -24px;
  position: relative;
  z-index: 2;
}

.ap-rating-card {
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  gap: 34px;
  align-items: center;
  padding: 24px 30px;
  background: #fff;
  border: 1px solid rgba(12, 16, 32, .08);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(49, 46, 129, .1);
}

.ap-score { text-align: center; border-right: 1px solid rgba(12, 16, 32, .08); }
.ap-score b { display: block; font-family: Georgia, serif; font-size: 54px; line-height: 1; color: #1a1a3d; }
.ap-score .stars { margin-top: 8px; display: flex; justify-content: center; gap: 3px; }
.ap-score span { display: block; margin-top: 8px; font-size: 12px; color: #7a83a8; }

.ap-bars { display: grid; gap: 7px; }
.ap-bar-row { display: grid; grid-template-columns: 30px 1fr 40px; align-items: center; gap: 12px; font-size: 12px; color: #7a83a8; }
.ap-bar { height: 6px; border-radius: 3px; background: #e8ebf7; overflow: hidden; }
.ap-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #818cf8, #4338ca); }
.ap-bar-row b { text-align: right; font-family: var(--mono); font-size: 11px; color: #4338ca; }

.ap-meta-mini { display: grid; gap: 9px; font-size: 12.5px; }
.ap-meta-mini div { display: flex; justify-content: space-between; gap: 10px; }
.ap-meta-mini span { color: #7a83a8; }
.ap-meta-mini b { color: #1a1a3d; }

/* ---------- 通用 ---------- */
.ap-sec { padding: 68px 0; }
.ap-sec.white { background: #fff; border-block: 1px solid rgba(12, 16, 32, .06); }
.ap-sec.tint { background: #eef1fc; }

.ap-head { max-width: 720px; margin-bottom: 30px; }
.ap-head .k { font-family: var(--mono); font-size: 11px; letter-spacing: 2.2px; color: #4338ca; text-transform: uppercase; }
.ap-head h2 { margin-top: 9px; font-size: clamp(23px, 2.9vw, 33px); font-weight: 900; line-height: 1.32; color: #1a1a3d; letter-spacing: -.3px; }
.ap-head p { margin-top: 9px; font-size: 14.5px; color: #6c7492; line-height: 1.85; }
.ap-head a { color: #4338ca; font-weight: 700; }

/* ---------- 简介 ---------- */
.ap-intro {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: start;
}

.ap-intro > * { min-width: 0; }

.ap-intro h2 { font-size: clamp(22px, 2.7vw, 30px); font-weight: 900; color: #1a1a3d; line-height: 1.4; }
.ap-intro p { margin-top: 14px; font-size: 14.5px; color: #4d5578; line-height: 1.95; }
.ap-intro p strong { color: #312e81; }
.ap-intro a { color: #4338ca; font-weight: 700; }

.ap-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.ap-badges span {
  padding: 5px 12px;
  border-radius: 999px;
  background: #eef1fc;
  border: 1px solid rgba(67, 56, 202, .14);
  font-size: 12px;
  font-weight: 600;
  color: #4338ca;
}

.ap-spec {
  padding: 26px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(12, 16, 32, .08);
}

.ap-spec h3 { font-size: 15px; font-weight: 900; color: #1a1a3d; padding-bottom: 12px; border-bottom: 1px solid rgba(12, 16, 32, .07); }
.ap-spec dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin-top: 14px; font-size: 13px; }
.ap-spec dt { color: #7a83a8; }
.ap-spec dd { margin: 0; text-align: right; font-weight: 700; color: #1a1a3d; }

/* ---------- 标签页 ---------- */
.ap-tabs {
  border: 1px solid rgba(12, 16, 32, .08);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.ap-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px;
  background: #eef1fc;
  border-bottom: 1px solid rgba(12, 16, 32, .07);
}

.ap-tabbar button {
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #4d5578;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s, color .2s, box-shadow .2s;
}

.ap-tabbar button:hover { background: rgba(67, 56, 202, .08); }

.ap-tabbar button.is-active {
  background: #4338ca;
  color: #fff;
  box-shadow: 0 8px 18px rgba(67, 56, 202, .26);
}

.ap-panel { display: none; padding: 26px 28px; }
.ap-panel.is-active { display: block; }

.ap-panel h3 { font-size: 18px; font-weight: 900; color: #1a1a3d; }
.ap-panel > p { margin-top: 8px; font-size: 13.5px; color: #6c7492; line-height: 1.85; }

.ap-list2 { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.ap-list2 li {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 9px;
  background: #f7f8fd;
  font-size: 13px;
  color: #4d5578;
  line-height: 1.7;
}

.ap-list2 li::before { content: "·"; color: #4338ca; font-weight: 900; }

/* ---------- 界面卡 ---------- */
.ap-screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.ap-screen {
  padding: 22px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(12, 16, 32, .08);
}

.ap-screen .no { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.4px; color: #818cf8; }
.ap-screen h3 { margin-top: 8px; font-size: 16px; font-weight: 800; color: #1a1a3d; }
.ap-screen p { margin-top: 6px; font-size: 13px; color: #6c7492; line-height: 1.8; }

/* ---------- 版本 ---------- */
.ap-vers { display: grid; gap: 10px; }

.ap-ver {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 18px 22px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(12, 16, 32, .08);
}

.ap-ver.cur { border-color: rgba(67, 56, 202, .34); background: #f8f9ff; }

.ap-ver .v {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a3d;
}

.ap-ver .v small { display: block; font-family: var(--font); font-size: 11px; font-weight: 400; color: #7a83a8; }
.ap-ver p { font-size: 13px; color: #4d5578; line-height: 1.75; }
.ap-ver .tag { font-size: 11.5px; font-weight: 700; color: #16a34a; white-space: nowrap; }
.ap-ver .tag.old { color: #b45309; }

/* ---------- 安装步骤 ---------- */
.ap-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }

.ap-step { position: relative; padding-right: 20px; }

.ap-step::before {
  counter-increment: s;
  content: counter(s);
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: #4338ca;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(67, 56, 202, .28);
}

.ap-step::after {
  content: "";
  position: absolute;
  top: 20px; left: 50px; right: 6px;
  height: 1px;
  background: rgba(67, 56, 202, .22);
}

.ap-step:last-child::after { display: none; }

.ap-step h3 { margin-top: 16px; font-size: 15px; font-weight: 800; color: #1a1a3d; }
.ap-step p { margin-top: 5px; font-size: 13px; color: #6c7492; line-height: 1.8; }

/* ---------- 要求表 ---------- */
.ap-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(12, 16, 32, .08);
  border-radius: 12px;
  background: #fff;
}

.ap-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }

.ap-table th {
  text-align: left;
  padding: 12px 16px;
  background: #eef1fc;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.1px;
  color: #4338ca;
  border-bottom: 1px solid rgba(12, 16, 32, .08);
}

.ap-table td { padding: 13px 16px; border-bottom: 1px solid rgba(12, 16, 32, .06); color: #4d5578; }
.ap-table tr:last-child td { border-bottom: 0; }
.ap-table td:first-child { font-weight: 700; color: #1a1a3d; }
.ap-table .ok { color: #16a34a; font-weight: 700; }

/* ---------- 性能 ---------- */
.ap-perf { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.ap-perf-bars { display: grid; gap: 12px; }
.ap-perf-bars .row { display: grid; grid-template-columns: 96px 1fr 54px; align-items: center; gap: 12px; font-size: 12.5px; color: #4d5578; }
.ap-perf-bars .bar { height: 7px; border-radius: 4px; background: #e8ebf7; overflow: hidden; }
.ap-perf-bars .bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #a5b4fc, #4338ca); }
.ap-perf-bars b { text-align: right; font-family: var(--mono); font-size: 11px; color: #4338ca; }

.ap-perf-notes { display: grid; gap: 10px; }

.ap-perf-notes div {
  padding: 16px 18px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(12, 16, 32, .08);
}

.ap-perf-notes b { display: block; font-size: 13.5px; color: #1a1a3d; }
.ap-perf-notes span { display: block; margin-top: 3px; font-size: 12.5px; color: #6c7492; }

/* ---------- 评价 ---------- */
.ap-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.ap-review {
  padding: 22px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(12, 16, 32, .08);
}

.ap-review .who { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ap-review .who b { font-size: 13.5px; color: #1a1a3d; }
.ap-review .who span { font-size: 11.5px; color: #9aa2bd; }
.ap-review .stars { display: flex; gap: 2px; margin-top: 10px; }
.ap-review p { margin-top: 10px; font-size: 13px; color: #4d5578; line-height: 1.85; }

/* ---------- 对比 ---------- */
.ap-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(12, 16, 32, .08);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.ap-compare > div { padding: 24px 26px; }
.ap-compare > div + div { border-left: 1px solid rgba(12, 16, 32, .08); }

.ap-compare h3 { font-size: 16px; font-weight: 900; color: #1a1a3d; padding-bottom: 12px; border-bottom: 1px solid rgba(12, 16, 32, .07); }
.ap-compare ul { margin-top: 12px; display: grid; gap: 9px; font-size: 13px; color: #4d5578; }
.ap-compare li { display: flex; gap: 9px; line-height: 1.75; }
.ap-compare li::before { content: "·"; color: #4338ca; font-weight: 900; }

/* ---------- 安全 ---------- */
.ap-safe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ap-safe li {
  display: flex;
  gap: 12px;
  padding: 15px 17px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(12, 16, 32, .08);
  font-size: 13.5px;
  color: #4d5578;
  line-height: 1.75;
}

.ap-safe li::before { content: "✓"; color: #16a34a; font-weight: 900; flex: none; }

/* ---------- FAQ ---------- */
.ap-faq { display: grid; gap: 8px; max-width: 860px; }

.ap-acc {
  border: 1px solid rgba(12, 16, 32, .08);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.ap-acc .acc-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a3d;
}

.ap-acc .acc-trigger::after {
  content: "+";
  flex: none;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: #eef1fc;
  color: #4338ca;
  font-size: 15px;
  transition: transform .25s;
}

.ap-acc.is-open .acc-trigger::after { transform: rotate(45deg); }

.ap-acc .acc-body { display: none; padding: 0 18px 15px; font-size: 13px; color: #6c7492; line-height: 1.85; }
.ap-acc.is-open .acc-body { display: block; }
.ap-acc .acc-body a { color: #4338ca; font-weight: 700; }

/* ---------- 相关 ---------- */
.ap-rel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.ap-rel a {
  padding: 16px 18px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(12, 16, 32, .08);
  transition: border-color .2s, transform .2s;
}

.ap-rel a:hover { border-color: rgba(67, 56, 202, .4); transform: translateY(-2px); }
.ap-rel b { display: block; font-size: 13.5px; color: #1a1a3d; }
.ap-rel span { display: block; margin-top: 3px; font-size: 12px; color: #9aa2bd; }

/* ---------- CTA ---------- */
.ap-cta {
  padding: 44px 40px;
  border-radius: 20px;
  background:
    radial-gradient(460px 240px at 88% 8%, rgba(129, 140, 248, .3), transparent 70%),
    #1e1b4b;
  color: #e8e9ff;
  text-align: center;
}

.ap-cta h2 { font-size: clamp(23px, 2.9vw, 32px); font-weight: 900; color: #fff; }
.ap-cta p { margin: 11px auto 0; max-width: 560px; font-size: 14px; color: #b9bdf0; }
.ap-cta .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.ap-cta .tg-link { border-color: rgba(199, 210, 254, .4); color: #e8e9ff; }
.ap-cta .tg-link:hover { background: rgba(199, 210, 254, .12); }
.ap-cta .btn-room { color: #e8e9ff; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .ap-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .ap-rating-card { grid-template-columns: 1fr 1fr; gap: 22px; }
  .ap-score { border-right: 0; border-bottom: 1px solid rgba(12, 16, 32, .08); padding-bottom: 16px; }
  .ap-meta-mini { grid-column: 1 / -1; }
  .ap-intro { grid-template-columns: 1fr; gap: 24px; }
  .ap-screens { grid-template-columns: 1fr; }
  .ap-steps { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .ap-step:nth-child(2)::after { display: none; }
  .ap-perf { grid-template-columns: 1fr; }
  .ap-reviews { grid-template-columns: 1fr; }
  .ap-compare { grid-template-columns: 1fr; }
  .ap-compare > div + div { border-left: 0; border-top: 1px solid rgba(12, 16, 32, .08); }
  .ap-safe { grid-template-columns: 1fr; }
  .ap-rel { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .ap-sec { padding: 52px 0; }
  .ap-rating-card { grid-template-columns: 1fr; padding: 22px; }
  .ap-list2 { grid-template-columns: 1fr; }
  .ap-steps { grid-template-columns: 1fr; }
  .ap-step::after { display: none; }
  .ap-rel { grid-template-columns: 1fr; }
  .ap-ver { grid-template-columns: 1fr; gap: 8px; }
  .ap-ver .tag { justify-self: start; }
  .ap-actions .btn { width: 100%; }
  .ap-visual { order: 0; }
  .ap-cta { padding: 32px 24px; }
}
