:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --text: #111111;
  --muted: #8c8c8c;
  --line: #ececec;
  --brand: #ff7801;
  --brand-blue-color: #9244e5;
  --brand-purple-color: #6a11cb;
  --brand-soft: #fff5eb;
  --shadow: 0 10px 28px rgba(17, 17, 17, 0.08);
  --shadow-soft: 0 6px 18px rgba(17, 17, 17, 0.06);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.app-shell {
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.page-shell {
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: calc(86px + var(--safe-bottom));
}

.page-shell.no-tabbar {
  padding-bottom: calc(132px + var(--safe-bottom));
}

.custom-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.custom-nav-inner {
  height: 54px;
  padding: calc(8px + var(--safe-top)) 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-nav-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  flex: 1;
}

.custom-nav-side {
  width: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-nav-side.right {
  justify-content: flex-end;
}

.nav-icon-btn {
  position: relative;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-icon-btn img,
.nav-icon-btn span {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.nav-badge {
  position: absolute;
  top: 1px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff5b57;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  box-sizing: border-box;
}

.page-body {
  padding: 0 0 calc(132px + var(--safe-bottom));
}

.home-page {
  background: #fff;
}

.banner-section {
  position: relative;
  width: 100%;
  margin-bottom: 14px;
}

.banner-swiper {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  background: transparent;
  overflow: hidden;
}

.banner-slide {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  appearance: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide img,
.banner-slide video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: transparent;
}

.banner-text {
  position: absolute;
  left: 22px;
  bottom: 54px;
  z-index: 2;
  color: #fff;
  max-width: 72%;
  white-space: pre-wrap;
  line-height: 1.2;
  font-size: 30px;
  font-weight: 800;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.36);
  pointer-events: none;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.44) 100%);
  pointer-events: none;
}

.custom-indicator {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 2px;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
}

.indicator-dot.active {
  width: 28px;
  background: var(--brand);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px 12px;
}

.section-header img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.tool-card {
  border: none;
  background: #fff;
  padding: 0;
  display: block;
}

.tool-card img,
.function-item img,
.material-card img,
.ip-image-button img {
  width: 100%;
  display: block;
}

.material-section {
  padding-top: 6px;
  background: #fff;
}

.material-card {
  margin: 14px 22px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.material-card .material-count {
  position: absolute;
  left: 18px;
  bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.72);
}

.material-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr 1fr;
  gap: 12px;
  padding: 0 22px;
}

.material-grid .material-card {
  margin: 0;
}

.function-section {
  padding: 18px 22px 0;
}

.function-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.function-item {
  border: none;
  background: transparent;
  padding: 0;
}

.page-container {
  padding: 0 16px 24px;
}

.main-banner,
.workbench-banner {
  margin: 0 16px 16px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.main-banner img,
.workbench-banner img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.ip-plan-section {
  margin: 0 16px 16px;
}

.ip-buttons {
  display: flex;
  gap: 12px;
}

.ip-image-button {
  flex: 1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.content-card,
.industry-selector-card,
.category-section,
.agent-section,
.menu-section,
.stats-section,
.points-card,
.panel-card,
.history-sheet,
.post-item,
.list-card,
.form-card,
.empty-card,
.selection-card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.industry-selector-card,
.category-section,
.agent-section,
.menu-section,
.stats-section,
.panel-card,
.list-card,
.form-card,
.selection-card {
  padding: 16px;
  margin: 0 16px 16px;
}

.industry-selector-header,
.panel-title-row,
.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.industry-label,
.panel-title,
.category-title,
.subtle-title {
  font-size: 16px;
  font-weight: 700;
}

.industry-display,
.picker-display,
.field-control,
.field-textarea,
.field-input {
  width: 100%;
  border-radius: 14px;
  background: #f7f7f7;
  border: 1px solid transparent;
}

.industry-display,
.picker-display {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.industry-name {
  font-size: 16px;
  font-weight: 700;
}

.industry-tip,
.field-hint,
.muted-text,
.tip-text,
.list-meta,
.post-time,
.menu-note,
.tag-note,
.helper-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.workbench-row,
.category-grid,
.agent-grid,
.stats-items,
.mini-grid,
.action-row {
  display: grid;
  gap: 12px;
}

.workbench-row,
.category-grid,
.mini-grid {
  grid-template-columns: repeat(3, 1fr);
}

.agent-grid {
  grid-template-columns: repeat(4, 1fr);
}

.stats-items {
  grid-template-columns: repeat(4, 1fr);
}

.workbench-item,
.category-item,
.agent-item,
.stats-item,
.mini-card,
.menu-item,
.selectable-card,
.tab-chip,
.sub-tab-chip,
.type-chip {
  border: none;
  background: #fff;
}

.workbench-item {
  border-radius: 16px;
  padding: 14px 10px;
  box-shadow: inset 0 0 0 1px #f0f0f0;
}

.workbench-item.disabled,
.category-item.disabled,
.agent-item.disabled {
  opacity: 0.5;
}

.workbench-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}

.workbench-name,
.category-item span,
.agent-name,
.stats-label {
  display: block;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
}

.category-item {
  border-radius: 14px;
  padding: 16px 10px;
  box-shadow: inset 0 0 0 1px #efefef;
  text-align: center;
}

.category-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff2e6 0%, #fff 100%);
}

.category-item.enterprise .category-icon {
  background: linear-gradient(180deg, #f2f6ff 0%, #fff 100%);
}

.category-item.material .category-icon {
  background: linear-gradient(180deg, #fff4ea 0%, #fff 100%);
}

.agent-item {
  border-radius: 16px;
  padding: 12px 8px;
  box-shadow: inset 0 0 0 1px #efefef;
  text-align: center;
}

.agent-item img {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  margin: 0 auto 8px;
  background: #f3f3f3;
}

.agent-name {
  font-size: 12px;
}

.chat-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #fff;
}

.chat-content {
  flex: 1;
  padding: 16px 16px 140px;
  background: #fff;
}

.welcome-section {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.ai-avatar {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  overflow: hidden;
  background: #f2f2f2;
  flex-shrink: 0;
}

.ai-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.question-tag,
.tab-chip,
.sub-tab-chip,
.type-chip,
.knowledge-chip,
.small-btn,
.meta-pill {
  border-radius: 999px;
  border: none;
  padding: 10px 14px;
  background: #f7f7f7;
  font-size: 13px;
}

.tab-chip.active,
.sub-tab-chip.active,
.type-chip.active,
.knowledge-chip.active,
.small-btn.primary,
.meta-pill.active {
  background: var(--brand);
  color: #fff;
}

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

.message-item {
  display: flex;
}

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

.message-content {
  max-width: 86%;
  border-radius: 18px;
  padding: 14px 16px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-item.ai .message-content {
  background: #f6f6f6;
}

.message-item.user .message-content {
  background: var(--brand);
  color: #fff;
}

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

.message-actions img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.chat-input-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(520px, 100vw);
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 10px 16px calc(12px + var(--safe-bottom));
  z-index: 25;
}

.chat-input-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #f5f5f5;
  border-radius: 18px;
  padding: 12px 12px 12px 16px;
}

.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
}

.send-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #ddd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.send-btn.active {
  background: var(--brand);
}

.send-btn img {
  width: 18px;
  height: 18px;
}

.history-drawer-mask,
.modal-mask,
.sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 60;
}

.history-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 86vw);
  height: 100vh;
  background: #fff;
  z-index: 61;
  padding: calc(16px + var(--safe-top)) 16px 20px;
  box-shadow: -18px 0 36px rgba(0, 0, 0, 0.16);
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.history-item {
  border-radius: 16px;
  padding: 14px;
  background: #f7f7f7;
}

.video-history-page .history-list {
  padding: 0 14px 100px;
}

.video-history-page .history-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.video-history-page .history-item.selected {
  background: #f7fbff;
  outline: 1px solid rgba(52, 112, 255, 0.18);
}

.select-indicator {
  border: none;
  background: transparent;
  padding: 0;
  align-self: center;
}

.select-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #c6c9cf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.select-circle.checked {
  border-color: var(--brand);
  background: var(--brand);
}

.select-circle.checked::after {
  content: '';
  width: 6px;
  height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
}

.tabs-container {
  position: sticky;
  top: 0;
  z-index: 15;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 14px;
  white-space: nowrap;
}

.tab-item {
  border: none;
  background: transparent;
  color: #666;
  padding: 14px 4px 12px;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  flex: 0 0 auto;
}

.tab-item.active {
  color: var(--brand);
  font-weight: 700;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
}

.filter-options {
  background: #fff;
  margin: 12px 14px;
  padding: 16px;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.filter-title {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.filter-items,
.filter-btn-group,
.action-buttons,
.batch-actions {
  display: flex;
  gap: 10px;
}

.filter-items {
  margin-bottom: 14px;
}

.filter-item,
.filter-btn,
.batch-btn,
.action-btn,
.batch-select-all {
  border: none;
  border-radius: 999px;
  background: #f3f4f6;
  color: #555;
}

.filter-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
}

.filter-item.active {
  background: var(--brand);
  color: #fff;
}

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

.date-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  background: #f7f7f7;
  color: #666;
  font-size: 13px;
}

.date-item input {
  border: none;
  background: transparent;
  color: #222;
  font-size: 13px;
  outline: none;
}

.filter-btn {
  flex: 1;
  padding: 12px 0;
  font-weight: 600;
}

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

.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  margin-bottom: 10px;
}

.history-count {
  font-size: 13px;
  color: #999;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
}

.action-icon {
  width: 16px;
  height: 16px;
}

.history-cover-wrap {
  border: none;
  background: transparent;
  padding: 0;
  width: 112px;
  flex: 0 0 112px;
}

.history-cover {
  width: 112px;
  height: 144px;
  object-fit: cover;
  border-radius: 14px;
  background: #f2f2f2;
}

.history-content {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.history-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.history-progress {
  display: grid;
  gap: 8px;
}

.progress-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #ebedf0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8b2b, #ff5e3a);
}

.item-actions {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.item-actions .nav-icon-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
}

.batch-action-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(520px, 100vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 40;
}

.batch-select-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.batch-btn.delete {
  padding: 10px 20px;
  background: #111;
  color: #fff;
}

