/* 两个版本共用：App 内容区样式 */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow: hidden; user-select: none;
  /* 壁纸：换成图片可写 background: url(../assets/wallpaper.jpg) center/cover; */
  background: radial-gradient(120% 80% at 15% 10%, #ff9a8b 0%, transparent 55%),
              radial-gradient(90% 70% at 90% 30%, #7f7fd5 0%, transparent 60%),
              radial-gradient(100% 90% at 50% 100%, #2b5876 0%, transparent 70%), #1d1b38;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.tile { display: inline-grid; place-items: center; color: #fff; border-radius: 22.5%; flex: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 6px rgba(0,0,0,.18); }
.tile svg { width: 58%; height: 58%; }
.avatar-fallback { display: inline-grid; place-items: center; color: #fff; font-weight: 900;
  background: linear-gradient(140deg, #ff9a8b, #7f7fd5); }

/* 终端 */
.term { height: 100%; display: flex; flex-direction: column; background: #16161a; color: #e6e6e6;
  font: 13px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; user-select: text; }
.term-out { flex: 0 1 auto; min-height: 0; overflow-y: auto; padding: 14px 16px 4px; }
.term-out pre { margin: 0 0 10px; white-space: pre-wrap; color: #bdbdc7; font: inherit; }
.term-ps { color: #7ee07a; }
.term-line { display: flex; gap: 8px; padding: 0 16px 10px; margin-bottom: auto; }
.term-line input { flex: 1; background: none; border: 0; outline: 0; color: #fff; font: inherit; }
.term-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 14px; border-top: 1px solid #2a2a30; }
.term-chips button { padding: 4px 10px; border-radius: 999px; background: #26262c; color: #cfcfd6; font-size: 12px; }

/* 作品卡片 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; padding: 16px; }
.card { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 10px; border-radius: 16px;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: transform .2s; }
.card:active, .card:hover { transform: translateY(-2px); }
.card b { font-size: 15px; }
.card-desc { font-size: 12px; color: #6e6e73; }
.card-tag { align-self: flex-start; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #eef3ff; color: #1e74e8; }
.cover { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.cover-empty { display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px;
  background: linear-gradient(140deg, #a1c4fd, #c2a3f5); }

/* 详情 / 播放 */
.detail { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.detail h2 { margin: 0; } .detail p { margin: 0; color: #444; line-height: 1.7; user-select: text; }
.btn { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 4px 16px 16px 0;
  padding: 9px 16px; border-radius: 999px; background: #1e74e8; color: #fff; font-size: 14px; }
.detail .btn { margin-left: 0; }
.btn svg { width: 15px; height: 15px; }
.player { padding: 16px 16px 6px; } .player + .btn { margin-left: 16px; }
.player iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; background: #000; }

/* 视频列表 */
.vlist { padding: 10px 16px; }
.vrow { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 10px 0; border-bottom: 1px solid #ececf0; }
.vrow .cover { width: 120px; margin: 0; flex: none; }
.vrow b { display: block; font-size: 14px; } .vrow small { color: #8e8e93; }

/* 联系 */
.contact { padding: 24px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.contact-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; font-size: 34px; }
.contact h2 { margin: 6px 0 0; } .contact > p { margin: 0 0 10px; color: #6e6e73; font-size: 13px; }
.contact .row { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 420px; padding: 10px 12px;
  border-radius: 14px; background: #fff; text-align: left; }
.contact .row .tile { width: 32px; height: 32px; }

/* 二维码弹层 */
.qr-overlay { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: rgba(0,0,0,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade .2s; }
.qr-card { width: min(300px, 86vw); padding: 22px; border-radius: 24px; background: #fff; color: #111; text-align: center; animation: pop .28s cubic-bezier(.2,.9,.2,1.2); }
.qr-tile { width: 48px; height: 48px; } .qr-card h3 { margin: 10px 0; }
.qr-card img, .qr-empty { width: 100%; aspect-ratio: 1; border-radius: 12px; object-fit: contain; }
.qr-empty { display: grid; place-items: center; background: #f2f2f7; color: #8e8e93; font-size: 13px; padding: 20px; }
.qr-card p { color: #6e6e73; font-size: 13px; }
.qr-card button { width: 100%; padding: 10px; border-radius: 12px; background: #f2f2f7; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
