/* 全站基础：深色科技风（对标 motionsites.ai）。首页游戏站在 station.css，做游戏几页用这里。 */
:root {
  --bg: #07070a; --bg2: #0d0d12; --panel: #121218; --panel2: #191921; --card: #121218;
  --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .14);
  --ink: #f4f4f6; --sub: #8d8d99; --dim: #5d5d68;
  --brand: #ff3d8b; --brand2: #9b5cff; --brand-deep: #ff5c9e; --brand-soft: rgba(255, 61, 139, .14);
  --grad: linear-gradient(100deg, #ff3d8b 0%, #c04dff 55%, #6d7bff 100%);
  --leaf: #3ee0a1; --leaf-soft: rgba(62, 224, 161, .14); --bad: #ff6a6a;
  --radius: 22px; --ez: cubic-bezier(.22, .9, .24, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 -apple-system, "SF Pro Display", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased; }
::selection { background: rgba(255, 61, 139, .4); }
a { color: inherit; }

/* ---------- 顶栏 ---------- */
header#bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 18px; padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(7, 7, 10, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line); }
#home { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: .02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
#home::before { content: "放"; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: 16px; font-weight: 900;
  background: var(--grad); color: #fff; box-shadow: 0 0 22px rgba(255, 61, 139, .45); }
#home span { font-weight: 500; color: var(--sub); margin-left: -4px; }
main { max-width: 600px; margin: 0 auto; padding: 8px 18px 150px; }

h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.15; margin: 26px 0 8px; font-weight: 900; letter-spacing: -.01em; }
h3 { color: var(--ink); }
.lead { color: var(--sub); margin: 0 0 20px; }
.muted { color: var(--sub); font-size: 14px; }
.gap { height: 10px; }
.center { text-align: center; }

/* ---------- 输入 ---------- */
.inputwrap { position: relative; }
textarea, input[type=text] { width: 100%; font: inherit; padding: 14px 54px 14px 16px; border: 1px solid var(--line2);
  border-radius: 16px; background: var(--bg2); color: var(--ink); resize: none; outline: none; transition: border-color .2s, box-shadow .2s; }
textarea::placeholder, input::placeholder { color: var(--dim); }
textarea:focus, input[type=text]:focus { border-color: rgba(255, 61, 139, .7); box-shadow: 0 0 0 4px rgba(255, 61, 139, .14); }
textarea { min-height: 100px; }
.mic { position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line2);
  background: var(--panel2); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.mic svg { width: 19px; height: 19px; }
