* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================================
   通用工具类
   ======================================== */

/* 通用隐藏类 */
.hidden {
  display: none !important;
}

/* 通过配置隐藏的模块 - 可通过 moduleDisplayConfig 控制 */
.module-hidden-by-config {
  display: none !important;
}

/* ========================================
   统一动画系统 - 动画语法规范
   ======================================== */

/* 动画时长变量 */
:root {
  /* 快反馈时长 */
  --duration-fast: 140ms;
  --duration-fast-hover: 120ms;

  /* 内容进入时长 */
  --duration-enter: 360ms;
  --duration-enter-slow: 420ms;

  /* 缓动曲线 */
  --ease-premium: cubic-bezier(0.2, 0, 0.2, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* 颜色变量 */
  --color-bg: #f7f7f7;
  --color-card-bg: #ffffff;
  --color-text-main: #222;
  --color-text-secondary: #555;
  --color-text-tertiary: #888;
  --color-border: #e0e0e0;
  --color-accent: #FE7040;
  /* 仅作为点缀 */

  /* 4级字体体系 */
  /* L1: 核心标题 */
  --font-l1-size: 1.4rem;
  --font-l1-weight: 600;
  --font-l1-line-height: 1.4;
  --font-l1-color: var(--color-text-main);

  /* L2: 模块标题 */
  --font-l2-size: 1.1rem;
  --font-l2-weight: 500;
  --font-l2-line-height: 1.5;
  --font-l2-color: var(--color-text-main);

  /* L3: 正文 */
  --font-l3-size: 0.95rem;
  --font-l3-weight: 400;
  --font-l3-line-height: 1.8;
  /* 增加行高 */
  --font-l3-color: var(--color-text-secondary);

  /* L4: 辅助信息 */
  --font-l4-size: 0.8rem;
  --font-l4-weight: 400;
  --font-l4-line-height: 1.6;
  --font-l4-color: var(--color-text-tertiary);

  /* 大圆角变量 */
  --radius-large: 24px;
  --radius-medium: 16px;
  --radius-small: 12px;
  --radius-input: 30px;

  /* DeepExplore Colors */
  --color-deep-bg: #fffbf0;
  --color-deep-accent: #d4a017;
}

/* ========================================
   基础动画关键帧
   ======================================== */

/* 高斯模糊渐显动画 - 使用统一缓动曲线 */
@keyframes blurFadeIn {
  0% {
    opacity: 0;
    filter: blur(20px);
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* 从左侧滑入 - 思维链专用 */
@keyframes slideInLeft {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translateX(-12px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
  }
}

/* 展开动画 - AI 搜索模块专用 */
@keyframes expandIn {
  0% {
    opacity: 0;
    transform: scaleY(0.96);
  }

  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* 呼吸动画 - 输入框 idle 状态 */
@keyframes breathe {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.01);
  }
}

/* 脉冲动画 - 探索轨迹节点 */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

/* 呼吸线动画 - loading 专用 */
@keyframes breatheLine {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleX(0.8);
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* ========================================
   动画类
   ======================================== */

/* 懒加载等待状态 */
.lazy-wait {
  opacity: 0 !important;
  animation: none !important;
  transition: none !important;
  /* 确保元素在等待状态时不会影响布局 */
  /* 移除 visibility: hidden，让元素占据空间但不可见 */
  /* 保持元素在文档流中 */
  position: relative;
}

/* 禁用懒加载时，立即显示元素 */
body.disable-lazy-animation .lazy-wait {
  opacity: 1 !important;
}

.fade-in {
  animation: blurFadeIn var(--duration-enter) var(--ease-premium) both;
  will-change: opacity, filter, transform;
}

.fade-in-slow {
  animation: blurFadeIn var(--duration-enter-slow) var(--ease-premium) both;
  will-change: opacity, filter, transform;
}

.slide-in-left {
  animation: slideInLeft var(--duration-enter) var(--ease-premium) both;
  will-change: opacity, filter, transform;
}

.expand-in {
  animation: expandIn var(--duration-fast) var(--ease-premium) both;
  will-change: opacity, transform;
}

.breathe {
  animation: breathe 7s ease-in-out infinite;
  will-change: transform;
}

.pulse {
  animation: pulse 1.5s ease-in-out infinite;
  will-change: opacity;
}

/* ========================================
   减少动画偏好支持
   ======================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .breathe,
  .pulse {
    animation: none;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--color-bg);
  min-height: 100vh;
  padding: 40px 20px;
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

/* ========================================
   首屏加载动画
   ======================================== */

header {
  text-align: center;
  margin-bottom: 60px;
  padding: 20px;
  background: transparent;
  color: var(--color-text-main);
}

.header-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

header h1 {
  font-size: 1.8rem;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--color-text-main);
}

.subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  opacity: 0.8;
}

.token-display {
  margin-top: 20px;
  padding: 6px 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.token-label {
  font-size: var(--font-l4-size);
  font-weight: var(--font-l4-weight);
  color: var(--font-l4-color);
}

.token-count {
  color: #FE7040;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: 'Courier New', monospace;
}

.header-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.keyword-cloud-btn {
  padding: 10px 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  color: var(--color-text-main);
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.keyword-cloud-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

.keyword-cloud-btn:active {
  transform: translateY(0);
}

.keyword-cloud-btn .icon {
  font-size: 1rem;
}

.search-container {
  position: relative;
  margin-bottom: 40px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: blurFadeIn 400ms var(--ease-premium) 200ms forwards;
}

.search-input {
  width: 100%;
  padding: 18px 24px;
  font-size: 1rem;
  font-weight: 400;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  outline: none;
  transition: all 0.2s ease;
}

.search-input.typing {
  border-color: #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.search-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(254, 112, 64, 0.1);
}

.deep-explore-btn {
  position: absolute;
  right: 60px;
  /* 调整位置，给搜索按钮留出空间 */
  top: 50%;
  transform: translateY(-50%);
  background: #f0f0f0;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  color: #666;
  font-weight: 500;
  font-size: 0.9rem;
}

.deep-explore-btn:hover {
  background: #e0e0e0;
}

.search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #FDD63C 0%, #FE7040 100%);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: white;
  box-shadow: 0 2px 6px rgba(254, 112, 64, 0.2);
}

.search-btn:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 10px rgba(254, 112, 64, 0.3);
}

.search-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.search-btn .icon {
  font-size: 1rem;
}

/* 响应式调整 */
@media (max-width: 480px) {
  .deep-explore-btn {
    padding: 6px 10px;
    right: 50px;
  }

  .deep-explore-btn .text {
    display: none;
  }

  .search-input {
    padding-right: 100px;
    /* 确保文字不被按钮遮挡 */
  }
}

.deep-explore-btn.active {
  background: var(--color-deep-accent);
  color: white;
}

.deep-explore-btn .icon {
  font-size: 1.1rem;
}

/* 页面其余区域轻微失焦 */
body.typing .results:not(.hidden),
body.typing .exploration-path:not(.hidden),
body.typing .chain-of-thought:not(.hidden),
body.typing .ai-search-items:not(.hidden),
body.typing .ai-summary,
body.typing .modules,
body.typing .search-results {
  filter: blur(2px);
  transition: filter var(--duration-fast) var(--ease-premium);
  will-change: filter;
}

.search-input::placeholder {
  color: #FE7040;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 0 0 var(--radius-large) var(--radius-large);
  box-shadow: 0 10px 30px rgba(254, 112, 64, 0.15);
  margin-top: 5px;
  overflow: hidden;
  display: none;
  /* 展开动画 */
  animation: expandIn var(--duration-fast) var(--ease-premium);
  will-change: opacity, transform;
}

.search-suggestions.active {
  display: block;
}

.suggestion-item {
  padding: 15px 30px;
  cursor: pointer;
  /* hover 永远比进入动画快，永远不 blur */
  transition: background-color var(--duration-fast-hover) var(--ease-smooth);
}

.suggestion-item:hover {
  background: #fff5f0;
}

/* 热点关键词样式 */
.trending-section {
  max-width: 680px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: blurFadeIn 400ms var(--ease-premium) 300ms forwards;
}

.trending-section.hidden {
  display: none;
}

.trending-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.trending-header h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.trending-header .icon {
  font-size: 1.1rem;
}

.trending-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.trending-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--color-text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.trending-item:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(254, 112, 64, 0.1);
}

