/* 智核 — 蓝紫主色（与底部「应用创建」卡片一致） */
body.zhihe-light {
  --zh-violet: #7c3aed;
  --zh-violet-hover: #8b5cf6;
  --zh-violet-deep: #6d28d9;
  --zh-surface-hover: #f3f4f6;
  --zh-tag-bg: #f3f4f6;
  --zh-violet-border: #e5e7eb;
  --zh-violet-ring: rgba(124, 58, 237, 0.14);
  --zh-gradient: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 55%, #6366f1 100%);
  color: #1f2937;
  background: #f7f8fa !important;
  background-size: auto !important;
}

body.zhihe-light main {
  background: #f7f8fa;
}

body.zhihe-light main .container.zhihe-page {
  width: min(960px, calc(100% - 32px));
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px 0 56px;
}

body.zhihe-light .topbar {
  background: #fff;
  border-bottom: 1px solid #e8eaed;
  backdrop-filter: none;
}

body.zhihe-light .brand,
body.zhihe-light .menu-toggle {
  color: #1f2937;
}

body.zhihe-light .menu-toggle:hover,
body.zhihe-light .menu-item.open .menu-toggle {
  background: var(--zh-surface-hover);
  border-color: #e5e7eb;
  color: var(--zh-violet);
}

body.zhihe-light .submenu {
  background: #fff;
  border-color: #e8eaed;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body.zhihe-light .user-link,
body.zhihe-light .logout-btn {
  background: #fff;
  color: #4b5563;
  border-color: #e5e7eb;
}

body.zhihe-light footer {
  border-top-color: #e8eaed;
  color: #9ca3af;
  background: #f7f8fa;
}

/* —— 听记顶栏 —— */
.zhihe-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.zhihe-page-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
}

.zhihe-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.zhihe-promo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 12px;
  max-width: 420px;
}

.zhihe-promo-text {
  flex: 1;
  min-width: 0;
}

.zhihe-promo-dismiss {
  border: none;
  background: transparent;
  color: var(--zh-violet);
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  white-space: nowrap;
  font-family: inherit;
}

.zhihe-topbar-clock {
  border: none;
  background: transparent;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  padding: 6px 4px;
  white-space: nowrap;
}

.zhihe-topbar-clock:hover {
  color: var(--zh-violet);
}

/* —— 听记 Hero —— */
.zhihe-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 28px;
  padding: 24px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #f8fafc 100%);
  border: 1px solid #e8ecf4;
}