.mic.rec { background: var(--brand); border-color: var(--brand); animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(255, 61, 139, .2); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 2px; }
.chip { font: inherit; font-size: 13px; padding: 6px 13px; border-radius: 99px; background: var(--panel2); color: var(--sub);
  border: 1px solid var(--line); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.chip:hover { color: var(--ink); border-color: var(--line2); }

/* ---------- 按钮：白色胶囊是主按钮 ---------- */
.btn { display: block; width: 100%; margin-top: 14px; padding: 14px 18px; font: inherit; font-size: 16px; font-weight: 700;
  color: #0a0a0d; background: #fff; border: 0; border-radius: 99px; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 10px 30px -8px rgba(255, 255, 255, .35); transition: transform .15s var(--ez), box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .3), 0 14px 40px -8px rgba(255, 61, 139, .55); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .45; transform: none; }
.btn.ghost { background: rgba(255, 255, 255, .04); color: var(--ink); border: 1px solid var(--line2); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.btn.small { display: inline-block; width: auto; padding: 9px 18px; font-size: 14px; margin: 0; }

/* ---------- 做游戏首页：两个入口 ---------- */
.entry { position: relative; background: var(--panel); border-radius: var(--radius); padding: 18px; margin: 14px 0;
  border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
.entry.open { border-color: rgba(255, 61, 139, .5); box-shadow: 0 0 0 1px rgba(255, 61, 139, .25), 0 20px 60px -24px rgba(255, 61, 139, .5); }
.entry-head { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.entry-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; flex: none;
  border: 1px solid var(--line2); }
.entry-icon.idea { background: radial-gradient(circle at 30% 25%, rgba(255, 200, 80, .45), rgba(255, 61, 139, .15)); }
.entry-icon.ref { background: radial-gradient(circle at 30% 25%, rgba(109, 123, 255, .5), rgba(155, 92, 255, .15)); }
.entry-title { font-size: 19px; font-weight: 800; }
.entry-sub { color: var(--sub); font-size: 14px; }
.entry-body { display: none; margin-top: 16px; }
.entry.open .entry-body { display: block; animation: fadeUp .3s var(--ez); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }

/* 我的游戏 */
.mine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.mine a { text-decoration: none; color: inherit; }
.mine .thumb { aspect-ratio: 9 / 16; border-radius: 14px; background: var(--panel2) center/cover no-repeat; display: grid; place-items: center;
  color: var(--sub); font-size: 13px; border: 1px solid var(--line); }
.mine .t { font-size: 13px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 游戏页：方案卡 ---------- */
.plan { position: relative; background: var(--panel); border-radius: var(--radius); padding: 22px; margin: 14px 0; border: 1px solid var(--line); overflow: hidden; }
.plan::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad); }
.plan h2 { font-size: 28px; margin: 0 0 4px; font-weight: 900; }
.plan .one { color: var(--sub); margin: 0 0 12px; }
.plan h3 { font-size: 13px; letter-spacing: .12em; margin: 18px 0 8px; color: var(--brand-deep); font-weight: 700; }
.plan ul { margin: 0; padding-left: 0; list-style: none; }
.plan li { padding: 5px 0 5px 24px; position: relative; color: #d8d8de; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.plan .hl li::before { background: var(--leaf); box-shadow: 0 0 10px var(--leaf); }

.building { text-align: center; background: var(--panel); border-radius: var(--radius); padding: 30px 20px; margin: 14px 0; border: 1px solid var(--line); }
.spinner { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--brand);
  animation: spin 1s linear infinite; box-shadow: 0 0 30px rgba(255, 61, 139, .25); }
@keyframes spin { to { transform: rotate(360deg); } }
.building .now { font-size: 18px; font-weight: 700; }
.building .time { color: var(--sub); font-size: 14px; margin-top: 4px; }

/* 手机预览：发光边框 */
.phone { width: min(100%, 330px); aspect-ratio: 390 / 844; margin: 18px auto 10px; border-radius: 40px; overflow: hidden; padding: 8px;
  background: linear-gradient(#1c1c24, #0c0c10); border: 1px solid var(--line2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 40px 90px -30px rgba(255, 61, 139, .55), 0 0 60px -10px rgba(155, 92, 255, .35); }
.phone iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; border-radius: 32px; }
.row { display: flex; gap: 10px; justify-content: center; margin: 8px 0; }

/* 说话改 */
.chat { margin: 16px 0; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 18px; margin: 8px 0; white-space: pre-wrap; word-break: break-word; }
.msg.bot { background: var(--panel2); border: 1px solid var(--line); border-top-left-radius: 6px; }
.msg.user { background: var(--grad); color: #fff; margin-left: auto; border-top-right-radius: 6px; }

.composer { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 14px; padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: rgba(7, 7, 10, .82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); z-index: 9; }
.composer .in { max-width: 600px; margin: 0 auto; display: flex; gap: 8px; align-items: flex-end; }
.composer .inputwrap { flex: 1; }
.composer textarea { min-height: 48px; max-height: 120px; padding: 12px 50px 12px 14px; }
.composer .mic { bottom: 4px; right: 5px; }
.send { flex: none; height: 48px; padding: 0 20px; border: 0; border-radius: 99px; background: #fff; color: #0a0a0d; font: inherit; font-weight: 800; cursor: pointer; }
.send:disabled { opacity: .45; }

.toast { position: fixed; left: 50%; top: 76px; transform: translateX(-50%); background: rgba(24, 24, 32, .92); color: #fff; padding: 10px 18px;
  border-radius: 99px; z-index: 60; font-size: 14px; max-width: 86%; border: 1px solid var(--line2); backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px -10px rgba(0, 0, 0, .8); animation: fadeUp .25s var(--ez); }
.full { position: fixed; inset: 0; z-index: 50; background: #000; }
.full iframe { width: 100%; height: 100%; border: 0; }
.full .close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 51; background: rgba(20, 20, 28, .7); color: #fff;
  border: 1px solid var(--line2); border-radius: 99px; padding: 7px 16px; font: inherit; backdrop-filter: blur(8px); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; } }

/* 上线微信 */
.back { color: var(--sub); text-decoration: none; font-size: 14px; display: inline-block; margin-top: 14px; }
.ship { list-style: none; padding: 0; margin: 10px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.ship li { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.03); }
.ship li.done { opacity: .72; }
.ship .sh { display: flex; align-items: center; gap: 10px; padding: 14px; cursor: pointer; }
.ship .sh i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800;
  font-size: 13px; background: rgba(255,255,255,.08); }
.ship li.done .sh i { background: rgba(62,224,161,.25); color: #b6ffe2; }
.ship li.blocked .sh i { background: rgba(255,90,90,.3); }
.ship .sh b { flex: 1; }
.ship .who { font-size: 12px; color: var(--sub); white-space: nowrap; }
.ship .sb { display: none; padding: 0 14px 14px 52px; }
.ship li.open .sb { display: block; }
.ship .sb p { margin: 0 0 10px; color: var(--sub); line-height: 1.6; font-size: 14px; }
.ship .btn.small { margin: 6px 8px 0 0; }
.cp { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin: 8px 0; }
.cpl { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--sub); }
.cpb { font: inherit; font-size: 12px; border: 1px solid var(--line2); background: transparent; color: var(--ink); border-radius: 99px; padding: 2px 10px; cursor: pointer; }
.cpt { margin-top: 4px; white-space: pre-wrap; font-size: 14px; line-height: 1.6; user-select: all; }
.inl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inl input, .owner input { font: inherit; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(255,255,255,.05); color: var(--ink); flex: 1; min-width: 120px; }
.owner { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.seg2 { display: flex; gap: 6px; }
.seg2 button { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line2); background: transparent; color: var(--ink); cursor: pointer; }
.seg2 button.on { background: #fff; color: #0a0a0d; }
.files { display: flex; flex-wrap: wrap; }
.okt { color: #3ee0a1; font-size: 14px; }
.warnt { color: #ffd27a; }
.qrbig img { width: 200px; height: 200px; background: #fff; border-radius: 12px; margin-top: 10px; }
.kefuWrap h3 { margin: 10px 0 4px; }