.trending-item:active {
  transform: translateY(0);
}

/* 热门程度指示器 */
.trending-item.hot::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  background: #FE7040;
  border-radius: 50%;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #333;
}

.loading.hidden {
  display: none;
}

/* 呼吸线动画 - 替换转圈 */
.loading-spinner {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #FE7040, transparent);
  border-radius: 2px;
  margin: 0 auto 20px;
  /* 呼吸线动画 */
  animation: breatheLine 1.5s ease-in-out infinite;
  will-change: opacity, transform;
}

.loading p {
  font-size: var(--font-l3-size);
  font-weight: var(--font-l3-weight);
  line-height: var(--font-l3-line-height);
  color: var(--font-l3-color);
  /* "思考中..."的轻微 opacity 变化 */
  animation: breathe 3s ease-in-out infinite;
  will-change: opacity;
}

/* 保留 spin 动画用于爬虫进度 */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.results {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.results.hidden {
  display: none;
}

/* DeepExplore Results Styles */
.deep-results {
  background: var(--color-deep-bg);
  border-radius: var(--radius-large);
  padding: 30px;
  margin-top: 20px;
  border: 1px solid rgba(212, 160, 23, 0.2);
  animation: blurFadeIn var(--duration-enter) var(--ease-premium) forwards;
}

.deep-results.hidden {
  display: none;
}

.deep-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.deep-header h2 {
  color: #8c6b10;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.deep-meta {
  color: #b08d28;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.deep-section {
  margin-bottom: 30px;
  background: white;
  padding: 24px;
  border-radius: var(--radius-medium);
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.05);
}