.video-hub-page {
  background: #f8f9fc;
}

.video-hub-page .page-body {
  padding: 14px 14px 28px;
}

.video-hub-page .banner-area {
  margin-bottom: 16px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #7367f0 0%, #8e78ff 100%);
  box-shadow: 0 10px 26px rgba(115, 103, 240, 0.18);
}

.video-hub-page .banner-icon {
  width: 100%;
  height: 176px;
  object-fit: cover;
  display: block;
}

.video-hub-page .ip-plan-section {
  margin: 0 0 16px;
}

.video-hub-page .ip-image-button {
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: var(--shadow-soft);
}

.video-hub-page .ip-image-button img {
  width: 100%;
  display: block;
}

.video-hub-page .function-area {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.video-hub-page .function-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.video-hub-page .function-row:first-child .function-item {
  min-height: 120px;
}

.video-hub-page .function-row:last-child .function-item {
  min-height: 154px;
}

.video-hub-page .function-area .function-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  background: #fff;
}

.video-hub-page .function-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #f4f5f8;
}

.service-title {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin: 0 0 14px;
  position: relative;
  padding-left: 12px;
}

.service-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 4px;
  background: var(--brand);
}

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

.service-item {
  border: none;
  background: transparent;
  padding: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.service-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f5f5ff;
  box-shadow: 0 8px 18px rgba(115, 103, 240, 0.12);
}

.service-icon {
  width: 28px;
  height: 28px;
}

.service-text {
  font-size: 12px;
  color: #666;
  text-align: center;
}

.video-hub-page .function-section {
  padding: 0;
  margin-bottom: 18px;
}

.video-hub-page .function-grid {
  gap: 12px;
}

.video-hub-page .function-section .function-item {
  border: none;
  background: #fff;
  border-radius: 16px;
  padding: 14px 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  justify-items: center;
  gap: 8px;
}

.video-hub-page .function-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.video-hub-page .function-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-hub-page .function-name {
  font-size: 12px;
  color: #444;
}

.chat-button-wrapper {
  margin-bottom: 18px;
}

.chat-bubble {
  width: 100%;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff4e5, #ffe9cc);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}

.chat-bubble-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-bubble-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chat-bubble-text {
  font-size: 15px;
  font-weight: 700;
  color: #a14d00;
}

.course-section {
  margin-bottom: 18px;
}

.history-title-text {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.history-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.history-item-delete {
  border: none;
  background: transparent;
  padding: 0;
}

.history-item-delete img {
  width: 18px;
  height: 18px;
}

.discover-page {
  background: #fff;
  min-height: 100vh;
}

.discover-list {
  padding: 14px 14px 110px;
  display: grid;
  gap: 14px;
}

.post-item {
  padding: 16px;
}

.post-header,
.post-actions,
.user-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.user-info {
  justify-content: flex-start;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f1f1;
}

.user-name {
  font-size: 14px;
  font-weight: 700;
}

.post-content {
  margin: 14px 0;
  line-height: 1.75;
  white-space: pre-wrap;
}

.media-grid,
.media-grid.double,
.media-grid.triple {
  display: grid;
  gap: 8px;
}

.media-grid.single {
  grid-template-columns: 1fr;
}

.media-grid.double {
  grid-template-columns: repeat(2, 1fr);
}

.media-grid.triple {
  grid-template-columns: repeat(3, 1fr);
}

.post-media,
.post-video {
  width: 100%;
  border-radius: 16px;
  background: #f3f3f3;
  object-fit: cover;
}

.post-actions {
  margin-top: 14px;
}

.action-pill {
  border: none;
  background: #f7f7f7;
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.action-pill img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.user-page {
  background: var(--bg);
}

.user-info-section {
  padding: 16px;
}

.user-info-container {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.user-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  object-fit: cover;
  background: #f2f2f2;
}

.user-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.user-name-row strong {
  font-size: 20px;
}

.edit-icon {
  width: 18px;
  height: 18px;
}

.points-card {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.points-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.points-icon {
  width: 22px;
  height: 22px;
}

.recharge-btn,
.outline-btn,
.primary-btn,
.ghost-btn {
  border: none;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 700;
}

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

.outline-btn {
  background: #fff;
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(255, 120, 1, 0.28);
}

.ghost-btn {
  background: #f6f6f6;
  color: #333;
}

.stats-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stats-header-icon {
  width: 28px;
  height: 28px;
}

.stats-number {
  display: block;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
}

.menu-section {
  padding: 0;
}

.menu-item {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #f1f1f1;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-text {
  font-size: 15px;
  font-weight: 600;
}

.arrow-icon,
.service-icon {
  width: 18px;
  height: 18px;
}

.logout-section {
  padding: 0 16px 20px;
}

.logout-btn {
  width: 100%;
  border: none;
  border-radius: 18px;
  padding: 16px;
  background: #111;
  color: #fff;
  font-weight: 700;
}

.page-tabs,
.sub-tabs,
.category-tabs,
.type-tabs,
.main-tab-bar {
  display: flex;
  gap: 10px;
  padding: 0 16px 14px;
  overflow-x: auto;
}

.main-tab-bar,
.sub-tabs {
  padding-top: 16px;
}

.form-section {
  margin: 0 16px 16px;
}

.form-label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.field-input,
.field-control {
  padding: 14px 16px;
}

.field-input input,
.field-control select {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
}

.field-textarea {
  padding: 14px 16px;
}

.field-textarea textarea {
  width: 100%;
  min-height: 112px;
  border: none;
  background: transparent;
  outline: none;
  resize: vertical;
  line-height: 1.7;
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 16px 8px;
}

.step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ececec;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step-circle.active {
  background: var(--brand);
  color: #fff;
}

.step-line {
  width: 28px;
  height: 2px;
  background: #e3e3e3;
}

.step-line.active {
  background: var(--brand);
}

.bottom-actions {
  position: sticky;
  bottom: calc(16px + var(--safe-bottom));
  padding: 0 16px 12px;
}

.bottom-actions.fixed {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, 100vw);
  z-index: 20;
}

.full-btn,
.dual-actions button {
  width: 100%;
  border: none;
  border-radius: 18px;
  padding: 16px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(255, 120, 1, 0.24);
}

.dual-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dual-actions.multi-actions button:last-child:nth-child(3) {
  grid-column: 1 / -1;
}

.dual-actions .secondary {
  background: #111;
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.12);
}

.list-stack {
  display: grid;
  gap: 12px;
  padding: 0 16px calc(132px + var(--safe-bottom));
}

.card-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-cover,
.avatar-cover,
.voice-cover {
  flex-shrink: 0;
  background: #f2f2f2;
  object-fit: cover;
}

.card-cover {
  width: 88px;
  height: 88px;
  border-radius: 16px;
}

.voice-cover {
  width: 46px;
  height: 46px;
  border-radius: 16px;
}

.card-main {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-wrap;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.meta-pill {
  padding: 8px 10px;
  font-size: 12px;
}

.waterfall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 24px;
}

.waterfall-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.waterfall-card img,
.waterfall-card video {
  width: 100%;
  display: block;
  background: transparent;
}

.waterfall-card .card-main {
  padding: 12px;
}

.task-poster {
  min-height: 208px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 189, 117, 0.32), transparent 36%),
    linear-gradient(145deg, #1d2738 0%, #304663 54%, #6f3f2f 100%);
}

.task-poster.compact {
  min-height: 188px;
}

.task-poster-badge {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.task-poster-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.task-poster-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
}

.task-poster-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.76);
}

.hero-banner-card,
.plan-tip-card,
.result-card,
.upload-box,
.preview-box {
  margin: 0 16px 16px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-banner-card {
  padding: 18px;
}

.plan-tip-card {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upload-box {
  padding: 18px;
  text-align: center;
}

.upload-box input[type="url"],
.upload-box input[type="text"],
.upload-box input[type="file"] {
  width: 100%;
  margin-top: 12px;
}

.preview-box {
  padding: 16px;
}

.preview-image,
.preview-video {
  width: 100%;
  border-radius: 18px;
  background: transparent;
}

.bracelet-list,
.position-grid,
.color-grid,
.selection-grid {
  display: grid;
  gap: 12px;
}

.bracelet-list,
.selection-grid {
  grid-template-columns: repeat(3, 1fr);
}

.position-grid,
.color-grid {
  grid-template-columns: repeat(2, 1fr);
}

.selection-chip,
.bracelet-item,
.position-item,
.color-item {
  border: none;
  border-radius: 16px;
  background: #f7f7f7;
  padding: 12px;
  text-align: center;
}

.selection-chip.active,
.bracelet-item.active,
.position-item.active,
.color-item.active {
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 120, 1, 0.24);
}

.model-container {
  margin: 0 16px 16px;
  padding: 16px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.model-view {
  position: relative;
  min-height: 340px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fafafa 0%, #f3f3f3 100%);
  overflow: hidden;
}

.model-image {
  width: 100%;
  height: 340px;
  object-fit: contain;
  display: block;
}

.accessory-point {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px rgba(17, 17, 17, 0.08);
  font-size: 12px;
}

.accessory-point.active {
  background: var(--brand);
  color: #fff;
}

.model-meta {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.empty-state {
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
}

.empty-state img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin-bottom: 12px;
}

.source-page-body {
  padding: 14px 0 120px;
}

.source-hero-card,
.source-action-card {
  margin: 0 16px 16px;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.source-hero-card {
  padding: 20px;
}

.source-hero-card h1 {
  margin: 8px 0;
  font-size: 22px;
  line-height: 1.3;
}

.source-hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}

.source-kicker {
  display: inline-flex;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.source-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.source-meta-row span {
  border-radius: 999px;
  background: #f6f6f6;
  color: #555;
  padding: 6px 10px;
  font-size: 12px;
}

.source-action-card {
  padding: 16px;
}

.source-card-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
}

.source-endpoint-card {
  border-radius: 16px;
  background: #f8f8f8;
  padding: 12px;
  margin-bottom: 12px;
}

.source-endpoint-card.ok {
  background: #f3fbf6;
}

.source-endpoint-card.error {
  background: #fff4f2;
}

.source-endpoint-card.skipped {
  background: #f7f7f7;
}

.source-endpoint-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.source-endpoint-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}

.source-endpoint-head span {
  flex-shrink: 0;
  border-radius: 999px;
  background: #fff;
  color: #555;
  padding: 4px 8px;
  font-size: 12px;
}

.source-endpoint-card pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #444;
  font-size: 12px;
  line-height: 1.55;
}

