/* ===== AI编导 · 全局样式 ===== */
:root {
  --bg: #0a0a12;
  --bg-soft: #12121c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --text: #f2f2f7;
  --text-dim: #a0a0b0;
  --text-faint: #6a6a7a;
  --accent: #ff6b35;
  --accent-2: #7c5cff;
  --accent-grad: linear-gradient(120deg, #ff6b35, #ff3d77 55%, #7c5cff);
  --ok: #2ecc71;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
}
[data-theme="light"] {
  --bg: #f4f5fa;
  --bg-soft: #ffffff;
  --surface: rgba(20, 20, 40, 0.03);
  --surface-2: rgba(20, 20, 40, 0.06);
  --border: rgba(20, 20, 40, 0.10);
  --text: #14142a;
  --text-dim: #5a5a72;
  --text-faint: #9a9ab0;
  --shadow: 0 20px 50px rgba(60, 60, 120, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.3s ease;
}
.hidden { display: none !important; }

/* 背景极光 */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora-blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35;
  animation: float 18s ease-in-out infinite;
}
.b1 { width: 480px; height: 480px; background: #ff6b35; top: -120px; left: -80px; }
.b2 { width: 420px; height: 420px; background: #7c5cff; bottom: -120px; right: -60px; animation-delay: -6s; }
.b3 { width: 360px; height: 360px; background: #ff3d77; top: 40%; left: 55%; animation-delay: -12s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
}

#app { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 18px 80px; }

/* 顶栏 */
.topbar {
  position: sticky; top: 12px; z-index: 50; margin-top: 12px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-radius: var(--radius); gap: 14px;
}
.glass {
  background: var(--surface);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.brand-logo { font-size: 22px; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: font; }
.brand-sub { font-size: 11px; color: var(--text-faint); margin-left: 4px; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-link {
  background: transparent; border: none; color: var(--text-dim);
  padding: 8px 14px; border-radius: 12px; cursor: pointer; font-size: 14px;
  transition: all 0.25s ease; font-weight: 600;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: #fff; background: var(--accent-grad); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; font-size: 16px;
  transition: transform 0.2s ease;
}
.icon-btn:hover { transform: scale(1.08) rotate(-8deg); }
.user-chip {
  font-size: 12px; color: var(--text-dim); padding: 6px 12px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
}

/* 通用 */
.view { animation: fadeUp 0.5s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; backdrop-filter: blur(14px); transition: transform 0.25s ease, border-color 0.25s;
}
.card:hover { border-color: var(--accent); }
.gradient-text {
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-weight: 700; cursor: pointer;
  font-size: 15px; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); text-decoration: none;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn-primary {
  background: var(--accent-grad); color: #fff; border: none;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.35);
}
.btn-primary:hover { box-shadow: 0 16px 40px rgba(255, 107, 53, 0.5); }
.btn-ghost { background: transparent; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* 表单 */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; font-weight: 600; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--text); font-size: 14px; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.18);
}
.textarea { min-height: 84px; resize: vertical; }

/* 行业卡片网格 */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.ind-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 12px; text-align: center; cursor: pointer; transition: all 0.25s ease;
}
.ind-card:hover { transform: translateY(-4px) scale(1.02); border-color: var(--accent); }
.ind-card.selected { border-color: var(--accent); background: linear-gradient(160deg, rgba(255,107,53,0.16), rgba(124,92,255,0.10)); box-shadow: 0 10px 30px rgba(255,107,53,0.25); }
.ind-card .ico { font-size: 32px; }
.ind-ico-img { width: 46px; height: 46px; object-fit: contain; margin: 0 auto; display: block; filter: drop-shadow(0 4px 10px rgba(255,107,53,0.25)); transition: transform 0.25s ease; }
.ind-card:hover .ind-ico-img { transform: scale(1.1) translateY(-2px); }
.brand-logo-img { width: 27px; height: 27px; object-fit: contain; display: block; }
.ind-card .nm { font-weight: 700; margin-top: 6px; font-size: 14px; }
.ind-card .tg { font-size: 11px; color: var(--text-faint); margin-top: 3px; }

/* 步骤指示 */
.steps { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.step-dot { flex: 1; min-width: 90px; text-align: center; font-size: 12px; color: var(--text-faint); padding: 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.step-dot.active { color: #fff; background: var(--accent-grad); border: none; }
.step-dot.done { color: var(--ok); border-color: var(--ok); }

/* 每日任务 */
.task-hero { border-radius: var(--radius); padding: 26px; background: linear-gradient(150deg, rgba(255,107,53,0.18), rgba(124,92,255,0.12)); border: 1px solid var(--border); }
.tabs { display: flex; gap: 8px; margin: 20px 0; flex-wrap: wrap; }
.tab { padding: 9px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); cursor: pointer; font-weight: 600; font-size: 13px; }
.tab.active { color: #fff; background: var(--accent-grad); border: none; }

/* 表格 */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { border: 1px solid var(--border); padding: 9px 10px; text-align: left; vertical-align: top; }
.tbl th { background: var(--surface-2); color: var(--text-dim); font-weight: 700; }
.tbl tr:nth-child(even) td { background: var(--surface); }

/* 拆解结果 */
.shot-row { display: grid; grid-template-columns: 50px 70px 70px 90px 1fr; gap: 8px; padding: 10px; border-bottom: 1px solid var(--border); font-size: 13px; }
.shot-row .badge { background: var(--accent-grad); color: #fff; border-radius: 8px; padding: 2px 6px; font-size: 11px; text-align: center; }

/* 加载 */
.loader { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); z-index: 999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.loader p { color: #fff; font-size: 14px; }
.spinner { width: 46px; height: 46px; border: 4px solid rgba(255,255,255,0.15); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 工具类 */
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 12px; }
.mt { margin-top: 18px; } .mb { margin-bottom: 18px; }
.center { text-align: center; }
.dim { color: var(--text-dim); } .faint { color: var(--text-faint); }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; color: var(--text-dim); }
.tag-sel { background: var(--accent-grad); color: #fff; border: none; }
.h1 { font-size: 30px; font-weight: 800; } .h2 { font-size: 22px; font-weight: 800; } .h3 { font-size: 17px; font-weight: 700; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .brand-sub { display: none; }
  .shot-row { grid-template-columns: 40px 60px 60px 1fr; }
}
