/* 电商图生成专家 · 官方下载页 */
/* 深色高级玻璃拟态,围绕品牌紫 #7c6bf2 构建。 */

:root {
  --bg: #08070e;
  --ink: #f2f0fa;
  --muted: #a7a3b8;
  --faint: #6f6b80;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.045);
  --violet: #8b7cff;
  --violet-deep: #5343d6;
  --accent: linear-gradient(135deg, #9d8fff 0%, #6a58f0 48%, #4f3ed6 100%);
  --accent-soft: rgba(124, 107, 242, 0.16);
  --radius-lg: 22px;
  --radius-md: 14px;
  --font: system-ui, -apple-system, "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- 背景:极光 + 网格 ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(79, 70, 229, 0.20), transparent 60%),
    radial-gradient(900px 600px at 8% 108%, rgba(34, 211, 238, 0.07), transparent 55%),
    var(--bg);
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: drift 26s ease-in-out infinite alternate;
}

.aurora-a {
  width: 46vw; height: 46vw;
  min-width: 420px; min-height: 420px;
  left: -12vw; top: -16vh;
  background: radial-gradient(circle at 40% 40%, rgba(139, 124, 255, 0.38), transparent 65%);
}

.aurora-b {
  width: 38vw; height: 38vw;
  min-width: 360px; min-height: 360px;
  right: -10vw; top: 22vh;
  background: radial-gradient(circle at 55% 45%, rgba(217, 70, 239, 0.14), transparent 62%);
  animation-delay: -8s;
}

.aurora-c {
  width: 42vw; height: 42vw;
  min-width: 380px; min-height: 380px;
  left: 24vw; bottom: -26vh;
  background: radial-gradient(circle at 50% 50%, rgba(83, 67, 214, 0.26), transparent 60%);
  animation-delay: -16s;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(3vw, 4vh, 0) scale(1.12); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 25%, transparent 78%);
}

/* ---------- 页面骨架 ---------- */

.page {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 84px) 24px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

[data-rise] { animation: rise 0.9s cubic-bezier(0.22, 0.9, 0.3, 1) both; }
[data-rise="1"] { animation-delay: 0.02s; }
[data-rise="2"] { animation-delay: 0.10s; }
[data-rise="3"] { animation-delay: 0.18s; }
[data-rise="4"] { animation-delay: 0.24s; }
[data-rise="5"] { animation-delay: 0.30s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero ---------- */

.hero { text-align: center; max-width: 720px; }

.logo-frame {
  position: relative;
  width: 96px; height: 96px;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
}

.logo-frame::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 34px;
  background: radial-gradient(circle, rgba(139, 124, 255, 0.38), transparent 70%);
  filter: blur(14px);
  z-index: -1;
}

.logo-frame::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 30px;
  border: 1px solid rgba(157, 143, 255, 0.32);
  mask-image: linear-gradient(160deg, #000 8%, transparent 58%);
  -webkit-mask-image: linear-gradient(160deg, #000 8%, transparent 58%);
}

.logo {
  width: 96px; height: 96px;
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(83, 67, 214, 0.42), 0 2px 10px rgba(0, 0, 0, 0.5);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--violet);
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5.4vw, 52px);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.14;
  background: linear-gradient(180deg, #ffffff 18%, #cfc9f2 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  margin: 18px auto 0;
  max-width: 560px;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.75;
  color: var(--muted);
}