.login-mask,
.toast-wrap {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.login-mask {
  background: rgba(0, 0, 0, 0.42);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.login-sheet {
  width: min(520px, 100vw);
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 20px 16px calc(18px + var(--safe-bottom));
}

.login-sheet h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.login-sheet p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.login-sheet .field-input {
  margin-bottom: 12px;
}

.confirm-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.confirm-dialog-mask {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.46);
}

.confirm-dialog-card {
  position: relative;
  width: min(360px, calc(100vw - 32px));
  background: #fff;
  border-radius: 18px;
  padding: 22px 18px 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.confirm-dialog-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  color: #111;
}

.confirm-dialog-content {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: #555;
  text-align: center;
}

.confirm-dialog-actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.confirm-dialog-actions.single {
  grid-template-columns: 1fr;
}

.confirm-dialog-btn {
  border: none;
  border-radius: 14px;
  padding: 13px 0;
  font-size: 14px;
  font-weight: 700;
}

.confirm-dialog-btn.cancel {
  background: #f3f3f3;
  color: #444;
}

.confirm-dialog-btn.confirm {
  background: #ff6600;
  color: #fff;
}

.toast-wrap {
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: calc(110px + var(--safe-bottom));
}

.toast {
  max-width: 84%;
  background: rgba(17, 17, 17, 0.88);
  color: #fff;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 13px;
}

.app-tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(520px, 100vw);
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: var(--safe-bottom);
  z-index: 30;
}

.tabbar-inner {
  height: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.tabbar-item {
  border: none;
  background: transparent;
  padding: 8px 0 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #999;
  font-size: 11px;
}

.tabbar-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tabbar-item.active {
  color: #000;
}

@media (max-width: 390px) {
  .banner-swiper {
    min-height: 0;
    height: auto;
  }

  .banner-text {
    font-size: 26px;
  }

  .agent-grid,
  .stats-items,
  .function-grid {
    gap: 8px;
  }
}

/* wxamp page-scoped overrides */
.home-page {
  background: #fff;
}

.home-page .page-body {
  padding-bottom: calc(86px + var(--safe-bottom));
  background: #fff;
}

.home-page .home-container {
  width: 100%;
  min-height: 100vh;
  background: #fff;
}

.home-page .banner-section {
  width: 100%;
  margin-bottom: 15px;
  position: relative;
}

.home-page .banner-swiper {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
}

.home-page .banner-image,
.home-page .banner-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.home-page .banner-text {
  left: 20px;
  bottom: 30px;
  max-width: 82%;
}

.home-page .banner-overlay {
  background: transparent;
}

.home-page .banner-title {
  display: block;
  font-size: 25px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  white-space: pre-wrap;
}

.home-page .custom-indicator {
  left: 20px;
  bottom: 15px;
  gap: 6px;
}

.home-page .indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 1px;
}

.home-page .indicator-dot.active {
  width: 20px;
  height: 6px;
}

.home-page .section-header {
  padding: 15px 24px 10px;
}

.home-page .section-icon-img {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  margin-left: -2px;
  object-fit: contain;
}

.home-page .section-title {
  font-size: 18px;
  font-weight: 700;
}

.home-page .tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding: 0;
}

.home-page .tool-card {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
  outline: none;
}

.home-page .tool-card-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  background: transparent;
}

.home-page .material-section {
  background: #fff;
}

.home-page .material-card {
  margin: 10px 15px 10px 20px;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  outline: none;
}

.home-page .material-card-wrapper {
  position: relative;
  width: 100%;
  background: transparent;
}

.home-page .material-card-image {
  width: 100%;
  display: block;
  border-radius: 0;
  background: transparent;
}

.home-page .material-count {
  position: absolute;
  bottom: 7px;
  left: 15px;
  font-size: 10px;
  color: #999;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.home-page .material-course {
  color: rgba(255, 255, 255, 0.68);
}

.home-page .aiCourse {
  margin-top: -30px;
}

.home-page .courseicon {
  width: 21px;
  height: 21px;
  margin-right: 4px;
  margin-bottom: 3px;
}

.home-page .material-grid {
  display: flex;
  align-items: flex-start;
  padding: 0 15px 0 20px;
  gap: 10px;
}

.home-page .material-grid .material-card.poster {
  flex: 2.5875;
  margin: 0;
}

.home-page .material-grid .material-card.square {
  flex: 1;
  margin: 0;
}

.home-page .function-section {
  padding: 0 20px 20px;
}

.home-page .function-grid.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.home-page .function-item {
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
  outline: none;
}

.home-page .function-item-image {
  width: 100%;
  display: block;
}

.workbench-page {
  background: #f5f7fa;
}

.workbench-page .page-body {
  padding: 0 0 24px;
  background: #f5f7fa;
}

.workbench-page .custom-nav {
  position: sticky;
  top: 0;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.workbench-page .custom-nav-title {
  font-size: 18px;
  font-weight: 600;
}

.workbench-page .custom-nav-side {
  width: 64px;
}

.workbench-page .workbench-container {
  padding: 0 10px 20px;
  background: #f5f7fa;
  min-height: 100vh;
}

.workbench-page .main-banner {
  width: 100%;
  height: 190px;
  margin: 0;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
  box-shadow: none;
}

.workbench-page .main-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workbench-page .ip-plan-section {
  margin: 8px 10px 14px;
}

.workbench-page .ip-buttons {
  display: flex;
  gap: 10px;
}

.workbench-page .ip-image-button {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
}

.workbench-page .ip-image-button img {
  width: 100%;
  display: block;
}

.workbench-page .industry-selector-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(106, 17, 203, 0.12), 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(106, 17, 203, 0.1);
  margin: 0 10px 14px;
}

.workbench-page .industry-selector-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.workbench-page .industry-icon {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #6a11cb 0%, #9244e5 100%);
  border-radius: 50%;
  position: relative;
}

.workbench-page .industry-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 1px;
}

.workbench-page .industry-label {
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

.workbench-page .field-hint {
  margin-left: auto;
  font-size: 12px;
  color: #999;
}

.workbench-page .industry-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 10px 12px;
}

.workbench-page .industry-name {
  font-size: 16px;
  font-weight: 700;
}

.workbench-page .industry-tip {
  font-size: 12px;
  color: #999;
}

.workbench-page .industry-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(106, 17, 203, 0.1);
  flex-shrink: 0;
}

.workbench-page .industry-arrow img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.workbench-page .function-container {
  padding: 0 10px 20px;
}

.workbench-page .function-section {
  margin-bottom: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.workbench-page .section-title {
  font-size: 17px;
  font-weight: 600;
  color: #333;
  margin: 25px 0 15px;
}

.workbench-page .function-section .section-title {
  margin-top: 0;
}

.workbench-page .workbench-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0 5px;
  border-radius: 12px;
  padding: 15px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.workbench-page .workbench-row-blue {
  background: linear-gradient(to right, #f0f5ff, #e6f0ff);
  border-left: 2px solid #1890ff;
}

.workbench-page .workbench-row-purple {
  background: linear-gradient(to right, #f9f0ff, #f3e6ff);
  border-left: 2px solid #722ed1;
}

.workbench-page .workbench-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.workbench-page .workbench-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f5f7fa;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
}

.workbench-page .workbench-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.workbench-page .workbench-name {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}

.workbench-page .category-section {
  margin-bottom: 20px;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.workbench-page .category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.workbench-page .category-item {
  min-height: 50px;
  background: #d4e4ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding: 0 10px 0 37px;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: none;
}

.workbench-page .category-item.enterprise {
  background: #e9dbff;
}

.workbench-page .category-item.material {
  background: #fff4e6;
  border-left: 2px solid #ff8c00;
}

.workbench-page .category-item span {
  font-size: 15px;
  color: #333;
  font-weight: 500;
  text-align: left;
}

.workbench-page .category-item.material span {
  color: #d2691e;
  font-weight: 600;
}

.workbench-page .category-icon {
  width: 22px;
  height: 22px;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0;
  border-radius: 0;
  background-color: transparent;
}

.workbench-page .icon-person {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232575fc'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

.workbench-page .icon-startup {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232575fc'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z'/%3E%3C/svg%3E");
}

.workbench-page .icon-quotes {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232575fc'%3E%3Cpath d='M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z'/%3E%3C/svg%3E");
}

.workbench-page .icon-brand {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236a11cb'%3E%3Cpath d='M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z'/%3E%3C/svg%3E");
}

.workbench-page .icon-philosophy {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236a11cb'%3E%3Cpath d='M12 3L1 9l11 6 9-4.91V17h2V9L12 3z M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82z'/%3E%3C/svg%3E");
}

.workbench-page .icon-product {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236a11cb'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14h-2V9h-2V7h4v10z'/%3E%3C/svg%3E");
}

.workbench-page .icon-history {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236a11cb'%3E%3Cpath d='M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z'/%3E%3C/svg%3E");
}

.workbench-page .icon-material {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF8C00'%3E%3Cpath d='M20 6h-2l-2-2H8L6 6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10zm-8-9l2.5 3.01L17 10l3 4H4l4-5 3 4 1-1.99z'/%3E%3C/svg%3E");
}

.workbench-page .tools-section {
  margin-bottom: 15px;
}

.workbench-page .tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.workbench-page .tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  border: none;
  background: transparent;
}

.workbench-page .tool-icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  margin-bottom: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.workbench-page .tool-icon img {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  object-fit: cover;
}

.workbench-page .tool-name {
  font-size: 13px;
  color: #333;
  text-align: center;
}

.chat-route .chat-page {
  min-height: 100vh;
  background: #f5f5f5;
  padding-bottom: calc(154px + var(--safe-bottom));
}

.chat-route .custom-nav {
  background: #fff;
  backdrop-filter: none;
}

.chat-route .chat-content {
  flex: 1;
  padding: 10px 0 calc(154px + var(--safe-bottom));
  background: #f5f5f5;
}

.chat-route .welcome-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 15px;
  position: relative;
  margin-bottom: 0;
  gap: 0;
}

.chat-route .welcome-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 1px;
  background: #e0e0e0;
}

.chat-route .ai-avatar {
  width: auto;
  height: auto;
  margin-bottom: 15px;
  background: transparent;
  overflow: visible;
}

.chat-route .avatar-icon {
  width: 150px;
  height: auto;
  display: block;
}

.chat-route .welcome-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.chat-route .welcome-title {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin-bottom: 10px;
}

.chat-route .welcome-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  padding: 5px 25px;
}

