:root {
  --ink: #17202a;
  --muted: #637083;
  --line: #d9e0ea;
  --panel: #ffffff;
  --soft: #f5f7fb;
  --brand: #1264ff;
  --brand-dark: #0a45b8;
  --mint: #0f9f8c;
  --warn: #c76b00;
  --danger: #c43333;
  --good: #14804a;
  --shadow: 0 12px 30px rgba(28, 39, 58, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #eef2f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: #f3f6fb;
}

.login-hero {
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(rgba(9, 29, 64, 0.68), rgba(9, 29, 64, 0.72)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.login-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.login-hero p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 680px;
}

.hero-metric {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  padding: 16px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.hero-metric strong {
  display: block;
  font-size: 28px;
}

.login-card {
  align-self: center;
  width: min(460px, calc(100% - 48px));
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.login-card h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.tabs,
.segmented {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.tab,
.segment {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 6px;
  flex: 1;
}

.tab.active,
.segment.active {
  color: var(--brand-dark);
  background: #fff;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.08);
}

.field {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.field label {
  color: #334155;
  font-size: 13px;
  font-weight: 650;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  outline: 0;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(18, 100, 255, 0.12);
}

.btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  font-weight: 650;
}

.btn.primary {
  background: var(--brand);
  color: #fff;
}

.btn.primary:hover {
  background: var(--brand-dark);
}

.btn.ghost {
  border-color: var(--line);
}

.btn.soft {
  background: #eaf2ff;
  color: var(--brand-dark);
}

.btn.danger {
  background: #fff1f1;
  color: var(--danger);
}

.app-shell {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #0f1b2d;
  color: #fff;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
}

.brand {
  padding: 10px 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand strong {
  display: block;
  font-size: 18px;
}

.brand span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 5px;
  margin-top: 16px;
}

.nav button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  text-align: left;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav button.active,
.nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-foot {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  padding: 12px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.main {
  min-width: 0;
  background: var(--soft);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 28px;
  background: rgba(245, 247, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.content {
  padding: 24px 28px 40px;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.panel-head {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
}

.panel-body {
  padding: 18px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.quick-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}

.quick-card strong {
  display: block;
}

.quick-card span {
  color: var(--muted);
  font-size: 13px;
}

.analysis-stack {
  display: grid;
  gap: 12px;
}

.analysis-block {
  border-left: 4px solid var(--brand);
  background: #f8fbff;
  padding: 12px 13px;
  border-radius: 6px;
}

.analysis-block h4 {
  margin: 0 0 6px;
  font-size: 14px;
}

.analysis-block p,
.analysis-block ul {
  margin: 0;
  color: #334155;
}

.analysis-block li + li {
  margin-top: 4px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #475569;
  font-size: 13px;
  background: #f8fafc;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tag.s {
  color: #fff;
  background: var(--danger);
}

.tag.a {
  color: #fff;
  background: var(--warn);
}

.tag.b {
  color: #fff;
  background: var(--mint);
}

.tag.gray {
  background: #e8edf4;
  color: #475569;
}

.tag.good {
  background: #eaf8f0;
  color: var(--good);
}

.tag.warn {
  background: #fff6e8;
  color: var(--warn);
}

.customer-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
}

.detail-list {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px 14px;
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  margin: 0;
  font-weight: 650;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  border-left: 3px solid var(--line);
  padding-left: 12px;
}

.timeline-item strong {
  display: block;
}

.timeline-item span {
  color: var(--muted);
  font-size: 13px;
}

.followup-list {
  display: grid;
  gap: 12px;
}

.followup-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.qr-box {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, #111 10px, transparent 10px) 0 0 / 30px 30px,
    linear-gradient(#111 10px, transparent 10px) 0 0 / 30px 30px,
    #fff;
  color: #fff;
  text-shadow: 0 1px 3px #000;
  font-weight: 800;
}

.kb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.report {
  display: grid;
  gap: 10px;
}

.report p {
  margin: 0;
}

.wechat-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #e9edf1;
}

.wechat-window {
  width: min(100%, 620px);
  height: min(900px, calc(100vh - 40px));
  min-height: 600px;
  display: grid;
  grid-template-rows: 26px 62px auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  background: #ededed;
  box-shadow: 0 18px 48px rgba(32, 40, 48, 0.18);
}

.wechat-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  color: #fff;
  background: #07c160;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.status-icons {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 14px;
}

.status-icons b {
  display: block;
  width: 3px;
  background: #fff;
}

.status-icons b:nth-child(1) { height: 5px; }
.status-icons b:nth-child(2) { height: 8px; }
.status-icons b:nth-child(3) { height: 11px; }

.status-icons i {
  position: relative;
  width: 18px;
  height: 9px;
  margin-left: 4px;
  border: 1px solid #fff;
  border-radius: 2px;
}

.status-icons i::before {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  left: 1px;
  background: #fff;
  content: "";
}

.status-icons em {
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.wechat-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 52px;
  align-items: center;
  padding: 0 5px;
  color: #fff;
  background: #07c160;
  border-bottom: 1px solid #06ad57;
}

.wechat-icon-button,
.composer-icon,
.composer-plus {
  border: 0;
  background: transparent;
  color: inherit;
}

.wechat-icon-button {
  width: 44px;
  height: 44px;
  font-size: 35px;
  font-weight: 300;
  line-height: 1;
}

.wechat-contact {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 1px;
}

.wechat-contact strong {
  font-size: 17px;
  font-weight: 600;
}

.wechat-contact span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
}

.more-button {
  font-size: 21px;
  letter-spacing: 2px;
}

.wechat-notice {
  justify-self: center;
  margin: 14px 0 4px;
  padding: 4px 8px;
  border-radius: 3px;
  color: #fff;
  background: #9bbfa9;
  font-size: 11px;
}

.wechat-messages {
  min-height: 0;
  overflow-y: auto;
  padding: 12px 15px 22px;
  scrollbar-width: thin;
}

.wechat-time {
  width: max-content;
  margin: 14px auto 18px;
  padding: 3px 7px;
  border-radius: 3px;
  color: #fff;
  background: #c8c8c8;
  font-size: 11px;
}

.wechat-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
}

.wechat-message.is-user {
  justify-content: flex-end;
}

.wechat-avatar {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.advisor-avatar {
  border-radius: 4px;
  overflow: hidden;
  background: #dbe9df;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.advisor-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.user-avatar {
  border-radius: 4px;
  background: #5085bc;
}

.wechat-bubble {
  position: relative;
  max-width: min(76%, 420px);
  padding: 10px 12px;
  color: #111;
  background: #fff;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.wechat-advisor-content {
  display: grid;
  justify-items: start;
  gap: 8px;
  max-width: min(76%, 420px);
}

.wechat-advisor-content .wechat-bubble {
  max-width: 100%;
}

.wechat-contact-cta {
  border: 0;
  border-radius: 4px;
  padding: 7px 10px;
  color: #087a3c;
  background: #e7f8ed;
  font-size: 13px;
}

.wechat-bubble::before,
.typing-bubble::before {
  position: absolute;
  top: 12px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  content: "";
}

.is-advisor .wechat-bubble::before,
.typing-bubble::before {
  left: -6px;
  border-right: 7px solid #fff;
}

.is-user .wechat-bubble {
  background: #95ec69;
}

.is-user .wechat-bubble::before {
  right: -6px;
  border-left: 7px solid #95ec69;
}

.typing-row {
  margin-bottom: 4px;
}

.typing-bubble {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 54px;
  min-height: 38px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 4px;
}

.typing-bubble i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8f8f8f;
  animation: wechatTyping 1.05s infinite ease-in-out;
}

.typing-bubble i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-bubble i:nth-child(3) {
  animation-delay: 0.3s;
}

.typing-label {
  margin: -5px 0 16px 49px;
  color: #999;
  font-size: 12px;
}

@keyframes wechatTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.wechat-lead-card {
  width: calc(100% - 48px);
  margin: 0 0 18px 48px;
  padding: 16px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.lead-card-title {
  color: #191919;
  font-size: 17px;
  font-weight: 600;
}

.wechat-lead-card p {
  margin: 5px 0 14px;
  color: #888;
  font-size: 12px;
  line-height: 1.5;
}

.wechat-lead-card label {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  color: #555;
  border-bottom: 1px solid #ededed;
  font-size: 14px;
}

.wechat-lead-card input,
.wechat-lead-card textarea {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #222;
  background: transparent;
  padding: 8px 0;
  resize: none;
}

.wechat-lead-card textarea {
  min-height: 44px;
  line-height: 1.45;
}

.wechat-lead-card .input-error {
  outline: 1px solid #fa5151;
  outline-offset: 3px;
}

.wechat-lead-submit {
  width: 100%;
  margin-top: 15px;
  border: 0;
  border-radius: 4px;
  padding: 10px;
  color: #fff;
  background: #07c160;
  font-size: 15px;
}

.wechat-lead-submit:disabled {
  background: #93d9b2;
  cursor: wait;
}

.lead-conversation-panel {
  margin-top: 18px;
}

.lead-transcript {
  max-height: 520px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #243244;
  background: #f8fafc;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.wechat-actions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 9px 12px;
  background: #f3f8f4;
  border-top: 1px solid #dedede;
}

.wechat-actions button {
  flex: 0 0 auto;
  border: 1px solid #a6debd;
  border-radius: 3px;
  padding: 6px 10px;
  color: #087a3c;
  background: #effaf2;
  font-size: 13px;
}

.wechat-composer {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px 34px auto;
  align-items: end;
  gap: 7px;
  padding: 8px 10px 10px;
  background: #f3f8f4;
  border-top: 1px solid #cce8d7;
}

.composer-icon,
.composer-plus {
  height: 35px;
  padding: 0;
  font-size: 26px;
  line-height: 1;
}

.composer-plus {
  color: #07a652;
  font-size: 30px;
}

.wechat-composer textarea {
  min-height: 35px;
  max-height: 88px;
  width: 100%;
  border: 0;
  border-radius: 3px;
  outline: 0;
  padding: 8px;
  color: #111;
  background: #fff;
  line-height: 19px;
  resize: none;
}

.wechat-composer textarea:disabled {
  background: #ebebeb;
}

.composer-send {
  height: 35px;
  border: 0;
  border-radius: 3px;
  padding: 0 12px;
  color: #fff;
  background: #07c160;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  font-size: 14px;
}

.composer-send:disabled {
  color: #aaa;
  background: #e9e9e9;
}

.mobile-menu {
  display: none;
}

@media (max-width: 980px) {
  .login-page,
  .app-shell,
  .page-grid,
  .customer-layout,
  .settings-grid,
  .kb-grid,
  .advisor-main {
    grid-template-columns: 1fr;
  }

  .login-hero {
    min-height: 46vh;
    padding: 32px 24px;
  }

  .hero-metrics,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .content,
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .quick-grid,
  .hero-metrics,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    grid-template-columns: 1fr;
  }

  .advisor-main {
    width: calc(100% - 20px);
  }

  .message {
    max-width: 94%;
  }

  .wechat-page {
    display: block;
    padding: 0;
  }

  .wechat-window {
    width: 100%;
    height: 100vh;
    min-height: 0;
    box-shadow: none;
  }

  .wechat-bubble {
    max-width: calc(100vw - 116px);
  }

  .wechat-lead-card {
    width: calc(100% - 40px);
    margin-left: 40px;
  }

  .wechat-lead-card label {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .wechat-composer {
    grid-template-columns: 30px minmax(0, 1fr) 30px 30px auto;
    gap: 5px;
    padding-left: 7px;
    padding-right: 7px;
  }

  .composer-send {
    padding: 0 9px;
  }
}

/* AI 销冠 CRM 工作空间 */
.crm-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  color: #183337;
  background: #f5f7f6;
}

.crm-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px 12px 16px;
  color: #dce9e6;
  background: #12383a;
}

.crm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 22px;
}

.crm-brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #103235;
  background: #78e2b8;
  font-weight: 800;
}

.crm-brand strong,
.crm-brand span {
  display: block;
}

.crm-brand strong {
  color: #fff;
  font-size: 16px;
}

.crm-brand span {
  margin-top: 1px;
  color: #8eb5ae;
  font-size: 11px;
}

.workspace-switch {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border: 1px solid rgba(180, 224, 213, 0.16);
  border-radius: 6px;
  padding: 10px;
  color: #eff9f5;
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
}

.workspace-switch b,
.workspace-switch small {
  display: block;
}

.workspace-switch b {
  font-size: 13px;
}

.workspace-switch small {
  margin-top: 2px;
  color: #9bc2ba;
  font-size: 11px;
}

.workspace-switch i {
  font-style: normal;
}

.crm-nav {
  display: grid;
  gap: 2px;
}

.crm-nav-label {
  padding: 0 10px 7px;
  color: #83aaa2;
  font-size: 11px;
  font-weight: 700;
}

.crm-nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 5px;
  padding: 9px 10px;
  color: #b9d0ca;
  background: transparent;
  text-align: left;
}

.crm-nav button span:first-child {
  width: 16px;
  color: #93b6af;
  text-align: center;
}

.crm-nav button:hover,
.crm-nav button.active {
  color: #fff;
  background: #215152;
}

.crm-nav button.active span:first-child {
  color: #86e6ba;
}

.crm-sidebar-foot {
  margin-top: auto;
  padding: 16px 10px 4px;
  border-top: 1px solid rgba(180, 224, 213, 0.16);
}

.quota-line {
  display: flex;
  justify-content: space-between;
  color: #a7c3be;
  font-size: 11px;
}

.quota-line b {
  color: #e7f2ef;
  font-weight: 650;
}

.quota-track {
  height: 4px;
  overflow: hidden;
  margin: 7px 0 10px;
  border-radius: 9px;
  background: #285658;
}

.quota-track i {
  display: block;
  width: 57%;
  height: 100%;
  background: #7be0b4;
}

.crm-sidebar-foot small {
  color: #83aaa2;
  font-size: 11px;
}

.crm-main {
  min-width: 0;
}

.crm-topbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid #dfe7e4;
  background: rgba(255, 255, 255, 0.88);
}

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #738985;
  font-size: 13px;
}

