/* PhotoBaby 展示页 · 页面外壳（与 hueying.cn 主站「幻象暗房」同色系） */
:root {
  --void: #08060c;
  --void-2: #0d0a14;
  --void-3: #130f1c;
  --ink: #f5f1fa;
  --dim: #b3a9c4;
  --faint: #8a7f9a;
  --line: rgba(196, 150, 255, 0.14);
  --line-2: rgba(196, 150, 255, 0.26);
  --violet: #c084fc;
  --violet-2: #8b5cf6;
  --violet-3: #e9b8ff;
  --gold: #f3d9ab;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--void); color-scheme: dark; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--void);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(192, 132, 252, 0.35); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: rgba(196, 150, 255, 0.22); border-radius: 4px; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

.pbx-wrap { width: min(1240px, calc(100% - 48px)); margin: 0 auto; position: relative; z-index: 2; }

/* 背景雾气：沿用主站做法，但只保留两团、更慢更淡 */
.pbx-mist { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.pbx-mist i { position: absolute; display: block; border-radius: 50%; filter: blur(100px); }
.pbx-mist i:nth-child(1) {
  width: 820px; height: 820px; left: -18%; top: -22%;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.28), transparent);
  animation: pbxDrift 32s ease-in-out infinite alternate;
}
.pbx-mist i:nth-child(2) {
  width: 700px; height: 700px; right: -14%; top: 30%;
  background: radial-gradient(closest-side, rgba(192, 132, 252, 0.14), transparent);
  animation: pbxDrift 40s ease-in-out infinite alternate-reverse;
}
@keyframes pbxDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(80px, 60px, 0) scale(1.12); }
}

/* 顶栏 */
.pbx-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}
.pbx-header.is-solid {
  background: rgba(8, 6, 12, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}
.pbx-nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.pbx-brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.pbx-brand img { height: 40px; width: auto; filter: drop-shadow(0 0 10px rgba(192, 132, 252, 0.4)); }
.pbx-brand span {
  font-size: 13px; color: var(--dim); letter-spacing: 0.08em;
  border-left: 1px solid var(--line-2); padding-left: 14px;
}
.pbx-links { display: flex; gap: 30px; font-size: 14px; letter-spacing: 0.04em; }
.pbx-links a { color: var(--dim); position: relative; padding: 6px 0; transition: color 0.3s; white-space: nowrap; }
.pbx-links a:hover { color: var(--ink); }
.pbx-links a.is-on { color: var(--ink); }
.pbx-links a.is-on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--violet-3), var(--violet));
}
.pbx-nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pbx-menu { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); place-items: center; }
.pbx-menu svg { width: 20px; height: 20px; }
.pbx-drawer {
  display: none; position: fixed; inset: 76px 0 0 0; z-index: 99;
  background: rgba(8, 6, 12, 0.97); padding: 20px 24px; flex-direction: column; gap: 4px;
}
.pbx-drawer.is-open { display: flex; }
.pbx-drawer a { padding: 14px 6px; font-size: 16px; color: var(--dim); border-bottom: 1px solid var(--line); }