.hero-meta {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pill-version { color: var(--violet); border-color: rgba(139, 124, 255, 0.38); background: var(--accent-soft); font-family: var(--mono); }
.pill-date { color: var(--muted); }

.feature-chips {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-chips li {
  font-size: 12.5px;
  color: var(--faint);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

/* ---------- 下载卡片 ---------- */

.cards {
  margin-top: clamp(36px, 6vh, 56px);
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 28px 26px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(4, 2, 16, 0.55);
  transition: transform 0.28s cubic-bezier(0.22, 0.9, 0.3, 1), border-color 0.28s, box-shadow 0.28s;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  opacity: 0.5;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 124, 255, 0.34);
  box-shadow: 0 30px 70px rgba(4, 2, 16, 0.62), 0 0 0 1px rgba(139, 124, 255, 0.12), 0 12px 44px rgba(106, 88, 240, 0.16);
}

.card.recommended {
  border-color: rgba(139, 124, 255, 0.5);
  background:
    linear-gradient(180deg, rgba(139, 124, 255, 0.10), rgba(255, 255, 255, 0.03) 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.028));
}

.badge-recommended {
  position: absolute;
  top: 18px; right: 18px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 6px 18px rgba(106, 88, 240, 0.45);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.os-icon {
  flex: none;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.os-icon svg { width: 27px; height: 27px; fill: #e9e6fa; }

.card-title { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: 0.01em; }
.card-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.meta {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.055);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 14px;
}

.meta div { min-width: 0; }
.meta dt { margin: 0 0 3px; font-size: 11px; color: var(--faint); letter-spacing: 0.08em; }
.meta dd { margin: 0; font-size: 13.5px; font-weight: 600; color: #ddd9ee; font-family: var(--mono); white-space: nowrap; }

.btn-download {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  border-radius: 15px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(106, 88, 240, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.18s, box-shadow 0.25s, filter 0.2s;
}

.btn-download::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s cubic-bezier(0.3, 0.8, 0.3, 1);
}

.btn-download:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 18px 42px rgba(106, 88, 240, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-download:hover::after { left: 125%; }
.btn-download:active { transform: translateY(0); filter: brightness(0.98); }
.btn-download:focus-visible { outline: 2px solid #b3a7ff; outline-offset: 3px; }

.btn-download svg { width: 18px; height: 18px; fill: currentColor; }

.alt-formats {
  margin: 14px 2px 0;
  font-size: 12.5px;
  color: var(--faint);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.alt-formats a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed rgba(167, 163, 184, 0.45);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.alt-formats a:hover { color: var(--violet); border-color: var(--violet); }

.sha {
  margin-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.sha summary {
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.04em;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 7px;
}

.sha summary::before {
  content: "›";
  display: inline-block;
  font-size: 14px;
  transition: transform 0.18s;
  color: var(--violet);
}

.sha[open] summary::before { transform: rotate(90deg); }
.sha summary:hover { color: var(--muted); }

.sha code {
  display: block;
  margin-top: 9px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  color: #9d97b5;
  word-break: break-all;
}

.card-note { margin: 14px 2px 0; font-size: 12.5px; line-height: 1.7; color: var(--faint); }

.card.unavailable {
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--faint);
  min-height: 220px;
}

/* 骨架屏 */

.skeleton { min-height: 240px; justify-content: center; gap: 18px; }

.sk-line, .sk-button {
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.11) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}

.sk-line { height: 16px; }
.sk-line.w40 { width: 40%; }
.sk-line.w70 { width: 70%; }
.sk-button { height: 50px; border-radius: 15px; }

@keyframes shimmer {
  from { background-position: 180% 0; }
  to { background-position: -40% 0; }
}

/* 错误态 */

.load-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 44px 24px;
}

.load-error h2 { margin: 0 0 8px; font-size: 17px; }
.load-error p { margin: 0 0 20px; color: var(--muted); font-size: 13.5px; }

.btn-retry {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 12px;
  border: 1px solid rgba(139, 124, 255, 0.45);
  background: var(--accent-soft);
  color: var(--violet);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-retry:hover { background: rgba(124, 107, 242, 0.28); color: #cfc6ff; }

/* ---------- 安装说明 ---------- */

.notes {
  margin-top: 22px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.note {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.028);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.note h2 {
  margin: 0 0 10px;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d8d4ea;
}

.note-icon {
  width: 30px; height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 15px;
  color: var(--violet);
  background: var(--accent-soft);
  border: 1px solid rgba(139, 124, 255, 0.28);
}

.note p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--muted); }

/* ---------- 页脚 ---------- */

.footer { margin-top: 44px; text-align: center; }

.status-line { margin: 0 0 12px; font-size: 12px; color: var(--faint); letter-spacing: 0.03em; }

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--faint);
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--violet); text-decoration: underline; text-underline-offset: 4px; }

.footer-links .sep { color: rgba(255, 255, 255, 0.14); }

.noscript-note {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 12px 22px;
  border-radius: 12px;
  background: #241f2e;
  color: #f2f0fa;
  font: 14px var(--font);
  border: 1px solid rgba(139, 124, 255, 0.4);
}

/* ---------- 响应式 ---------- */

@media (max-width: 860px) {
  .cards, .notes { grid-template-columns: 1fr; }
  .page { padding-top: 44px; }
  .meta { grid-template-columns: repeat(3, auto); justify-content: space-between; }
}

@media (max-width: 420px) {
  .card { padding: 22px 18px 20px; }
  .meta { grid-template-columns: 1fr 1fr; }
  .badge-recommended { top: 14px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
