/* Moran Studio V1.0 P0 — 深色电影工业风，优先安卓浏览器 */
:root {
  --bg: #0b0e13;
  --panel: #141a22;
  --panel2: #1a212b;
  --border: #26303d;
  --text: #e8e6e1;
  --muted: #9aa4b2;
  --accent: #e8a33d;
  --accent-dim: #8a6420;
  --ok: #4caf7d;
  --bad: #e5534b;
  --info: #5b9bd5;
  --radius: 12px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px; line-height: 1.55;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}
h1 { font-size: 20px; margin: 0 0 4px; }
h2 { font-size: 16px; margin: 18px 0 8px; }
h3 { font-size: 14px; margin: 14px 0 6px; color: var(--muted); }
p { margin: 6px 0; }
a { color: var(--accent); }
.muted { color: var(--muted); font-size: 13px; }
.small { font-size: 12px; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 14, 19, .92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
}
.topbar .logo { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.topbar .logo span { color: var(--accent); }
.topbar .right { margin-left: auto; font-size: 12px; color: var(--muted); }
.container { max-width: 720px; margin: 0 auto; padding: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 12px;
}
.card h2 { margin-top: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.space { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--panel2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.stat .num { font-size: 24px; font-weight: 700; }
.stat .lbl { font-size: 12px; color: var(--muted); }
button, .btn {
  min-height: 44px; padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--panel2);
  color: var(--text); font-size: 15px; cursor: pointer;
}
button:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #1a1206; font-weight: 700; }
.btn-danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
input, select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  background: #0e131a; border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: 15px;
}
textarea { min-height: 120px; resize: vertical; }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: 12px; border: 1px solid var(--border); color: var(--muted);
}
.badge.ok { color: var(--ok); border-color: var(--ok); }
.badge.warn { color: var(--accent); border-color: var(--accent); }
.badge.bad { color: var(--bad); border-color: var(--bad); }
.badge.info { color: var(--info); border-color: var(--info); }
.progress { height: 8px; background: #0e131a; border-radius: 4px; overflow: hidden; margin: 8px 0; }
.progress > div { height: 100%; background: var(--accent); width: 0%; transition: width .2s; }
.list-item {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px;
  cursor: pointer;
}
.list-item:active { background: var(--panel2); }
.tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; }
.tabs button { min-height: 36px; padding: 6px 14px; white-space: nowrap; }
.tabs button.active { background: var(--accent); color: #1a1206; border-color: var(--accent); font-weight: 700; }
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(20, 26, 34, .97); border-top: 1px solid var(--border);
  display: flex; padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottomnav button {
  flex: 1; border: none; background: transparent; border-radius: 0;
  min-height: 60px; padding: 6px 0 8px; font-size: 12px; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.bottomnav button .ico { font-size: 20px; line-height: 1; }
.bottomnav button.active { color: var(--accent); font-weight: 700; }
.toast {
  position: fixed; left: 16px; right: 16px; bottom: 84px; z-index: 50;
  background: #222b37; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; font-size: 14px; box-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.toast.err { border-color: var(--bad); }
.asset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.asset-card { background: var(--panel2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.asset-card img, .asset-card video { width: 100%; height: 120px; object-fit: cover; display: block; background: #000; }
.asset-card .meta { padding: 8px 10px; font-size: 12px; }
.shot { border-left: 3px solid var(--accent); padding: 8px 10px; background: var(--panel2); border-radius: 0 8px 8px 0; margin-bottom: 8px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; word-break: break-all; }
.notice { border: 1px solid var(--accent); background: rgba(232,163,61,.08); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; }
.warnbox { border: 1px solid var(--bad); background: rgba(229,83,75,.08); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; }
.center { text-align: center; padding: 40px 16px; }

/* ============ 首页美化（2026-11-26）：hero、统计卡、存储条、任务行、登录页 ============
   只加样式，不改布局结构；所有 Vue 绑定、类名、API 路径均不受影响。
   无外部字体/图片/CDN，全部 CSS 渐变 + 系统字体。 */
h1 { letter-spacing: .5px; }

/* 区块小标题：琥珀竖条 */
h2.sec { display: flex; align-items: center; gap: 8px; }
h2.sec::before { content: ""; width: 3px; height: 15px; border-radius: 2px; background: var(--accent); flex: none; }

/* 卡片统一：1px 高光边 + 细腻阴影 */
.card, .stat, .list-item {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 4px 16px rgba(0,0,0,.32);
}

/* 主按钮：琥珀渐变 + 柔光 */
.btn-primary {
  background: linear-gradient(180deg, #f2b95e, #e8a33d);
  box-shadow: 0 4px 14px rgba(232,163,61,.28);
}

/* ---- 首页 hero ---- */
.hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 18px 14px; margin-bottom: 16px;
  background:
    radial-gradient(120% 150% at 88% -30%, rgba(232,163,61,.24), rgba(232,163,61,0) 55%),
    linear-gradient(160deg, #1b232e, #10151d 72%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 20px rgba(0,0,0,.35);
}
.hero-eyebrow { font-size: 12px; letter-spacing: 4px; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.hero-title { font-size: clamp(28px, 8.5vw, 38px); line-height: 1.15; font-weight: 800; letter-spacing: 1px; margin: 0; }
.grad {
  background: linear-gradient(92deg, #f6c453, #e8a33d 55%, #c07f1f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 8px 0 4px; color: var(--muted); font-size: 14px; }
.hero-meta { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

/* 胶片条（纯 CSS，无图片）：帧线 + 齿孔 */
.filmstrip {
  margin-top: 14px; height: 12px; border-radius: 3px; opacity: .55;
  background:
    repeating-linear-gradient(90deg, transparent 0 25px, rgba(255,255,255,.14) 25px 26px),
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(232,163,61,.45) 10px 14px, transparent 14px 26px),
    #0d1219;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* ---- 统计卡 ---- */
.stat {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, #1d2530, #131922 75%);
}
.stat::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%); opacity: .8;
}
.stat .num { font-size: 30px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat .lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat-ico { position: absolute; top: 10px; right: 12px; font-size: 18px; line-height: 1; color: var(--accent); opacity: .65; }

/* ---- 存储卡 ---- */
.storage-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.progress { height: 10px; }
.progress > div.low { background: linear-gradient(90deg, #3f9d6e, #4caf7d); }
.progress > div.mid { background: linear-gradient(90deg, #c07f1f, #e8a33d); }
.progress > div.hi { background: linear-gradient(90deg, #b3372f, #e5534b); }

/* ---- 任务行 ---- */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #6b7684; margin-right: 8px; vertical-align: 1px; flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 6px rgba(76,175,125,.7); }
.dot.bad { background: var(--bad); box-shadow: 0 0 6px rgba(229,83,75,.7); }
.dot.warn { background: var(--accent); box-shadow: 0 0 6px rgba(232,163,61,.7); }
.dot.info { background: var(--info); box-shadow: 0 0 6px rgba(91,155,213,.7); }
.task-row .task-time { color: #7c8794; }

/* 首页操作区：新建项目为主按钮，占满剩余宽度 */
.home-actions { margin-top: 14px; }
.home-actions .btn-primary { flex: 1; }

/* ---- 登录 / 安装页 ---- */
.auth-hero { text-align: center; padding: 26px 8px 10px; position: relative; overflow: hidden; }
.auth-hero::before {
  content: ""; position: absolute; left: -20%; right: -20%; top: -70px; height: 220px;
  background: radial-gradient(50% 100% at 50% 0, rgba(232,163,61,.20), rgba(232,163,61,0) 70%);
  pointer-events: none;
}
.auth-hero h1 { font-size: clamp(28px, 8.5vw, 36px); font-weight: 800; letter-spacing: 1px; position: relative; }
.auth-hero p { position: relative; }
.auth-hero .filmstrip { margin: 16px auto 0; max-width: 320px; position: relative; }
.auth-card { border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 30px rgba(0,0,0,.5); }

/* 窄屏（360px）微调 */
@media (max-width: 380px) {
  .hero { padding: 18px 14px 12px; }
  .stat .num { font-size: 26px; }
  .container { padding: 12px; }
}