.crumb i { color: #aec0bc; font-style: normal; }
.crumb strong { color: #233e40; font-weight: 650; }

.crm-top-actions { display: flex; align-items: center; gap: 12px; }

.top-icon,
.avatar-button {
  position: relative;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 5px;
  color: #4d6867;
  background: transparent;
}

.top-icon:hover { background: #ebf2ef; }
.top-icon em {
  position: absolute;
  top: 0;
  right: -1px;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #dd6c53;
  font-size: 9px;
  font-style: normal;
  line-height: 10px;
}

.avatar-button { color: #fff; background: #2a6a64; font-size: 13px; }
.crm-content { padding: 26px 28px 42px; }

.crm-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.crm-page-head h1 { margin: 0; color: #183337; font-size: 25px; line-height: 1.25; }
.crm-page-head p { margin: 7px 0 0; color: #66807d; font-size: 14px; }

.crm-metric-row,
.team-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
  border: 1px solid #dfe7e4;
  border-radius: 7px;
  background: #fff;
}

.crm-metric-row > div,
.team-overview > div {
  min-height: 102px;
  padding: 18px;
  border-right: 1px solid #e5ece9;
}

.crm-metric-row > div:last-child,
.team-overview > div:last-child { border-right: 0; }
.crm-metric-row span,
.team-overview span { display: block; color: #708682; font-size: 12px; }
.crm-metric-row strong,
.team-overview b { display: block; margin: 5px 0; color: #17383a; font-size: 25px; line-height: 1; }
.metric-unit { font-size: 15px; }
.crm-metric-row small,
.team-overview small { color: #8a9c99; font-size: 11px; }
.crm-metric-row small.positive { color: #16845f; }

.crm-action-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 18px; margin-bottom: 18px; }
.crm-split-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-bottom: 18px; }
.crm-panel { border: 1px solid #dfe7e4; border-radius: 7px; background: #fff; }
.crm-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; padding: 15px 18px; border-bottom: 1px solid #e5ece9; }
.crm-panel-head h2 { margin: 0; color: #233e40; font-size: 16px; }
.crm-panel-head p { margin: 3px 0 0; color: #819491; font-size: 12px; }
.text-button { border: 0; padding: 5px; color: #087b5c; background: transparent; font-size: 13px; }

.action-list { padding: 4px 12px 10px; }
.action-row { width: 100%; display: grid; grid-template-columns: 10px minmax(0, 1fr) 18px; gap: 10px; align-items: center; border: 0; border-bottom: 1px solid #edf2f0; padding: 13px 5px; color: inherit; background: transparent; text-align: left; }
.action-row:last-child { border-bottom: 0; }
.action-row:hover { background: #f8fbf9; }
.priority-dot { width: 7px; height: 7px; border-radius: 50%; background: #e3b24c; }
.priority-dot.high { background: #d86957; }
.action-row b { display: block; color: #284448; font-size: 13px; }
.action-row p { overflow: hidden; margin: 3px 0; color: #4e6968; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.action-row small { color: #879a97; font-size: 11px; }
.action-row i { color: #94aaa5; font-size: 19px; font-style: normal; }

.ai-live { padding: 3px 7px; border-radius: 4px; color: #087b5c; background: #e7f7ef; font-size: 11px; }
.ai-brief { padding: 17px 18px 6px; }
.ai-brief span { display: block; color: #708682; font-size: 11px; font-weight: 700; }
.ai-brief p { margin: 3px 0 13px; color: #314c4e; font-size: 13px; line-height: 1.65; }
.ai-composer { display: flex; gap: 8px; align-items: flex-end; padding: 0 18px 17px; }
.ai-composer textarea { min-height: 55px; flex: 1; border: 1px solid #d8e4df; border-radius: 5px; padding: 9px; resize: vertical; }

.compact-table { padding: 0 18px 12px; }
.compact-head,
.compact-row { display: grid; grid-template-columns: 1.25fr 1fr .9fr .9fr; gap: 14px; align-items: center; }
.compact-head { padding: 12px 0 8px; color: #879996; font-size: 11px; }
.compact-row { width: 100%; border: 0; border-top: 1px solid #edf2f0; padding: 11px 0; color: #59706f; background: transparent; text-align: left; font-size: 12px; }
.compact-row:hover { background: #f8fbf9; }
.compact-row b,.compact-row small { display: block; }
.compact-row b { color: #294549; font-size: 13px; }
.compact-row small { color: #8ba09d; font-size: 11px; }
.probability-bar { display: inline-block; width: 42px; height: 4px; overflow: hidden; margin-right: 4px; border-radius: 4px; background: #e4ece9; vertical-align: middle; }
.probability-bar b { display: block; height: 100%; background: #22a678; }

.brain-score { display: flex; align-items: center; gap: 16px; padding: 20px 18px 13px; }
.brain-score strong { color: #16845f; font-size: 31px; }
.brain-score b { display: block; font-size: 13px; }
.brain-score span { display: block; width: 180px; height: 7px; overflow: hidden; margin-top: 7px; border-radius: 6px; background: #e4ece9; }
.brain-score span i { display: block; height: 100%; background: #22a678; }
.brain-gap { margin: 0 18px 18px; padding: 12px; border-left: 3px solid #e4ad43; background: #fffaf0; }
.brain-gap b { color: #74551b; font-size: 12px; }
.brain-gap p { margin: 4px 0; color: #4f4738; font-size: 13px; }
.brain-gap small { color: #8a805f; font-size: 11px; }

.conversation-insight { margin-top: 0; }
.insight-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.insight-items > div { padding: 18px; border-right: 1px solid #e5ece9; }
.insight-items > div:last-child { border-right: 0; }
.insight-items span,.insight-items b,.insight-items small { display: block; }
.insight-items span { color: #7f9591; font-size: 11px; }
.insight-items b { margin: 5px 0; color: #294549; font-size: 13px; }
.insight-items small { color: #899d99; font-size: 11px; }

.pipeline-summary { display: flex; gap: 20px; margin-bottom: 16px; color: #718783; font-size: 13px; }
.pipeline-summary b { color: #274549; }
.pipeline-board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 13px; overflow-x: auto; padding-bottom: 12px; }
.pipeline-column { min-height: 390px; border: 1px solid #dce6e2; border-radius: 6px; background: #edf3f1; }
.pipeline-column header { display: flex; align-items: center; justify-content: space-between; padding: 12px; color: #3c5656; }
.pipeline-column header div { display: flex; gap: 8px; align-items: center; }
.pipeline-column header b { font-size: 13px; }
.pipeline-column header span { min-width: 19px; padding: 1px 5px; border-radius: 8px; color: #5c7471; background: #dce9e5; font-size: 11px; text-align: center; }
.pipeline-column header i { color: #139168; font-size: 11px; font-style: normal; }
.pipeline-stack { display: grid; gap: 9px; padding: 0 9px 9px; }
.opportunity-card { display: grid; gap: 7px; border: 1px solid #e0e9e5; border-radius: 5px; padding: 12px; color: inherit; background: #fff; text-align: left; box-shadow: 0 1px 1px rgba(22, 56, 58, .03); }
.opportunity-card:hover { border-color: #a8cfc1; }
.opportunity-card > b { color: #254347; font-size: 13px; }
.opportunity-card small { color: #859b97; font-size: 11px; }
.opportunity-card > div { display: flex; justify-content: space-between; color: #278064; font-size: 12px; font-weight: 700; }
.opportunity-card p { margin: 0; color: #687e7b; font-size: 11px; line-height: 1.5; }
.opportunity-card footer { display: flex; justify-content: space-between; color: #879b98; font-size: 11px; }
.opportunity-card footer i { font-size: 16px; font-style: normal; line-height: .6; }
.pipeline-empty { margin: 32px 0; color: #94a8a4; font-size: 12px; text-align: center; }
.stage-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stage-rules > div { padding: 16px 18px; border-right: 1px solid #e5ece9; }
.stage-rules > div:last-child { border-right: 0; }
.stage-rules b,.stage-rules span { display: block; }
.stage-rules b { color: #294549; font-size: 13px; }
.stage-rules span { margin-top: 4px; color: #819590; font-size: 12px; }

.training-path { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.training-primary { padding: 20px; }
.training-step { display: flex; gap: 15px; }
.training-step > span { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #0b7657; background: #e3f5ed; font-size: 12px; font-weight: 800; }
.training-step h2 { margin: 0; color: #254347; font-size: 17px; }
.training-step p { margin: 7px 0 13px; color: #6b827e; font-size: 13px; line-height: 1.65; }
.training-status { margin: 21px 0 0 45px; }
.training-status b,.training-status small { display: block; color: #3b5757; font-size: 12px; }
.training-status span { display: block; height: 6px; overflow: hidden; margin: 8px 0; border-radius: 6px; background: #e4ece9; }
.training-status span i { display: block; height: 100%; background: #20a477; }
.training-status small { color: #899d99; font-size: 11px; }
.completion-number { color: #148461; font-size: 27px; }
.completeness-list { padding: 4px 18px 18px; }
.completeness-list > div { display: grid; grid-template-columns: 150px minmax(0, 1fr) 60px; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid #edf2f0; color: #516b69; font-size: 12px; }
.completeness-list i { height: 6px; overflow: hidden; border-radius: 6px; background: #e6eeeb; }
.completeness-list i b { display: block; height: 100%; background: #23a57a; }
.completeness-list em { color: #8a9d99; font-size: 11px; font-style: normal; text-align: right; }
.review-list { padding: 4px 18px 12px; }
.review-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 11px 0; border-top: 1px solid #edf2f0; }
.review-list b { color: #304d4d; font-size: 13px; }
.review-list span { color: #879b98; font-size: 11px; }
.review-list button { grid-column: 2; grid-row: 1 / 3; border: 1px solid #b6d9ca; border-radius: 4px; padding: 4px 8px; color: #087b5c; background: #f3fbf7; font-size: 12px; }

.member-table { padding: 0 18px 14px; }
.member-head,.member-table > div:not(.member-head) { display: grid; grid-template-columns: 1.25fr .8fr .9fr 1fr 1.3fr .5fr; gap: 12px; align-items: center; }
.member-head { padding: 12px 0 8px; color: #8a9d99; font-size: 11px; }
.member-table > div:not(.member-head) { border-top: 1px solid #e9f0ed; padding: 12px 0; color: #536c6b; font-size: 12px; }
.member-table b,.member-table small { display: block; }
.member-table b { color: #2c4a4c; font-size: 13px; }
.member-table small { color: #8b9e9a; font-size: 11px; }
.status-good { color: #138461; }

@media (max-width: 1080px) {
  .crm-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .crm-action-grid,.crm-split-grid { grid-template-columns: 1fr; }
  .member-head,.member-table > div:not(.member-head) { min-width: 820px; }
  .member-table { overflow-x: auto; }
}

@media (max-width: 760px) {
  .crm-shell { display: block; }
  .crm-sidebar { min-height: auto; padding: 12px; }
  .crm-brand { padding-bottom: 12px; }
  .workspace-switch,.crm-sidebar-foot { display: none; }
  .crm-nav { display: flex; overflow-x: auto; gap: 4px; }
  .crm-nav-label { display: none; }
  .crm-nav button { flex: 0 0 auto; width: auto; padding: 8px; }
  .crm-nav button span:last-child { display: none; }
  .crm-topbar { height: 50px; padding: 0 16px; }
  .crm-content { padding: 18px 14px 30px; }
  .crm-page-head { display: block; }
  .crm-page-head .toolbar { margin-top: 14px; }
  .crm-metric-row,.team-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-metric-row > div,.team-overview > div { min-height: 88px; border-bottom: 1px solid #e5ece9; }
  .crm-metric-row > div:nth-child(2),.team-overview > div:nth-child(2) { border-right: 0; }
  .crm-action-grid,.crm-split-grid,.training-path { grid-template-columns: 1fr; }
  .compact-table { overflow-x: auto; }
  .compact-head,.compact-row { min-width: 620px; }
  .insight-items,.stage-rules { grid-template-columns: 1fr; }
  .insight-items > div,.stage-rules > div { border-right: 0; border-bottom: 1px solid #e5ece9; }
  .insight-items > div:last-child,.stage-rules > div:last-child { border-bottom: 0; }
  .completeness-list > div { grid-template-columns: 110px minmax(0, 1fr) 52px; }
}

/* SaaS 注册与审核准入 */
.saas-auth { min-height:100vh; display:grid; grid-template-columns:minmax(420px,.95fr) minmax(520px,1.05fr); background:#f7faf8; }
.saas-auth-aside { display:flex; flex-direction:column; padding:38px clamp(34px,5vw,78px); color:#e8f4f0; background:#12383a; }
.saas-auth-brand { display:flex; align-items:center; gap:10px; }.saas-auth-brand > span { width:32px; height:32px; display:grid; place-items:center; border-radius:7px; color:#12383a; background:#79dfb8; font-weight:800; }.saas-auth-brand b,.saas-auth-brand small { display:block; }.saas-auth-brand b { color:#fff; font-size:16px; }.saas-auth-brand small { margin-top:1px; color:#91bdb3; font-size:11px; }
.auth-aside-copy { max-width:500px; margin:auto 0; }.auth-eyebrow { color:#86e2b7; font-size:12px; font-weight:700; }.auth-aside-copy h1 { max-width:480px; margin:13px 0; color:#fff; font-size:clamp(32px,4vw,50px); line-height:1.25; }.auth-aside-copy p { max-width:440px; margin:0; color:#b4d2ca; font-size:16px; line-height:1.8; }
.auth-aside-rules { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; border-top:1px solid rgba(208,240,229,.17); padding-top:22px; }.auth-aside-rules b,.auth-aside-rules span { display:block; }.auth-aside-rules b { color:#fff; font-size:12px; }.auth-aside-rules span { margin-top:5px; color:#91b9b0; font-size:11px; line-height:1.55; }
.saas-auth-form { display:grid; place-items:center; padding:44px 28px; background:#fff; }.auth-form-wrap { width:min(460px,100%); }.auth-tabs { display:grid; grid-template-columns:1fr 1fr; margin-bottom:28px; border-bottom:1px solid #dfe8e4; }.auth-tabs button { border:0; border-bottom:2px solid transparent; padding:10px; color:#81928f; background:transparent; font-weight:650; }.auth-tabs button.active { border-color:#0b8a65; color:#0b7557; }
.auth-title h2 { margin:0; color:#1d3c3d; font-size:28px; }.auth-title p { margin:7px 0 22px; color:#748783; font-size:14px; }.auth-field { display:grid; gap:7px; margin-bottom:15px; }.auth-field label { color:#425d5b; font-size:12px; font-weight:700; }.auth-field input { width:100%; border:1px solid #d8e5e0; border-radius:5px; padding:11px; color:#234143; background:#fff; outline:0; }.auth-field input:focus { border-color:#0b8a65; box-shadow:0 0 0 3px rgba(11,138,101,.1); }.auth-field-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.auth-error { min-height:19px; color:#bd5144; font-size:12px; }.auth-primary { width:100%; border:0; border-radius:5px; padding:12px; color:#fff; background:#0b8a65; font-weight:700; }.auth-primary:hover { background:#087454; }.auth-advisor-link { width:100%; margin-top:10px; border:0; padding:8px; color:#16785e; background:transparent; font-size:13px; }
.register-mode { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:0 0 18px; }.register-mode button { min-height:86px; border:1px solid #d8e5e0; border-radius:6px; padding:11px; color:#657b78; background:#fff; text-align:left; }.register-mode button.active { border-color:#65c9a1; color:#1b5046; background:#f0faf5; }.register-mode b,.register-mode span { display:block; }.register-mode b { font-size:13px; }.register-mode span { margin-top:5px; font-size:11px; line-height:1.45; }
.pending-auth { display:grid; place-items:center; padding:26px; background:#f5f8f6; }.pending-panel { width:min(600px,100%); padding:42px; border:1px solid #dce7e2; border-radius:8px; background:#fff; text-align:center; }.pending-mark { width:48px; height:48px; display:grid; place-items:center; margin:0 auto 16px; border-radius:50%; color:#087b5c; background:#e7f7ef; font-size:24px; font-weight:800; }.pending-panel h1 { margin:8px 0; color:#254346; font-size:28px; }.pending-panel p { max-width:440px; margin:0 auto; color:#6d827f; font-size:14px; line-height:1.75; }.pending-steps { display:flex; align-items:center; justify-content:center; gap:9px; margin:31px 0; color:#98aaa6; font-size:12px; }.pending-steps span { width:82px; }.pending-steps i { width:34px; height:1px; background:#d8e5e0; }.pending-steps .done { color:#0a8461; }.pending-steps .current { color:#bd7a17; font-weight:700; }
@media (max-width:850px) { .saas-auth { grid-template-columns:1fr; }.saas-auth-aside { min-height:310px; padding:28px 24px; }.auth-aside-copy { margin:48px 0; }.auth-aside-copy h1 { font-size:32px; }.auth-aside-rules { display:none; }.saas-auth-form { padding:32px 20px; } }
@media (max-width:480px) { .auth-field-grid,.register-mode { grid-template-columns:1fr; }.pending-panel { padding:30px 20px; }.pending-steps { gap:5px; }.pending-steps span { width:70px; }.pending-steps i { width:18px; } }

/* AI 销冠大脑：客户问题辅导工作台 */
.brain-page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:18px; }
.brain-kicker { display:block; color:#0b8a65; font-size:11px; font-weight:800; letter-spacing:0; }
.brain-page-head h1 { margin:4px 0 6px; color:#183d3f; font-size:30px; line-height:1.15; }
.brain-page-head p { margin:0; color:#718783; font-size:14px; }
.brain-status { display:flex; align-items:center; gap:7px; min-height:32px; padding:7px 10px; border:1px solid #cde8da; border-radius:5px; color:#0a795a; background:#f1fbf6; font-size:12px; white-space:nowrap; }
.brain-status i { width:7px; height:7px; border-radius:50%; background:#1ca675; box-shadow:0 0 0 3px rgba(28,166,117,.12); }
.brain-input-panel { border:1px solid #b9ddcf; border-radius:7px; padding:20px; background:#fff; box-shadow:0 8px 24px rgba(30,84,71,.06); }
.brain-input-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.brain-input-head h2 { margin:0; color:#214649; font-size:17px; }
.brain-input-head p { max-width:650px; margin:6px 0 14px; color:#728783; font-size:13px; line-height:1.65; }
.brain-example { flex:0 0 auto; border:0; padding:5px 0; color:#087c5d; background:transparent; font-size:12px; }
.brain-question { width:100%; min-height:142px; resize:vertical; border:1px solid #cfe1da; border-radius:5px; padding:13px; color:#26494b; background:#fbfdfc; font:14px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; outline:0; }
.brain-question:focus { border-color:#47ad86; box-shadow:0 0 0 3px rgba(11,138,101,.1); background:#fff; }
.brain-input-foot { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:12px; }
.brain-tags { display:flex; flex-wrap:wrap; gap:7px; }.brain-tags button { border:1px solid #d6e6df; border-radius:4px; padding:5px 8px; color:#5e7775; background:#fff; font-size:11px; }.brain-tags button:hover { border-color:#8cccb1; color:#087c5d; background:#f4fbf7; }
.brain-submit { flex:0 0 auto; min-width:118px; border:0; border-radius:5px; padding:10px 13px; color:#fff; background:#0b8a65; font-weight:750; }
.brain-result-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:13px; margin:18px 0; }
.brain-result-card { min-height:132px; border:1px solid #dce8e3; border-radius:6px; padding:16px; background:#fff; }.brain-result-card > span,.brain-card-head > span { display:block; color:#7c918d; font-size:11px; font-weight:700; }
.brain-result-card.focus { grid-column:span 4; border-top:3px solid #0c936d; }.brain-result-card.focus h2 { margin:10px 0 0; color:#26494b; font-size:16px; line-height:1.55; }
.brain-result-card.reply { grid-column:span 8; }.brain-card-head { display:flex; justify-content:space-between; gap:12px; }.brain-card-head button { border:0; padding:0; color:#087c5d; background:transparent; font-size:12px; }.brain-result-card.reply p { margin:10px 0 0; color:#395958; font-size:13px; line-height:1.7; white-space:pre-wrap; }
.brain-result-card.questions { grid-column:span 4; }.brain-result-card.questions ol { margin:9px 0 0; padding-left:19px; color:#3e5d5d; font-size:13px; line-height:1.8; }
.brain-result-card.action { grid-column:span 4; border-top:3px solid #55ad8d; }.brain-result-card.action p,.brain-result-card.risk p { margin:9px 0; color:#456260; font-size:13px; line-height:1.65; }.brain-result-card.action button { border:0; border-radius:4px; padding:6px 8px; color:#087c5d; background:#eaf8f1; font-size:12px; }
.brain-result-card.risk { grid-column:span 4; border-top:3px solid #d8a447; }
.brain-empty-state { display:flex; align-items:center; justify-content:space-between; gap:25px; margin:18px 0; border:1px dashed #bdd9cf; border-radius:6px; padding:19px; color:#56706d; background:#f8fcfa; }.brain-empty-state b,.brain-empty-state span { display:block; }.brain-empty-state b { color:#294e4e; font-size:15px; }.brain-empty-state > div:first-child span { margin-top:5px; font-size:13px; }.brain-empty-state > div:last-child { display:flex; gap:13px; color:#6b8881; font-size:11px; }
.brain-bottom-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }.brain-rules { display:grid; gap:0; padding:2px 18px 13px; }.brain-rules span { border-top:1px solid #edf2f0; padding:11px 0; color:#58716e; font-size:12px; }.brain-card-cta { display:flex; align-items:center; gap:10px; padding:0 18px 17px; }.brain-card-cta img { width:38px; height:38px; border-radius:5px; object-fit:cover; }.brain-card-cta b,.brain-card-cta small { display:block; }.brain-card-cta b { color:#2a4c4c; font-size:13px; }.brain-card-cta small { margin-top:4px; color:#829491; font-size:11px; }

/* 小岛专属电子名片 */
.digital-card-overlay { position:fixed; z-index:50; inset:0; display:grid; place-items:center; padding:24px; background:rgba(11,34,35,.58); }
.digital-card-modal { position:relative; width:min(960px,100%); display:grid; grid-template-columns:minmax(360px,.95fr) minmax(300px,.72fr); gap:0; overflow:hidden; border:1px solid rgba(255,255,255,.35); border-radius:8px; background:#fff; box-shadow:0 22px 68px rgba(0,0,0,.26); }
.digital-card-close { position:absolute; z-index:3; top:13px; right:13px; width:31px; height:31px; border:0; border-radius:4px; color:#496664; background:#edf3f1; font-size:22px; line-height:1; }
.digital-card-preview { position:relative; min-width:0; align-self:start; aspect-ratio:1; background:#8eb7d0; }.digital-card-preview > canvas { display:block; width:100%; height:100%; }
.digital-card-qr-source { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }
.digital-card-side { display:flex; flex-direction:column; justify-content:center; padding:44px 36px 34px; background:#fbfcfb; }.card-eyebrow { color:#0b8a65; font-size:11px; font-weight:800; }.digital-card-side h2 { margin:8px 0; color:#1f4244; font-size:26px; }.digital-card-side > p { margin:0; color:#6d837f; font-size:13px; line-height:1.8; }
.digital-card-owner { display:flex; align-items:center; gap:10px; margin:25px 0 18px; padding:12px; border:1px solid #dce8e3; border-radius:6px; background:#fff; }.digital-card-owner img { width:38px; height:38px; border-radius:5px; object-fit:cover; }.digital-card-owner b,.digital-card-owner small { display:block; }.digital-card-owner b { color:#2d4d4e; font-size:13px; }.digital-card-owner small { margin-top:3px; color:#77908b; font-size:11px; }
.digital-card-link { display:grid; gap:6px; margin-bottom:20px; }.digital-card-link span { color:#7d918e; font-size:11px; }.digital-card-link code { overflow:hidden; padding:9px; border:1px solid #dce8e3; border-radius:4px; color:#4e6e69; background:#f7faf8; font:11px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace; text-overflow:ellipsis; white-space:nowrap; }.digital-card-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }.digital-card-actions .btn { min-height:38px; }
@media (max-width:900px) { .brain-result-card.focus,.brain-result-card.questions,.brain-result-card.action,.brain-result-card.risk { grid-column:span 6; }.brain-result-card.reply { grid-column:span 12; }.digital-card-modal { grid-template-columns:1fr 330px; }.digital-card-side { padding:35px 25px; } }
@media (max-width:700px) { .brain-page-head,.brain-input-foot,.brain-empty-state { display:block; }.brain-status { width:max-content; margin-top:12px; }.brain-input-foot { margin-top:12px; }.brain-submit { width:100%; margin-top:12px; }.brain-empty-state > div:last-child { flex-wrap:wrap; margin-top:13px; }.brain-bottom-grid { grid-template-columns:1fr; }.brain-result-card.focus,.brain-result-card.questions,.brain-result-card.action,.brain-result-card.risk,.brain-result-card.reply { grid-column:span 12; }.digital-card-overlay { align-items:start; overflow:auto; padding:14px; }.digital-card-modal { grid-template-columns:1fr; }.digital-card-side { padding:28px 22px; }.digital-card-close { top:9px; right:9px; } }

/* ═══ v2 新增功能样式 ═══ */

/* ── 全局搜索 ── */
.search-overlay { position:fixed; z-index:60; inset:0; display:grid; place-items:start center; padding:80px 24px 24px; background:rgba(11,34,35,.55); }
.search-modal { width:min(640px,100%); border-radius:12px; background:#fff; box-shadow:0 20px 60px rgba(0,0,0,.22); overflow:hidden; }
.search-input-wrap { display:flex; align-items:center; gap:10px; padding:14px 18px; border-bottom:1px solid #e5ece9; }
.search-input-icon { font-size:20px; color:#718783; }
.search-input-wrap input { flex:1; border:0; outline:0; font-size:15px; color:#1d3c3d; background:transparent; }
.search-close { border:0; padding:4px 8px; color:#718783; background:transparent; font-size:16px; border-radius:4px; }
.search-close:hover { background:#f0f4f2; }
.search-results { max-height:420px; overflow-y:auto; padding:8px; }
.search-hint { padding:24px; text-align:center; color:#879b98; font-size:13px; }
.search-result-row { display:flex; align-items:center; gap:12px; width:100%; padding:10px 12px; border:0; border-radius:6px; background:transparent; text-align:left; color:inherit; }
.search-result-row:hover { background:#f0faf5; }
.search-result-icon { font-size:18px; color:#0b8a65; width:28px; text-align:center; }
.search-result-row b { display:block; color:#1d3c3d; font-size:13px; }
.search-result-row small { display:block; color:#718783; font-size:11px; margin-top:2px; }
.search-result-type { margin-left:auto; padding:2px 8px; border-radius:4px; color:#0b8a65; background:#e7f7ef; font-size:11px; }

/* ── 通知中心 ── */
.notif-wrapper { position:absolute; top:56px; right:16px; z-index:40; }
.notif-dropdown { width:min(360px,90vw); border:1px solid #dce8e3; border-radius:8px; background:#fff; box-shadow:0 12px 36px rgba(0,0,0,.12); overflow:hidden; }
.notif-head { display:flex; align-items:center; gap:8px; padding:12px 16px; border-bottom:1px solid #e5ece9; font-size:13px; color:#1d3c3d; }
.notif-head span { flex:1; color:#718783; font-size:12px; }
.notif-head button { border:0; padding:3px 8px; color:#0b8a65; background:#e7f7ef; border-radius:4px; font-size:11px; }
.notif-head button + button { margin-left:4px; }
.notif-list { max-height:300px; overflow-y:auto; }
.notif-row { display:flex; align-items:center; gap:10px; padding:11px 16px; border-bottom:1px solid #f0f5f2; cursor:pointer; font-size:13px; }
.notif-row:hover { background:#f8fcfa; }
.notif-row.unread { background:#f0faf5; }
.notif-row.unread b { color:#1d3c3d; }
.notif-row b { display:block; color:#3d5a58; font-size:12px; }
.notif-row small { display:block; color:#879b98; font-size:11px; margin-top:2px; }
.notif-icon { font-size:16px; color:#0b8a65; width:24px; text-align:center; flex-shrink:0; }
.notif-dot { width:7px; height:7px; border-radius:50%; background:#0b8a65; flex-shrink:0; }
.notif-empty { padding:24px; text-align:center; color:#879b98; font-size:13px; }

/* ── 工作空间下拉 ── */
.workspace-dropdown { position:absolute; top:100%; left:0; z-index:45; width:260px; margin-top:4px; border:1px solid #dce8e3; border-radius:8px; background:#fff; box-shadow:0 10px 30px rgba(0,0,0,.12); overflow:hidden; }
.ws-head { display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-bottom:1px solid #e5ece9; font-size:13px; }
.ws-head button { border:0; color:#718783; background:transparent; font-size:14px; }
.ws-list { padding:6px; }
.ws-row { display:flex; align-items:center; gap:10px; width:100%; padding:9px 10px; border:0; border-radius:5px; background:transparent; text-align:left; color:inherit; }
.ws-row:hover { background:#f0faf5; }
.ws-row.active { background:#e7f7ef; }
.ws-row b { display:block; color:#1d3c3d; font-size:13px; font-weight:600; }
.ws-row small { display:block; color:#879b98; font-size:11px; }
.ws-row i { margin-left:auto; color:#0b8a65; font-style:normal; }
.ws-foot { padding:8px 14px; border-top:1px solid #e5ece9; }
.ws-foot button { border:0; width:100%; padding:8px; color:#0b8a65; background:transparent; font-size:12px; text-align:left; border-radius:4px; }
.ws-foot button:hover { background:#f0faf5; }

/* ── 通用模态框 ── */
.modal-overlay { position:fixed; z-index:55; inset:0; display:grid; place-items:center; padding:24px; background:rgba(11,34,35,.5); }
.modal-box { width:min(480px,100%); border-radius:10px; background:#fff; padding:28px; box-shadow:0 18px 54px rgba(0,0,0,.2); }
.modal-box.modal-large { width:min(640px,100%); }
.modal-box h3 { margin:0 0 8px; color:#1d3c3d; font-size:18px; }
.modal-box p { color:#718783; font-size:13px; line-height:1.6; }
.modal-box .field { margin-bottom:14px; }
.modal-box .field label { display:block; color:#425d5b; font-size:12px; font-weight:700; margin-bottom:6px; }
.modal-box .field input, .modal-box .field textarea, .modal-box .field select { width:100%; border:1px solid #d8e5e0; border-radius:5px; padding:10px; font-size:13px; color:#234143; outline:0; }
.modal-box .field input:focus, .modal-box .field textarea:focus { border-color:#0b8a65; box-shadow:0 0 0 3px rgba(11,138,101,.1); }
.modal-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:20px; }

/* ── 阶段配置 ── */
.stage-config-list { display:flex; flex-direction:column; gap:4px; }
.stage-config-row { display:flex; align-items:center; justify-content:space-between; padding:9px 12px; border:1px solid #e5ece9; border-radius:5px; font-size:13px; color:#2c4a4c; }
.stage-config-row button { border:0; color:#c43333; background:transparent; font-size:16px; padding:2px 6px; border-radius:3px; }
.stage-config-row button:hover { background:#fef0f0; }

/* ── AI 智能访谈 ── */
.interview-box { margin-top:16px; padding:18px; border:1px solid #dce8e3; border-radius:8px; background:#f8fcfa; }
.interview-question { padding:14px; border-radius:6px; background:#e7f7ef; color:#1d3c3d; font-size:14px; line-height:1.7; margin-bottom:14px; }
.interview-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:12px; }
#interviewAnswer { width:100%; border:1px solid #d8e5e0; border-radius:6px; padding:11px; font-size:13px; color:#234143; outline:0; resize:vertical; }
#interviewAnswer:focus { border-color:#0b8a65; box-shadow:0 0 0 3px rgba(11,138,101,.1); }

/* ── 上传素材 ── */
.upload-zone { padding:32px; border:2px dashed #b9ddcf; border-radius:8px; text-align:center; background:#f8fcfa; margin:16px 0; }
.upload-zone:hover { border-color:#0b8a65; background:#f0faf5; }
.upload-file-list { margin-top:12px; }
.upload-file-row { display:flex; align-items:center; justify-content:space-between; padding:8px 12px; border:1px solid #e5ece9; border-radius:5px; margin-bottom:6px; font-size:13px; color:#2c4a4c; }
.upload-status { color:#879b98; font-size:12px; }

/* ── 训练记录 ── */
.training-record-list { display:flex; flex-direction:column; gap:8px; margin-top:16px; max-height:400px; overflow-y:auto; }
.training-record-row { display:flex; align-items:center; gap:12px; padding:10px 14px; border:1px solid #e5ece9; border-radius:6px; }
.tr-icon { font-size:20px; width:32px; text-align:center; flex-shrink:0; }
.tr-info { flex:1; }
.tr-info b { display:block; color:#1d3c3d; font-size:13px; }
.tr-info small { display:block; color:#879b98; font-size:11px; margin-top:2px; }
.tr-progress { width:60px; height:5px; border-radius:5px; background:#e4ece9; overflow:hidden; }
.tr-progress i { display:block; height:100%; background:#0b8a65; }

/* ── 延后弹窗 ── */
.followup-done { opacity:.55; }
.followup-done strong { text-decoration:line-through; }

/* ── 表情面板 ── */
.emoji-panel { display:grid !important; }
.emoji-btn:hover { background:#f0f4f2 !important; }

/* ── 语音按钮激活 ── */
.voice-active { color:#c43333 !important; animation:pulse-voice 1s infinite; }
@keyframes pulse-voice { 0%,100% { opacity:1; } 50% { opacity:.4; } }

/* ── 响应式补充 ── */
@media (max-width:700px) {
  .search-modal { width:100%; }
  .notif-wrapper { right:8px; left:8px; }
  .notif-dropdown { width:100%; }
  .workspace-dropdown { width:220px; }
  .modal-box { padding:20px; }
  .modal-box.modal-large { width:100%; }
}