.chat-route .quick-questions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
  padding: 0 15px;
}

.chat-route .question-tag {
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  color: #333;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.chat-route .message-list {
  margin-top: 10px;
  padding: 10px 15px calc(28px + var(--safe-bottom));
  display: grid;
  gap: 15px;
}

.chat-route .message-item {
  display: block;
}

.chat-route .ai-message-wrapper {
  display: flex;
  align-items: flex-start;
}

.chat-route .user-message-wrapper {
  display: flex;
  justify-content: flex-end;
}

.chat-route .message-content {
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.chat-route .ai-content {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  max-width: calc(100% - 18px);
}

.chat-route .user-content {
  background: linear-gradient(135deg, #ffb951 0%, #ff7801 100%);
  color: #fff;
  max-width: fit-content;
  display: inline-block;
}

.chat-route .message-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.chat-route .action-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.chat-route .action-icon {
  width: 16px;
  height: 16px;
}

.chat-route .chat-input-bar {
  position: fixed;
  left: 50%;
  bottom: calc(64px + var(--safe-bottom));
  width: min(520px, 100vw);
  transform: translateX(-50%);
  background: #fff;
  padding: 10px 15px 10px;
  border-top: 1px solid #eee;
  z-index: 35;
}

.chat-route .ai-disclaimer-chat {
  position: fixed;
  bottom: calc(124px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
  opacity: 0.6;
  z-index: 24;
}

.chat-route .input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-route .message-input {
  flex: 1;
  background: #f8f8f8;
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 14px;
  border: none;
  outline: none;
}

.chat-route .send-btn {
  width: 32px;
  height: 32px;
  background: #d0d0d0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-route .send-btn.active {
  background: linear-gradient(135deg, #ffb951 0%, #ff7801 100%);
}

.chat-route .send-icon {
  width: 25px;
  height: 25px;
}

.chat-route .history-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 10000;
}

.chat-route .history-modal.show {
  visibility: visible;
  opacity: 1;
  background: rgba(0, 0, 0, 0.5);
}

.chat-route .history-drawer {
  position: absolute;
  top: 0;
  left: 0;
  width: min(280px, 78vw);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.chat-route .history-drawer.show {
  transform: translateX(0);
}

.chat-route .history-header {
  padding: calc(55px + var(--safe-top)) 15px 15px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-route .history-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.chat-route .close-icon {
  width: 15px;
  height: 15px;
}

.chat-route .new-chat-btn {
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 0;
}

.chat-route .new-chat-icon {
  width: 15px;
  height: 15px;
}

.chat-route .new-chat-text {
  font-size: 15px;
  color: #333;
}

.chat-route .history-list {
  flex: 1;
  overflow-y: auto;
  margin-top: 0;
}

.chat-route .empty-tip {
  padding: 40px 15px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

.chat-route .history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid #f5f5f5;
  background: #fff;
}

.chat-route .history-item-content {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0;
}

.chat-route .history-item-title {
  font-size: 15px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-route .history-item-delete {
  padding: 5px;
  margin-left: 10px;
  background: transparent;
  border: none;
}

.chat-route .delete-icon {
  width: 15px;
  height: 15px;
}

.user-page {
  background: #fff;
}

.user-page .page-body {
  background: #fff;
  padding-bottom: calc(86px + var(--safe-bottom));
}

.user-page .custom-nav {
  background: #fff;
  backdrop-filter: none;
}

.user-page .user-center {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 16px;
}

.user-page .user-info-section {
  background: linear-gradient(to bottom, rgba(255, 153, 77, 1) 0%, rgba(255, 228, 208, 1) 100%), linear-gradient(to right, rgba(255, 221, 195, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%);
  background-blend-mode: multiply;
  padding: 40px 16px 40px;
}

.user-page .user-info-container {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
}

.user-page .user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: #ff8844;
  flex-shrink: 0;
}

.user-page .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-page .user-details {
  flex: 1;
}

.user-page .user-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.user-page .user-name {
  font-size: 24px;
  font-weight: 600;
  color: #000;
}

.user-page .edit-icon {
  width: 16px;
  height: 16px;
}

.user-page .user-id {
  font-size: 14px;
  color: #000;
}

.user-page .points-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, #ff7f1e 0%, #ffbb89 100%);
  border-radius: 12px 12px 0 0;
  padding: 12px 16px;
  margin-top: 22px;
  margin-bottom: -22px;
  box-shadow: none;
}

.user-page .points-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-page .points-icon {
  width: 20px;
  height: 20px;
}

.user-page .points-text {
  font-size: 15px;
  color: #fff;
}

.user-page .recharge-btn {
  padding: 5px 20px;
  border: 1px solid #fff;
  border-radius: 10px;
  font-size: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.user-page .content-container {
  background: #fff;
  margin: -20px 0 0;
  border-radius: 15px 15px 0 0;
  position: relative;
  z-index: 10;
}

.user-page .stats-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 12px;
  border-bottom: 1px solid #f5f5f5;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  flex-direction: row;
  gap: 12px;
}

.user-page .stats-header-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  flex-shrink: 0;
}

.user-page .stats-items-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
}

.user-page .stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  border: none;
  background: transparent;
  padding: 0;
}

.user-page .stats-number {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: #ff6b35;
  margin-bottom: 4px;
}

.user-page .stats-label {
  font-size: 12px;
  color: #666;
}

.user-page .stats-divider {
  width: 1px;
  height: 30px;
  background: #e5e5e5;
}

.user-page .menu-section {
  padding: 0 16px;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.user-page .menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #f5f5f5;
  background: transparent;
  border-radius: 0;
}

.user-page .menu-item:last-child {
  border-bottom: none;
}

.user-page .menu-text {
  font-size: 16px;
  color: #333;
  font-weight: 400;
}

.user-page .arrow-icon {
  width: 12px;
  height: 12px;
}

.user-page .service-icon {
  width: 24px;
  height: 24px;
}

.user-page .menu-note {
  font-size: 14px;
  color: #999;
}

.user-page .logout-section {
  padding: 20px 16px 0;
}

.user-page .logout-btn {
  width: 100%;
  border: none;
  background: #f6f6f6;
  color: #333;
  border-radius: 999px;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
}

.user-page .user-center-top-nav {
  background: #fff;
}

.user-page .flat-btn,
.user-page .inline-icon-btn,
.points-log-page .flat-btn,
.profile-page .form-item,
.settings-page .setting-item,
.team-page .tab,
.team-page .empty-action {
  border: none;
  background: transparent;
  box-shadow: none;
}

.user-page .inline-icon-btn {
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-page .points-info.flat-btn {
  padding: 0;
  flex: 1;
  justify-content: flex-start;
}

.profile-page,
.settings-page,
.points-log-page,
.invitation-page,
.team-page {
  min-height: calc(100vh - 62px);
}

.profile-page {
  padding: 12px 12px 24px;
  background: #f5f7fa;
}

.profile-page .avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 28px 16px 24px;
  margin-bottom: 12px;
}

.profile-page .avatar-wrapper {
  position: relative;
  display: inline-flex;
  width: 96px;
  height: 96px;
  cursor: pointer;
}

.profile-page .avatar-image {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.profile-page .avatar-edit-icon {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ff7c1a;
  border-radius: 999px;
  border: 2px solid #fff;
}

.profile-page .avatar-edit-icon img {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

.profile-page .avatar-tip {
  margin-top: 10px;
  font-size: 13px;
  color: #666;
}

.profile-page .form-section,
.settings-page .settings-section {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.profile-page .form-item,
.settings-page .setting-item {
  width: 100%;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}

.profile-page .form-item:last-child,
.settings-page .setting-item:last-child {
  border-bottom: none;
}

.profile-page .form-label,
.settings-page .item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-page .label-icon {
  width: 20px;
  height: 20px;
}

.profile-page .form-label span,
.settings-page .item-text {
  font-size: 15px;
  color: #333;
}

.profile-page .form-value,
.settings-page .item-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-page .value-text,
.settings-page .item-status {
  font-size: 14px;
  color: #666;
}

.profile-page .arrow-icon,
.settings-page .arrow-icon {
  width: 12px;
  height: 12px;
}

.settings-page {
  padding: 12px;
  background: #f5f7fa;
}

.settings-page .phone-bind-area,
.settings-page .phone-bound-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.settings-page .phone-auth-tip,
.settings-page .phone-display {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  text-align: center;
}

.settings-page .success-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #f6ffed;
  color: #52c41a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.settings-page .success-text {
  font-size: 15px;
  color: #333;
  font-weight: 600;
}

.settings-page .input-field,
.profile-page .nickname-input {
  width: 100%;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: #333;
  background: #fff;
}

.settings-page .password-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-page .form-row,
.profile-page .input-tip {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-page .form-label,
.profile-page .input-tip {
  font-size: 13px;
  color: #666;
}

.profile-page .input-tip {
  align-items: flex-end;
  margin-top: 8px;
}

.points-log-page {
  background: #f8f9fa;
}

.points-log-page .stats-section {
  padding: 16px;
  background: linear-gradient(135deg, #ff8f3c, #ff6b35);
}

.points-log-page .stats-card {
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.16);
}

.points-log-page .stats-number {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.points-log-page .stats-label {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.points-log-page .filter-tabs {
  display: flex;
  background: #fff;
  padding: 0 14px;
}

.points-log-page .filter-tab {
  flex: 1;
  padding: 14px 0;
  text-align: center;
  font-size: 14px;
  color: #666;
  position: relative;
}

.points-log-page .filter-tab.active {
  color: #ff6b35;
  font-weight: 600;
}

.points-log-page .filter-tab.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: #ff6b35;
  transform: translateX(-50%);
}

.points-log-page .records-list {
  padding: 12px;
}

.points-log-page .record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #fff;
}

.points-log-page .record-main {
  flex: 1;
  margin-right: 12px;
}

.points-log-page .record-title {
  font-size: 14px;
  color: #333;
}

.points-log-page .record-time {
  margin-top: 6px;
  font-size: 12px;
  color: #999;
}

.points-log-page .record-amount {
  display: flex;
  align-items: center;
  font-weight: 600;
}

.points-log-page .record-amount.income {
  color: #27ae60;
}

.points-log-page .record-amount.expense {
  color: #e74c3c;
}

.points-log-page .amount-symbol,
.points-log-page .amount-number {
  font-size: 16px;
}

.points-log-page .load-more,
.points-log-page .no-more {
  padding: 6px 0 20px;
  text-align: center;
}

.points-log-page .load-text,
.points-log-page .no-more-text,
.points-log-page .empty-text {
  font-size: 13px;
  color: #666;
}

.points-log-page .empty-state,
.team-page .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  text-align: center;
}

.points-log-page .empty-icon {
  font-size: 44px;
  opacity: 0.5;
}

.invitation-page {
  padding: 20px 16px;
  background: #f9f9f9;
}

.invitation-page .invitation-form {
  margin-top: 20px;
  padding: 24px 18px 28px;
  border-radius: 16px;
  background: #fff;
}

.invitation-page .form-title {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #333;
}

.invitation-page .form-desc {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  color: #999;
}

.invitation-page .input-wrapper {
  margin-top: 22px;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 10px;
}

.invitation-page .invite-input {
  width: 100%;
  font-size: 18px;
  color: #333;
  letter-spacing: 1px;
}

.invitation-page .submit-btn {
  width: 100%;
  margin-top: 28px;
  border: none;
  border-radius: 999px;
  padding: 14px 0;
  font-size: 16px;
  color: #fff;
  background: #ccc;
}

.invitation-page .submit-btn.active {
  background: linear-gradient(135deg, #ff8f3c 0%, #ff6b35 100%);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.2);
}

.team-page {
  padding-bottom: 20px;
  background: #f5f7fa;
}

.team-page .team-statistics {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 16px;
  padding: 22px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff8f3c, #ff6b35);
  color: #fff;
}

.team-page .stat-item {
  flex: 1;
  text-align: center;
}

.team-page .stat-value {
  font-size: 24px;
  font-weight: 700;
}

.team-page .stat-label {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.team-page .stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.3);
}

.team-page .filter-bar {
  padding: 0 16px 12px;
}

.team-page .filter-tabs {
  display: inline-flex;
  padding: 4px;
  background: #fff;
  border-radius: 999px;
}

.team-page .tab {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: #666;
}

.team-page .tab.active {
  color: #fff;
  background: linear-gradient(90deg, #ff8f3c, #ff6b35);
}

.team-page .team-list {
  padding: 0 16px;
}

.team-page .team-item {
  margin-bottom: 10px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
}

.team-page .member-info {
  display: flex;
  align-items: center;
}

.team-page .member-avatar {
  width: 44px;
  height: 44px;
  margin-right: 12px;
  border-radius: 50%;
}

.team-page .member-details {
  flex: 1;
}

.team-page .member-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-page .member-name {
  font-size: 15px;
  color: #333;
  font-weight: 600;
}

.team-page .member-level {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(90deg, #11998e, #38ef7d);
}

.team-page .member-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #999;
}

.team-page .empty-icon-img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.team-page .empty-action {
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff8f3c, #ff6b35);
}

.app-tabbar {
  background: #fff;
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.05);
}

.tabbar-inner {
  height: 50px;
}

.tabbar-item {
  padding: 6px 0 4px;
  gap: 2px;
}

.tabbar-item img {
  width: 20px;
  height: 20px;
}

.tabbar-item span {
  font-size: 10px;
}

.wizard-page {
  background: #fffcf7;
  min-height: calc(100vh - 62px);
}

.wizard-page-video {
  background: #f5f5f5;
}

.wx-step-indicator {
  gap: 0;
  padding: 28px 0;
}

.wx-step-indicator .step-item {
  display: flex;
  align-items: center;
}

.wx-step-indicator .step-circle {
  width: 40px;
  height: 40px;
  background: #e5e5e5;
  color: #999;
  font-size: 17px;
}

.wx-step-indicator .step-item.active .step-circle {
  background: #ff6600;
  color: #fff;
}

.wx-step-indicator .step-line {
  width: 40px;
  height: 2px;
  margin: 0 8px;
  background: #e5e5e5;
}

.wx-step-indicator .step-line.active {
  background: #ff6600;
}

.wx-step-content {
  padding: 0 16px 140px;
}

.wx-picker-shell,
.wx-input-shell {
  position: relative;
  border-radius: 16px;
  background: #fffcf7;
  border: 1px solid #e1ded9;
  padding: 0;
}

.wizard-page-video .wx-picker-shell,
.wizard-page-video .wx-input-shell {
  background: #fff;
  border-color: transparent;
}

.wx-picker-shell select,
.wx-input-shell input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: none;
  background: transparent;
  appearance: none;
  outline: none;
}

.ratio-trigger {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 52px;
}

.wx-model-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0 24px;
  padding: 0;
  min-height: 420px;
  overflow: hidden;
}

.wx-model-view {
  width: 100%;
  min-height: 420px;
  background: #fff;
}

.wizard-page-video .wx-model-view {
  background: #fff;
}

.model-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
}

.wx-model-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.model-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  padding: 0;
}