.dimension-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.dim-tag {
  background: #fff8e1;
  color: #8c6b10;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid #ffe082;
}

.deep-overview p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
}

.deep-dim-section {
  margin-bottom: 20px;
  background: white;
  padding: 20px;
  border-radius: var(--radius-medium);
  border-left: 4px solid var(--color-deep-accent);
}

.deep-dim-section h4 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 12px;
}

.dim-content ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.dim-content li {
  margin-bottom: 8px;
  color: #555;
  line-height: 1.6;
}

.dim-uncertainty {
  background: #fff3f0;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.dim-uncertainty strong {
  color: #d32f2f;
  display: block;
  margin-bottom: 6px;
}

.deep-next {
  margin-top: 40px;
}

.next-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.next-item {
  background: white;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  color: #555;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.next-item:hover {
  border-color: var(--color-deep-accent);
  color: var(--color-deep-accent);
  transform: translateY(-2px);
}

.chain-of-thought {
  margin-bottom: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  opacity: 0;
  animation: slideInLeft var(--duration-enter) var(--ease-premium) forwards;
  overflow: hidden;
  /* 确保内容折叠时不溢出圆角 */
}

.chain-of-thought.hidden {
  display: none;
}

.chain-of-thought.fade-in {
  animation: slideInLeft var(--duration-enter) var(--ease-premium) forwards;
}

.chain-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.chain-header h3 {
  font-size: var(--font-l2-size);
  font-weight: 600;
  color: var(--color-text-main);
}

.chain-content {
  font-size: var(--font-l3-size);
  color: var(--color-text-secondary);
  max-height: 5000px;
  opacity: 1;
  transition:
    max-height 0.6s var(--ease-premium),
    opacity 0.4s var(--ease-premium),
    margin-top 0.4s var(--ease-premium);
}

.chain-content.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
}

.chain-section {
  margin-bottom: 15px;
}

.chain-section:last-child {
  margin-bottom: 0;
}

.chain-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.chain-section p {
  font-size: var(--font-l3-size);
  color: var(--color-text-secondary);
}

.chain-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chain-keyword {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: #f0f0f0;
  border-radius: var(--radius-small);
  color: #666;
}

.ai-search-items {
  margin-bottom: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  opacity: 0;
  animation: expandIn var(--duration-fast) var(--ease-premium) forwards;
  overflow: hidden;
}

.ai-search-items.hidden {
  display: none;
}

.ai-search-items.fade-in {
  animation: expandIn var(--duration-fast) var(--ease-premium) forwards;
}

.ai-search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.ai-search-header h3 {
  font-size: var(--font-l2-size);
  font-weight: 600;
  color: var(--color-text-main);
}

.ai-search-content {
  font-size: var(--font-l3-size);
  color: var(--color-text-secondary);
  max-height: 5000px;
  opacity: 1;
  transition:
    max-height 0.6s var(--ease-premium),
    opacity 0.4s var(--ease-premium),
    margin-top 0.4s var(--ease-premium);
}

.ai-search-content.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
}

.ai-search-item {
  padding: 16px;
  background: #f9f9f9;
  border-radius: var(--radius-medium);
  margin-bottom: 12px;
  border: 1px solid transparent;
  opacity: 0;
  animation: blurFadeIn var(--duration-enter) var(--ease-premium) forwards;
}

.ai-search-item:hover {
  border-color: #eee;
  background: #fff;
}