/* 按钮 */
.pbx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 500; white-space: nowrap; letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), box-shadow 0.3s, background 0.25s, border-color 0.25s, color 0.25s;
}
.pbx-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.pbx-btn-sm { height: 36px; padding: 0 16px; font-size: 13.5px; }
.pbx-btn-main {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 55%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.pbx-btn-main:hover { transform: translateY(-1px); box-shadow: 0 14px 38px rgba(139, 92, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.pbx-btn-ghost { border: 1px solid var(--line-2); color: var(--ink); background: rgba(28, 21, 38, 0.5); }
.pbx-btn-ghost:hover { border-color: rgba(196, 150, 255, 0.45); background: rgba(40, 30, 56, 0.6); }
.pbx-btn-soon, .pbx-btn[disabled] {
  background: rgba(34, 28, 46, 0.72); color: #9c92ad;
  border: 1px solid rgba(196, 150, 255, 0.2);
  box-shadow: none; cursor: not-allowed; pointer-events: none;
}
.pbx-tag-soon {
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: rgba(243, 217, 171, 0.12); color: var(--gold); border: 1px solid rgba(243, 217, 171, 0.34);
}

/* 首屏 */
.pbx-hero { position: relative; padding: 168px 0 0; text-align: center; }
.pbx-hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5.2vw, 70px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-wrap: balance;
}
.pbx-hero h1 em { font-style: normal; color: var(--violet-3); }
.pbx-hero-sub {
  margin: 26px auto 0; max-width: 720px;
  font-size: clamp(15px, 1.4vw, 17.5px); color: var(--dim); line-height: 1.85;
}
.pbx-hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.pbx-hero-note { margin-top: 16px; font-size: 13px; color: var(--faint); }
.pbx-hero-note a { color: var(--dim); text-decoration: underline; }

/* 通用区块 */
.pbx-section { position: relative; padding: 120px 0; scroll-margin-top: 104px; }
.pbx-section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.pbx-section-head h2 {
  font-family: var(--serif); font-size: clamp(28px, 3.4vw, 46px); font-weight: 600;
  line-height: 1.3; letter-spacing: 0.02em; text-wrap: balance;
}
.pbx-section-head p { margin-top: 18px; color: var(--dim); font-size: 16px; }

/* 工作流：一条线串四个环节 */
.pbx-flow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.pbx-flow-line {
  position: absolute; left: 12.5%; right: 12.5%; top: 27px; height: 1px;
  background: var(--line-2); overflow: hidden;
}
.pbx-flow-line i {
  position: absolute; inset: 0; transform-origin: left;
  background: linear-gradient(90deg, var(--violet-2), var(--violet), var(--gold));
  transform: scaleX(0); transition: transform 2.2s var(--ease);
}
.pbx-flow.is-in .pbx-flow-line i { transform: scaleX(1); }
.pbx-flow-step { position: relative; text-align: center; padding: 0 18px; }
.pbx-flow-dot {
  width: 54px; height: 54px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--void-3); border: 1px solid var(--line-2); color: var(--violet-3);
  transition: border-color 0.6s, box-shadow 0.6s, color 0.6s;
}
.pbx-flow-dot svg { width: 22px; height: 22px; }
.pbx-flow.is-in .pbx-flow-dot { border-color: rgba(192, 132, 252, 0.6); box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.08), 0 0 28px rgba(139, 92, 246, 0.35); }
.pbx-flow-step h3 { font-size: 18px; font-weight: 600; letter-spacing: 0.02em; }
.pbx-flow-step p { margin-top: 8px; font-size: 14px; color: var(--dim); line-height: 1.75; }
.pbx-flow-step .was { margin-top: 12px; font-size: 12.5px; color: var(--faint); }
.pbx-flow-step .was s { text-decoration-color: rgba(243, 217, 171, 0.6); }