.model-nav-arrow.left {
  left: 12px;
}

.model-nav-arrow.right {
  right: 12px;
}

.model-nav-arrow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wx-accessory-point {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.wx-accessory-point .point-border {
  width: 100%;
  height: 100%;
  border: 1px dashed #8a8a8a;
  background: transparent;
}

.wx-accessory-point.selected .point-border {
  border-width: 2px;
  border-style: solid;
}

.neck-border {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.neck-left,
.neck-right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: transparent;
  transition: all 0.2s ease;
}

.neck-left {
  left: 0;
  border-left: 1px dashed #8a8a8a;
  border-top: 1px dashed #8a8a8a;
  border-bottom: 1px dashed #8a8a8a;
  transform: skewY(25deg);
  transform-origin: right center;
}

.neck-right {
  right: 0;
  border-right: 1px dashed #8a8a8a;
  border-top: 1px dashed #8a8a8a;
  border-bottom: 1px dashed #8a8a8a;
  transform: skewY(-25deg);
  transform-origin: left center;
}

.neck-left.selected,
.neck-right.selected {
  border-width: 2px;
  border-style: solid;
}

.ratio-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ratio-modal-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: transparent;
}

.ratio-modal {
  position: relative;
  z-index: 1;
  width: min(520px, 100vw);
  margin: 0 auto;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 22px 16px calc(16px + var(--safe-bottom));
}

.ratio-modal-title,
.color-modal-title,
.config-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 18px;
}

.ratio-options {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 14px;
}

.ratio-item {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #666;
}

.ratio-item.selected {
  color: #ff6600;
}

.ratio-box {
  display: block;
  border: 2px solid currentColor;
  border-radius: 10px;
}

.ratio-confirm-btn {
  width: 100%;
  border: none;
  border-radius: 16px;
  background: #ff6600;
  color: #fff;
  padding: 14px 0;
  font-weight: 700;
}

.color-modal {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(520px, 100vw);
  z-index: 85;
}

.color-modal-content {
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 24px 16px calc(20px + var(--safe-bottom));
}