.zhihe-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.zhihe-hero-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.zhihe-hero-mic {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--zh-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zhihe-hero-heading {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.zhihe-hero-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.8;
}

.zhihe-hero-list li::before {
  content: "·";
  color: var(--zh-violet);
  font-weight: 700;
  margin-right: 6px;
}

.zhihe-upload {
  background: #fff;
  border-radius: 10px;
  border: 1px dashed var(--zh-violet-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 16px;
  min-height: 188px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.zhihe-upload:hover,
.zhihe-upload.is-dragover {
  border-color: var(--zh-violet);
  box-shadow: 0 4px 16px var(--zh-violet-ring);
}

.zhihe-upload-graphic {
  line-height: 0;
}

.zhihe-upload-main {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.zhihe-upload-sub {
  font-size: 12px;
  color: #9ca3af;
}

/* —— 百炼欢迎语 + 主卡片 —— */
.zhihe-welcome {
  text-align: center;
  margin: 12px 0 24px;
  padding-top: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  letter-spacing: -0.01em;
}

.zhihe-studio {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8eaed;
  box-shadow: none;
  overflow: hidden;
  margin-bottom: 24px;
}

.zhihe-tabs {
  display: flex;
  gap: 0;
  padding: 12px 16px 0;
  background: #f5f6fa;
  border-bottom: 1px solid #e8eaed;
}

.zhihe-tab {
  background: transparent;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px 8px 0 0;
  margin-bottom: -1px;
  border: none;
  box-shadow: none;
  outline: none;
}

.zhihe-tab.active {
  color: var(--zh-violet);
  background: #fff;
  border-color: #e8eaed;
  border-bottom-color: #fff;
  font-weight: 600;
}

.zhihe-tab.active .zhihe-tab-ico {
  color: var(--zh-violet);
}

.zhihe-tab-ico {
  display: inline-flex;
  color: #9ca3af;
}

.zhihe-studio-body {
  padding: 0;
  background: #fff;
}

.zhihe-model-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 16px 20px 12px;
  font-size: 13px;
}

.zhihe-model-label {
  font-weight: 500;
  color: #374151;
  flex-shrink: 0;
}

.zhihe-model-select-wrap {
  display: inline-flex;
  align-items: stretch;
  /*border: 1px solid #d1d5db;*/
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: none;
  outline: none;
}

.zhihe-model-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-height: 32px;
  background: var(--zh-gradient);
  flex-shrink: 0;
  border: none;
  box-shadow: none;
}

.zhihe-model-select {
  border: 0;
  margin: 0;
  padding: 6px 28px 6px 8px;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  line-height: 1.4;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M3 4.5L6 7.5 9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-width: 160px;
  cursor: pointer;
  outline: none;
  box-shadow: none;
}

.zhihe-model-select:focus,
.zhihe-model-select:focus-visible {
  outline: none;
  box-shadow: none;
}

.zhihe-hint {
  color: #9ca3af;
  font-size: 13px;
  flex: 1 1 180px;
}

/* 百炼：额度 + 输入合一 */
.zhihe-compose {
  margin: 0 20px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  position: relative;
  box-shadow: none;
  transition: border-color 0.2s;
}

.zhihe-compose:focus-within {
  border-color: var(--zh-violet);
  box-shadow: none;
  outline: none;
}

.zhihe-quota-row {
  padding: 10px 14px 0;
  font-size: 12px;
  color: #9ca3af;
}

.zhihe-quota-label {
  color: #9ca3af;
}

#zhiheQuotaLine {
  color: #6b7280;
  font-weight: 500;
}

.zhihe-textarea {
  width: 100%;
  min-height: 50px;
  max-height: 70px;
  border: none;
  background: transparent;
  resize: vertical;
  padding: 6px 14px 32px;
  font-size: 14px;
  line-height: 1.5;
  color: #111827;
  font-family: inherit;
  outline: none;
  display: block;
}

.zhihe-textarea::placeholder {
  color: #c4c9d2;
}

.zhihe-input-foot {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.zhihe-char-count {
  font-size: 12px;
  color: #c4c9d2;
}

.zhihe-send {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: var(--zh-violet);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.zhihe-send:hover {
  background: var(--zh-violet-hover);
}

.zhihe-send-ico {
  display: block;
}

/* —— 百炼底部双卡 —— */
.zhihe-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.zhihe-feature-card {
  border-radius: 12px;
  padding: 28px 24px 22px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.zhihe-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 11px,
    rgba(255, 255, 255, 0.35) 11px,
    rgba(255, 255, 255, 0.35) 12px
  );
  pointer-events: none;
}

.zhihe-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.zhihe-feature-card--blue {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: rgba(148, 163, 184, 0.2);
}

.zhihe-feature-card--purple {
  background: linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
  border-color: rgba(139, 92, 246, 0.12);
}

.zhihe-feature-ico-wrap {
  position: relative;
  z-index: 1;
  line-height: 0;
  margin-bottom: 4px;
}

.zhihe-feature-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  position: relative;
  z-index: 1;
}

.zhihe-feature-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
  flex: 1;
  position: relative;
  z-index: 1;
  max-width: 280px;
}

.zhihe-feature-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.zhihe-feature-links span {
  color: var(--zh-violet);
}

.zhihe-feature-links--purple span {
  color: var(--zh-violet);
}

/* —— 听记笔记列表 —— */
.zhihe-sessions {
  margin-top: 8px;
}

