/* ============ 客户中心专属样式（叠加在 style.css 之上） ============ */

/* 注册：客户类型切换（企业 / 个人） */
.ctype-switch { display: flex; gap: 8px; }
.ctype {
  flex: 1; padding: 9px; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; font-weight: 600;
  background: var(--input-bg); color: var(--text-dim); border: 1px solid var(--stroke); transition: .15s; font-family: inherit;
}
.ctype:hover { color: var(--text); }
.ctype.on { background: rgba(59,130,246,.14); color: var(--cyan); border-color: var(--stroke-strong); }
.grp { display: flex; flex-direction: column; gap: 15px; }

.alt-login { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.alt-login a { font-size: 13px; color: var(--cyan, #22d3ee); text-decoration: none; }
.alt-login a:hover { text-decoration: underline; }
.auth-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.auth-foot .back-link { font-size: 12.5px; text-decoration: none; }
.auth-foot .back-link:hover { color: var(--text-strong); }
#auth-theme { width: 34px; height: 34px; }

/* 进度条 */
.progress { height: 7px; border-radius: 999px; background: var(--inset); overflow: hidden; margin-top: 12px; }
.progress-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--violet-2)); transition: width .4s; }

/* 项目卡片 */
.proj-card { cursor: pointer; transition: .18s; display: flex; flex-direction: column; gap: 4px; }
.proj-card:hover { border-color: var(--stroke-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.proj-name { font-size: 16px; font-weight: 700; font-family: var(--font-display); }
.proj-name.lg { font-size: 20px; }
.proj-summary { font-size: 13px; margin: 6px 0 2px; min-height: 18px; line-height: 1.5; }
.proj-foot { font-size: 12.5px; margin-top: 10px; }
.link { color: var(--cyan); font-weight: 600; }

/* 交付物 */
.deliv-list { display: flex; flex-direction: column; gap: 10px; }
.deliv-row { display: flex; gap: 14px; align-items: center; padding: 13px 14px; border: 1px solid var(--stroke); border-radius: 13px; background: var(--surface-soft); transition: .15s; }
.deliv-row:hover { border-color: var(--stroke-strong); }
.deliv-ico { font-size: 26px; flex-shrink: 0; width: 38px; text-align: center; }
.deliv-body { flex: 1; min-width: 0; }
.deliv-title { font-size: 14.5px; font-weight: 600; }
.deliv-title .ver { font-size: 11.5px; color: var(--cyan); font-weight: 600; margin-left: 4px; }
.deliv-sub { font-size: 12.5px; margin-top: 2px; }
.deliv-meta { font-size: 11.5px; margin-top: 4px; }
.deliv-actions { flex-shrink: 0; }
.sm { font-size: 12px; }

/* 交付沙箱预览框 */
.sandbox-frame { border: 1px solid var(--stroke-strong); border-radius: var(--radius); overflow: hidden; background: var(--panel-solid); box-shadow: var(--shadow); }
.sandbox-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--stroke); background: var(--hover); }
.sandbox-bar .dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.sandbox-bar .dot.r { background: #e0846a; } .sandbox-bar .dot.y { background: #e0a85a; } .sandbox-bar .dot.g { background: #8bb083; }
.sandbox-url { margin-left: 10px; font-size: 12.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
#sandbox-iframe { width: 100%; height: calc(100vh - 230px); min-height: 420px; border: 0; display: block; background: #fff; }

/* 客户沟通（单聊窗） */
.chat-c { display: flex; flex-direction: column; padding: 0; height: calc(100vh - 156px); min-height: 460px; overflow: hidden; }
.chat-c .chat-head { padding: 14px 18px; border-bottom: 1px solid var(--stroke); font-weight: 600; font-size: 14.5px; }
.chat-c .chat-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.chat-c .chat-input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--stroke); }
.chat-c .chat-input input { flex: 1; }

@media (max-width: 720px) {
  #sandbox-iframe { height: 70vh; }
}

/* ============ 航世云枢 · 登录后工作台 ============ */
.ywb { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.ywb-nav { padding: 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 14px; }
.ywb-nav-t { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 2px 8px 8px; }
.ywb-nav-item { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; transition: .15s; font-family: inherit; }
.ywb-nav-item strong { font-size: 14px; color: var(--text); font-weight: 600; }
.ywb-nav-item span { font-size: 11.5px; color: var(--text-dim); line-height: 1.4; }
.ywb-nav-item:hover { background: var(--hover); }
.ywb-nav-item.on { background: linear-gradient(135deg, rgba(45,226,230,.16), rgba(139,108,255,.16)); border-color: var(--stroke-strong); }
.ywb-nav-item.on strong { color: var(--text-strong); }
.ywb-main { min-width: 0; }
.ywb-stat { padding: 14px; border: 1px solid var(--stroke); border-radius: 12px; background: var(--surface-soft); }
.ywb-stat .lbl { font-size: 12.5px; color: var(--text-dim); display: block; }
.ywb-stat strong { font-size: 20px; font-weight: 800; display: block; margin-top: 4px; }
.ywb-mods { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.chip { font-size: 12px; color: var(--text-dim); border: 1px solid var(--stroke); border-radius: 999px; padding: 4px 11px; background: var(--surface-soft); }
.ywb-subtabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.ywb-subtab { flex: 1; min-width: 140px; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--stroke); background: var(--input-bg); cursor: pointer; transition: .15s; font-family: inherit; }
.ywb-subtab strong { font-size: 13.5px; color: var(--text); }
.ywb-subtab span { font-size: 11.5px; color: var(--text-dim); }
.ywb-subtab:hover { border-color: var(--stroke-strong); }
.ywb-subtab.on { background: linear-gradient(135deg, rgba(45,226,230,.16), rgba(139,108,255,.16)); border-color: var(--stroke-strong); }
.ywb-subtab.on strong { color: var(--text-strong); }
.ywb-work-h { font-size: 13px; font-weight: 700; color: var(--text-dim); margin: 6px 0 10px; }
.ys-shot { border: 1px solid var(--stroke); border-radius: 12px; overflow: hidden; background: var(--inset); }
.ys-shot img { display: block; width: 100%; height: auto; }
.ywb-inner { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--stroke); }
@media (max-width: 720px) {
  .ywb { grid-template-columns: 1fr; }
  .ywb-nav { position: static; flex-direction: row; overflow-x: auto; }
  .ywb-nav-t { display: none; }
  .ywb-nav-item { min-width: 130px; flex-shrink: 0; }
}