.color-modal .color-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.color-modal .color-item {
  min-height: 88px;
  border-radius: 50%;
  background: #f5f5f5;
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.color-modal .color-item.selected {
  border-style: solid;
  border-color: #ff6600;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.15);
}

.color-img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.color-swatch {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.color-name {
  font-size: 12px;
}

.color-actions,
.config-actions {
  display: flex;
  gap: 12px;
}

.color-btn,
.config-btn {
  flex: 1;
  border: none;
  border-radius: 16px;
  padding: 14px 0;
  font-weight: 700;
}

.color-btn.primary,
.config-btn.primary {
  background: #ff6600;
  color: #fff;
}

.color-btn.outline,
.config-btn.outline {
  background: #fff2eb;
  color: #ff6600;
}

.wx-next-btn {
  background: #ff6600;
}

.trial-page {
  min-height: calc(100vh - 54px);
}

.trial-page .upload-page {
  min-height: calc(100vh - 54px);
  display: flex;
  flex-direction: column;
}

.trial-page .banner-section {
  margin-bottom: -24px;
  background: linear-gradient(180deg, #d8b5ff 0%, #ff8844 100%);
  max-height: 280px;
  overflow: hidden;
}

.trial-page .banner-image {
  width: 100%;
  display: block;
}

.trial-page .upload-section {
  flex: 1;
  padding: 0 24px 40px;
  background: linear-gradient(180deg, #ff7f1e 0%, #ffffff 30%);
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trial-page .banner-logo {
  width: 180px;
  margin: 18px auto;
}

.trial-page .logo-image {
  width: 100%;
  display: block;
}

.trial-page .wx-upload-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  min-height: 280px;
  border-radius: 20px;
  border: 2px dashed #ccc;
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.native-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.trial-page .camera-icon {
  width: 88px;
  height: 88px;
}

.trial-page .upload-text {
  font-size: 18px;
  color: #333;
}

.trial-page .upload-hint,
.trial-page .upload-balance,
.trial-page .uploading-text {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
  text-align: center;
}

.trial-page .upload-tip {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
}

.trial-page .config-page {
  min-height: calc(100vh - 54px);
  background: linear-gradient(180deg, #ff7e1e 0%, #ffffff 40%);
  padding-bottom: 130px;
}

.trial-page .photo-section {
  margin: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 2px dashed #ccc;
  background: transparent;
}

.trial-page .photo-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.trial-page .user-photo {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.trial-page .retake-btn {
  margin: 16px auto 0;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trial-page .camera-small-icon {
  width: 20px;
  height: 20px;
}

.trial-page .trial-bracelet-list {
  grid-template-columns: repeat(5, 1fr);
  background: #fff;
  padding: 0 16px 24px;
}

.trial-page .trial-bracelet-item,
.trial-page .bracelet-item.add-more {
  background: transparent;
  padding: 0;
}

.trial-page .bracelet-preview,
.trial-page .add-more-icon {
  width: 100%;
  height: 72px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.trial-page .add-more-icon {
  border: 2px dashed #ff6633;
  background: #fff;
}

.trial-page .bracelet-preview {
  object-fit: contain;
  padding: 12px;
}

.trial-page .bracelet-preview-color {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.trial-page .bracelet-position {
  font-size: 12px;
  color: #666;
}

.trial-page .action-btn {
  min-width: 160px;
}

.trial-page .bottom-actions {
  position: fixed;
  left: 50%;
  bottom: calc(78px + var(--safe-bottom));
  transform: translateX(-50%);
  width: min(520px, 100vw);
  padding: 0 24px;
  gap: 12px;
}

.trial-page .bottom-actions.disabled .action-btn {
  opacity: 0.55;
}

.trial-page .action-btn.primary {
  background: #ff7c1a;
}

.trial-page .action-btn.outline {
  background: #fff;
  color: #ff7c1a;
  border: 2px solid #ff7c1a;
}

.trial-page .generating-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trial-page .progress-container {
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.trial-page .progress-text,
.trial-page .progress-percent {
  color: #fff;
}

.trial-page .progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.24);
}

.trial-page .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6633, #ff8844);
}

.trial-page .ai-disclaimers {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(520px, 100vw);
  text-align: center;
  color: #999;
  font-size: 12px;
}

.config-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.config-modal-mask {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.42);
}

.config-modal-content {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(520px, 100vw);
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 22px 16px calc(20px + var(--safe-bottom));
}

.config-section {
  margin-bottom: 16px;
}

.config-label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.selected-positions-text {
  font-size: 12px;
  color: #ff6600;
  font-weight: 600;
}

.position-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkbox-item {
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-item.active {
  border-color: #ff6600;
  background: #fff6ef;
}

.checkbox-item.disabled {
  opacity: 0.45;
}

.checkbox-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #ddd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.trial-color-grid {
  grid-template-columns: repeat(4, 1fr);
}

.color-grid-item {
  border: none;
  background: transparent;
  padding: 0;
}

.color-grid-item.selected .color-circle {
  border-color: #ff6600;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.15);
}

.color-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px dashed #ddd;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.color-image {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.waterfall-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 24px;
}

.waterfall-column,
.video-list {
  display: grid;
  gap: 12px;
}

.image-card,
.video-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.image-wrapper,
.video-wrapper {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  background: #f6f6f6;
  padding: 0;
}

.image-wrapper {
  min-height: 220px;
}

.video-wrapper {
  min-height: 240px;
}

.result-image,
.result-video {
  width: 100%;
  display: block;
  background: transparent;
}

.progress-overlay,
.error-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.48);
  color: #fff;
  z-index: 2;
}

.progress-content,
.error-content {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.progress-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-text {
  font-size: 15px;
  font-weight: 700;
}

.progress-tip,
.error-tip,
.card-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
}

.card-info {
  padding: 12px;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.more-icon-btn {
  border: none;
  background: transparent;
  color: #888;
  font-size: 18px;
  line-height: 1;
  padding: 2px 4px;
}

.card-time {
  color: var(--muted);
  margin-top: 8px;
}

.action-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.action-sheet-mask {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(17, 17, 17, 0.42);
}

.action-content {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(16px + var(--safe-bottom));
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 20px 40px rgba(17, 17, 17, 0.18);
}

.action-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}

.action-main {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.action-preview {
  border-radius: 18px;
  overflow: hidden;
  background: #f7f7f7;
  min-height: 180px;
}

.action-preview-img,
.action-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.action-buttons {
  display: grid;
  gap: 10px;
  align-content: start;
}

.action-buttons .action-btn {
  border: none;
  border-radius: 16px;
  padding: 14px 12px;
  background: #f5f5f5;
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.action-buttons .action-btn.danger {
  background: rgba(255, 120, 1, 0.1);
  color: #ff7801;
}

.action-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.custom-nav-title-html .video-title-trigger {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1f2937;
  font-size: 16px;
  font-weight: 700;
}

.video-title-edit-icon {
  width: 16px;
  height: 16px;
}

.video-create-page {
  background: #f5f6fa;
  min-height: 100vh;
  padding: 14px 14px 140px;
}

.character-section,
.method-section,
.text-section,
.audio-section,
.actions-section,
.video-create-reference {
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 14px;
}

.character-section,
.text-section,
.audio-section {
  background: #eef0f4;
  padding: 16px;
}

.method-section,
.actions-section,
.video-create-reference {
  background: #fff;
  padding: 16px;
}

.character-type-switch,
.character-switch-container,
.method-switch,
.sub-method-switch {
  display: flex;
}

.character-switch-container,
.method-switch,
.sub-method-switch {
  gap: 8px;
  width: 100%;
  background: #fff;
  border-radius: 999px;
  padding: 4px;
}

.character-switch-option,
.switch-option,
.sub-switch-option {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 10px 12px;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
}

.character-switch-option.active,
.switch-option.active,
.sub-switch-option.active {
  background: linear-gradient(135deg, #ff9d2f, #ff7b22);
  color: #fff;
}

.character-container,
.empty-character,
.video-title-trigger,
.scene-upload-option,
.main-action-item,
.action-item,
.emotion-tags {
  cursor: pointer;
}

.character-container,
.empty-character,
.empty-scene {
  width: 100%;
  min-height: 248px;
  border: none;
  border-radius: 18px;
  background: #fff;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
}

.character-image {
  width: 100%;
  height: 248px;
  object-fit: cover;
  display: block;
}

.placeholder-icon {
  width: 62px;
  height: 62px;
  object-fit: contain;
  opacity: 0.7;
}

.placeholder-text {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 700;
  color: #24292f;
}

.placeholder-desc {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #7a7f87;
  text-align: center;
}

.video-selection-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.scene-mode-content {
  margin-top: 16px;
}

.scene-videos-container {
  display: grid;
  gap: 12px;
}

.scene-video-item {
  background: #fff;
  border-radius: 18px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.scene-video-preview {
  width: 100%;
  max-height: 220px;
  border-radius: 14px;
  background: #000;
}

.scene-video-info {
  display: grid;
  gap: 4px;
}

.scene-video-name {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}

.scene-video-size {
  font-size: 12px;
  color: #7a7f87;
}

.scene-action-btn,
.audio-control-btn,
.main-action-item,
.action-item,
.scene-upload-option {
  border: none;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #374151;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.scene-upload-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.scene-upload-option {
  min-height: 58px;
}

.option-icon,
.action-icon,
.main-action-icon,
.audio-icon,
.control-icon,
.audio-file-icon,
.preview-icon,
.add-icon,
.close-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.scene-url-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.scene-url-input,
.title-input {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 0 14px;
  font-size: 14px;
}

.scene-url-btn {
  border: none;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  padding: 0 16px;
  min-height: 46px;
  font-weight: 700;
}

.text-sub-method {
  margin-top: 12px;
}

.text-input-container {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 16px 16px 30px;
}

.text-input {
  width: 100%;
  min-height: 168px;
  resize: vertical;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  line-height: 1.75;
  color: #111827;
}

.text-input.disabled {
  color: #4b5563;
}

.text-counter {
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-size: 12px;
  color: #8b93a0;
}

.controls-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 12px;
  margin-top: 14px;
}

.speed-control,
.emotion-tags,
.emotion-placeholder {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
}

.speed-label,
.emotion-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.speed-text,
.emotion-text {
  font-size: 13px;
  color: #6b7280;
}

.speed-value,
.emotion-btn-text {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.speed-slider {
  width: 100%;
}

.emotion-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.emotion-arrow {
  width: 14px;
  height: 14px;
}

.emotion-tag-list {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.emotion-tag-list.expanded {
  display: flex;
}

.emotion-tag-chip {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: #5b6470;
  font-size: 13px;
}

.emotion-tag-chip.active {
  background: rgba(255, 123, 34, 0.12);
  color: #ff7b22;
}

.free-text-preview {
  margin-top: 12px;
  background: #fff8ef;
  border-radius: 16px;
  padding: 14px;
  font-size: 14px;
  line-height: 1.75;
  color: #6b4d24;
}

.video-emotion-input {
  width: 100%;
}

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

.audio-option {
  border: none;
  width: 100%;
  text-align: left;
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.audio-icon-container {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #fff7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.audio-text-container {
  display: grid;
  gap: 4px;
}

.audio-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.audio-desc {
  font-size: 12px;
  line-height: 1.6;
  color: #7a7f87;
}

.audio-file-info {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
}

.audio-file-header,
.audio-controls,
.action-row,
.main-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-file-header {
  justify-content: space-between;
}

.audio-file-details {
  flex: 1;
  display: grid;
  gap: 4px;
}

.audio-file-name {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.audio-file-size {
  font-size: 12px;
  color: #7a7f87;
}

.audio-preview-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: #fff7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.audio-controls {
  flex-wrap: wrap;
  margin-top: 14px;
}

.audio-control-btn {
  padding: 10px 14px;
}

.action-row {
  justify-content: space-between;
  margin-bottom: 14px;
}

.main-actions {
  justify-content: space-between;
}

.action-item,
.main-action-item {
  flex: 1;
  min-height: 72px;
  flex-direction: column;
}

.action-text,
.main-action-text {
  font-size: 13px;
  font-weight: 600;
}

.video-create-reference .list-card {
  margin: 0;
}

.floating-generate-btn {
  position: sticky;
  bottom: 12px;
  z-index: 30;
  margin-top: 18px;
}

.generate-btn {
  width: 100%;
  min-height: 54px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8d2f, #ff6d16);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 18px 30px rgba(255, 122, 26, 0.25);
}

.ai-disclaimer-local {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: #8b93a0;
}

.video-edit-title-modal,
.character-modal-content,
.voice-modal-content,
.zimu-modal-content {
  width: min(92vw, 640px);
  max-height: 84vh;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.modal-overlay,
.character-modal-overlay,
.voice-modal-overlay,
.zimu-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.character-modal-content,
.voice-modal-content,
.zimu-modal-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.character-modal-header,
.voice-modal-header,
.zimu-modal-header,
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
}

.character-modal-title,
.voice-modal-title,
.zimu-modal-title,
.modal-title {
  font-size: 17px;
  font-weight: 800;
  color: #111827;
}

.character-modal-actions,
.voice-modal-actions,
.zimu-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.character-tabs,
.voice-owner-tabs {
  display: flex;
  gap: 10px;
  padding: 0 18px 12px;
  overflow-x: auto;
}

.character-tab,
.voice-owner-tab {
  border: none;
  border-radius: 999px;
  background: #f4f5f8;
  color: #6b7280;
  padding: 8px 14px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.character-tab.active,
.voice-owner-tab.active {
  background: rgba(255, 123, 34, 0.12);
  color: #ff7b22;
}

.character-list-container,
.voice-list-container,
.zimu-list-container {
  overflow: auto;
  padding: 0 18px 18px;
}

.character-grid,
.voice-grid,
.zimu-grid {
  display: grid;
  gap: 12px;
}

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

.character-item,
.zimu-item {
  border: none;
  background: #f8fafc;
  border-radius: 18px;
  padding: 10px;
  text-align: center;
}

.character-item.selected,
.zimu-item.selected,
.voice-item.selected {
  box-shadow: inset 0 0 0 2px #ff7b22;
}

.character-avatar-container,
.zimu-preview-container {
  position: relative;
  display: block;
}

.character-avatar {
  width: 100%;
  aspect-ratio: 1 / 1.2;
  border-radius: 14px;
  object-fit: cover;
}

.character-name,
.zimu-title {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
}

.character-selected-mark,
.voice-selected-mark,
.zimu-selected-mark {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ff7b22;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.check-icon {
  width: 8px;
  height: 12px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  margin-top: -2px;
}

.voice-item {
  position: relative;
  background: #f8fafc;
  border-radius: 18px;
  padding: 14px;
}

.voice-item-select {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  text-align: left;
}

.voice-info {
  flex: 1;
  display: grid;
  gap: 4px;
}

.voice-name {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.voice-desc,
.voice-rating,
.zimu-desc {
  font-size: 12px;
  color: #7a7f87;
  line-height: 1.6;
}

.play-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.zimu-poster-wrapper {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: #eceff4;
}

.zimu-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zimu-poster-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b93a0;
  font-weight: 700;
}

.character-modal-footer,
.voice-modal-footer,
.zimu-modal-footer,
.modal-footer {
  display: flex;
  gap: 12px;
  padding: 0 18px 18px;
}

.character-modal-btn,
.voice-modal-btn,
.zimu-modal-btn,
.modal-btn {
  flex: 1;
  min-height: 46px;
  border: none;
  border-radius: 14px;
  font-weight: 700;
}

.character-modal-btn.cancel,
.voice-modal-btn.cancel,
.zimu-modal-btn.cancel,
.modal-btn.cancel {
  background: #f3f4f6;
  color: #374151;
}

.character-modal-btn.confirm,
.voice-modal-btn.confirm,
.zimu-modal-btn.confirm,
.modal-btn.confirm {
  background: linear-gradient(135deg, #ff8d2f, #ff6d16);
  color: #fff;
}

.character-empty,
.voice-empty,
.zimu-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 14px;
  text-align: center;
}

@media (max-width: 720px) {
  .controls-row {
    grid-template-columns: 1fr;
  }

  .scene-upload-options,
  .main-actions,
  .action-row {
    grid-template-columns: 1fr;
    display: grid;
  }

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

/* Source wxamp Wenan page migration layer. */
.wenan-create-container {
  min-height: calc(100vh - 54px);
  padding: 15px 12px 112px;
  background: #fafbfc;
}

.wenan-create-container button {
  appearance: none;
  border: none;
  font: inherit;
}

.wenan-create-container .business-selector-container {
  position: relative;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(240, 240, 240, 0.8);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.wenan-create-container .business-selector-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-left: 4px solid var(--brand-purple-color);
  border-radius: 8px;
  background: rgba(106, 17, 203, 0.05);
}

.wenan-create-container .tip-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--brand-purple-color);
  flex: 0 0 auto;
}

.wenan-create-container .tip-texts {
  color: var(--brand-purple-color);
  font-size: 13px;
  font-weight: 600;
}

.wenan-create-container .business-selector-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.wenan-create-container .business-selector-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.wenan-create-container .selector-icon,
.wenan-create-container .plan-tip-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue-color), var(--brand-purple-color));
  box-shadow: 0 2px 6px rgba(146, 68, 229, 0.2);
}

.wenan-create-container .main-tab-bar {
  display: flex;
  height: 38px;
  margin: 0 0 12px;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(240, 240, 240, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.wenan-create-container .main-tab-item {
  flex: 1;
  min-width: 0;
  background: transparent;
  color: #666;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.wenan-create-container .main-tab-item.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue-color), var(--brand-purple-color));
  box-shadow: 0 4px 12px rgba(106, 17, 203, 0.2);
}

.wenan-create-container .sub-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 15px;
  margin: 0 0 16px;
}

.wenan-create-container .sub-tab-item {
  flex: 1 0 72px;
  min-height: 38px;
  padding: 9px 6px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  background: #fff;
  color: #666;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  position: relative;
  white-space: nowrap;
}

.wenan-create-container .sub-tab-item.active {
  border-color: rgba(106, 17, 203, 0.3);
  color: var(--brand-purple-color);
  background: linear-gradient(135deg, rgba(106, 17, 203, 0.05), rgba(146, 68, 229, 0.08));
  box-shadow: 0 2px 10px rgba(106, 17, 203, 0.15), 0 6px 20px rgba(106, 17, 203, 0.1);
  transform: translateY(-1px);
}

.wenan-create-container .sub-tab-item.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue-color), var(--brand-purple-color));
  transform: translateX(-50%);
}

.wenan-create-container .plan-tip-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px 12px;
  border: 1px solid rgba(255, 120, 1, 0.16);
  border-radius: 16px;
  background: #fff7ef;
  box-shadow: 0 8px 18px rgba(255, 120, 1, 0.08);
}

.wenan-create-container .plan-tip-title {
  color: #222;
  font-size: 14px;
  font-weight: 800;
}

.wenan-create-container .plan-tip-text {
  margin-top: 4px;
  color: #777;
  font-size: 13px;
  line-height: 1.5;
}

.wenan-create-container .plan-tip-btn {
  min-width: 72px;
  min-height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-blue-color), var(--brand-purple-color));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.wenan-create-container .ai-recommend-card,
.wenan-create-container .hotspot-container,
.wenan-create-container .wenan-form-section,
.wenan-create-container .result-content-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 14px 12px 12px;
  border: 1px solid rgba(240, 240, 240, 0.8);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.wenan-create-container .ai-recommend-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--brand-blue-color), var(--brand-purple-color));
}

.wenan-create-container .ai-recommend-title,
.wenan-create-container .result-title {
  margin-bottom: 12px;
  color: #333;
  font-size: 15px;
  font-weight: 800;
}

.wenan-create-container .ai-recommend-topics-full {
  display: grid;
  gap: 10px;
}

.wenan-create-container .topic-item {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  background: #fafafa;
  color: #333;
  line-height: 1.55;
  text-align: left;
}

.wenan-create-container .topic-item.wenan {
  min-height: 76px;
}

.wenan-create-container .topic-item.active {
  border-color: rgba(106, 17, 203, 0.45);
  background: linear-gradient(135deg, rgba(106, 17, 203, 0.06), rgba(146, 68, 229, 0.1));
  color: var(--brand-purple-color);
  font-weight: 700;
}

.wenan-create-container .ai-recommend-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.wenan-create-container .ai-disclaimers {
  color: #999;
  font-size: 12px;
}

.wenan-create-container .ai-recommend-action {
  flex: 0 0 auto;
  color: var(--brand-purple-color);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.wenan-create-container .hotspot-categories-scroll {
  overflow-x: auto;
  margin: -2px -2px 12px;
  padding: 2px;
}

.wenan-create-container .hotspot-categories {
  display: flex;
  gap: 9px;
  min-width: max-content;
}

.wenan-create-container .category {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #eee;
  border-radius: 999px;
  background: #fff;
  color: #666;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.wenan-create-container .category.active {
  border-color: rgba(106, 17, 203, 0.3);
  background: rgba(106, 17, 203, 0.08);
  color: var(--brand-purple-color);
}

.wenan-create-container .hotspot-news-list {
  display: grid;
  gap: 10px;
}

.wenan-create-container .news-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid #f1f1f1;
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

.wenan-create-container .news-item.selected {
  border-color: rgba(106, 17, 203, 0.42);
  background: rgba(106, 17, 203, 0.05);
}

.wenan-create-container .news-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f4f0ff;
  color: var(--brand-purple-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.wenan-create-container .news-title {
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}

.wenan-create-container .news-select-icon {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-purple-color);
}

.wenan-create-container .empty-news-tip {
  padding: 22px;
  color: #999;
  text-align: center;
}

.wenan-create-container .wenan-form-label {
  margin: 16px 0 8px;
  color: #333;
  font-size: 14px;
  font-weight: 800;
}

.wenan-create-container .wenan-form-label:first-child {
  margin-top: 0;
}

.wenan-create-container .wenan-input {
  display: block;
  width: 100%;
  min-height: 104px;
  padding: 12px 14px;
  border: 1px solid #ececec;
  border-radius: 12px;
  outline: none;
  resize: vertical;
  background: #f8f9fb;
  color: #333;
  line-height: 1.7;
}

.wenan-create-container .wenan-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.wenan-create-container .wenan-picker-grid.compact {
  max-height: 96px;
  overflow: auto;
}

.wenan-create-container .wenan-picker-option {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #eee;
  border-radius: 999px;
  background: #fff;
  color: #555;
  font-size: 13px;
  font-weight: 700;
}

.wenan-create-container .wenan-picker-option.active {
  border-color: rgba(106, 17, 203, 0.36);
  background: rgba(106, 17, 203, 0.08);
  color: var(--brand-purple-color);
}

.wenan-create-container .wenan-picker {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  background: #f8f9fa;
  color: #333;
}

.wenan-create-container .wenan-knowledge-placeholder {
  color: #999;
}

.wenan-create-container .wenan-knowledge-text {
  color: var(--brand-purple-color);
  font-weight: 800;
}

.wenan-create-container .dropdown-icon {
  width: 8px;
  height: 8px;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.wenan-create-container .dropdown-icon.active {
  transform: rotate(225deg);
}

.wenan-create-container .knowledge-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.42);
}

.wenan-create-container .knowledge-modal.show {
  display: flex;
}

.wenan-create-container .knowledge-modal-content {
  width: 100%;
  max-height: 82vh;
  padding-bottom: calc(14px + var(--safe-bottom));
  border-radius: 22px 22px 0 0;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.18);
}