.zhihe-sessions-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 16px;
}

.zhihe-sessions-head-left {
  flex: 1;
  min-width: 0;
}

.zhihe-sessions-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.zhihe-sessions-select-row {
  margin-top: 10px;
  padding-left: 4px;
}

.zhihe-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #6b7280;
  user-select: none;
}

.zhihe-select-all input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #7c3aed;
  cursor: pointer;
}

.zhihe-sessions-refresh {
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 8px;
  flex-shrink: 0;
}

.zhihe-sessions-refresh::before {
  content: "⟳";
  margin-right: 6px;
}

.zhihe-sessions-refresh:hover {
  color: var(--zh-violet);
}

.zhihe-sessions-bulk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.14);
}

.zhihe-sessions-bulk[hidden] {
  display: none !important;
}

.zhihe-sessions-bulk-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.zhihe-sessions-bulk-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.zhihe-sessions-picked {
  font-size: 13px;
  color: #7c3aed;
}

.zhihe-sessions-picked strong {
  font-weight: 700;
}

.zhihe-batch-delete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  background: rgba(254, 242, 242, 0.9);
  color: #dc2626;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.zhihe-batch-delete:hover {
  background: #fee2e2;
}

.zhihe-session-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.zhihe-session-card {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  padding: 14px 14px 12px;
  min-height: 210px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto 1fr auto;
  gap: 8px 10px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.zhihe-session-card:hover {
  border-color: var(--zh-violet-border);
  box-shadow: 0 4px 12px var(--zh-violet-ring);
}

.zhihe-session-card.is-selected {
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.2);
}

.zhihe-session-check {
  grid-row: 1 / span 2;
  align-self: start;
  margin-top: 2px;
  accent-color: var(--zh-violet);
}

.zhihe-session-card-top {
  grid-column: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.zhihe-session-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.45;
  flex: 1;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zhihe-session-preview-btn {
  flex-shrink: 0;
  font-size: 11px;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  font-family: inherit;
}

.zhihe-session-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.zhihe-session-delete-btn {
  flex-shrink: 0;
  font-size: 11px;
  color: #b45309;
  border: 1px solid #fde68a;
  background: #fffbeb;
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.zhihe-session-delete-btn:hover {
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
}

.zhihe-session-preview-btn:hover {
  color: var(--zh-violet);
  border-color: rgba(124, 58, 237, 0.25);
  background: #f5f0ff;
}

.zhihe-session-tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 22px;
}

.zhihe-session-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--zh-tag-bg);
  color: var(--zh-violet-deep);
  font-weight: 500;
}

.zhihe-session-summary {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: #9ca3af;
  padding-left: 22px;
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zhihe-session-summary strong {
  color: #6b7280;
  font-weight: 600;
}

.zhihe-session-foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #c4c9d2;
  padding-left: 22px;
  padding-top: 6px;
  border-top: 1px solid #f3f4f6;
}

.zhihe-answer {
  margin-top: 14px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.zhihe-answer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.zhihe-answer-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--zh-violet-deep);
}

.zhihe-answer-close {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  cursor: pointer;
}

.zhihe-answer-close:hover {
  color: var(--zh-violet);
}

.zhihe-answer-body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
  max-height: 320px;
  overflow: auto;
}

.zhihe-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.zhihe-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
}

.zhihe-modal[hidden] {
  display: none !important;
}

.zhihe-modal-dialog {
  width: min(720px, 100%);
  max-height: min(80vh, 640px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.zhihe-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
}

.zhihe-modal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.zhihe-modal-close {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
}

.zhihe-modal-body {
  margin: 0;
  padding: 16px 18px 20px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.65;
  color: #374151;
}

body.zhihe-modal-open {
  overflow: hidden;
}

.zhihe-modal--confirm .zhihe-confirm-dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 24px 22px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.zhihe-confirm-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
}

.zhihe-confirm-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.zhihe-confirm-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff7ed;
  color: #f97316;
  font-size: 22px;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
}