/* 下载区 */
.pbx-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; }
.pbx-dl-card {
  position: relative; border-radius: 20px; padding: 30px;
  background: linear-gradient(180deg, rgba(28, 21, 38, 0.72), rgba(16, 12, 24, 0.72));
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 22px;
}
.pbx-dl-card.is-rec { border-color: rgba(192, 132, 252, 0.45); box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.15), 0 24px 60px rgba(76, 29, 149, 0.25); }
.pbx-dl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pbx-dl-os { display: flex; align-items: center; gap: 14px; }
.pbx-dl-os i {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(139, 92, 246, 0.14); border: 1px solid var(--line-2); color: var(--ink);
}
.pbx-dl-os i svg { width: 22px; height: 22px; }
.pbx-dl-os h3 { font-size: 20px; font-weight: 600; }
.pbx-dl-os p { font-size: 13px; color: var(--dim); }
.pbx-tag {
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: rgba(139, 92, 246, 0.18); color: var(--violet-3); border: 1px solid rgba(192, 132, 252, 0.35);
}
.pbx-dl-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.pbx-dl-meta dt { font-size: 12px; color: var(--faint); }
.pbx-dl-meta dd { font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pbx-dl-notice { font-size: 13px; color: var(--dim); line-height: 1.7; }
.pbx-dl-help {
  max-width: 980px; margin: 18px auto 0; border-radius: 20px; padding: 26px 30px;
  background: rgba(19, 15, 28, 0.7); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
.pbx-dl-help h3 { font-size: 18px; font-weight: 600; }
.pbx-dl-help p { margin-top: 8px; font-size: 14px; color: var(--dim); }
.pbx-dl-help .links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.pbx-dl-help img { width: 112px; height: 112px; border-radius: 10px; background: #fff; padding: 5px; object-fit: cover; }

/* 页脚：与主站一致 */
.pbx-footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 54px 0 34px; margin-top: 40px; }
.pbx-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto auto; gap: 34px; }
.pbx-foot-grid .logo { height: 34px; width: auto; }
.pbx-foot-grid .about p { margin-top: 14px; font-size: 13px; color: var(--dim); max-width: 28ch; }
.pbx-foot-grid h5 { font-size: 13px; color: var(--ink); margin-bottom: 12px; font-weight: 600; }
.pbx-foot-grid a { display: block; font-size: 13px; color: var(--dim); margin-bottom: 8px; transition: color 0.2s; }
.pbx-foot-grid a:hover { color: var(--ink); }
.pbx-foot-grid .qr img { width: 92px; height: 92px; border-radius: 8px; background: #fff; padding: 4px; object-fit: cover; }
.pbx-foot-bot {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px;
  font-size: 12.5px; color: var(--faint);
}
.pbx-foot-bot div { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pbx-foot-bot a:hover { color: var(--dim); text-decoration: underline; }

/* 进场 */
.pbx-rise { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.pbx-rise.is-in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .pbx-links { display: none; }
  .pbx-menu { display: grid; }
  .pbx-foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pbx-foot-grid .about { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .pbx-wrap { width: calc(100% - 28px); max-width: 100%; }
  .pbx-nav-right .pbx-btn-ghost { display: none; }
  .pbx-brand span { display: none; }
  .pbx-hero { padding-top: 118px; }
  .pbx-hero h1 { font-size: clamp(30px, 8.2vw, 38px); line-height: 1.24; }
  .pbx-hero-sub { font-size: 14.5px; line-height: 1.78; margin-top: 18px; }
  .pbx-hero-cta { gap: 10px; margin-top: 24px; }
  .pbx-btn { height: 42px; padding: 0 18px; font-size: 14px; }
  .pbx-hero-note { font-size: 12px; line-height: 1.7; }
  .pbx-section { padding: 64px 0; }
  .pbx-section-head { margin-bottom: 32px; }
  .pbx-section-head h2 { font-size: 26px; }
  .pbx-section-head p { font-size: 14px; margin-top: 12px; }
  .pbx-flow { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .pbx-flow-step { padding: 0 4px; }
  .pbx-flow-dot { width: 44px; height: 44px; margin-bottom: 12px; }
  .pbx-flow-step h3 { font-size: 15.5px; }
  .pbx-flow-step p { font-size: 12.5px; line-height: 1.6; }
  .pbx-flow-step .was { font-size: 11px; margin-top: 6px; }
  .pbx-flow-line { display: none; }
  .pbx-dl { grid-template-columns: 1fr; gap: 14px; }
  .pbx-dl-card { padding: 20px; border-radius: 16px; gap: 16px; }
  .pbx-dl-os h3 { font-size: 18px; }
  .pbx-dl-help { grid-template-columns: 1fr; padding: 20px; gap: 18px; text-align: center; justify-items: center; }
  .pbx-dl-help .links { justify-content: center; }
  .pbx-footer { padding: 36px 0 24px; margin-top: 24px; }
  .pbx-foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
  .pbx-foot-grid .about { grid-column: 1 / -1; }
  .pbx-foot-grid .qr img { width: 76px; height: 76px; }
  .pbx-foot-bot { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pbx-mist i { animation: none; }
  .pbx-rise { opacity: 1; transform: none; transition: none; }
}
