/* 设计令牌 —— 与 Figma 的 Avatar Tokens 变量集合一一对应 */
:root {
  --bg: #0b0b0f;
  --card: #17171f;
  --card-alt: #1f1f2a;
  --text: #fff;
  --text-2: #9e9ea8;
  --text-3: #5c5c68;
  --purple: #7c3aed;
  --pink: #ec4899;
  --wechat: #22c55e;
  --stroke: #2a2a36;
  --grad: linear-gradient(90deg, var(--purple), var(--pink));
  --content: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Noto Sans SC', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.wrap { max-width: var(--content); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-2); }
.micro { font-size: 12px; color: var(--text-3); }
.mt16 { margin-top: 16px; }
.center { text-align: center; }

a { color: inherit; text-decoration: none; }

/* ── 导航 ───────────────────────────── */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(11, 11, 15, 0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--stroke); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; }
.brand-dot { width: 28px; height: 28px; border-radius: 9px; display: block; }
.nav-menu { display: flex; gap: 28px; font-size: 15px; color: var(--text-2); }
.nav-menu a:hover { color: var(--text); }
.nav-inner > .btn { margin-left: auto; }

/* ── 按钮 ───────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: none; cursor: pointer; font-family: inherit;
  font-size: 17px; font-weight: 600; color: #fff;
  padding: 0 28px; height: 60px; border-radius: 30px;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); }
.btn-ghost { background: var(--card); border: 1px solid var(--stroke); }
.btn-wechat { background: var(--wechat); }
.btn-sm { height: 42px; font-size: 15px; padding: 0 22px; border-radius: 21px; }
.btn-block { width: 100%; }

/* ── Hero：一屏内先展示真实效果，再补充解释 ───────── */
.hero { position: relative; padding: 36px 0 44px; overflow: hidden; }
.hero-glow {
  position: absolute; right: -40px; top: -20px;
  width: 620px; height: 360px; border-radius: 50%;
  background: var(--grad); opacity: 0.15; filter: blur(160px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(400px, .82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.tagpill {
  display: inline-block; padding: 7px 14px; border-radius: 17px;
  background: var(--card-alt); border: 1px solid var(--stroke);
  font-size: 12px; color: var(--text-2);
}
.hero h1 {
  max-width: 560px;
  font-size: clamp(52px, 5vw, 68px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -0.035em;
  margin-top: 18px;
}
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 16px; color: var(--text-2); margin-top: 18px; max-width: 500px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-actions .btn { height: 52px; padding: 0 24px; font-size: 15px; }
.hero-fine { margin-top: 16px; font-size: 12px; color: var(--text-3); }

.demo-block {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(31,31,42,.56), rgba(17,15,25,.34));
  box-shadow: 0 24px 80px rgba(0,0,0,.24);
}
.demo-proof {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 14px 2px;
  color: var(--text-2); font-size: 12px;
}
.demo-proof i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pink); box-shadow: 0 0 16px rgba(236,72,153,.8);
}
.demo { display: flex; align-items: center; gap: clamp(10px, 1.5vw, 18px); justify-content: center; }
.demo-col { text-align: center; }
.demo-arrow { color: var(--text-3); font-size: 26px; }
.demo-row { display: flex; gap: clamp(7px, 1vw, 12px); }
.demo-cap { font-size: 11px; color: var(--text-3); margin-top: 9px; }

/* Hero 真实原图与输出图使用完全一致的画幅，用户能一眼比较变化。 */
.sw { position: relative; border-radius: 20px; overflow: hidden; flex: none; }
.demo-source {
  width: clamp(100px, 10vw, 138px);
  height: clamp(100px, 10vw, 138px);
  object-fit: cover; display: block;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.demo-output-wrap {
  position: relative;
  width: clamp(86px, 8.8vw, 122px);
  height: clamp(86px, 8.8vw, 122px);
}
.demo-output { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── 通用区块 ───────────────────────── */
.section { padding: 72px 0; }
.section h2 { font-size: 40px; font-weight: 700; letter-spacing: -0.01em; }
.section .sub { color: var(--text-2); margin-top: 12px; }

.wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.wall-card { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; cursor: pointer; }
.wall-card .scrim { position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.78)); z-index: 1; }
.wall-card .label { position: absolute; left: 18px; bottom: 16px; z-index: 2; }
.wall-card .label b { font-size: 20px; }
.wall-card .label span { display: block; font-size: 13px; opacity: 0.72; }
.wall-card { transition: transform .2s ease, box-shadow .2s ease; }
.wall-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,.32); }
.more-row { display: flex; justify-content: center; margin-top: 28px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.step { background: var(--card); border: 1px solid var(--stroke); border-radius: 18px; padding: 24px; }
.step-n { width: 40px; height: 40px; border-radius: 13px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.step h3 { font-size: 20px; margin-top: 20px; }
.step p { color: var(--text-2); font-size: 13px; margin-top: 8px; }

.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.price-card { background: var(--card); border-radius: 22px; padding: 32px; border: 1px solid var(--stroke); }
.price-card.featured { border: 2px solid var(--purple); }
.price-card.hd-choice { background: linear-gradient(145deg, #17171f 0%, #191625 100%); }
.price-card .amount { font-size: 56px; font-weight: 900; line-height: 1.1; margin-top: 12px; }
.price-card.featured .amount { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-card ul { list-style: none; margin-top: 20px; }
.price-card li { color: var(--text-2); font-size: 13px; padding: 6px 0 6px 24px; position: relative; }
.price-card li::before { content: '✓'; position: absolute; left: 0; color: var(--wechat); }

/* ── 创作台 ─────────────────────────── */
.create-page { padding-top: 40px; padding-bottom: 144px; }
.create-grid { display: grid; grid-template-columns: 520px 1fr; gap: 40px; margin-top: 32px; }
.panel { background: var(--card); border-radius: 20px; padding: 32px; }

.dropzone {
  border: 2px dashed #3a3a48; border-radius: 16px; background: var(--bg);
  padding: 48px 24px; text-align: center; cursor: pointer; transition: border-color 0.15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--purple); }
.dropzone h3 { font-size: 20px; margin-top: 16px; }
.dropzone .or { color: var(--text-3); font-size: 13px; margin: 12px 0; }
.dropzone img.preview { max-width: 100%; max-height: 280px; border-radius: 12px; }
.upload-status {
  min-height: 20px;
  margin-top: 12px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.upload-status.loading { color: #c4b5fd; }
.upload-status.success { color: #86efac; }
.upload-status.error { color: #fda4af; }

.style-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.style-card {
  background: var(--bg); border: 1px solid var(--stroke); border-radius: 14px;
  padding: 12px; text-align: center; cursor: pointer;
}
.style-card.on { border: 2px solid var(--pink); padding: 11px; }
.style-card .sw { width: 100%; aspect-ratio: 1; border-radius: 12px; }
.style-card .nm { font-size: 13px; color: var(--text-2); margin-top: 10px; }
.style-card.on .nm { color: #fff; }
.style-card.is-hidden { display: none; }
.more-styles {
  display: block; width: 100%; height: 44px; margin-top: 16px;
  border-radius: 14px; border: 1px solid var(--stroke); background: transparent;
  color: var(--text-2); font: inherit; cursor: pointer;
}
.more-styles:hover { color: var(--text); border-color: #46465a; }
.more-styles span { color: var(--pink); margin-left: 6px; }

.quality-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-top: 28px;
}
.quality-head span { color: var(--text-3); font-size: 12px; }
.own-toggle {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 16px; padding: 15px 16px;
  border: 1px solid var(--stroke); border-radius: 14px;
  background: rgba(11,11,15,.42); color: var(--text);
  text-align: left; cursor: pointer; font-family: inherit;
  transition: border-color .18s ease, background .18s ease;
}
.own-toggle:hover, .own-toggle.is-open {
  border-color: rgba(236,72,153,.58);
  background: rgba(236,72,153,.055);
}
.own-toggle > span:first-child { min-width: 0; }
.own-toggle b, .own-toggle small { display: block; }
.own-toggle b { font-size: 14px; }
.own-toggle small {
  margin-top: 2px; color: var(--text-3); font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.own-toggle-action {
  flex: none; display: flex; align-items: center; gap: 8px;
  color: var(--text-2); font-size: 12px;
}
.own-toggle-action i {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .22s ease;
}
.own-toggle.is-open .own-toggle-action i { transform: rotate(225deg) translate(-2px, -2px); }
.own-panel {
  display: grid; grid-template-rows: 0fr;
  opacity: 0; visibility: hidden;
  transition: grid-template-rows .24s ease, opacity .18s ease, visibility 0s linear .24s;
}
.own-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1; visibility: visible;
  transition: grid-template-rows .28s ease, opacity .22s ease;
}
.own-panel-inner { min-height: 0; overflow: hidden; }
.prompt-help { margin-top: 14px; color: var(--text-3); font-size: 12px; }
.prompt-chips {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; margin-top: 12px;
}
.prompt-chip {
  min-width: 0; padding: 11px 12px; border-radius: 12px;
  border: 1px solid var(--stroke); background: var(--bg); color: var(--text);
  text-align: left; cursor: pointer; font-family: inherit;
}
.prompt-chip b, .prompt-chip span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prompt-chip b { font-size: 13px; font-weight: 600; }
.prompt-chip span { color: var(--text-3); font-size: 11px; margin-top: 3px; }
.prompt-chip:hover, .prompt-chip.on { border-color: var(--pink); background: rgba(236,72,153,.07); }

textarea.own {
  width: 100%; margin-top: 20px; min-height: 84px; resize: vertical;
  background: var(--bg); border: 1px solid var(--stroke); border-radius: 14px;
  padding: 16px; color: #fff; font-family: inherit; font-size: 15px;
}
textarea.own::placeholder { color: var(--text-3); }

.quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.quality-card {
  min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--stroke); border-radius: 14px; padding: 15px;
  background: var(--bg); color: var(--text); text-align: left; cursor: pointer; font-family: inherit;
}
.quality-card span, .quality-card b, .quality-card small { display: block; }
.quality-card b { font-size: 14px; }
.quality-card small { color: var(--text-3); font-size: 11px; margin-top: 4px; }
.quality-card i {
  flex: none; width: 18px; height: 18px; border: 1px solid #4b4b5d; border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--bg);
}
.quality-card.on { border-color: var(--pink); background: rgba(236,72,153,.07); }
.quality-card.on i { background: var(--pink); border-color: var(--pink); }

.orderbar {
  position: fixed;
  left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 30;
  transform: translateX(-50%);
  width: min(880px, calc(100vw - 48px));
  display: flex; align-items: center; gap: 22px;
  background: rgba(23,23,31,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px; padding: 13px 16px 13px 24px;
  box-shadow: 0 22px 70px rgba(0,0,0,.52), 0 0 0 1px rgba(236,72,153,.05);
  backdrop-filter: blur(18px);
}
.orderbar .amt { flex: none; font-size: 34px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.order-copy { min-width: 0; }
.order-copy > b { display: block; font-size: 14px; }
.orderbar .meta { font-size: 13px; color: var(--text-2); }
.orderbar .btn {
  min-width: 250px; height: 54px; margin-left: auto;
  border-radius: 17px;
  box-shadow: 0 12px 30px rgba(172,55,194,.26);
}
.orderbar .btn:disabled { opacity: .62; box-shadow: none; }

/* ── 弹窗 ───────────────────────────── */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.72); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { width: 420px; max-width: calc(100vw - 32px); background: var(--card); border: 1px solid var(--stroke); border-radius: 24px; padding: 32px; text-align: center; position: relative; }
.modal .close { position: absolute; right: 20px; top: 18px; color: var(--text-3); cursor: pointer; font-size: 20px; background: none; border: none; }
.qr { width: 240px; height: 240px; background: #fff; border-radius: 16px; margin: 24px auto 0; padding: 10px; }
.qr svg { width: 100%; height: 100%; display: block; }
.wait { margin-top: 24px; padding: 12px; border-radius: 12px; background: var(--bg); font-size: 13px; color: var(--text-2); }
.wait .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; margin-right: 8px; }

/* ── 生成中 / 结果 ──────────────────── */
.slots { display: flex; gap: 32px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.slot { width: 320px; aspect-ratio: 1; border-radius: 24px; position: relative; }
.slot.pending { background: var(--card); border: 2px dashed var(--pink); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; }
.spinner { width: 56px; height: 56px; border-radius: 50%; border: 5px solid rgba(255,255,255,0.1); border-top-color: var(--purple); border-right-color: var(--pink); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.progress { width: 480px; max-width: 100%; height: 8px; border-radius: 4px; background: var(--card-alt); margin: 40px auto 0; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--grad); transition: width 0.4s ease; }

.results { display: flex; gap: 32px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.result-cell { width: 320px; }
.result-img { width: 100%; aspect-ratio: 1; border-radius: 24px; object-fit: cover; display: block; }
.result-cell.on .result-img { outline: 3px solid var(--pink); outline-offset: 3px; }

.hd-bar { display: flex; align-items: center; gap: 24px; margin-top: 48px; background: var(--card); border: 1.5px solid var(--purple); border-radius: 20px; padding: 24px 32px; }
.hd-bar .btn { margin-left: auto; }

.works-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; margin-top: 32px; }
.works-grid .cell { appearance: none; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: zoom-in; font: inherit; }
.works-grid .cell img { width: 100%; aspect-ratio: 1; border-radius: 18px; object-fit: cover; display: block; }
.works-grid .cell .m { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-2); margin-top: 10px; }
.works-grid .cell .m i { color: var(--text-3); font-style: normal; opacity: 0; transition: opacity .15s; }
.works-grid .cell:hover .m i { opacity: 1; }
.works-grid .cell img { transition: transform .2s ease, box-shadow .2s ease; }
.works-grid .cell:hover img { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,0,0,.35); }

body.viewer-open { overflow: hidden; }
.viewer-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(2,2,5,.94); backdrop-filter: blur(18px);
  display: grid; place-items: center; overflow: hidden;
}
.viewer-stage {
  position: absolute; inset: 72px 20px 92px;
  display: grid; place-items: center; overflow: hidden; cursor: grab; touch-action: none;
}
.viewer-stage.dragging { cursor: grabbing; }
.viewer-stage img {
  width: auto; height: auto; max-width: min(88vw, 1100px); max-height: calc(100vh - 190px);
  object-fit: contain; user-select: none; will-change: transform;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.55);
  transition: transform .06s linear;
}
.viewer-top {
  position: absolute; z-index: 2; left: 28px; right: 28px; top: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.viewer-top b, .viewer-top span { display: block; }
.viewer-top span { color: var(--text-3); font-size: 12px; margin-top: 3px; }
.viewer-close {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--stroke);
  background: rgba(23,23,31,.88); color: #fff; cursor: pointer; font-size: 18px;
}
.viewer-tools {
  position: absolute; z-index: 2; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 7px;
  border-radius: 18px; border: 1px solid var(--stroke); background: rgba(23,23,31,.9);
  box-shadow: 0 12px 34px rgba(0,0,0,.4);
}
.viewer-tools button, .viewer-tools a {
  min-width: 38px; height: 38px; border: 0; border-radius: 12px; padding: 0 12px;
  background: transparent; color: var(--text-2); cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
}
.viewer-tools button:hover { color: #fff; background: var(--card-alt); }
.viewer-tools a { color: #fff; background: var(--grad); margin-left: 5px; }

/* ── 页脚 ───────────────────────────── */
.foot { border-top: 1px solid var(--stroke); padding: 48px 0 32px; margin-top: 40px; }
.foot-top { display: flex; gap: 48px; justify-content: space-between; flex-wrap: wrap; }
.foot-cols { display: flex; gap: 56px; }
.foot-cols h4 { font-size: 13px; margin-bottom: 12px; }
.foot-cols a { display: block; font-size: 13px; color: var(--text-3); padding: 3px 0; }
.foot-cols a:hover { color: var(--text-2); }
.foot .micro { margin-top: 6px; }
.foot > .wrap > .micro:last-child { margin-top: 32px; }

.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  background: var(--card-alt); border: 1px solid var(--stroke);
  padding: 14px 24px; border-radius: 14px; z-index: 60; font-size: 14px;
}

/* ── 响应式 ─────────────────────────── */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(340px, .84fr) minmax(0, 1.16fr); gap: 24px; }
  .hero h1 { font-size: clamp(48px, 5.6vw, 58px); }
  .create-grid { grid-template-columns: 1fr; }
  .wall, .works-grid { grid-template-columns: repeat(3, 1fr); }
  .steps, .prices { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero { padding: 28px 0 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { max-width: 500px; font-size: clamp(42px, 12vw, 54px); }
  .demo-block { padding: 14px; }
}
@media (max-width: 640px) {
  .nav-menu { display: none; }
  .section h2 { font-size: 28px; }
  .wall, .works-grid, .style-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-row { gap: 8px; }
  .demo-output-wrap { width: clamp(70px, 22vw, 92px); height: clamp(70px, 22vw, 92px); }
  .demo-source { width: clamp(82px, 24vw, 100px); height: clamp(82px, 24vw, 100px); }
  .quality-grid, .prompt-chips { grid-template-columns: 1fr; }
  .create-page { padding-top: 28px; padding-bottom: 132px; }
  .panel { padding: 20px; }
  .orderbar {
    width: calc(100vw - 16px);
    bottom: max(8px, env(safe-area-inset-bottom));
    gap: 10px; padding: 10px;
    border-radius: 18px;
  }
  .orderbar .amt { font-size: 27px; padding-left: 4px; }
  .order-copy { display: none; }
  .orderbar .btn {
    min-width: 0; width: auto; flex: 1;
    height: 52px; margin-left: 0; padding: 0 16px;
    border-radius: 14px; font-size: 14px;
  }
  .viewer-stage { inset: 68px 8px 112px; }
  .viewer-tools { width: calc(100vw - 20px); overflow-x: auto; justify-content: flex-start; }
}

/* ── 风格样例图（同一人物的多种人设）───────── */
.wall-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 20px;
  display: block;
}
.style-card img.sw { object-fit: cover; }

/* ── 职业头像主打区 ─────────────────────────── */
.pro-section { padding: 24px 24px 8px; }
.pro-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  padding: 32px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--stroke);
}
.pro-img {
  width: 300px; height: 300px;
  object-fit: cover; border-radius: 20px;
  display: block;
}
.pro-body h2 { font-size: 34px; font-weight: 700; margin: 14px 0 12px; }
.pro-body .lead { margin-bottom: 24px; }

/* ── 多选风格 ─────────────────────────── */
.panel-head { display: flex; align-items: center; justify-content: space-between; }
.pick-count {
  font-size: 15px; font-weight: 600;
  background: var(--card-alt); border: 1px solid var(--stroke);
  border-radius: 20px; padding: 5px 14px;
}
.style-card { position: relative; }
.style-card .tick {
  position: absolute; right: 10px; top: 10px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--pink);
  opacity: 0; transform: scale(0.7);
  transition: opacity .15s, transform .15s;
}
.style-card .tick::after {
  content: ''; position: absolute;
  left: 8px; top: 4px; width: 5px; height: 11px;
  border: 2px solid #fff; border-top: none; border-left: none;
  transform: rotate(42deg);
}
.style-card.on .tick { opacity: 1; transform: scale(1); }

/* 试图选择第 4 个风格时，把操作提示直接落到三个可取消的已选项上。 */
.style-card.on.limit-hint {
  z-index: 2;
  animation: style-limit-pulse .72s cubic-bezier(.22,.75,.28,1);
}
.style-card.on.limit-hint::after {
  content: '点一下取消';
  position: absolute;
  left: 50%; top: 45%;
  z-index: 3;
  transform: translate(-50%, -50%);
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(10,10,14,.88);
  border: 1px solid rgba(255,255,255,.32);
  box-shadow: 0 8px 24px rgba(0,0,0,.38);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  animation: style-limit-label 1.2s ease both;
}
.style-card.on.limit-hint .tick {
  animation: style-limit-tick .72s cubic-bezier(.2,.8,.2,1);
}
.pick-count.limit-hint {
  color: #fff;
  border-color: var(--pink);
  background: rgba(236,72,153,.16);
  animation: pick-count-pulse .72s ease;
}

@keyframes style-limit-pulse {
  0%, 100% {
    transform: translateX(0);
    border-color: var(--pink);
    box-shadow: 0 0 0 0 rgba(236,72,153,0);
  }
  18% { transform: translateX(-4px); }
  34% {
    transform: translateX(4px);
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(236,72,153,.22), 0 14px 34px rgba(236,72,153,.2);
  }
  50% { transform: translateX(-3px); }
  68% {
    transform: translateX(2px);
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(139,92,246,.2);
  }
}
@keyframes style-limit-label {
  0% { opacity: 0; transform: translate(-50%, -42%) scale(.92); }
  18%, 78% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -56%) scale(.98); }
}
@keyframes style-limit-tick {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.28); box-shadow: 0 0 0 6px rgba(236,72,153,.2); }
}
@keyframes pick-count-pulse {
  0%, 100% { transform: scale(1); }
  42% { transform: scale(1.06); box-shadow: 0 0 0 4px rgba(236,72,153,.13); }
}

@media (prefers-reduced-motion: reduce) {
  .own-toggle,
  .own-toggle-action i,
  .own-panel,
  .style-card.on.limit-hint,
  .style-card.on.limit-hint::after,
  .style-card.on.limit-hint .tick,
  .pick-count.limit-hint {
    animation: none;
    transition: none;
  }
  .style-card.on.limit-hint {
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(236,72,153,.25);
  }
  .style-card.on.limit-hint::after { opacity: 1; }
}

@media (max-width: 900px) {
  .pro-card { grid-template-columns: 1fr; gap: 24px; }
  .pro-img { width: 100%; height: auto; aspect-ratio: 1; }
  .pro-body h2 { font-size: 28px; }
}

/* 结果页：标出每张的风格 —— 三张各不相同 */
.result-style {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}
.result-cell.on .result-style { color: var(--text); }