.zhihe-confirm-copy h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.zhihe-confirm-copy p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.zhihe-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.zhihe-confirm-cancel {
  min-width: 96px;
  padding: 9px 18px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.zhihe-confirm-submit {
  min-width: 96px;
  padding: 9px 18px;
  border: none;
  border-radius: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.zhihe-confirm-submit:hover {
  background: #dc2626;
}

.zhihe-confirm-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.zhihe-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
  font-size: 14px;
  background: #fff;
  border-radius: 10px;
  border: 1px dashed #e5e7eb;
}

.zhihe-hidden-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* 废弃旧类名兼容 */
.zhihe-subbar,
.zhihe-subbar-link,
.zhihe-input-panel,
.zhihe-input-wrap {
  display: contents;
}

@media (max-width: 900px) {
  .zhihe-hero {
    grid-template-columns: 1fr;
  }
  .zhihe-features {
    grid-template-columns: 1fr;
  }
  .zhihe-session-grid {
    grid-template-columns: 1fr;
  }
  .zhihe-promo {
    max-width: 100%;
  }
}

/* —— 智核设计稿还原 —— */
body.zhihe-light {
  --zh-page-bg: #fbfaff;
  --zh-ink: #141734;
  --zh-muted: #7c8095;
  --zh-card-line: rgba(126, 103, 255, 0.1);
  --zh-soft-shadow: 0 18px 42px rgba(107, 78, 255, 0.08);
  color: var(--zh-ink);
  background:
    radial-gradient(620px 300px at 53% 0%, rgba(154, 116, 255, 0.18), transparent 64%),
    radial-gradient(520px 300px at 6% 18%, rgba(98, 157, 255, 0.12), transparent 68%),
    linear-gradient(180deg, #fbfaff 0%, #f8fbff 100%) !important;
}

body.zhihe-light footer {
  display: none;
}

body.zhihe-light .topbar {
  display: block;
}

body.zhihe-light main {
  min-height: 100vh;
  background: transparent;
}

body.zhihe-light main .container.zhihe-page {
  width: min(1152px, calc(100% - 96px));
  max-width: 1152px;
  padding: 40px 0 44px;
}

.zhihe-hero-head {
  text-align: center;
  padding-top: 52px;
  margin-bottom: 4px;
}

.zhihe-welcome {
  margin: 0;
  padding: 0;
  font-size: clamp(36px, 4.6vw, 52px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #121631;
}

.zhihe-welcome span {
  color: #7c3aed;
  background: linear-gradient(90deg, #5836e7 0%, #8a48ff 58%, #5c7cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.zhihe-subtitle {
  margin: 18px 0 28px;
  color: #596078;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.zhihe-studio {
  position: relative;
  z-index: 30;
  overflow: visible;
  margin: 0 0 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.zhihe-studio.is-model-menu-open {
  z-index: 80;
}

.zhihe-tabs,
.zhihe-model-row,
.zhihe-quota-row {
  display: none;
}

.zhihe-studio-body {
  position: relative;
  z-index: 1;
  overflow: visible;
  background: transparent;
}

.zhihe-compose {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  margin: 0;
  padding: 14px 14px 14px 20px;
  border: 1.5px solid rgba(142, 120, 255, 0.2);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px rgba(103, 74, 255, 0.12);
  backdrop-filter: blur(16px);
  overflow: visible;
  --zh-compose-control-h: 44px;
}

.zhihe-compose-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--zh-compose-control-h, 44px);
}

.zhihe-compose-tools {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  height: 100%;
}

.zhihe-compose:focus-within {
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: 0 20px 46px rgba(103, 74, 255, 0.16);
}

.zhihe-add-btn {
  width: var(--zh-compose-control-h, 44px);
  height: var(--zh-compose-control-h, 44px);
  flex: 0 0 var(--zh-compose-control-h, 44px);
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.zhihe-textarea {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 74px;
  margin: 0;
  padding: 0 4px 0 2px;
  overflow: hidden;
  resize: none;
  border: 0;
  outline: none;
  font-size: 18px;
  line-height: var(--zh-compose-control-h, 44px);
  color: #1f2438;
  background: transparent;
  display: block;
  box-sizing: border-box;
}

.zhihe-textarea::placeholder {
  color: #a6aabd;
  line-height: var(--zh-compose-control-h, 44px);
}

.zhihe-input-foot {
  display: none;
}

.zhihe-model-switch-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 100%;
  overflow: visible;
}

.zhihe-model-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  min-height: var(--zh-compose-control-h, 44px);
  border: 1px solid rgba(124, 58, 237, 0.32);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #5b35ef;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  padding: 0 14px;
  box-sizing: border-box;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.zhihe-model-switch:hover {
  color: #6d35f1;
  border-color: rgba(124, 58, 237, 0.48);
  background: #faf8ff;
}

.zhihe-model-switch[aria-expanded="true"] {
  border-color: rgba(124, 58, 237, 0.55);
  background: #f5f0ff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.zhihe-model-switch-caret {
  flex: 0 0 auto;
  transition: transform 0.16s ease;
}

.zhihe-model-switch[aria-expanded="true"] .zhihe-model-switch-caret {
  transform: rotate(180deg);
}

.zhihe-model-tab-card {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  z-index: 200;
  width: max-content;
  min-width: 100%;
  max-width: min(320px, 92vw);
  border: 1px solid rgba(142, 120, 255, 0.2);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(93, 63, 211, 0.18);
  overflow: hidden;
}

.zhihe-model-tab-card[hidden] {
  display: none;
}

.zhihe-model-tab-head {
  padding: 8px 12px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(142, 120, 255, 0.08);
}

.zhihe-model-tab-list {
  list-style: none;
  margin: 0;
  padding: 4px;
  max-height: 220px;
  overflow-y: auto;
}

.zhihe-model-tab-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #1f2438;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease;
}

.zhihe-model-tab-item-label {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.zhihe-model-tab-item:hover {
  background: #f5f0ff;
  color: #6d28d9;
}

.zhihe-model-tab-item.is-active {
  background: #f0ebff;
  color: #7c3aed;
  font-weight: 700;
}

.zhihe-model-tab-item-check {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  opacity: 0;
}

.zhihe-model-tab-item-check svg {
  display: block;
  width: 14px;
  height: 14px;
}

.zhihe-model-tab-item.is-active .zhihe-model-tab-item-check {
  opacity: 1;
}

.zhihe-model-tab-empty {
  padding: 18px 14px;
  text-align: center;
  color: #8b90a2;
  font-size: 13px;
  line-height: 1.5;
}

.zhihe-char-count {
  display: none;
}

.zhihe-send {
  width: var(--zh-compose-control-h, 44px);
  height: 100%;
  min-height: var(--zh-compose-control-h, 44px);
  flex: 0 0 var(--zh-compose-control-h, 44px);
  border: 0;
  border-radius: 12px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #8f4cff 0%, #6e35f0 100%);
  box-shadow: 0 6px 14px rgba(112, 56, 239, 0.2);
  transition: box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.zhihe-send:hover {
  background: linear-gradient(135deg, #9a5cff 0%, #7238f5 100%);
  box-shadow: 0 8px 18px rgba(112, 56, 239, 0.26);
}

.zhihe-send:active {
  box-shadow: 0 4px 10px rgba(112, 56, 239, 0.18);
}

.zhihe-send-ico {
  width: 18px;
  height: 18px;
  display: block;
}

.zhihe-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.zhihe-answer {
  margin: 0 0 28px;
  padding: 18px 20px 20px;
  border: 1px solid rgba(126, 103, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--zh-soft-shadow);
}

.zhihe-answer-head {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.zhihe-answer-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #171a34;
  font-size: 17px;
  font-weight: 900;
}

.zhihe-answer-label span {
  color: #7c3aed;
  font-size: 16px;
}

.zhihe-answer-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.zhihe-answer-action {
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0;
  background: transparent;
  color: #8b90a2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.zhihe-answer-action:hover,
.zhihe-answer-action:focus-visible {
  color: #6d28d9;
  background: #f5f0ff;
  border-color: rgba(124, 58, 237, 0.18);
  outline: none;
}

.zhihe-answer-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  background: transparent;
  border-color: transparent;
}

.zhihe-answer-body {
  min-height: 226px;
  max-height: none;
  padding: 0;
  border: 1.5px solid rgba(126, 103, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.zhihe-answer-body:not(:has(.zhihe-output-empty)) {
  padding: 18px 20px;
  white-space: pre-wrap;
  word-break: break-word;
}

.zhihe-output-empty {
  min-height: 224px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: #7e8498;
}

.zhihe-output-empty-icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(180deg, #c8a8ff 0%, #8b5cf6 100%);
  box-shadow: 0 16px 28px rgba(123, 86, 235, 0.24);
}

.zhihe-output-empty-icon::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 22px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 -8px 0 rgba(255, 255, 255, 0.42);
}

.zhihe-output-empty-icon::after {
  content: "✦";
  position: absolute;
  right: -14px;
  top: -14px;
  color: #8b5cf6;
  font-size: 17px;
}

.zhihe-output-empty strong {
  color: #171a34;
  font-size: 20px;
  line-height: 1.2;
}

.zhihe-output-empty span {
  color: #8b90a2;
  font-size: 14px;
}

.zhihe-features {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  margin-bottom: 26px;
}

.zhihe-feature-card {
  min-height: 228px;
  padding: 38px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: center;
  gap: 20px;
  text-align: left;
  border: 1px solid var(--zh-card-line);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(249, 250, 255, 0.72)),
    repeating-linear-gradient(90deg, transparent 0 15px, rgba(125, 141, 255, 0.035) 15px 16px);
  box-shadow: 0 18px 42px rgba(108, 93, 211, 0.08);
}

.zhihe-feature-card::before {
  content: none;
}

.zhihe-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(108, 93, 211, 0.13);
}

.zhihe-feature-copy,
.zhihe-feature-card h3,
.zhihe-feature-card p,
.zhihe-feature-links,
.zhihe-feature-visual {
  position: relative;
  z-index: 1;
}

.zhihe-feature-card h3 {
  margin: 0 0 18px;
  font-size: 23px;
  line-height: 1.2;
  color: #151936;
}

.zhihe-feature-card p {
  max-width: 300px;
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.9;
  color: #697087;
}

.zhihe-feature-links {
  gap: 28px;
  font-size: 15px;
  font-weight: 800;
}

.zhihe-feature-links span {
  color: #7c3aed;
}

.zhihe-feature-visual {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zhihe-feature-img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(450px, 100%);
  max-height: 245px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(109, 40, 217, 0.18));
}

/* 应用创建卡片插图（image.png）略放大 */
.zhihe-feature-card--purple {
  grid-template-columns: minmax(0, 1fr) 250px;
}

.zhihe-feature-visual--app .zhihe-feature-img {
  width: min(520px, 128%);
  max-height: 292px;
}

.zhihe-feature-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 142px;
  height: 36px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(128, 90, 255, 0.25), rgba(128, 90, 255, 0.06) 62%, transparent 70%);
}

.zhihe-feature-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 92px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 9px solid rgba(128, 90, 255, 0.16);
  background: rgba(255, 255, 255, 0.78);
}

