/* ===== 剪辑师×客户对接平台 · 样式系统 ===== */
:root {
  --bg: #0d1117;
  --bg-soft: #151b24;
  --panel: #1a222d;
  --panel-2: #212b38;
  --line: #2b3644;
  --line-soft: #232d3a;
  --text: #e6edf3;
  --text-soft: #9aa7b4;
  --text-dim: #6b7787;
  --brand: #5b8cff;
  --brand-soft: #3d6fe0;
  --brand-glow: rgba(91, 140, 255, 0.16);
  --gold: #e0b354;
  --green: #3fb96f;
  --red: #f0616d;
  --orange: #e8974a;
  --purple: #a97bff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.34);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.35; font-weight: 650; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }
p { margin: 0 0 12px; }

code, .mono { font-family: var(--mono); font-size: 13px; }

/* ---------- 布局 ---------- */
#app { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1440px; }
.grow { flex: 1; }
.row { display: flex; gap: 14px; }
.row-wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 14px; }
.between { justify-content: space-between; align-items: center; }
.center { align-items: center; justify-content: center; }
.mt { margin-top: 16px; }
.mt-sm { margin-top: 8px; }
.mb { margin-bottom: 16px; }
.muted { color: var(--text-soft); }
.dim { color: var(--text-dim); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.bold { font-weight: 600; }
.center-text { text-align: center; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 22px; height: 62px; }
.logo {
  font-size: 18px; font-weight: 700; letter-spacing: -0.2px;
  color: var(--text); display: flex; align-items: center; gap: 9px; cursor: pointer;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--purple));
  display: grid; place-items: center; font-size: 14px; font-weight: 800; color: #fff;
}
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-link {
  padding: 7px 13px; border-radius: var(--radius-sm); color: var(--text-soft);
  font-size: 14px; cursor: pointer; border: none; background: none; font-family: inherit;
}
.nav-link:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.nav-link.active { color: var(--text); background: var(--panel-2); font-weight: 600; }
.nav-user { display: flex; align-items: center; gap: 12px; }
.nav-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--brand-soft), var(--purple));
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff;
}