.ai-search-item:last-child {
  margin-bottom: 0;
}

.ai-search-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 10px;
}

.ai-search-item h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-main);
  margin: 0;
  flex: 1;
}

.ai-search-link {
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
  text-decoration: none;
  white-space: nowrap;
}

.ai-search-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.ai-search-item p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 6px 0 10px 0;
}

.ai-search-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ai-search-tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius-small);
  color: #666;
}

.ai-summary {
  margin-bottom: 40px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  opacity: 0;
  animation: blurFadeIn var(--duration-enter) var(--ease-premium) 250ms forwards;
  overflow: hidden;
}

.ai-summary.fade-in {
  animation: blurFadeIn var(--duration-enter) var(--ease-premium) 250ms forwards;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.summary-header h3 {
  font-size: var(--font-l1-size);
  font-weight: var(--font-l1-weight);
  line-height: var(--font-l1-line-height);
  color: var(--font-l3-color);
}

.toggle-btn {
  background: none;
  border: none;
  color: #FE7040;
  cursor: pointer;
  font-size: var(--font-l4-size);
  font-weight: var(--font-l4-weight);
  line-height: var(--font-l4-line-height);
  padding: 5px 10px;
  border-radius: 5px;
  /* 只动 background-color */
  transition: background-color var(--duration-fast-hover) var(--ease-smooth);
}

.toggle-btn:hover {
  background: rgba(254, 112, 64, 0.1);
}

.summary-content {
  font-size: var(--font-l3-size);
  font-weight: var(--font-l3-weight);
  line-height: var(--font-l3-line-height);
  color: var(--font-l3-color);
  max-height: 10000px;
  /* 总结内容可能较长 */
  opacity: 1;
  transition:
    max-height 0.8s var(--ease-premium),
    opacity 0.4s var(--ease-premium),
    margin-top 0.4s var(--ease-premium);
}

.summary-content.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
}

.modules,
.search-results {
  margin-bottom: 30px;
}

.modules h3,
.search-results h3 {
  font-size: var(--font-l1-size);
  font-weight: var(--font-l1-weight);
  line-height: var(--font-l1-line-height);
  margin-bottom: 20px;
  color: var(--font-l1-color);
}

.module-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.module-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  color: var(--color-text-main);
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
  transition: all 0.2s ease;
  opacity: 0;
  animation: blurFadeIn var(--duration-enter) var(--ease-premium) forwards;
}

