/* ==========================================================================
   名爵app下载 内页骨架：应用商店风 · 商店信息条 Hero + 设备下载行 + 安装四步 + 更新日志
   ========================================================================== */

:root {
  --as-violet: #7c3aed;
  --as-violet-dk: #4c1d95;
  --as-lilac: #a78bfa;
  --as-bg: #f7f6ff;
  --as-ink: #17133a;
  --as-muted: #6b6a86;
  --as-line: #e6e3f7;
}

body.as-page {
  background: var(--as-bg);
  color: var(--as-ink);
}

.as-page .brand-mark { background: linear-gradient(140deg, #a78bfa, #7c3aed); color: #fff; box-shadow: 0 6px 16px rgba(124, 58, 237, .3); }
.as-page .brand-text em { color: var(--as-violet); }
.as-page .site-nav a.is-active { color: var(--as-violet); }
.as-page .site-nav a::after { background: var(--as-violet); }
.as-page .btn-login { background: linear-gradient(135deg, #8b5cf6, #6d28d9); box-shadow: 0 8px 20px rgba(124, 58, 237, .28); }
.as-page .btn-login:hover { box-shadow: 0 12px 26px rgba(124, 58, 237, .38); }
.as-page .footer-contact a:hover { border-color: #c4b5fd; background: rgba(196, 181, 253, .08); }

/* ---------------- Hero ---------------- */
.as-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 90px;
  background:
    radial-gradient(720px 440px at 84% 8%, rgba(167, 139, 250, .32), transparent 66%),
    radial-gradient(520px 380px at 0% 96%, rgba(124, 58, 237, .12), transparent 70%),
    linear-gradient(180deg, #fdfcff, var(--as-bg));
}

.as-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 52px;
  align-items: center;
}

.as-store-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--as-line);
  box-shadow: var(--shadow-s);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--as-violet);
}

.as-store-tag .pill {
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(124, 58, 237, .1);
  font-size: 11px;
}

.as-hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.6px;
}

.as-hero h1 span {
  background: linear-gradient(100deg, #a78bfa, #7c3aed 55%, #4c1d95);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.as-hero .lead {
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--as-muted);
  max-width: 560px;
}

.as-hero .lead strong { color: var(--as-ink); }

.store-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  margin: 28px 0;
  border-top: 1px solid var(--as-line);
}

.store-meta > div {
  padding: 14px 22px 14px 0;
  margin-right: 22px;
  border-right: 1px solid var(--as-line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.store-meta > div:last-child { border-right: 0; margin-right: 0; }

.store-meta .k { font-size: 11.5px; color: var(--as-muted); letter-spacing: .5px; }

.store-meta .v { font-size: 16px; font-weight: 800; }

.store-meta .v.stars { color: #f59e0b; }

.as-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.as-page .btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  box-shadow: 0 10px 26px rgba(124, 58, 237, .32);
}

.as-page .btn-primary:hover { box-shadow: 0 14px 32px rgba(124, 58, 237, .42); }

.as-visual { position: relative; }

.as-visual img {
  border-radius: var(--radius-l);
  background: #fff;
  box-shadow: var(--shadow-m);
}

.as-visual .rate-card {
  position: absolute;
  left: -22px;
  bottom: 34px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--as-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
}

.as-visual .rate-card .score { font-size: 26px; font-weight: 900; color: var(--as-violet); line-height: 1; }
.as-visual .rate-card .stars { color: #f59e0b; font-size: 13px; letter-spacing: 2px; }
.as-visual .rate-card .cnt { font-size: 12px; color: var(--as-muted); }

/* ---------------- 信息条 ---------------- */
.as-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: -56px 0 0;
  position: relative;
  z-index: 3;
}

.info-tile {
  padding: 20px 22px;
  border-radius: var(--radius-m);
  background: #fff;
  border: 1px solid var(--as-line);
  box-shadow: var(--shadow-s);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-tile .k { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; color: var(--as-muted); }

.info-tile .v { font-size: 22px; font-weight: 900; color: var(--as-ink); }

.info-tile .v small { display: block; font-size: 12px; font-weight: 500; color: var(--as-muted); margin-top: 3px; }

/* ---------------- 通用 section ---------------- */
.as-section { padding: 84px 0 0; }

.as-section:first-of-type { padding-top: 72px; }

.as-head {
  max-width: 560px;
  margin-bottom: 40px;
}

.as-head .k {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 2.4px;
  color: var(--as-violet);
  margin-bottom: 12px;
}

.as-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 900; letter-spacing: -.4px; }

.as-head p { margin-top: 12px; color: var(--as-muted); font-size: 15.5px; }

/* ---------------- 设备下载行 ---------------- */
.device-list { display: grid; gap: 16px; }

.device-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--as-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}

.device-row:hover {
  transform: translateY(-3px);
  border-color: var(--as-violet);
  box-shadow: 0 14px 34px rgba(124, 58, 237, .16);
}

.os-ico {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(124, 58, 237, .1);
  font-size: 28px;
}

.device-row h3 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }

.device-row p { font-size: 14px; color: var(--as-muted); }

.dl-btn {
  padding: 11px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------------- 安装四步 ---------------- */
.step-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--as-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  counter-increment: step;
}

.step-card::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 30px;
  font-weight: 900;
  color: rgba(124, 58, 237, .14);
  font-family: Georgia, serif;
}

.step-card h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 8px; }

.step-card p { font-size: 14px; color: var(--as-muted); line-height: 1.7; }

/* ---------------- 更新日志 ---------------- */
.changelog { display: grid; gap: 16px; }

.log-item {
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--as-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
}

.log-item.current {
  background: linear-gradient(140deg, #faf7ff, #f1ecff);
  border-color: rgba(124, 58, 237, .35);
}

.log-item .ver {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(124, 58, 237, .12);
  color: var(--as-violet);
  font-size: 13px;
  font-weight: 800;
  font-family: var(--mono);
}

.log-item .date {
  margin-left: 10px;
  font-size: 13px;
  color: var(--as-muted);
}

.log-item h3 { font-size: 17px; font-weight: 800; margin: 14px 0 8px; }

.log-item li {
  position: relative;
  padding: 5px 0 5px 20px;
  font-size: 14px;
  color: var(--as-muted);
}

.log-item li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--as-lilac);
}

/* ---------------- 提示 + FAQ ---------------- */
.as-two {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 34px;
  align-items: start;
}

.warn-box {
  padding: 28px;
  border-radius: var(--radius-m);
  background: #fff8ed;
  border: 1px solid #fde4b8;
}

.warn-box h3 {
  font-size: 17px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 8px;
}

.warn-box p { font-size: 14px; color: #a16207; margin-bottom: 14px; }

.warn-box li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 14.5px;
  color: #7c4a12;
}

.warn-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #d97706;
  font-weight: 800;
}

/* ---------------- 折叠问答 ---------------- */
.faq-acc { display: grid; gap: 12px; }

.acc-item {
  background: #fff;
  border: 1px solid var(--as-line);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--as-ink);
  text-align: left;
}

.acc-trigger .sign {
  flex: none;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(124, 58, 237, .12);
  position: relative;
}

.acc-trigger .sign::before,
.acc-trigger .sign::after {
  content: "";
  position: absolute;
  background: var(--as-violet);
  border-radius: 2px;
  transition: transform .25s;
}

.acc-trigger .sign::before { width: 12px; height: 2px; }
.acc-trigger .sign::after { width: 2px; height: 12px; }

.acc-item.is-open .sign::after { transform: rotate(90deg); opacity: 0; }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}

.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }

.acc-panel > div { overflow: hidden; }

.acc-panel p {
  padding: 0 24px 20px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--as-muted);
}

.acc-panel a { color: var(--as-violet); font-weight: 600; }

/* ---------------- 相关 ---------------- */
.as-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.as-related a {
  display: block;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--as-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  transition: transform .22s, box-shadow .22s;
}

.as-related a:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(124, 58, 237, .14);
}

.as-related strong { display: block; font-size: 15.5px; margin-bottom: 4px; }

.as-related span { font-size: 13.5px; color: var(--as-muted); }

/* ---------------- 动画 ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}

[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .as-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .as-visual { max-width: 440px; }
  .as-info { grid-template-columns: 1fr 1fr; margin-top: -32px; }
  .step-flow { grid-template-columns: 1fr 1fr; }
  .as-two { grid-template-columns: 1fr; }
  .as-related { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .as-hero { padding: 48px 0 56px; }
  .as-hero h1 { font-size: 32px; }
  .device-row { grid-template-columns: 44px 1fr; }
  .dl-btn { grid-column: 1 / -1; text-align: center; }
  .os-ico { width: 44px; height: 44px; font-size: 22px; }
  .step-flow { grid-template-columns: 1fr; }
  .as-info { grid-template-columns: 1fr; }
  .as-visual .rate-card { left: 8px; }
}
