/* ===== ZAKA 讨论 Demo · 共享设计系统 ===== */
/* 深色宇宙 + 暖色星球光 · 圆润可爱 · 完全自包含（无外部 CDN 依赖，弱网/国内可靠） */

:root {
  --space-0: #070a16;
  --space-1: #0a0e1c;
  --space-2: #0d1226;
  --panel:   #141a33;
  --panel-2: #1b2340;
  --line:    rgba(255, 217, 140, 0.14);
  --gold:    #ffd98c;
  --gold-2:  #ffc966;
  --amber:   #e8a054;
  --cream:   #f2efe6;
  --cream-dim: #cfc2a4;
  --muted:   #8b93b6;
  --pink:    #ffd9e8;
  --pink-2:  #f27fa5;
  --green:   #68b585;
  --blue:    #7fb2f2;
  --ink:     #26232b;
  --radius:  20px;
  --shadow:  0 18px 50px rgba(0,0,0,.45);
  --font: "ZCOOL KuaiLe", ui-rounded, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--cream);
  background:
    radial-gradient(1100px 700px at 15% -5%, #1a2145 0%, transparent 55%),
    radial-gradient(900px 620px at 105% 12%, #2a1c3a 0%, transparent 50%),
    radial-gradient(700px 700px at 50% 115%, #241a2f 0%, transparent 55%),
    linear-gradient(180deg, var(--space-1), var(--space-0));
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* 星空点缀 */
.stars, .stars::before, .stars::after {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-repeat: repeat;
}
.stars {
  background-image:
    radial-gradient(1.4px 1.4px at 20% 30%, #fff 40%, transparent),
    radial-gradient(1.2px 1.2px at 70% 20%, #ffe9c0 40%, transparent),
    radial-gradient(1px 1px at 40% 70%, #fff 40%, transparent),
    radial-gradient(1.3px 1.3px at 85% 60%, #ffd9e8 40%, transparent),
    radial-gradient(1px 1px at 55% 45%, #fff 40%, transparent),
    radial-gradient(1.1px 1.1px at 12% 82%, #fff 40%, transparent),
    radial-gradient(1.2px 1.2px at 92% 88%, #ffe9c0 40%, transparent);
  background-size: 100% 100%;
  opacity: .55;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .35 } to { opacity: .7 } }
@media (prefers-reduced-motion: reduce) { .stars { animation: none } }

.headfont { font-family: var(--font); font-weight: 400; letter-spacing: .5px; }

/* ---- 手机外框 ---- */
.phone-wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 22px 14px 40px; }
.phone {
  width: 392px; max-width: 96vw; height: 812px; max-height: 90vh;
  background: linear-gradient(180deg, var(--space-2), #0b1020);
  border-radius: 40px; position: relative; overflow: hidden;
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255,217,140,.18), 0 0 0 10px #05060f, 0 0 0 12px #1c2340;
  display: flex; flex-direction: column;
}
.notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 120px; height: 26px; background: #05060f; border-radius: 16px; z-index: 60; }
.statusbar { height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; font-size: 13px; color: var(--cream); opacity: .85; flex-shrink: 0; }
.screen { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; -webkit-overflow-scrolling: touch; }
.screen::-webkit-scrollbar { width: 0; }

/* ---- 通用 UI ---- */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11px; line-height: 1.6; }
.btn {
  font-family: var(--font-body); font-size: 14px; border: none; cursor: pointer;
  padding: 11px 18px; border-radius: 14px; font-weight: 600;
  background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #4a3510;
  box-shadow: 0 8px 22px rgba(255,201,102,.32); transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(.96); }
.btn.ghost { background: rgba(255,217,140,.08); color: var(--gold); box-shadow: none; border: 1px solid var(--line); }
.btn.small { padding: 7px 13px; font-size: 12.5px; border-radius: 11px; }

.card { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 26px rgba(0,0,0,.28); }

/* 顶部返回条 */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: linear-gradient(180deg, rgba(13,18,38,.96), rgba(13,18,38,.72)); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.iconbtn { width: 34px; height: 34px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--cream); font-size: 16px; cursor: pointer; display: grid; place-items: center; }

a.home-link { position: fixed; top: 14px; left: 16px; z-index: 200; text-decoration: none; color: var(--gold); font-size: 13px; background: rgba(10,14,28,.72); border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; backdrop-filter: blur(6px); }
a.home-link:hover { background: rgba(255,217,140,.1); }

.caption { color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.hint-band { max-width: 392px; margin: 14px auto 0; text-align: center; color: var(--cream-dim); font-size: 12.5px; line-height: 1.75; opacity: .85; padding: 0 8px; }

/* 淡入 */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
.fade-up { animation: fadeUp .45s ease both; }