.wenan-create-container .knowledge-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 12px;
}

.wenan-create-container .modal-title {
  font-size: 17px;
  font-weight: 900;
}

.wenan-create-container .modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f2f2f2;
  color: #777;
  font-size: 20px;
}

.wenan-create-container .knowledge-search-container {
  padding: 0 18px 12px;
}

.wenan-create-container .knowledge-search-wrapper {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: #f6f7f9;
}

.wenan-create-container .knowledge-search-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
}

.wenan-create-container .search-clear-wrapper {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ececec;
  color: #777;
}

.wenan-create-container .selected-knowledge-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 18px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(106, 17, 203, 0.06);
  color: var(--brand-purple-color);
  font-size: 13px;
  font-weight: 700;
}

.wenan-create-container .clear-all-btn {
  margin-left: auto;
  color: var(--brand-purple-color);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.wenan-create-container .knowledge-list {
  max-height: 48vh;
  overflow: auto;
  padding: 0 18px 12px;
  display: grid;
  gap: 10px;
}

.wenan-create-container .knowledge-item-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid #f1f1f1;
  border-radius: 14px;
  background: #fff;
  text-align: left;
}

.wenan-create-container .knowledge-item-card.selected {
  border-color: rgba(106, 17, 203, 0.38);
  background: rgba(106, 17, 203, 0.05);
}

