/* ============================================================
   天穹通话 · 客服工作台 /th/work
   顶上沿用 admin.css 的 ta-* 组件，这里只补工作台自己的版式
   ============================================================ */

.tw-main {
  max-width: 1080px;
}

/* ------------------------------ 问候 ------------------------------ */

.tw-hello {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin: 6px 0 22px;
}

.tw-hello h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--ink-900);
}

.tw-hello p {
  margin: 8px 0 0;
  max-width: 48em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-500);
}

.tw-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 3px;
}

/* ------------------------------ 主操作 ------------------------------ */

.tw-actions {
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  gap: 18px;
  align-items: stretch;
}

/* 发起通话：整页唯一的深色块，靠它把"主操作"顶出来 */
.tw-start {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 250px;
  padding: 32px 34px;
  border-radius: 14px;
  background: #12161c;
  color: #fff;
}

.tw-start::after {
  content: '';
  position: absolute;
  right: -92px;
  top: -110px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 119, 255, 0.36), rgba(22, 119, 255, 0) 68%);
  pointer-events: none;
}

.tw-start > * { position: relative; z-index: 1; }

.tw-start-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #7fb0ff;
}

.tw-start h2 {
  margin: 10px 0 0;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tw-start p {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
}

.tw-start-btn {
  align-self: flex-start;
  margin-top: 22px;
  height: 42px;
  padding: 0 26px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: #12161c;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.16s ease, transform 0.16s ease;
}

.tw-start-btn:hover { background: #e9eef5; }
.tw-start-btn:active { transform: translateY(1px); }
.tw-start-btn:disabled { opacity: 0.62; cursor: default; }

.tw-start-note {
  margin-top: 15px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.38);
}

/* 加入会议 */
.tw-join {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 20px;
}

.tw-join h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tw-join > p {
  margin: 6px 0 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-400);
}

.tw-join .field { margin-bottom: 8px; }

.tw-join-foot {
  margin-top: auto;
  padding-top: 14px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-300);
}

/* ------------------------------ 列表 ------------------------------ */

.tw-block { margin-top: 28px; }

.tw-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.tw-block-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.tw-block-head span,
.tw-block-head button {
  font-size: 12px;
  color: var(--ink-400);
}

.tw-block-head button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: color 0.16s ease;
}

.tw-block-head button:hover { color: var(--blue-700); }

.tw-list-head,
.tw-call-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 150px max-content;
  gap: 14px;
  align-items: center;
}

.tw-list-head {
  padding: 10px 16px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-400);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.tw-list-head .right { text-align: right; }

.tw-call-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}

.tw-call-item:last-child { border-bottom: 0; }
.tw-call-item:hover { background: #fafbfc; }

.tw-call-no {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tw-call-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-700);
}

.tw-call-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--ink-400);
}

.tw-call-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.tw-call-badge {
  display: flex;
  justify-content: flex-end;
}

.tw-live-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.14);
}

.tw-no {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-900);
}

/* ------------------------------ 创建成功弹窗 ------------------------------ */

.tw-created { max-width: 452px; }

.tw-created-lead {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-500);
}

.tw-created-no {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
}

.tw-created-no span {
  font-size: 11.5px;
  color: var(--ink-400);
}

.tw-created-no b {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-900);
}

.tw-created-no .btn { margin-left: auto; }

.tw-created-qr {
  display: flex;
  justify-content: center;
  padding: 2px 0 16px;
}

.tw-created-qr img {
  display: block;
  width: 188px;
  height: 188px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.tw-created-link {
  display: flex;
  gap: 8px;
}

.tw-created-link .input { flex: 1 1 auto; min-width: 0; }

/* ------------------------------ 响应式 ------------------------------ */

@media (max-width: 900px) {
  .tw-actions { grid-template-columns: 1fr; }
  .tw-start { min-height: 0; padding: 26px 24px; }
  .tw-start h2 { font-size: 21px; }
}

@media (max-width: 760px) {
  .tw-hello {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
  }
  .tw-hello h1 { font-size: 21px; }
  .tw-hello p { font-size: 12.5px; }
  /* 列表在手机上折成两栏：会议号 + 操作一行，标题与时间各占一行 */
  .tw-list-head { display: none; }
  .tw-call-item {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 5px 10px;
    padding: 12px 14px;
  }
  .tw-call-title { grid-column: 1 / -1; white-space: normal; }
  .tw-call-actions,
  .tw-call-badge { grid-column: 2; grid-row: 1; }
  .tw-call-actions .btn { height: 30px; padding: 0 12px; }
}