.zhihe-ai-cube {
  position: relative;
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  border-radius: 24px;
  transform: rotate(-35deg) skew(8deg);
  background: linear-gradient(145deg, #bfa6ff 0%, #8d5cff 58%, #6c3de5 100%);
  box-shadow: 0 22px 36px rgba(110, 69, 231, 0.28);
}

.zhihe-ai-cube::before,
.zhihe-ai-cube::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(136, 97, 255, 0.36);
}

.zhihe-ai-cube::before {
  inset: -22px -48px;
  transform: rotate(25deg);
}

.zhihe-ai-cube::after {
  width: 10px;
  height: 10px;
  right: -30px;
  top: 12px;
  background: #9b75ff;
  box-shadow: -110px 74px 0 -2px #b899ff, -80px -28px 0 -3px #d3c2ff, 48px 62px 0 -3px #c6b1ff;
}

.zhihe-feature-visual--app {
  display: flex;
  height: 170px;
  overflow: visible;
}

.zhihe-feature-visual--app span {
  display: block;
  border-radius: 12px;
  background: linear-gradient(145deg, #80a9ff 0%, #5b7df0 100%);
  box-shadow: inset 0 1px 8px rgba(255, 255, 255, 0.36), 0 12px 22px rgba(82, 113, 228, 0.2);
}

.zhihe-feature-visual--app span:nth-child(1),
.zhihe-feature-visual--app span:nth-child(3) {
  transform: translateY(5px);
}

.zhihe-feature-visual--app::before {
  bottom: 5px;
  background: radial-gradient(ellipse at center, rgba(88, 126, 238, 0.28), rgba(88, 126, 238, 0.07) 62%, transparent 70%);
}

.zhihe-feature-visual--app::after {
  border-color: rgba(88, 126, 238, 0.16);
}

.zhihe-feature-visual--app span:nth-child(4)::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 62px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b6d0ff, #6d91ee);
  box-shadow: -154px 64px 0 -5px #7da2f6, -124px 84px 0 -7px #a7bef7;
}