.wenan-create-container .knowledge-title {
  color: #333;
  font-size: 14px;
  font-weight: 800;
}

.wenan-create-container .knowledge-source {
  color: #999;
  font-size: 12px;
}

.wenan-create-container .knowledge-check {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--brand-purple-color);
  font-weight: 900;
}

.wenan-create-container .knowledge-modal-footer {
  display: flex;
  gap: 12px;
  padding: 0 18px;
}

.wenan-create-container .result-time {
  color: #999;
  font-size: 12px;
  margin: -4px 0 10px;
}

.wenan-create-container .result-content {
  color: #333;
  line-height: 1.8;
  white-space: normal;
}

.wenan-create-container .result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.wenan-create-container .action-btn,
.wenan-create-container .result-actions .small-btn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #333;
  font-weight: 800;
}

.wenan-create-container .copy-btn,
.wenan-create-container .result-actions .primary,
.wenan-create-container .digital-human-btn {
  background: linear-gradient(135deg, var(--brand-blue-color), var(--brand-purple-color));
  color: #fff;
}

.wenan-create-container .history-mini-list {
  display: grid;
  gap: 10px;
}

.wenan-create-container .history-mini-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #f1f1f1;
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

.wenan-create-container .history-mini-title {
  color: #333;
  font-weight: 800;
}

.wenan-create-container .history-mini-desc {
  color: #777;
  line-height: 1.5;
}

@media (max-width: 420px) {
  .wenan-create-container .business-selector-row {
    grid-template-columns: 1fr;
  }

  .wenan-create-container .sub-tab-bar {
    padding: 10px 0 14px;
  }
}

/* Source wxamp post detail migration layer. */
.detail-container {
  min-height: calc(100vh - 54px);
  padding-bottom: calc(110px + var(--safe-bottom));
  background: #f5f5f5;
}

.detail-container .post-container {
  margin-bottom: 10px;
  padding: 15px;
  background: #fff;
}

.detail-container .post-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.detail-container .avatar {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 50%;
  object-fit: cover;
}

.detail-container .user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.detail-container .username {
  margin-bottom: 4px;
  color: #333;
  font-size: 16px;
  font-weight: 700;
}

.detail-container .time {
  color: #999;
  font-size: 12px;
}

.detail-container .post-title {
  margin-bottom: 10px;
  color: #333;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}

.detail-container .post-content {
  margin-bottom: 10px;
}

.detail-container .content-text {
  color: #333;
  font-size: 15px;
  line-height: 1.65;
  word-break: break-word;
}

.detail-container .post-images,
.detail-container .post-video {
  margin-bottom: 10px;
}

.detail-container .image-grid {
  display: grid;
  gap: 5px;
}

.detail-container .post-image {
  width: 100%;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
}

.detail-container .post-image.single {
  height: 260px;
  max-width: 100%;
  object-fit: contain;
  background: #f7f7f7;
}

.detail-container .video-player {
  width: 100%;
  height: 240px;
  border-radius: 12px;
  background: #000;
}

.detail-container .post-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  padding-right: 10px;
}

.detail-container .action-item {
  width: 48px;
  min-height: 44px;
  padding: 4px;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
}

.detail-container .action-icon {
  width: 18px;
  height: 18px;
  margin-bottom: 3px;
  object-fit: contain;
}

.detail-container .action-text {
  width: 100%;
  overflow: hidden;
  color: #666;
  font-size: 11px;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-container .action-text.active {
  color: #007aff;
}

.detail-container .post-extra-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.detail-container .divider {
  height: 10px;
  background: #f5f5f5;
}

.detail-container .comment-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.detail-container .comment-title {
  color: #333;
  font-size: 16px;
  font-weight: 800;
}

.detail-container .comment-list {
  margin-bottom: 25px;
  background: #fff;
}

.detail-container .empty-comment {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.detail-container .empty-text {
  color: #999;
  font-size: 14px;
}

.detail-container .comment-item {
  display: flex;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.detail-container .comment-avatar,
.detail-container .reply-avatar {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.detail-container .comment-content,
.detail-container .reply-content {
  flex: 1;
  min-width: 0;
}

.detail-container .comment-username,
.detail-container .reply-username {
  display: block;
  margin-bottom: 4px;
  color: #333;
  font-size: 14px;
  font-weight: 700;
}

.detail-container .comment-text,
.detail-container .reply-text {
  display: block;
  color: #333;
  font-size: 14px;
  line-height: 1.55;
}

.detail-container .comment-footer,
.detail-container .reply-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.detail-container .comment-time,
.detail-container .reply-time {
  color: #999;
  font-size: 12px;
}

.detail-container .comment-actions,
.detail-container .reply-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-container .comment-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 12px;
}

.detail-container .comment-action-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.detail-container .comment-action-text.active {
  color: #007aff;
}

.detail-container .replies-container {
  margin-top: 10px;
  padding: 8px;
  border-radius: 12px;
  background: #f8f8f8;
}

.detail-container .reply-item {
  display: flex;
  padding: 8px 0;
}

.detail-container .comment-input-container {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 70;
  width: min(520px, 100vw);
  padding: 10px 12px calc(10px + var(--safe-bottom));
  background: #fff;
  border-top: 1px solid #eee;
  transform: translateX(-50%);
}

.detail-container .comment-input-wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.detail-container .comment-input {
  min-height: 42px;
  max-height: 120px;
  padding: 10px 12px;
  border: 1px solid #eee;
  border-radius: 16px;
  outline: none;
  resize: vertical;
  background: #f8f8f8;
}

.detail-container .send-btn {
  min-width: 58px;
  min-height: 40px;
  border: none;
  border-radius: 14px;
  background: #e5e5e5;
  color: #999;
  font-weight: 800;
}

.detail-container .send-btn.active {
  background: #111;
  color: #fff;
}

.source-video-create-page {
  min-height: 100vh;
  padding-bottom: 128px;
  background: #f5f5f5;
}

.source-steps-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

.source-video-step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #d9d9d9;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.source-video-step.active {
  background: #ff8c1f;
}

.source-video-step-line {
  width: 40px;
  height: 2px;
  background: #d9d9d9;
}

.source-video-step-line.active {
  background: #ff8c1f;
}

.source-video-content {
  padding: 0 16px;
}

.source-step-content {
  padding-top: 16px;
}

.source-section-title {
  margin: 0 0 12px;
  color: #000;
  font-size: 16px;
  font-weight: 700;
}

.source-input-box,
.source-select-box,
.source-textarea-box,
.source-voice-box {
  width: 100%;
  margin-bottom: 16px;
  border: none;
  border-radius: 8px;
  background: #fff;
}

.source-input-box,
.source-select-box,
.source-voice-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
}

.source-input-field,
.source-textarea-field {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #000;
  font-size: 14px;
}

.source-textarea-box {
  position: relative;
  padding: 16px;
}

.source-textarea-field {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

.source-char-count {
  position: absolute;
  right: 16px;
  bottom: 54px;
  color: #999;
  font-size: 12px;
}

.source-textarea-tip {
  margin-top: 12px;
  color: #999;
  font-size: 12px;
  line-height: 1.5;
}

.source-select-box {
  border: none;
  text-align: left;
}

.source-select-placeholder {
  color: #000;
}

.source-select-text,
.source-voice-name {
  color: #333;
  font-weight: 600;
}

.source-select-arrow {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.source-video-preview-box {
  width: 100%;
  height: 200px;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.source-video-preview-player,
.source-video-preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.source-option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.source-option-chip {
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #fff;
  color: #333;
  padding: 9px 14px;
  font-size: 13px;
}

.source-option-chip.active {
  border-color: #ff8c1f;
  background: #fff3e6;
  color: #ff8c1f;
}

.source-play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: #fff3e6;
}

.source-play-button img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.source-slider-box {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 2px;
  color: #666;
}

.source-slider {
  accent-color: #ff8c1f;
}

.source-bottom-button-container {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 60;
  width: min(520px, 100vw);
  padding: 14px 16px calc(14px + var(--safe-bottom));
  background: #f5f5f5;
  transform: translateX(-50%);
}

.source-bottom-button {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 24px;
  background: #ff8c1f;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.source-user-standard .stats-header-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
