/* 妖精AI / YAOJI — 黑底深色、大圆角卡片、橙红渐变主按钮 + 粉色储值按钮 */
:root {
  --bg: #0a0a0f;
  --surface: #16161f;
  --surface2: #1e1e2b;
  --border: #262633;
  --text: #f2f2f7;
  --muted: #9a9aad;
  --grad: linear-gradient(135deg, #ff5a3c, #ff2d78);
  --pink: #ff2d78;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

.topnav { position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between;
  align-items: center; padding: 12px 20px; background: rgba(10,10,15,.92);
  border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo { width: 36px; height: 36px; border-radius: 12px; background: var(--grad);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; }
.brand-name { font-weight: 700; font-size: 18px; }
.brand-name em { font-style: normal; color: var(--muted); font-size: 12px; letter-spacing: 2px; }
.nav-item { color: var(--muted); margin-left: 14px; font-size: 15px; }
.nav-item.active { color: var(--text); }
.top-right { display: flex; align-items: center; gap: 10px; }
.icon-btn { background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 12px; }
.coins { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 12px; }
.btn-pink { background: var(--pink); color: #fff; border: 0; border-radius: 999px; padding: 9px 20px; font-weight: 700; }
.btn-grad { background: var(--grad); color: #fff; border: 0; border-radius: 999px; padding: 12px 28px; font-weight: 700; font-size: 16px; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px; }
.btn-block { width: 100%; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad);
  display: flex; align-items: center; justify-content: center; font-weight: 700; cursor: pointer; }

main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 110px; }
.hero { border-radius: 24px; padding: 36px 28px; margin-bottom: 20px;
  background: linear-gradient(135deg, #2b0f2e, #3d1420 55%, #1c1030); border: 1px solid var(--border); }
.hero h1 { margin: 0 0 10px; font-size: 30px; }
.hero p { color: var(--muted); margin: 0 0 18px; line-height: 1.7; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.tab, .chip { background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  border-radius: 999px; padding: 8px 16px; }
.tab.active, .chip.active { background: var(--grad); color: #fff; border-color: transparent; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.card-body { padding: 12px 14px; }
.card-body h3 { margin: 0 0 6px; font-size: 15px; }
.card-body .meta { color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; }
.card-body .btn-grad { width: 100%; padding: 9px 0; margin-top: 10px; font-size: 14px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; margin-bottom: 16px; }
.panel h2 { margin: 0 0 14px; font-size: 19px; }
label { display: block; margin: 12px 0 6px; color: var(--muted); font-size: 14px; }
input[type=text], input[type=password], textarea, select {
  width: 100%; box-sizing: border-box; background: #0f0f18; border: 1px solid #2c2c3d;
  color: var(--text); border-radius: 12px; padding: 12px; font-size: 15px; font-family: inherit; }
textarea { min-height: 110px; resize: vertical; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-q { background: #0f0f18; border: 1px solid #2c2c3d; border-radius: 12px; padding: 12px 16px; font-weight: 700; }
.link { color: #ff7a9e; }
.muted { color: var(--muted); }
.result img, .result video { width: 100%; max-width: 560px; border-radius: 18px; display: block; margin-top: 12px; }
.dropzone { border: 2px dashed #3a3a55; border-radius: 20px; padding: 36px 20px; text-align: center; color: var(--muted); cursor: pointer; }
.dropzone img { max-width: 100%; max-height: 320px; border-radius: 14px; margin-top: 10px; }
.model-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.model-pick label { border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; margin: 0; cursor: pointer; color: var(--text); }
.model-pick input { accent-color: #ff2d78; }
.pkg { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pkg .card-body { text-align: center; }
.pkg .price { font-size: 22px; font-weight: 800; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
td, th { padding: 9px 6px; border-bottom: 1px solid var(--border); text-align: left; }
th { color: var(--muted); }
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex;
  background: rgba(10,10,15,.95); border-top: 1px solid var(--border); padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); }
.bottomnav a { flex: 1; text-align: center; color: var(--muted); font-size: 13px; padding: 6px 0; }
.bottomnav a.active { color: #ff5a7a; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: #23233a;
  border: 1px solid var(--border); padding: 12px 20px; border-radius: 999px; display: none; z-index: 99; max-width: 90vw; }
@media (min-width: 761px) { .bottomnav { display: none; } }
@media (max-width: 760px) { .nav-item { display: none; } .hero h1 { font-size: 24px; } }