.module-card:hover {
  transform: translateY(-2px);
  border-color: #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.module-card h4 {
  font-size: var(--font-l2-size);
  font-weight: var(--font-l2-weight);
  line-height: var(--font-l2-line-height);
  margin-bottom: 10px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.module-card p {
  font-size: var(--font-l3-size);
  font-weight: var(--font-l3-weight);
  line-height: var(--font-l3-line-height);
  opacity: 0.9;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.module-keywords {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.module-keyword {
  display: inline-flex;
  max-width: 100%;
  font-size: 0.75rem;
  padding: 2px 8px;
  background: #f5f5f5;
  border-radius: var(--radius-small);
  color: #666;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.result-item {
  padding: 24px;
  background: #fff;
  border-radius: var(--radius-medium);
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
  position: relative;
  opacity: 0;
  animation: blurFadeIn var(--duration-enter) var(--ease-premium) forwards;
  cursor: pointer;
}

.result-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border-color: var(--color-accent);
}

.result-item::after {
  content: '↗';
  position: absolute;
  top: 20px;
  right: 20px;
  color: #FE7040;
  opacity: 0;
  transition: opacity var(--duration-fast-hover) var(--ease-smooth);
  font-size: 1.2rem;
}

.result-item:hover::after {
  opacity: 1;
}

.result-item h4 {
  font-size: var(--font-l2-size);
  font-weight: var(--font-l2-weight);
  line-height: var(--font-l2-line-height);
  margin-bottom: 10px;
  color: var(--font-l1-color);
  transition: color var(--duration-fast-hover) var(--ease-smooth);
}

.result-item:hover h4 {
  color: #FE7040;
  text-decoration: underline;
}

.result-item p {
  font-size: var(--font-l3-size);
  font-weight: var(--font-l3-weight);
  line-height: var(--font-l3-line-height);
  color: var(--font-l3-color);
}

.result-meta {
  margin-top: 10px;
  font-size: var(--font-l4-size);
  font-weight: var(--font-l4-weight);
  line-height: var(--font-l4-line-height);
  color: #FE7040;
  display: flex;
  gap: 15px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.result-source {
  flex-shrink: 0;
  white-space: nowrap;
}

.result-url {
  font-size: var(--font-l4-size);
  font-weight: var(--font-l4-weight);
  line-height: var(--font-l4-line-height);
  color: var(--font-l4-color);
  text-decoration: none;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.result-item:hover .result-url {
  color: #FE7040;
}

/* Wiki 结果特殊样式 */
.result-item.wiki-result {
  border-color: #FFD700;
  border-width: 2px;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
}

.result-item.wiki-result:hover {
  border-color: #FFA500;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.15);
}

.result-item.wiki-result::after {
  content: '📚';
  color: #FFA500;
}

.result-item.wiki-result h4 {
  color: #D35400;
}

.result-item.wiki-result:hover h4 {
  color: #E67E22;
}

.wiki-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(255, 165, 0, 0.2);
}

.wiki-badge-icon {
  font-size: 1rem;
}

.wiki-badge-text {
  font-weight: 600;
}

.wiki-badge-confidence {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
}

.result-version {
  background: #f0f0f0;
  color: #666;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.result-image-container {
  margin-top: 12px;
  margin-bottom: 8px;
  border-radius: var(--radius-small);
  overflow: hidden;
  max-width: 100%;
}

.result-image-container img {
  display: block;
  max-width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: var(--radius-small);
}

.result-tags {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
  /* 允许标签换行 */
}

.result-tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: #f5f5f5;
  border-radius: var(--radius-small);
  color: #666;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.judgment-actions {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #eee;
  align-items: center;
}

.judgment-btn {
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.judgment-btn:hover:not(:disabled) {
  background: #f9f9f9;
  border-color: #ccc;
  transform: translateY(-1px);
}

.judgment-btn.active {
  background: #fff8e1;
  border-color: #ffd54f;
  color: #f57f17;
  font-weight: 500;
  cursor: default;
}

.judgment-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.judgment-feedback {
  font-size: 0.85rem;
  color: #2e7d32;
  margin-left: 10px;
  font-weight: 500;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: #FE7040;
}

.empty-state p {
  font-size: 1.1rem;
}

/* 爬虫按钮 */
.crawler-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border);
  color: #666;
  font-size: 24px;
  font-weight: 400;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.crawler-btn:hover {
  transform: scale(1.05);
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.crawler-btn:active {
  transform: scale(0.95);
}

/* 爬虫弹窗 */
.crawler-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.crawler-modal.hidden {
  display: none;
}

.crawler-modal-content {
  background: white;
  border-radius: var(--radius-large);
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.crawler-modal-header {
  padding: 25px 30px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crawler-modal-header h3 {
  margin: 0;
  font-size: var(--font-l1-size);
  font-weight: var(--font-l1-weight);
  line-height: var(--font-l1-line-height);
  color: var(--font-l1-color);
}

.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  /* 只动 background-color 和 color */
  transition:
    background-color var(--duration-fast-hover) var(--ease-smooth),
    color var(--duration-fast-hover) var(--ease-smooth);
}

.close-btn:hover {
  background: #f5f5f5;
  color: #333;
}

.crawler-modal-body {
  padding: 30px;
}

.crawler-input {
  width: 100%;
  padding: 15px 20px;
  font-size: var(--font-l3-size);
  font-weight: var(--font-l3-weight);
  line-height: var(--font-l3-line-height);
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-medium);
  outline: none;
  /* 只动 border-color 和 box-shadow */
  transition:
    border-color var(--duration-fast) var(--ease-premium),
    box-shadow var(--duration-fast) var(--ease-premium);
  margin-bottom: 20px;
}

.crawler-input:focus {
  border-color: #FE7040;
  box-shadow: 0 0 0 3px rgba(254, 112, 64, 0.1);
}

.crawler-modal-footer {
  padding: 20px 30px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
}

.crawler-submit-btn {
  padding: 12px 30px;
  background: linear-gradient(135deg, #FDD63C 0%, #FE7040 100%);
  border: none;
  border-radius: var(--radius-input);
  color: white;
  font-size: var(--font-l4-size);
  font-weight: var(--font-l4-weight);
  line-height: var(--font-l4-line-height);
  cursor: pointer;
  /* 只动 transform 和 box-shadow */
  transition:
    transform var(--duration-fast) var(--ease-premium),
    box-shadow var(--duration-fast) var(--ease-premium);
}

.crawler-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(254, 112, 64, 0.3);
}

.crawler-submit-btn:active {
  transform: translateY(0);
}

.crawler-progress-content {
  width: 200px;
  padding: 30px;
  text-align: center;
}

.crawler-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

/* 爬虫进度使用转圈动画 */
.crawler-progress .loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(254, 112, 64, 0.2);
  border-top-color: #FE7040;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
  will-change: transform;
}

#crawlerProgressText {
  font-size: var(--font-l3-size);
  font-weight: var(--font-l3-weight);
  line-height: var(--font-l3-line-height);
  color: var(--font-l3-color);
  text-align: center;
  margin: 0;
}

/* 探索轨迹样式 - 模块形式 */
.exploration-path {
  margin-bottom: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  opacity: 0;
  animation: slideInLeft var(--duration-enter) var(--ease-premium) forwards;
  overflow: hidden;
}

.exploration-path.hidden {
  display: none;
}

.exploration-path.fade-in {
  animation: slideInLeft var(--duration-enter) var(--ease-premium) forwards;
}

.path-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.path-header h3 {
  font-size: var(--font-l2-size);
  font-weight: 600;
  color: var(--color-text-main);
}

.path-content {
  font-size: var(--font-l3-size);
  color: var(--color-text-secondary);
  max-height: 5000px;
  opacity: 1;
  transition:
    max-height 0.6s var(--ease-premium),
    opacity 0.4s var(--ease-premium),
    margin-top 0.4s var(--ease-premium);
}

.path-content.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
}