/* ---------- 卡片与面板 ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.card-soft { background: var(--bg-soft); }
.card-hover { transition: border-color .18s, transform .18s; }
.card-hover:hover { border-color: #3a4a5e; transform: translateY(-2px); }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft);
}
.card-title { font-size: 16px; font-weight: 650; margin: 0; }
.section { padding: 44px 0; }
.section-head { margin-bottom: 26px; }
.section-title { font-size: 24px; margin: 0 0 6px; }
.section-sub { color: var(--text-soft); margin: 0; font-size: 14.5px; }
.divider { height: 1px; background: var(--line-soft); margin: 18px 0; border: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 17px; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: var(--panel-2); color: var(--text); font-size: 14px; font-weight: 550;
  font-family: inherit; cursor: pointer; transition: background .15s, border-color .15s, opacity .15s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { background: #2a3543; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #6b98ff; }
.btn-gold { background: var(--gold); color: #231a05; }
.btn-gold:hover { background: #eec26a; }
.btn-danger { background: transparent; border-color: #5c2b31; color: var(--red); }
.btn-danger:hover { background: #2a1a1d; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text-soft); }
.btn-ghost:hover { background: var(--panel-2); color: var(--text); }
.btn-sm { padding: 5px 11px; font-size: 13px; }
.btn-lg { padding: 12px 26px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn-group { display: flex; gap: 9px; flex-wrap: wrap; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 15px; }
.label { display: block; font-size: 13px; color: var(--text-soft); margin-bottom: 6px; font-weight: 550; }
.label .req { color: var(--red); margin-left: 3px; }
.input, .select, .textarea {
  width: 100%; padding: 9px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--text);
  font-size: 14px; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow);
}
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.select { cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-soft) 50%), linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px;
}
.hint { font-size: 12.5px; color: var(--text-dim); margin-top: 5px; }
.hint-err { color: var(--red); }
.checkline { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--text-soft); cursor: pointer; }
.checkline input { margin-top: 3px; flex: none; accent-color: var(--brand); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 13px; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px;
  border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.7;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text-soft);
  white-space: nowrap;
}
.tag-brand { background: var(--brand-glow); border-color: #33518f; color: #a9c4ff; }
.tag-gold { background: rgba(224, 179, 84, .13); border-color: #6b5526; color: var(--gold); }
.tag-green { background: rgba(63, 185, 111, .13); border-color: #2c5e41; color: #6ed79a; }
.tag-red { background: rgba(240, 97, 109, .13); border-color: #6b2c33; color: #ff99a2; }
.tag-orange { background: rgba(232, 151, 74, .13); border-color: #6b4a26; color: #f5b678; }
.tag-purple { background: rgba(169, 123, 255, .13); border-color: #4d3a78; color: #c6a6ff; }
.tag-dim { background: var(--bg-soft); color: var(--text-dim); }

/* ---------- 状态点 ---------- */
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.dot-on { background: var(--green); box-shadow: 0 0 0 3px rgba(63, 185, 111, .16); }
.dot-off { background: var(--text-dim); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.table th {
  text-align: left; padding: 11px 14px; background: var(--bg-soft);
  color: var(--text-soft); font-weight: 600; font-size: 12.5px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.table td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.table tr:last-child td { border-bottom: none; }
table.table tbody tr:hover { background: rgba(255, 255, 255, .022); }
.num { font-family: var(--mono); font-size: 13px; }
.money { font-family: var(--mono); font-weight: 650; }
.money-pos { color: #6ed79a; }

/* ---------- 统计卡 ---------- */
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 17px 19px; }
.stat-label { font-size: 12.5px; color: var(--text-dim); margin-bottom: 7px; }
.stat-value { font-size: 26px; font-weight: 700; line-height: 1.1; font-family: var(--mono); }
.stat-sub { font-size: 12px; color: var(--text-dim); margin-top: 5px; }

/* ---------- 提示条 ---------- */
.alert {
  padding: 12px 15px; border-radius: var(--radius-sm); font-size: 13.5px;
  border: 1px solid var(--line); background: var(--panel-2); margin-bottom: 15px;
  display: flex; gap: 10px; align-items: flex-start; line-height: 1.6;
}
.alert-warn { border-color: #6b5526; background: rgba(224, 179, 84, .1); color: #f0d199; }
.alert-err { border-color: #6b2c33; background: rgba(240, 97, 109, .1); color: #ffa8b0; }
.alert-ok { border-color: #2c5e41; background: rgba(63, 185, 111, .1); color: #8ee0ae; }
.alert-info { border-color: #33518f; background: var(--brand-glow); color: #b4ccff; }
.alert-icon { flex: none; font-weight: 700; }

/* ---------- 首页 Hero ---------- */
.hero {
  padding: 76px 0 62px;
  background:
    radial-gradient(900px 380px at 18% -8%, rgba(91, 140, 255, .17), transparent 62%),
    radial-gradient(700px 320px at 88% 4%, rgba(169, 123, 255, .13), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.hero-title { font-size: 42px; line-height: 1.22; letter-spacing: -0.6px; margin: 0 0 16px; max-width: 760px; }
.hero-sub { font-size: 16.5px; color: var(--text-soft); max-width: 640px; margin: 0 0 30px; }
.hero-grad {
  background: linear-gradient(100deg, var(--brand), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 档位卡 ---------- */
.tier-card { position: relative; overflow: hidden; }
.tier-card.tier-chief { border-color: #6b5526; }
.tier-card.tier-chief::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(420px 160px at 50% -20%, rgba(224, 179, 84, .13), transparent 70%);
  pointer-events: none;
}
.tier-price { font-size: 25px; font-weight: 700; font-family: var(--mono); margin: 4px 0 2px; }
.tier-list { list-style: none; padding: 0; margin: 14px 0 0; }
.tier-list li { padding: 6px 0 6px 22px; position: relative; font-size: 13.5px; color: var(--text-soft); line-height: 1.55; }
.tier-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---------- 案例卡 ---------- */
.case-card { display: flex; flex-direction: column; height: 100%; }
.case-cover {
  height: 132px; border-radius: var(--radius-sm); margin-bottom: 14px;
  background: linear-gradient(135deg, #243040, #1b2431); border: 1px solid var(--line-soft);
  display: grid; place-items: center; font-size: 30px; color: #3d4c60;
}
.case-title { font-size: 15.5px; font-weight: 650; margin: 0 0 7px; line-height: 1.45; }
.case-sum { font-size: 13.5px; color: var(--text-soft); margin: 0; flex: 1; line-height: 1.6; }
.case-body { white-space: pre-wrap; font-size: 14px; line-height: 1.75; color: var(--text-soft); }

/* ---------- 步骤条 ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step-no {
  width: 30px; height: 30px; border-radius: 9px; background: var(--brand-glow);
  color: #a9c4ff; display: grid; place-items: center; font-weight: 700; font-size: 14px; margin-bottom: 11px;
  border: 1px solid #33518f;
}

/* ---------- 聊天 ---------- */
.chat-wrap { display: flex; flex-direction: column; height: calc(100vh - 250px); min-height: 420px; }
.chat-log { flex: 1; overflow-y: auto; padding: 4px 2px; display: flex; flex-direction: column; gap: 11px; }
.msg { display: flex; gap: 9px; max-width: 78%; }
.msg.self { align-self: flex-end; flex-direction: row-reverse; }
.msg-bubble {
  padding: 9px 13px; border-radius: 13px; background: var(--panel-2);
  border: 1px solid var(--line-soft); font-size: 14px; line-height: 1.6; word-break: break-word;
}
.msg.self .msg-bubble { background: var(--brand-soft); border-color: #3d6fe0; color: #fff; }
.msg-meta { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.msg-attach {
  display: flex; align-items: center; gap: 8px; margin-top: 7px; padding: 7px 10px;
  background: rgba(0, 0, 0, .18); border-radius: var(--radius-sm); font-size: 12.5px;
}
.chat-input { display: flex; gap: 9px; padding-top: 13px; border-top: 1px solid var(--line-soft); margin-top: 13px; }
.chat-input .textarea { min-height: 46px; max-height: 130px; }

/* ---------- 时间轴 ---------- */
.timeline { list-style: none; padding: 0 0 0 20px; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px 16px; font-size: 13.5px; }
.timeline li::before {
  content: ''; position: absolute; left: -26px; top: 5px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--brand); border: 2px solid var(--bg);
}
.timeline .t-time { color: var(--text-dim); font-size: 12px; font-family: var(--mono); }

/* ---------- 侧栏布局（工作台） ---------- */
.layout { display: grid; grid-template-columns: 216px 1fr; gap: 22px; align-items: start; }
.sidebar { position: sticky; top: 78px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-link {
  padding: 9px 13px; border-radius: var(--radius-sm); color: var(--text-soft);
  font-size: 14px; cursor: pointer; border: none; background: none; text-align: left;
  font-family: inherit; display: flex; align-items: center; gap: 9px;
}
.side-link:hover { background: var(--panel-2); color: var(--text); }
.side-link.active { background: var(--brand-glow); color: #b4ccff; font-weight: 600; }
.side-badge {
  margin-left: auto; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- 登录双板块 ---------- */
.role-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.role-card {
  padding: 26px 22px; border-radius: var(--radius); border: 2px solid var(--line);
  background: var(--panel); cursor: pointer; text-align: center; transition: all .18s;
}
.role-card:hover { border-color: #3a4a5e; transform: translateY(-2px); }
.role-card.sel { border-color: var(--brand); background: linear-gradient(180deg, var(--brand-glow), transparent 62%); }
.role-icon { font-size: 32px; margin-bottom: 10px; }
.role-name { font-size: 17px; font-weight: 650; margin-bottom: 5px; }
.role-desc { font-size: 13px; color: var(--text-soft); margin: 0; }

.auth-wrap { max-width: 452px; margin: 44px auto; }

/* ---------- 模态框 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .62); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(3px);
}
.modal {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  width: 100%; max-width: 540px; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow);
}
.modal-lg { max-width: 780px; }
.modal-head {
  padding: 17px 21px; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: sticky; top: 0; background: var(--panel); z-index: 2;
}
.modal-body { padding: 21px; }
.modal-foot { padding: 15px 21px; border-top: 1px solid var(--line-soft); display: flex; gap: 9px; justify-content: flex-end; }
.modal-x { background: none; border: none; color: var(--text-dim); font-size: 21px; cursor: pointer; padding: 0 4px; line-height: 1; }
.modal-x:hover { color: var(--text); }

/* ---------- Toast ---------- */
#toasts { position: fixed; top: 16px; right: 16px; z-index: 300; display: flex; flex-direction: column; gap: 9px; max-width: 372px; }
.toast {
  padding: 12px 15px; border-radius: var(--radius-sm); background: var(--panel-2);
  border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13.5px;
  animation: slideIn .22s ease-out; line-height: 1.55;
}
.toast-ok { border-color: #2c5e41; background: #16281e; }
.toast-err { border-color: #6b2c33; background: #2a1a1d; }
.toast-warn { border-color: #6b5526; background: #2a2216; }
.toast-title { font-weight: 650; margin-bottom: 3px; }
@keyframes slideIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

/* ---------- 空态 / 加载 ---------- */
.empty { padding: 46px 20px; text-align: center; color: var(--text-dim); }
.empty-icon { font-size: 34px; margin-bottom: 11px; opacity: .5; }
.spinner {
  width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%; animation: spin .7s linear infinite; margin: 32px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); height: 17px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0; margin-top: 44px; background: var(--bg-soft); }
.footer-inner { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); }

/* ---------- 进度条 ---------- */
.bar { height: 6px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--purple)); border-radius: 999px; transition: width .3s; }
.bar-gold .bar-fill { background: linear-gradient(90deg, var(--gold), #f0d199); }

/* ---------- 上传 ---------- */
.upload-box {
  border: 1.5px dashed var(--line); border-radius: var(--radius-sm); padding: 20px;
  text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.upload-box:hover { border-color: var(--brand); background: var(--brand-glow); }
.file-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 11px;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 7px;
}
.file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 页签 ---------- */
.tabs { display: flex; gap: 3px; border-bottom: 1px solid var(--line); margin-bottom: 19px; overflow-x: auto; }
.tab {
  padding: 9px 15px; border: none; background: none; color: var(--text-dim);
  font-size: 14px; cursor: pointer; font-family: inherit; border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap;
}
.tab:hover { color: var(--text-soft); }
.tab.active { color: var(--text); border-bottom-color: var(--brand); font-weight: 600; }

/* ---------- 工具条 ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 17px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 148px; }

/* ---------- 通知铃 ---------- */
.bell { position: relative; background: none; border: none; color: var(--text-soft); font-size: 18px; cursor: pointer; padding: 5px; }
.bell:hover { color: var(--text); }
.bell-badge {
  position: absolute; top: 1px; right: 1px; min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
}
.notice-list { max-height: 320px; overflow-y: auto; }
.notice-item { padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.notice-item:last-child { border-bottom: none; }
.notice-title { font-weight: 600; margin-bottom: 3px; }

/* ---------- 响应式 ---------- */
@media (max-width: 940px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .side-nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .side-link { white-space: nowrap; }
  .hero-title { font-size: 31px; }
  .role-split { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 14px; }
  .nav-inner { gap: 12px; }
  .nav-links { overflow-x: auto; }
  .hero { padding: 46px 0 40px; }
  .hero-title { font-size: 26px; }
  .section { padding: 30px 0; }
  .msg { max-width: 92%; }
}