.zhihe-sessions {
  margin-top: 0;
}

.zhihe-sessions-head {
  margin-bottom: 22px;
}

.zhihe-sessions-title {
  position: relative;
  padding-bottom: 10px;
  font-size: 18px;
  font-weight: 900;
  color: #171a34;
}

.zhihe-sessions-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5b35ef, rgba(91, 53, 239, 0));
}

.zhihe-sessions-select-row {
  padding-left: 6px;
}

.zhihe-sessions-refresh {
  color: #6f7489;
  font-size: 14px;
}

.zhihe-sessions-bulk {
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(91, 53, 239, 0.07);
  border-color: rgba(91, 53, 239, 0.12);
}

.zhihe-session-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zhihe-empty {
  min-height: 196px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 34px 20px;
  border: 1px dashed rgba(128, 132, 156, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  color: #7c8095;
  font-size: 15px;
}

.zhihe-empty-icon {
  position: relative;
  width: 58px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(180deg, #c6a7ff, #8c5ff4);
  box-shadow: 0 14px 28px rgba(123, 86, 235, 0.22);
}

.zhihe-empty-icon::before {
  content: "";
  position: absolute;
  left: 9px;
  top: -8px;
  width: 24px;
  height: 14px;
  border-radius: 8px 8px 0 0;
  background: #d6c2ff;
}

.zhihe-empty-icon::after {
  content: "✦";
  position: absolute;
  right: -19px;
  top: -18px;
  color: #9a79f4;
  font-size: 19px;
}

.zhihe-empty strong {
  display: block;
  color: #151936;
  font-size: 22px;
  line-height: 1;
}

.zhihe-empty span {
  color: #7e8498;
}

@media (max-width: 980px) {
  body.zhihe-light main .container.zhihe-page {
    width: min(100% - 32px, 760px);
  }

  .zhihe-subtitle {
    letter-spacing: 0.14em;
    font-size: 17px;
  }

  .zhihe-compose {
    min-height: 68px;
    padding: 12px 12px 12px 16px;
    gap: 10px;
  }

  .zhihe-model-switch {
    display: none;
  }

  .zhihe-features {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .zhihe-welcome {
    font-size: 32px;
  }

  .zhihe-subtitle {
    margin-bottom: 20px;
    letter-spacing: 0.08em;
  }

  .zhihe-feature-card {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }

  .zhihe-feature-visual {
    display: none;
  }
}