.path-timeline {
  position: relative;
  padding-left: 30px;
}

.path-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 5px;
  bottom: 5px;
  width: 1px;
  background: #e0e0e0;
}

.path-node {
  position: relative;
  margin-bottom: 12px;
  padding: 12px;
  background: #f9f9f9;
  border-radius: var(--radius-medium);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
  animation: blurFadeIn var(--duration-enter) var(--ease-premium) forwards;
}

.path-node:last-child {
  margin-bottom: 0;
}

.path-node::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #ccc;
  transition: all 0.2s ease;
}

.path-node:hover {
  background: #fff;
  border-color: #e0e0e0;
}

.path-node:hover::before {
  border-color: var(--color-accent);
}

.path-node.active {
  background: #fff;
  border-color: var(--color-accent);
}

.path-node.active::before {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.path-node-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.path-node-type {
  font-size: 0.7rem;
  padding: 2px 6px;
  background: #eee;
  border-radius: var(--radius-small);
  color: #666;
  text-transform: uppercase;
}

.path-node-title {
  font-size: var(--font-l4-size);
  font-weight: 500;
  line-height: var(--font-l4-line-height);
  color: #333;
  flex: 1;
}

.path-node-time {
  font-size: var(--font-l4-size);
  font-weight: var(--font-l4-weight);
  line-height: var(--font-l4-line-height);
  color: var(--font-l4-color);
}

.path-node-desc {
  font-size: var(--font-l3-size);
  font-weight: var(--font-l3-weight);
  line-height: var(--font-l3-line-height);
  color: #666;
  margin: 0;
}

/* 回放模式下的样式 */
.path-node.replaying::before {
  background: #FE7040;
  box-shadow: 0 0 0 2px #FE7040;
  /* 脉冲效果 */
  animation: pulse 1.5s ease-in-out infinite;
  will-change: opacity;
}

.path-node.replayed {
  opacity: 0.4;
  /* 只动 opacity */
  transition: opacity var(--duration-fast) var(--ease-premium);
}

.path-node.replayed::before {
  background: #999;
  box-shadow: 0 0 0 2px #999;
}

/* 节点类型颜色 */
.path-node[data-type="query"] .path-node-type {
  background: rgba(254, 112, 64, 0.1);
  color: #FE7040;
}

.path-node[data-type="query"]::before {
  background: #FE7040;
  box-shadow: 0 0 0 2px #FE7040;
}

.path-node[data-type="intent"] .path-node-type {
  background: rgba(44, 95, 122, 0.1);
  color: #2c5f7a;
}

.path-node[data-type="intent"]::before {
  background: #2c5f7a;
  box-shadow: 0 0 0 2px #2c5f7a;
}

.path-node[data-type="search"] .path-node-type {
  background: rgba(122, 44, 95, 0.1);
  color: #7a2c5f;
}

.path-node[data-type="search"]::before {
  background: #7a2c5f;
  box-shadow: 0 0 0 2px #7a2c5f;
}

.path-node[data-type="summary"] .path-node-type {
  background: rgba(253, 214, 60, 0.2);
  color: #d4a017;
}

.path-node[data-type="summary"]::before {
  background: #d4a017;
  box-shadow: 0 0 0 2px #d4a017;
}

.path-node[data-type="module"] .path-node-type {
  background: rgba(44, 122, 95, 0.1);
  color: #2c7a5f;
}

.path-node[data-type="module"]::before {
  background: #2c7a5f;
  box-shadow: 0 0 0 2px #2c7a5f;
}

.path-node[data-type="followup"] .path-node-type {
  background: rgba(122, 95, 44, 0.1);
  color: #7a5f2c;
}

.path-node[data-type="followup"]::before {
  background: #7a5f2c;
  box-shadow: 0 0 0 2px #7a5f2c;
}

/* 响应式样式 */
@media (max-width: 768px) {
  .path-node {
    padding: 10px 12px;
  }

  .path-node-title {
    font-size: 0.9rem;
  }

  .path-node-desc {
    font-size: 0.8rem;
  }
}

/* ========================================
   Markdown 渲染样式 - 符合UX层级规范
   ======================================== */

/* Markdown 内容容器 */
.markdown-content {
  /* 继承正文样式 */
  font-size: var(--font-l3-size);
  font-weight: var(--font-l3-weight);
  line-height: var(--font-l3-line-height);
  color: var(--font-l3-color);
}

/* Markdown 标题 - 使用 L1 层级 */
.markdown-content h1,
.markdown-content h2 {
  font-size: var(--font-l1-size);
  font-weight: var(--font-l1-weight);
  line-height: var(--font-l1-line-height);
  color: var(--font-l1-color);
  margin-top: 1.5em;
  margin-bottom: 0.8em;
}

/* Markdown 子标题 - 使用 L2 层级 */
.markdown-content h3,
.markdown-content h4 {
  font-size: var(--font-l2-size);
  font-weight: var(--font-l2-weight);
  line-height: var(--font-l2-line-height);
  color: var(--font-l1-color);
  margin-top: 1.2em;
  margin-bottom: 0.6em;
}

/* 禁用 h5、h6 */
.markdown-content h5,
.markdown-content h6 {
  font-size: var(--font-l3-size);
  font-weight: var(--font-l3-weight);
  line-height: var(--font-l3-line-height);
  color: var(--font-l3-color);
}

/* Markdown 段落 - 每段不超过3行 */
.markdown-content p {
  font-size: var(--font-l3-size);
  font-weight: var(--font-l3-weight);
  line-height: var(--font-l3-line-height);
  color: var(--font-l3-color);
  margin-top: 0;
  margin-bottom: 1em;
  max-width: 70ch;
  /* 限制每行宽度，确保每段不超过3行 */
}

/* Markdown 粗体 - 只用于重要结论 */
.markdown-content strong {
  font-weight: 600;
  color: var(--font-l1-color);
}

/* Markdown 斜体 - 用于解释性补充 */
.markdown-content em {
  font-style: italic;
  color: var(--font-l3-color);
}

/* Markdown 列表 - 最多5条，单条不超过1行 */
.markdown-content ul,
.markdown-content ol {
  margin-top: 0.5em;
  margin-bottom: 1em;
  padding-left: 1.5em;
}

.markdown-content li {
  font-size: var(--font-l3-size);
  font-weight: var(--font-l3-weight);
  line-height: var(--font-l3-line-height);
  color: var(--font-l3-color);
  margin-bottom: 0.5em;
  max-width: 70ch;
  /* 限制每行宽度 */
  white-space: nowrap;
  /* 强制单行 */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Markdown 代码 */
.markdown-content code {
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  color: #d63384;
}

.markdown-content pre {
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
  background: #f5f5f5;
  padding: 1em;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1em 0;
}

.markdown-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Markdown 引用 */
.markdown-content blockquote {
  border-left: 4px solid #FE7040;
  padding-left: 1em;
  margin: 1em 0;
  color: var(--font-l3-color);
  font-style: italic;
}

/* Markdown 链接 */
.markdown-content a {
  color: #FE7040;
  text-decoration: none;
  transition: color 0.2s ease;
}

.markdown-content a:hover {
  color: #d65a30;
  text-decoration: underline;
}

/* Markdown 分隔线 */
.markdown-content hr {
  border: none;
  border-top: 2px solid #eee;
  margin: 2em 0;
}

/* 禁止表情符号 */
.markdown-content .emoji {
  display: none;
}

/* AI 总结固定结尾样式 */
.ai-summary-footer {
  margin-top: 1.5em;
  padding-top: 1em;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: var(--font-l4-size);
  font-weight: var(--font-l4-weight);
  line-height: var(--font-l4-line-height);
  color: var(--font-l4-color);
  font-style: italic;
}

/* Wiki 通知 */
.wiki-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 400px;
  z-index: 10000;
  animation: slideInRight 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-medium);
  overflow: hidden;
}

