/* ===== 站点壳(非播放器页共用):页头 = 品牌 + 主导航 + 右侧槽位;页脚 =====
   设计变量集中在 :root,后续主题/品牌调整只改这里。 */
:root {
  --bg: #0d0d0d; --fg: #eee; --line: #262626; --muted: #8a8a8a;
  --accent: #4a9eff; --pro: #ffcf40; --card: #161616;
}
.app-hdr {
  display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap;
  margin: 0 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.app-brand {
  display: flex; align-items: baseline; gap: 8px; color: var(--fg); text-decoration: none;
  font-size: 17px; font-weight: 600; white-space: nowrap;
}
.app-brand small { font-size: 11px; font-weight: 400; opacity: 0.4; letter-spacing: 0.2px; }
.app-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.app-nav::-webkit-scrollbar { display: none; }
.app-nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; padding: 6px 10px;
  border-radius: 6px; white-space: nowrap; transition: color 0.12s, background 0.12s;
}
.app-nav a:hover { color: #fff; background: #161616; }
.app-nav a.on { color: #fff; font-weight: 600; background: #1a1a1a; }
.app-nav a.pro { color: var(--pro); }
.app-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.app-right .lang-select, .app-right select {
  background: #1a1a1a; color: var(--fg); border: 1px solid #444; border-radius: 6px;
  padding: 6px 10px; font-size: 13px; cursor: pointer;
}
body.static .app-nav, body.static .app-plus { display: none; }   /* 无后端(纯静态)时没有市场/创作/Pro/导入 */
/* ＋ 菜单:导入/上传入口收进页头 */
.app-plus { position: relative; }
.app-plus-btn {
  width: 30px; height: 30px; border-radius: 8px; background: #1a2a20; border: 1px solid #2f4a3a;
  color: #bfffd8; font-size: 18px; line-height: 1; cursor: pointer; padding: 0;
}
.app-plus-btn:hover { background: #22382b; }
.app-menu {
  position: absolute; right: 0; top: 36px; min-width: 230px; background: #161616; border: 1px solid #2a2a2a;
  border-radius: 10px; padding: 6px; z-index: 60; box-shadow: 0 10px 28px rgba(0,0,0,0.55);
}
.app-menu a {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 6px;
  color: var(--fg); text-decoration: none; font-size: 13px; white-space: nowrap;
}
.app-menu a:hover { background: #222; }
.app-menu em { margin-left: auto; padding-left: 12px; font-style: normal; font-size: 11px; opacity: 0.5; }
[dir="rtl"] .app-menu { right: auto; left: 0; }
.app-menu-head { padding: 8px 10px 10px; border-bottom: 1px solid #262626; margin-bottom: 4px; display: flex; flex-direction: column; gap: 2px; }
.app-menu-head b { font-size: 14px; }
.app-menu-head small { font-size: 11px; opacity: 0.5; }
/* 账号区:登录按钮 / 头像 */
.app-login {
  background: #1a1a1a; color: var(--fg); border: 1px solid #3a3a3a; border-radius: 8px;
  padding: 6px 12px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.app-login:hover { border-color: var(--accent); color: #fff; }
.app-avatar {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid #3a6ea5; background: #21354d;
  color: #cfe3ff; font-size: 13px; font-weight: 600; cursor: pointer; padding: 0;
}
/* 弹层(登录) */
.app-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.app-modal-card { position: relative; width: 100%; max-width: 380px; background: #161616; border: 1px solid #2a2a2a; border-radius: 12px; padding: 22px 20px 18px; }
.app-modal-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.app-modal-hint { margin: 0 0 14px; font-size: 12px; opacity: 0.55; line-height: 1.6; }
.app-modal-card form { display: flex; gap: 8px; }
.app-modal-card input { flex: 1; min-width: 0; background: #0d0d0d; color: var(--fg); border: 1px solid #444; border-radius: 8px; padding: 9px 12px; font-size: 14px; }
.app-modal-card input:focus { outline: none; border-color: var(--accent); }
.app-modal-card button[type=submit] { background: #2a6a4a; color: #bfffd8; border: 1px solid #3a8a5f; border-radius: 8px; padding: 9px 14px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.app-modal-card button:disabled { opacity: 0.6; cursor: default; }
.app-modal-x { position: absolute; top: 10px; right: 12px; background: none; border: none; color: #777; font-size: 14px; cursor: pointer; }
.app-ts { margin-top: 12px; min-height: 0; }
.app-ts:empty { display: none; }
.app-modal-msg { margin-top: 12px; font-size: 12px; min-height: 16px; opacity: 0.8; }
.app-modal-msg.ok { color: #7fdca0; }
.app-foot {
  margin: 48px 0 0; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12px; opacity: 0.45; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
}
.app-foot a { color: inherit; text-decoration: none; }
.app-foot a:hover { color: #fff; }
@media (max-width: 700px) {
  .app-hdr { gap: 8px 10px; margin-bottom: 14px; padding-bottom: 8px; }
  .app-brand { font-size: 15px; }
  .app-brand small { display: none; }
  .app-nav { order: 3; flex-basis: 100%; margin: 0 -14px; padding: 0 10px; }
  .app-nav a { font-size: 13px; padding: 5px 8px; }
  .app-right .lang-select, .app-right select { padding: 4px 6px; font-size: 12px; }
  .app-menu { right: auto; left: 0; }   /* 手机上 ＋ 在账号行最左,菜单向右展开 */
}
[dir="rtl"] .app-right { margin-left: 0; margin-right: auto; }