.wiki-notification.hidden {
  animation: slideOutRight 0.3s ease-in;
}

.wiki-notification[data-action="created"] {
  background: var(--color-card-bg);
  border: 2px solid var(--color-accent);
}

.wiki-notification[data-action="updated"] {
  background: var(--color-card-bg);
  border: 2px solid #ff9800;
}

.wiki-notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.wiki-notification-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.wiki-notification[data-action="created"] .wiki-notification-icon {
  color: var(--color-accent);
}

.wiki-notification[data-action="updated"] .wiki-notification-icon {
  color: #ff9800;
}

.wiki-notification-text {
  flex: 1;
  min-width: 0;
}

.wiki-notification-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--color-text-main);
}

.wiki-notification-message {
  font-size: 12px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wiki-notification-link {
  padding: 6px 12px;
  background: var(--color-bg);
  border-radius: var(--radius-small);
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
  transition: all 0.2s;
  border: 1px solid var(--color-border);
}

.wiki-notification-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.wiki-notification-close {
  background: none;
  border: none;
  color: var(--color-text-tertiary);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.wiki-notification-close:hover {
  opacity: 1;
  color: var(--color-accent);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* ========================================
   设置按钮样式
   ======================================== */

/* 爬虫按钮 - 移动到上方 */
.crawler-btn.crawler-btn-top {
  bottom: 90px;
}

/* 设置按钮 */
.settings-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border);
  color: #666;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.settings-btn:hover {
  transform: scale(1.05);
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.settings-btn:active {
  transform: scale(0.95);
}

/* 设置弹窗 */
.settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.settings-modal.hidden {
  display: none;
}

.settings-modal-content {
  background: white;
  border-radius: var(--radius-large);
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
  overflow: hidden;
}

.settings-modal-header {
  padding: 25px 30px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.settings-modal-header h3 {
  margin: 0;
  font-size: var(--font-l1-size);
  font-weight: var(--font-l1-weight);
  line-height: var(--font-l1-line-height);
  color: var(--font-l1-color);
}

.settings-modal-body {
  padding: 20px 30px 30px;
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  background: var(--color-bg);
  border-radius: var(--radius-medium);
  gap: 16px;
}

.settings-item-info {
  flex: 1;
  min-width: 0;
}

.settings-item-info h4 {
  margin: 0 0 6px 0;
  font-size: var(--font-l2-size);
  font-weight: var(--font-l2-weight);
  color: var(--font-l2-color);
}

.settings-item-info p {
  margin: 0;
  font-size: var(--font-l4-size);
  font-weight: var(--font-l4-weight);
  line-height: var(--font-l4-line-height);
  color: var(--font-l4-color);
}

.settings-account-item {
  flex-direction: column;
  align-items: stretch;
}

.account-panel {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-view {
  display: block;
}

.account-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.account-tab {
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--font-l3-color);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.account-tab.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(254, 112, 64, 0.08);
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-input {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  padding: 10px 12px;
  font-size: var(--font-l3-size);
  color: var(--font-l2-color);
  background: #fff;
}

.account-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(254, 112, 64, 0.12);
}

.account-submit-btn,
.account-logout-btn {
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-small);
  padding: 10px 12px;
  font-size: var(--font-l3-size);
  cursor: pointer;
  transition: all 0.2s ease;
}

.account-submit-btn:hover,
.account-logout-btn:hover {
  filter: brightness(0.95);
}

.account-submit-btn:disabled,
.account-logout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.account-user-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: var(--font-l4-size);
}

.account-user-row .label {
  color: var(--font-l4-color);
}

.account-user-row .value {
  color: var(--font-l2-color);
}

.account-message {
  margin: 0;
  font-size: var(--font-l4-size);
  line-height: var(--font-l4-line-height);
}

.account-message.success {
  color: #2e7d32;
}

.account-message.error {
  color: #c62828;
}

/* Toggle Switch 样式 */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 4px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--color-accent);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.toggle-switch input:focus + .toggle-slider {
  box-shadow: 0 0 1px var(--color-accent);
}
    opacity: 0;
  }
}
