/* ========== 0. Product Sans 字体 ========== */
@font-face {
  font-family: "Product Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: local("Product Sans Light"), local("ProductSans-Light"),
       url("/assets/fonts/ProductSans-Light.woff2") format("woff2"),
       url("/assets/fonts/ProductSans-Light.woff") format("woff");
}
@font-face {
  font-family: "Product Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Product Sans"), local("ProductSans-Regular"),
       url("/assets/fonts/ProductSans-Regular.woff2") format("woff2"),
       url("/assets/fonts/ProductSans-Regular.woff") format("woff");
}
@font-face {
  font-family: "Product Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local("Product Sans Medium"), local("ProductSans-Medium"),
       url("/assets/fonts/ProductSans-Medium.woff2") format("woff2"),
       url("/assets/fonts/ProductSans-Medium.woff") format("woff");
}
@font-face {
  font-family: "Product Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Product Sans Bold"), local("ProductSans-Bold"),
       url("/assets/fonts/ProductSans-Bold.woff2") format("woff2"),
       url("/assets/fonts/ProductSans-Bold.woff") format("woff");
}

/* ========== 1. 全局变量与配色 ========== */

:root {
  --google-primary: #0b57d0;
  --google-primary-hover: #0842a0;
  --google-text: #1f1f1f;
  --google-text-secondary: #444746;
  --google-bg: #ffffff;
  --google-sidebar-bg: #f0f4f9;
  --chat-bg: #f2f2f2;
  --border-color: #e0e3e7;

  --input-bg: #f0f4f9;
  --input-bg-focus: #ffffff;
  --input-radius: 28px;

  --sidebar-width: 250px;
  --sidebar-mini-width: 4.6rem;

  --transition-speed: 0.3s;
  --ease-out: cubic-bezier(0.25, 0.8, 0.25, 1);
  --ease-curve: cubic-bezier(0.2, 0.0, 0, 1.0);

  --google-surface: #f9fafb;
}

/* 夜间模式变量 */
.dark-mode:root,
.dark-mode {
  --google-primary: #a8c7fa;
  --google-primary-hover: #d3e3fd;
  --google-text: #e3e3e3;
  --google-text-secondary: #c4c7c5;
  --google-bg: #1e1f20;
  --google-sidebar-bg: #1e1f20;
  --chat-bg: #282a2c;
  --border-color: #444746;

  --input-bg: #303134;
  --input-bg-focus: #1e1f20;

  --google-surface: #202124;
}

/* 统一禁止横向滚动条 */
html,
body,
.wrapper {
  overflow-x: hidden;
}

/* 全站字体 */
body {
  font-family: "Product Sans", "Google Sans", "Roboto",
               -apple-system, BlinkMacSystemFont, "Segoe UI",
               sans-serif !important;
  background-color: var(--google-bg) !important;
  color: var(--google-text) !important;
  transition: background-color 0.3s, color 0.3s;
}

/* 滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(128,128,128,0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(128,128,128,0.4); }
.dark-mode ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }

.wrapper,
.content-wrapper {
  background-color: var(--google-bg) !important;
  transition: margin-left var(--transition-speed) var(--ease-out);
}

/* ========== 2. 顶部导航 / 左侧栏 ========== */

.main-sidebar,
.main-sidebar .sidebar {
  overflow-x: hidden;
}

.sidebar-collapse .nav-sidebar .nav-item.has-treeview > .nav-link .right,
.sidebar-mini.sidebar-collapse .nav-sidebar .nav-item.has-treeview > .nav-link .right {
  display: none !important;
}

.brand-search-btn {
  color: var(--google-text-secondary) !important;
}
.brand-search-btn:hover,
.brand-search-btn:focus {
  color: var(--google-text) !important;
  text-decoration: none;
}

.main-header {
  background-color: transparent !important;
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
  height: 60px;
}
.main-header .nav-link {
  color: var(--google-text-secondary) !important;
  transition: color 0.2s;
}
.main-header .nav-link:hover {
  color: var(--google-text) !important;
}

.main-sidebar {
  background-color: var(--google-sidebar-bg) !important;
  border-right: 1px solid var(--border-color);
  box-shadow: none !important;
}

.brand-link {
  height: 60px;
  border-bottom: 1px solid transparent !important;
  color: var(--google-text) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.nav-sidebar .nav-item .nav-link {
  color: var(--google-text);
  border-radius: 0 50px 50px 0;
  margin-right: 10px;
  padding: 10px 1rem;
  transition: all 0.2s;
}
.nav-sidebar .nav-item .nav-link.active {
  background-color: rgba(11, 87, 208, 0.12) !important;
  color: var(--google-primary) !important;
  font-weight: 500;
}
.dark-mode .nav-sidebar .nav-item .nav-link.active {
  background-color: rgba(168, 199, 250, 0.12) !important;
}
.nav-sidebar .nav-item .nav-link:hover:not(.active) {
  background-color: rgba(0,0,0,0.04) !important;
}
.dark-mode .nav-sidebar .nav-item .nav-link:hover:not(.active) {
  background-color: rgba(255,255,255,0.04) !important;
}

/* hover 颜色 */
.nav-sidebar .nav-item .nav-link:hover:not(.active),
.nav-sidebar .nav-item .nav-link:focus:not(.active) {
  background-color: rgba(0,0,0,0.04) !important;
  color: var(--google-text) !important;
}
.dark-mode .nav-sidebar .nav-item .nav-link:hover:not(.active),
.dark-mode .nav-sidebar .nav-item .nav-link:focus:not(.active) {
  background-color: rgba(255,255,255,0.04) !important;
  color: var(--google-text) !important;
}

/* 图标跟随文字颜色 */
.nav-sidebar .nav-item .nav-link:hover .nav-icon,
.nav-sidebar .nav-item .nav-link:hover .right {
  color: inherit !important;
}

.sidebar-custom {
  border-top: 1px solid var(--border-color) !important;
  padding: 1rem;
}



/* ========== 2.1 添加来源按钮 ========== */

.add-source-wrapper {
  padding: 4px 10px 4px 0;
}

.add-source-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 1rem;
  border: 1px dashed var(--border-color);
  border-radius: 0 50px 50px 0;
  background-color: transparent;
  color: var(--google-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease-curve);
  text-decoration: none;
}

.add-source-btn:hover {
  border-color: var(--google-primary);
  background-color: rgba(11, 87, 208, 0.06);
  color: var(--google-primary);
  text-decoration: none;
}

.add-source-btn:active {
  transform: scale(0.98);
}

.dark-mode .add-source-btn {
  border-color: rgba(255,255,255,0.15);
}

.dark-mode .add-source-btn:hover {
  border-color: var(--google-primary);
  background-color: rgba(168, 199, 250, 0.08);
  color: var(--google-primary);
}

.add-source-btn i {
  font-size: 0.9rem;
  width: 1.6rem;
  text-align: center;
  transition: transform 0.2s var(--ease-curve);
}

.add-source-btn:hover i {
  transform: rotate(90deg);
}

/* 侧边栏收起时的添加来源按钮样式 */
.sidebar-collapse .add-source-btn {
  justify-content: center;
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 auto;
}

.sidebar-collapse .add-source-btn span {
  display: none;
}

.sidebar-collapse .add-source-wrapper {
  padding: 8px;
  display: flex;
  justify-content: center;
}



/* ========== 2.1.1 应用工具入口 ========== */

.app-tools-wrapper {
  padding: 4px 10px 4px 0;
}

.app-tools-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 1rem;
  border-radius: 0 50px 50px 0;
  background-color: transparent;
  color: var(--google-text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease-curve);
  text-decoration: none;
  border: none;
}

.app-tools-btn:hover {
  background-color: rgba(0,0,0,0.04);
  color: var(--google-text);
  text-decoration: none;
}

.dark-mode .app-tools-btn:hover {
  background-color: rgba(255,255,255,0.04);
}

.app-tools-btn i {
  font-size: 0.9rem;
  width: 1.6rem;
  text-align: center;
  color: var(--google-text-secondary);
  transition: color 0.2s var(--ease-curve);
}

.app-tools-btn:hover i {
  color: var(--google-primary);
}

/* 侧边栏收起时的应用工具按钮样式 */
.sidebar-collapse .app-tools-btn {
  justify-content: center;
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 auto;
}

.sidebar-collapse .app-tools-btn span {
  display: none;
}

.sidebar-collapse .app-tools-wrapper {
  padding: 8px;
  display: flex;
  justify-content: center;
}

/* ========== 2.2 添加来源弹窗 ========== */

.add-source-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.add-source-modal.open {
  display: flex;
  opacity: 1;
}

.add-source-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.add-source-dialog {
  position: relative;
  z-index: 2;
  width: 680px;
  max-width: 90%;
  max-height: 85vh;
  background-color: var(--google-bg);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.add-source-modal.open .add-source-dialog {
  transform: scale(1);
}

.add-source-header {
  padding: 20px 24px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.add-source-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--google-primary);
  margin-bottom: 8px;
}

.add-source-brand i {
  font-size: 1.1rem;
}

.add-source-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--google-text);
  margin: 0;
}

.add-source-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--google-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.add-source-close:hover {
  background-color: rgba(0,0,0,0.06);
  color: var(--google-text);
}

.dark-mode .add-source-close:hover {
  background-color: rgba(255,255,255,0.08);
}

.add-source-body {
  padding: 0 24px 24px;
  overflow-y: auto;
  flex: 1;
}

.add-source-desc {
  font-size: 0.95rem;
  color: var(--google-text-secondary);
  margin: 0 0 20px;
  line-height: 1.5;
}

.add-source-upload {
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  margin-bottom: 24px;
  transition: all 0.2s;
  cursor: pointer;
}

.add-source-upload:hover {
  border-color: var(--google-primary);
  background-color: rgba(11, 87, 208, 0.03);
}

.dark-mode .add-source-upload:hover {
  background-color: rgba(168, 199, 250, 0.05);
}

.add-source-upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--google-primary);
  font-size: 2rem;
}

.add-source-upload-text {
  font-size: 1rem;
  color: var(--google-text);
  margin: 0 0 8px;
}

.add-source-upload-text a {
  color: var(--google-primary);
  text-decoration: none;
  cursor: pointer;
}

.add-source-upload-text a:hover {
  text-decoration: underline;
}

.add-source-upload-hint {
  font-size: 0.85rem;
  color: var(--google-text-secondary);
  margin: 0;
}

.add-source-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 576px) {
  .add-source-options {
    grid-template-columns: 1fr;
  }
}

.add-source-option-group h4 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--google-text-secondary);
  margin: 0 0 10px;
}

.add-source-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background-color: var(--chat-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.add-source-option:hover {
  border-color: var(--google-primary);
  background-color: rgba(11, 87, 208, 0.06);
}

.dark-mode .add-source-option {
  border-color: rgba(255,255,255,0.08);
}

.dark-mode .add-source-option:hover {
  border-color: var(--google-primary);
  background-color: rgba(168, 199, 250, 0.08);
}

.add-source-option i {
  font-size: 1.2rem;
  color: var(--google-primary);
  width: 24px;
  text-align: center;
}

.add-source-option span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--google-text);
}

.add-source-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.add-source-limit-label {
  font-size: 0.85rem;
  color: var(--google-text-secondary);
}

.add-source-limit-bar {
  width: 40px;
  height: 3px;
  background-color: var(--border-color);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.add-source-limit-fill {
  height: 100%;
  background-color: var(--google-primary);
  border-radius: 2px;
  transition: width 0.3s;
}

.add-source-limit-count {
  font-size: 0.85rem;
  color: var(--google-text-secondary);
}

/* ========== 2.3 网络搜索来源 ========== */
/* ========== 2.3 网络搜索来源 ========== */

.web-search-source {
  padding: 4px 10px 8px 0;
}

.web-search-box {
  background-color: var(--chat-bg);
  border-radius: 0 14px 14px 0;
  padding: 12px 14px 10px 16px;
}

.dark-mode .web-search-box {
  background-color: rgba(255,255,255,0.06);
}

.web-search-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.web-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.85rem;
  color: var(--google-text);
  padding: 4px 0;
}

.web-search-input::placeholder {
  color: var(--google-text-secondary);
  opacity: 0.7;
}

/* 底部行：Fast Research 和发送按钮 */
.web-search-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.web-search-submit {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--google-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease-curve);
  flex-shrink: 0;
}

.web-search-submit:hover {
  border-color: var(--google-primary);
  color: var(--google-primary);
  background-color: rgba(11, 87, 208, 0.06);
}

.dark-mode .web-search-submit {
  border-color: rgba(255,255,255,0.2);
}

.dark-mode .web-search-submit:hover {
  border-color: var(--google-primary);
  background-color: rgba(168, 199, 250, 0.08);
}

.web-search-submit i {
  font-size: 0.75rem;
}

/* 研究模式选择器 */
.research-mode-wrapper {
  position: relative;
  display: inline-block;
}

.research-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background-color: var(--google-bg);
  border: none;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--google-text);
  cursor: pointer;
  transition: all 0.2s var(--ease-curve);
}

.research-mode-btn:hover {
  background-color: rgba(0,0,0,0.08);
}

.dark-mode .research-mode-btn {
  background-color: rgba(255,255,255,0.08);
}

.dark-mode .research-mode-btn:hover {
  background-color: rgba(255,255,255,0.12);
}

.research-mode-btn i.mode-icon {
  font-size: 0.8rem;
}

.research-mode-btn i.fa-chevron-down {
  font-size: 0.6rem;
  opacity: 0.7;
  transition: transform 0.2s;
}

.research-mode-btn.open i.fa-chevron-down {
  transform: rotate(180deg);
}

/* 研究模式下拉菜单 - 向下弹出 */
.research-mode-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 160px;
  background-color: var(--google-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  padding: 4px;
  z-index: 100;
  display: none;
}

.research-mode-dropdown.open {
  display: block;
}

.dark-mode .research-mode-dropdown {
  background-color: var(--google-surface);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.research-mode-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.research-mode-option + .research-mode-option {
  margin-top: 2px;
}

.research-mode-option:hover {
  background-color: rgba(0,0,0,0.04);
}

.dark-mode .research-mode-option:hover {
  background-color: rgba(255,255,255,0.06);
}

.research-mode-option.active {
  background-color: rgba(11, 87, 208, 0.08);
}

.dark-mode .research-mode-option.active {
  background-color: rgba(168, 199, 250, 0.1);
}

.research-mode-option i {
  font-size: 0.85rem;
  color: var(--google-text-secondary);
  margin-top: 2px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.research-mode-option.active i {
  color: var(--google-primary);
}

.research-mode-option-text {
  flex: 1;
  min-width: 0;
}

.research-mode-option-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--google-text);
  margin-bottom: 2px;
}

.research-mode-option.active .research-mode-option-title {
  color: var(--google-primary);
}

.research-mode-option-desc {
  font-size: 0.7rem;
  color: var(--google-text-secondary);
  line-height: 1.3;
}

/* 侧边栏收起时隐藏网络搜索 */
.sidebar-collapse .web-search-source {
  display: none;
}


/* ========== 2.4 右侧工作台 ========== */
/* ========== 2.4 右侧工作台 ========== */

.workspace-sidebar {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background-color: var(--google-sidebar-bg);
  border-left: 1px solid var(--border-color);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transition: right 0.3s var(--ease-curve);
  overflow: hidden;
}

.workspace-sidebar.open {
  right: 0;
}



/* 工作台头部 */
.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 0;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  height: 60px;
}

/* Tab 导航容器 */
.workspace-tabs {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Tab 项 */
.workspace-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 16px;
  font-size: 1.0rem;
  font-weight: 600;
  color: var(--google-text);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s;
}

.workspace-tab:hover {
  background-color: rgba(0,0,0,0.06);
}

.dark-mode .workspace-tab:hover {
  background-color: rgba(255,255,255,0.08);
}

.workspace-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.workspace-header-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--google-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.workspace-header-btn:hover {
  background-color: rgba(0,0,0,0.06);
  color: var(--google-text);
}

.dark-mode .workspace-header-btn:hover {
  background-color: rgba(255,255,255,0.08);
}

/* 工作台内容区 */
.workspace-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* Tab 面板 */
.workspace-panel {
  display: none;
}

.workspace-panel.active {
  display: block;
}

/* 等待增加提示 */
.workspace-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--google-text-secondary);
  font-size: 0.95rem;
}

/* 工具卡片网格 */
.workspace-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.workspace-tool-card {
  background-color: var(--chat-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease-curve);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
}

.workspace-tool-card:hover {
  border-color: var(--google-primary);
  background-color: rgba(11, 87, 208, 0.04);
}

.dark-mode .workspace-tool-card {
  background-color: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.dark-mode .workspace-tool-card:hover {
  border-color: var(--google-primary);
  background-color: rgba(168, 199, 250, 0.08);
}

.workspace-tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.workspace-tool-icon {
  font-size: 1.1rem;
  color: var(--google-text-secondary);
}

.workspace-tool-edit {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--google-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s;
}

.workspace-tool-card:hover .workspace-tool-edit {
  opacity: 1;
}

.workspace-tool-edit:hover {
  background-color: rgba(0,0,0,0.08);
  color: var(--google-text);
}

.dark-mode .workspace-tool-edit:hover {
  background-color: rgba(255,255,255,0.12);
}

.workspace-tool-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--google-text);
  line-height: 1.3;
}

.workspace-tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background-color: rgba(0,0,0,0.06);
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--google-text-secondary);
  margin-left: 6px;
}

.dark-mode .workspace-tool-badge {
  background-color: rgba(255,255,255,0.1);
}

/* 任务列表 */
.workspace-tasks {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.workspace-task-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.workspace-task-item:hover {
  background-color: rgba(0,0,0,0.04);
}

.dark-mode .workspace-task-item:hover {
  background-color: rgba(255,255,255,0.04);
}

.workspace-task-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background-color: var(--chat-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--google-text-secondary);
}

.dark-mode .workspace-task-icon {
  background-color: rgba(255,255,255,0.08);
}

.workspace-task-icon.loading {
  color: var(--google-primary);
}

.workspace-task-icon.loading i {
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.workspace-task-content {
  flex: 1;
  min-width: 0;
}

.workspace-task-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--google-text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspace-task-meta {
  font-size: 0.75rem;
  color: var(--google-text-secondary);
}

.workspace-task-more {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--google-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-top: 2px;
}

.workspace-task-item:hover .workspace-task-more {
  opacity: 1;
}

.workspace-task-more:hover {
  background-color: rgba(0,0,0,0.08);
}

.dark-mode .workspace-task-more:hover {
  background-color: rgba(255,255,255,0.12);
}

/* 底部添加笔记按钮 */
.workspace-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

.workspace-add-note-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background-color: var(--google-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--google-text);
  cursor: pointer;
  transition: all 0.2s var(--ease-curve);
}

.workspace-add-note-btn:hover {
  border-color: var(--google-primary);
  color: var(--google-primary);
  background-color: rgba(11, 87, 208, 0.04);
}

.dark-mode .workspace-add-note-btn {
  background-color: var(--google-surface);
  border-color: rgba(255,255,255,0.12);
}

.dark-mode .workspace-add-note-btn:hover {
  border-color: var(--google-primary);
  background-color: rgba(168, 199, 250, 0.08);
}

.workspace-add-note-btn i {
  font-size: 1rem;
}

/* 响应式 */
@media (max-width: 576px) {
  .workspace-sidebar {
    width: 100%;
    right: -100%;
  }
}
/* ========== 2.5 聊天对话页面 ========== */

.chat-page-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px);
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* 对话消息区域 */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px 16px 24px 0;
  margin-right: -8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 自定义滚动条 - 聊天区域 */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.15);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(128, 128, 128, 0.3);
}

.dark-mode .chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}

.dark-mode .chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 消息容器 */
.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.chat-message.user {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-message.assistant {
  align-self: flex-start;
  align-items: flex-start;
}

/* 消息气泡 */
.chat-message-bubble {
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  word-wrap: break-word;
}

.chat-message.user .chat-message-bubble {
  background-color: var(--google-primary);
  color: #ffffff;
  border-bottom-right-radius: 6px;
}

.dark-mode .chat-message.user .chat-message-bubble {
  background-color: rgba(168, 199, 250, 0.25);
  color: var(--google-text);
}

.chat-message.assistant .chat-message-bubble {
  background-color: var(--chat-bg);
  color: var(--google-text);
  border-bottom-left-radius: 6px;
}

.dark-mode .chat-message.assistant .chat-message-bubble {
  background-color: rgba(255, 255, 255, 0.08);
}

/* 消息时间戳 */
.chat-message-time {
  font-size: 0.7rem;
  color: var(--google-text-secondary);
  margin-top: 4px;
  padding: 0 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.chat-message:hover .chat-message-time {
  opacity: 1;
}

/* 消息操作按钮 */
.chat-message-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}

.chat-message:hover .chat-message-actions {
  opacity: 1;
}

.chat-message-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--google-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-size: 0.8rem;
}

.chat-message-action-btn:hover {
  background-color: rgba(0, 0, 0, 0.06);
  color: var(--google-text);
}

.dark-mode .chat-message-action-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 正在输入指示器 */
.chat-typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 18px;
  background-color: var(--chat-bg);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  align-self: flex-start;
}

.dark-mode .chat-typing-indicator {
  background-color: rgba(255, 255, 255, 0.08);
}

.typing-dot {
  width: 8px;
  height: 8px;
  background-color: var(--google-text-secondary);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* 底部输入区域 - 带渐变遮罩 */
.chat-page-input-area {
  flex-shrink: 0;
  padding: 0 0 24px;
  position: relative;
}

.chat-page-input-area::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -24px;
  right: -24px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--google-bg));
  pointer-events: none;
}

.dark-mode .chat-page-input-area::before {
  background: linear-gradient(to bottom, transparent, var(--google-bg));
}

/* 底部提示文字 */
.chat-page-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--google-text-secondary);
  padding: 12px 0 0;
}

.chat-page-disclaimer a {
  color: var(--google-primary);
  text-decoration: none;
}

.chat-page-disclaimer a:hover {
  text-decoration: underline;
}

/* 欢迎消息样式 */
.chat-welcome {
  text-align: center;
  padding: 60px 20px;
  color: var(--google-text-secondary);
}

.chat-welcome-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.chat-welcome-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--google-text);
  margin-bottom: 8px;
}

.chat-welcome-desc {
  font-size: 0.9rem;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.5;
}

/* 响应式 */
@media (max-width: 768px) {
  .chat-page-container {
    padding: 0 16px;
  }

  .chat-message {
    max-width: 90%;
  }

  .chat-message-bubble {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .chat-page-input-area::before {
    left: -16px;
    right: -16px;
  }
}
/* 对话页面工具下拉菜单向上弹出 */
.chat-page-input-area .tools-dropdown {
  bottom: calc(100% + 8px);
  top: auto;
}

/* ========== 3. 右侧设置抽屉 ========== */

.control-sidebar,
.control-sidebar-dark,
.control-sidebar-light {
  background-color: var(--google-sidebar-bg) !important;
  border-left: 1px solid var(--border-color);
}

.layout-fixed .control-sidebar,
.control-sidebar {
  top: 0 !important;
  bottom: 0 !important;
  height: 100vh !important;
  padding-top: 60px;
}

.dark-mode .control-sidebar,
.dark-mode .control-sidebar-dark,
.dark-mode .control-sidebar-light {
  background-color: #202124 !important;
}

.control-sidebar-slide-open .content-wrapper,
.control-sidebar-slide-open .main-header,
.control-sidebar-slide-open .main-footer {
  margin-right: 0 !important;
}

/* ========== 4. Chat 输入框 ========== */

.home-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-shell {
  width: 100%;
  max-width: 640px;
  text-align: center;
}

.home-logo {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.6px;
  margin-bottom: 24px;
  user-select: none;
}

.home-input-wrapper {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.chat-input-box {
  background-color: var(--input-bg);
  border-radius: var(--input-radius);
  border: 1px solid transparent;
  display: flex;
  align-items: flex-end;
  padding: 6px;
  transition: background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.chat-input-box:focus-within {
  background-color: var(--input-bg-focus);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  border-color: rgba(0,0,0,0.05);
}
.dark-mode .chat-input-box:focus-within {
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.chat-input-main {
  flex: 1;
  padding: 10px 0 6px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 60px;
}

.chat-input-text {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  resize: none;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--google-text);
  max-height: 200px;
  font-family: inherit;
}
.chat-input-text::placeholder {
  color: var(--google-text-secondary);
  opacity: 0.6;
}

.chat-input-footer {
  margin-top: 8px;
  display: flex;
  align-items: center;
  position: relative;
}

.chat-input-actions {
  display: flex;
  align-items: center;
  padding-bottom: 4px;
  padding-right: 8px;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--google-text-secondary);
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease-curve);
}
.icon-btn i { font-size: 1.1rem; }

.icon-btn:not(.send-btn):hover {
  background-color: rgba(0,0,0,0.06);
  color: var(--google-text);
}
.dark-mode .icon-btn:not(.send-btn):hover {
  background-color: rgba(255,255,255,0.08);
}

.plus-btn {
  background-color: transparent;
  width: 34px;
  height: 34px;
}

.send-btn {
  display: none;
  color: var(--google-text-secondary);
  opacity: 0.5;
  pointer-events: none;
}
.chat-input-box.has-content .send-btn {
  display: flex;
  background-color: var(--google-primary);
  color: #fff;
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.dark-mode .chat-input-box.has-content .send-btn {
  color: #00335c;
}
.chat-input-box.has-content .send-btn:hover {
  transform: scale(1.05);
}

.close-btn {
  display: none;
  font-size: 0.9rem;
}
.chat-input-box.has-content .close-btn {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

/* 预览词下拉 */
.chat-input-preview {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--google-text-secondary);

  background-color: var(--google-bg);
  border-radius: 18px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);

  padding: 0 16px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-2px);
  pointer-events: none;
  margin-top: 0;

  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 20;

  transition:
    max-height 0.18s ease-out,
    opacity 0.18s ease-out,
    transform 0.18s ease-out,
    margin-top 0.18s ease-out,
    padding-top 0.18s ease-out,
    padding-bottom 0.18s ease-out;
}

.chat-input-box.has-content + .chat-input-preview {
  max-height: 176px;
  opacity: 1;
  transform: translateY(0);
  padding-top: 8px;
  padding-bottom: 8px;
  pointer-events: auto;
  margin-top: 4px;
}

.preview-item {
  padding: 4px 0;
  cursor: pointer;
}
.preview-item + .preview-item {
  border-top: 1px solid rgba(0,0,0,0.04);
}
.dark-mode .preview-item + .preview-item {
  border-top: 1px solid rgba(255,255,255,0.06);
}
.preview-item:hover {
  color: var(--google-text);
  background-color: rgba(0,0,0,0.03);
}
.dark-mode .preview-item:hover {
  background-color: rgba(255,255,255,0.06);
}

/* 首页中间布局 */
.content-wrapper .home-container {
  min-height: auto;
  display: flex;
  justify-content: center;
  padding: 40px 12px 12px;
}

/* ========== 5. 搜索弹窗 ========== */

.history-search-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.history-search-modal.open {
  display: flex;
  opacity: 1;
}
.history-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}
.history-search-dialog {
  position: relative;
  z-index: 2;
  width: 500px;
  max-width: 90%;
  background-color: var(--google-bg);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
  border: 1px solid var(--border-color);
}
.history-search-modal.open .history-search-dialog {
  transform: scale(1);
}
.history-search-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}
.history-search-body {
  padding: 20px;
}
#history-search-input {
  background-color: var(--input-bg);
  border: 1px solid transparent;
  color: var(--google-text);
  border-radius: 8px;
  padding: 12px;
}
#history-search-input:focus {
  background-color: var(--google-bg);
  border-color: var(--google-primary);
  box-shadow: 0 0 0 2px rgba(26,115,232,0.2);
}

/* ========== 6. 产品卡片 ========== */

.product-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  background-color: var(--chat-bg);
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  transition:
    border-color 0.15s var(--ease-curve),
    background-color 0.15s var(--ease-curve);
  text-decoration: none;
  color: inherit;
}

.rank-card {
  grid-column: 1 / -1;
}

.dark-mode .product-card {
  border-color: rgba(255,255,255,0.08);
  background-color: #202123;
}

.product-card:hover {
  border-color: rgba(11,87,208,0.2);
}
.dark-mode .product-card:hover {
  border-color: rgba(168,199,250,0.2);
  background-color: #232427;
}

.product-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  margin-right: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #4f46e5, #22c55e);
  color: #ffffff;
}

.dark-mode .product-icon {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
}

.product-meta {
  min-width: 0;
  flex: 1;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--google-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-desc {
  font-size: 0.78rem;
  color: var(--google-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.85;
}

.rank-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.rank-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  font-size: 0.7rem;
  color: var(--google-text-secondary);
}
.rank-action i {
  font-size: 1.1rem;
  line-height: 1;
  margin-bottom: 2px;
}
.rank-action span {
  line-height: 1;
}
.dark-mode .rank-action {
  border-color: rgba(255,255,255,0.12);
}

/* 响应式列数 */
@media (max-width: 1200px) {
  .product-nav-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 992px) {
  .product-nav-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .product-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .product-nav-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* ========== 7. 热榜区 + 热议话题 + Footer ========== */

.product-nav-section {
  width: 100%;
  padding: 64px 120px 48px;
  box-sizing: border-box;
}
@media (max-width: 992px) {
  .product-nav-section {
    padding: 16px 24px 32px;
  }
}
@media (max-width: 576px) {
  .product-nav-section {
    padding: 12px 12px 24px;
  }
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--google-text);
  margin: 0;
}
.section-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tab-pill {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 4px 12px;
  font-size: 0.85rem;
  background: transparent;
  color: var(--google-text-secondary);
  cursor: pointer;
  outline: none;
}
.tab-pill:hover {
  background-color: rgba(0,0,0,0.04);
}
.dark-mode .tab-pill:hover {
  background-color: rgba(255,255,255,0.06);
}
.tab-pill.active {
  background-color: rgba(11,87,208,0.08);
  color: var(--google-primary);
  border-color: rgba(11,87,208,0.16);
}
.dark-mode .tab-pill.active {
  background-color: rgba(168,199,250,0.12);
  border-color: rgba(168,199,250,0.1);
  color: var(--google-primary);
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}
.product-nav { width: 100%; }

.hot-topics-section {
  width: 100%;
  padding: 24px 120px 32px;
  box-sizing: border-box;
  border-top: 1px solid var(--border-color);
}
.hot-topics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.hot-topics-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--google-text);
}
.hot-topics-more {
  font-size: 0.85rem;
  color: var(--google-primary);
  text-decoration: none;
  white-space: nowrap;
}
.hot-topics-more:hover {
  text-decoration: underline;
}
.hot-topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.topic-chip {
  border-radius: 999px;
  padding: 6px 18px;
  border: 1px solid var(--border-color);
  background-color: var(--chat-bg);
  font-size: 0.9rem;
  color: var(--google-text);
  white-space: nowrap;
}
.dark-mode .topic-chip {
  border-color: rgba(255,255,255,0.12);
}
@media (max-width: 992px) {
  .hot-topics-section {
    padding: 20px 24px 28px;
  }
}
@media (max-width: 576px) {
  .hot-topics-section {
    padding: 16px 16px 24px;
  }
}

.google-footer {
  background-color: var(--google-bg);
  border-top: 1px solid var(--border-color);
  padding: 24px 120px 16px;
  color: var(--google-text-secondary);
  font-size: 0.85rem;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
  margin-bottom: 16px;
}
.footer-column {
  min-width: 150px;
}
.footer-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--google-text);
}
.footer-link {
  display: block;
  margin-bottom: 4px;
  color: var(--google-text-secondary);
  text-decoration: none;
}
.footer-link:hover {
  color: var(--google-primary);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 0.8rem;
}
.dark-mode .footer-bottom {
  border-top-color: rgba(255,255,255,0.06);
}
@media (max-width: 992px) {
  .google-footer {
    padding: 20px 24px 16px;
  }
}
@media (max-width: 576px) {
  .google-footer {
    padding: 16px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ========== 8. 频道页专用 ========== */

.channel-main {
  width: 100%;
  padding: 32px 120px 40px;
  box-sizing: border-box;
}
@media (max-width: 992px) {
  .channel-main {
    padding: 16px 24px 32px;
  }
}
@media (max-width: 576px) {
  .channel-main {
    padding: 12px 12px 24px;
  }
}

.channel-header {
  margin-bottom: 16px;
}
.channel-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--google-text);
}
.channel-desc {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: var(--google-text-secondary);
}
.channel-search-hint {
  margin: 2px 0 8px;
  font-size: 0.85rem;
  color: var(--google-text-secondary);
}

.channel-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-pill {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 4px 12px;
  font-size: 0.85rem;
  background: transparent;
  color: var(--google-text-secondary);
}
.category-pill i {
  font-size: 0.9rem;
}
.category-pill:hover {
  background-color: rgba(0,0,0,0.04);
}
.dark-mode .category-pill:hover {
  background-color: rgba(255,255,255,0.06);
}
.category-pill.active {
  background-color: rgba(11,87,208,0.08);
  color: var(--google-primary);
  border-color: rgba(11,87,208,0.16);
}
.dark-mode .category-pill.active {
  background-color: rgba(168,199,250,0.12);
  border-color: rgba(168,199,250,0.1);
  color: var(--google-primary);
}

.channel-grid {
  margin-top: 8px;
}

.channel-empty {
  padding: 32px 0;
  text-align: center;
  font-size: 0.9rem;
}

.channel-link-card {
  cursor: pointer;
}

/* ========== 9. 工具下拉（工具按钮） ========== */

.tools-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* PC & 移动统一向下展开 */
.tools-dropdown {
  position: absolute;
  top: 42px;            /* 工具按钮下方 */
  bottom: auto;
  right: 0;
  min-width: 140px;
  max-width: 180px;
  padding: 6px;
  border-radius: 18px;
  background: var(--google-surface, #f9fafb);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: none;
  z-index: 100;
}

.tools-dropdown.open {
  display: block;
}

.tools-dropdown-inner {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
}

/* 工具项 */
.tools-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.tools-item + .tools-item {
  border-top: 0px solid rgba(148, 163, 184, 0.18);
}
.tools-item:hover {
  background: rgba(15, 23, 42, 0.04);
}

/* 图标样式 */
.tools-icon {
  font-size: 17px;
}
.tools-fa-icon {
  font-size: 15px;
  width: 18px;
  text-align: center;
}

/* label 文本 */
.tools-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--google-text, #111827);
}

/* 文字与图标颜色，跟随主题文字色 */
.tools-item,
.tools-item i,
.tools-icon,
.tools-label {
  color: var(--google-text);
}
.dark-mode .tools-item,
.dark-mode .tools-item i,
.dark-mode .tools-icon,
.dark-mode .tools-label {
  color: var(--google-text);
}

/* 夜间模式下工具弹层背景 */
.dark-mode .tools-dropdown {
  background: var(--google-surface, #202124);
  border-color: rgba(255,255,255,0.12);
}
.dark-mode .tools-dropdown-inner {
  background: #202124;
}
.dark-mode .tools-item:hover {
  background: rgba(255,255,255,0.06);
}

/* 移动端：宽度稍微放大一点，但仍较窄 */
@media (max-width: 768px) {
  .tools-dropdown {
    max-width: min(200px, 80vw);
  }
}

/* ========== 10. 站点徽章（Semrush / 百度等） ========== */

.site-badge-slot {
  display: inline-flex;
  align-items: center;
  margin-right: 4px;
}

/* 容器：完全透明、无边线，高度与 plus-btn 一致 34px */
.site-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;              /* 关键：和 .plus-btn 一样高 */
  padding: 0 8px;
  border-radius: 999px;
  background-color: transparent;
  cursor: default;
  transition: background-color 0.15s var(--ease-curve);
}

.site-badge:hover {
  background-color: rgba(0,0,0,0.06);
}
.dark-mode .site-badge:hover {
  background-color: rgba(255,255,255,0.08);
}

/* 左侧 ICO + 覆盖式关闭按钮的容器：小图标，统一圆形 */
.site-badge-avatar {
  position: relative;
  width: 18px;               /* ICO 尺寸 */
  height: 18px;
  border-radius: 50%;        /* 强制圆形 */
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 实际 ICO 图标：铺满圆形容器 */
.site-badge-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: opacity 0.15s var(--ease-curve);
}

/* 站点名称，配色沿用默认 */
.site-badge-name {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.85rem;
  color: var(--google-text);
}

/* 覆盖在 ICO 上的关闭按钮：默认透明，hover 时出现并覆盖 ICO */
.site-badge-remove {
  position: absolute;
  inset: 0;
  border: none;
  border-radius: 50%;
  background-color: transparent;
  color: var(--google-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.15s var(--ease-curve),
    background-color 0.15s var(--ease-curve),
    color 0.15s var(--ease-curve);
}

.site-badge-remove i {
  font-size: 0.75rem;
}

/* 悬停徽章：ICO 淡出，X 按钮淡入并占据原 ICO 位置 */
.site-badge:hover .site-badge-icon {
  opacity: 0;
}
.site-badge:hover .site-badge-remove {
  opacity: 1;
  background-color: rgba(0,0,0,0.06);
  color: var(--google-text);
}
.dark-mode .site-badge:hover .site-badge-remove {
  background-color: rgba(255,255,255,0.08);
  color: var(--google-text);
}

/* ========== 11. 灵感发现（瀑布流） ========== */

/* 复用 product-nav-section 的 padding */
.discovery-section {
  width: 100%;
  padding: 0 120px 48px;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .discovery-section {
    padding: 0 24px 32px;
  }
}
@media (max-width: 576px) {
  .discovery-section {
    padding: 0 12px 24px;
  }
}

/* 瀑布流 Grid */
.waterfall-grid {
  column-count: 4;
  column-gap: 16px;
}

@media (min-width: 1600px) {
  .waterfall-grid { column-count: 5; }
}
@media (max-width: 1200px) {
  .waterfall-grid { column-count: 3; }
}
@media (max-width: 768px) {
  .waterfall-grid { column-count: 2; }
}

/* 瀑布流里的单张卡片 */
.waterfall-card {
  break-inside: avoid; /* 防止被截断 */
  margin-bottom: 16px;
  background-color: #0000001a;
  border-radius: 16px; /* 统一大圆角 */
  overflow: hidden;    /* 裁剪溢出内容 */
  position: relative;
  cursor: pointer;
  
  /* 预留边框位，避免hover时布局抖动 */
  border: 1px solid transparent; 
  
  /* 去掉了 transform transition，只保留边框和阴影的过渡 */
  transition: border-color 0.2s var(--ease-curve), box-shadow 0.2s var(--ease-curve);
}

.waterfall-card:hover {
  /* 删除 transform: translateY(-2px); 彻底解决跳跃问题 */
  
  /* 仅改变边框颜色 */
  border-color: rgba(0,0,0,0.1); 
  
  /* 可选：加一点点阴影增加层次感，不想要也可以删掉这行 */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 夜间模式适配 */
.dark-mode .waterfall-card:hover {
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* 图片区域 */
.waterfall-img-wrapper {
  width: 100%;
  display: block;
  background-color: var(--chat-bg);
  position: relative;
}

.waterfall-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 文章标题 */
.waterfall-title {
  margin: 0;
  padding: 12px 12px 4px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--google-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  background-color: var(--google-bg);
}

/* 底部信息层 */
.waterfall-meta {
  padding: 4px 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--google-bg);
}

.waterfall-author {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.author-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ddd;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
}

.author-name {
  font-size: 0.8rem;
  color: var(--google-text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.waterfall-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--google-text-secondary);
  opacity: 0.8;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 3px;
}
.stat-item i {
  font-size: 0.75rem;
}

/* ========== 12. 产品详情页 ========== */

/* 详情页主容器 */
.product-detail-section {
  width: 100%;
  max-width: 100%;
  padding: 24px 120px 48px;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (max-width: 992px) {
  .product-detail-section {
    padding: 16px 24px 32px;
  }
}
@media (max-width: 576px) {
  .product-detail-section {
    padding: 12px 16px 24px;
  }
}

/* 面包屑导航 */
.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--google-text-secondary);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.product-breadcrumb a {
  color: var(--google-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.product-breadcrumb a:hover {
  color: var(--google-primary);
}

.product-breadcrumb .breadcrumb-separator {
  color: var(--google-text-secondary);
  opacity: 0.5;
}

.product-breadcrumb .breadcrumb-current {
  color: var(--google-text);
  font-weight: 500;
}

/* 主布局容器：左宽右窄 */
.product-detail-wrapper {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  max-width: 100%;
}

@media (max-width: 992px) {
  .product-detail-wrapper {
    flex-direction: column;
    gap: 32px;
  }
}

/* 左侧主内容区（宽） */
.product-detail-main {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

/* 右侧统计面板（窄） */
.product-detail-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}

@media (max-width: 992px) {
  .product-detail-sidebar {
    width: 100%;
    position: static;
  }
}

/* 产品头部信息：Logo + 标题摘要 + 打开站点按钮 */
.product-detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

/* 产品大图标 */
.product-detail-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--chat-bg);
  color: var(--google-text);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.product-detail-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dark-mode .product-detail-icon {
  border-color: rgba(255,255,255,0.12);
}

/* 产品信息区 */
.product-detail-info {
  flex: 1;
  min-width: 0;
}

.product-detail-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--google-text);
  margin: 0 0 6px;
  line-height: 1.3;
}

.product-detail-slogan {
  font-size: 0.95rem;
  color: var(--google-text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* 打开站点按钮容器 */
.product-detail-action {
  flex-shrink: 0;
}

/* 打开站点按钮 */
.product-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--google-primary);
  background-color: transparent;
  color: var(--google-primary);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-curve);
  white-space: nowrap;
}

.product-visit-btn:hover {
  background-color: var(--google-primary);
  color: #fff;
}

.dark-mode .product-visit-btn:hover {
  color: #1e1f20;
}

.product-visit-btn i {
  font-size: 0.85rem;
}

/* 产品标签 */
.product-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background-color: var(--chat-bg);
  font-size: 0.85rem;
  color: var(--google-text);
  text-decoration: none;
  transition: all 0.2s var(--ease-curve);
}

.product-tag:hover {
  border-color: var(--google-primary);
  color: var(--google-primary);
}

.dark-mode .product-tag {
  border-color: rgba(255,255,255,0.12);
}

.dark-mode .product-tag:hover {
  border-color: var(--google-primary);
}

/* 产品描述 */
.product-detail-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--google-text);
  margin-bottom: 32px;
}

/* 详情页Tab切换 */
.product-detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  align-items: center;
  position: relative;
  max-width: 100%;
}

.product-detail-tabs-scroll {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
  scroll-behavior: smooth;
}

.product-detail-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.product-detail-tab {
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--google-text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .product-detail-tab {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .product-detail-tab {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

.product-detail-tab:hover {
  color: var(--google-text);
}

.product-detail-tab.active {
  color: var(--google-primary);
}

.product-detail-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background-color: var(--google-primary);
  border-radius: 2px 2px 0 0;
}

/* 更多按钮容器 */
.product-tab-more {
  position: relative;
  flex-shrink: 0;
}

.product-tab-more-btn {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-tab-more-btn i {
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.product-tab-more-btn.active i {
  transform: rotate(180deg);
}

.product-tab-more-btn.active::after {
  display: none;
}

/* 更多下拉菜单 */
.product-tab-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 140px;
  padding: 6px;
  background-color: var(--google-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 1000;
  display: none;
}

.product-tab-dropdown.open {
  display: block;
}

.dark-mode .product-tab-dropdown {
  background-color: var(--google-surface);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.product-tab-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--google-text);
  cursor: pointer;
  transition: background-color 0.15s;
  text-align: left;
}

.product-tab-dropdown-item:hover {
  background-color: rgba(0,0,0,0.04);
}

.dark-mode .product-tab-dropdown-item:hover {
  background-color: rgba(255,255,255,0.06);
}

.product-tab-dropdown-item i {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--google-text-secondary);
}

/* Tab内容面板 */
.product-tab-panel {
  display: none;
}

.product-tab-panel.active {
  display: block;
}

/* 产品截图区域 */
.product-screenshots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .product-screenshots {
    grid-template-columns: 1fr;
  }
}

.product-screenshot-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--chat-bg);
  cursor: pointer;
  transition: all 0.2s var(--ease-curve);
}

.product-screenshot-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.dark-mode .product-screenshot-item {
  border-color: rgba(255,255,255,0.08);
}

.dark-mode .product-screenshot-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.product-screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* 右侧面板区块标题 */
.sidebar-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--google-text);
  margin: 0 0 12px;
}

/* 排名卡片 */
.sidebar-rank-card {
  background-color: var(--chat-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.dark-mode .sidebar-rank-card {
  border-color: rgba(255,255,255,0.08);
}

.sidebar-rank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sidebar-rank-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--google-text);
  line-height: 1;
}

.sidebar-rank-number span {
  font-size: 1rem;
  margin-right: 4px;
  opacity: 0.6;
}

.sidebar-rank-label {
  font-size: 0.8rem;
  color: var(--google-text-secondary);
  margin-top: 2px;
}

.sidebar-rank-nav {
  display: flex;
  gap: 4px;
}

.sidebar-rank-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--google-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.sidebar-rank-nav-btn:hover {
  border-color: var(--google-primary);
  color: var(--google-primary);
}

.sidebar-rank-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dark-mode .sidebar-rank-nav-btn {
  border-color: rgba(255,255,255,0.12);
}

/* 点赞主按钮 */
.sidebar-vote-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  background-color: var(--google-primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease-curve);
}

.sidebar-vote-btn:hover {
  background-color: var(--google-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 87, 208, 0.3);
}

.sidebar-vote-btn.voted {
  background-color: var(--chat-bg);
  color: var(--google-primary);
  border: 1px solid var(--google-primary);
}

.dark-mode .sidebar-vote-btn {
  color: #1e1f20;
}

.dark-mode .sidebar-vote-btn.voted {
  color: var(--google-primary);
  background-color: transparent;
}

/* 操作列表 */
.sidebar-actions {
  margin-bottom: 24px;
}

.sidebar-action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--google-text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.sidebar-action-item:hover {
  color: var(--google-primary);
}

.sidebar-action-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  color: var(--google-text-secondary);
  transition: color 0.2s;
}

.sidebar-action-item:hover i {
  color: var(--google-primary);
}

/* 信息区块 */
.sidebar-info-section {
  margin-bottom: 24px;
}

.sidebar-info-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--google-text);
  margin: 0 0 12px;
}

.sidebar-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--google-text);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar-info-item:hover {
  color: var(--google-primary);
}

.sidebar-info-item i {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--google-text-secondary);
}

.sidebar-info-item:hover i {
  color: var(--google-primary);
}

/* 查看更多链接 */
.sidebar-more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--google-primary);
  text-decoration: none;
  margin-top: 8px;
}

.sidebar-more-link:hover {
  text-decoration: underline;
}

/* 发布日期 */
.sidebar-publish-date {
  font-size: 0.8rem;
  color: var(--google-text-secondary);
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.dark-mode .sidebar-publish-date {
  border-top-color: rgba(255,255,255,0.08);
}

/* 团队介绍内容 */
.product-team-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--google-text);
}

.product-team-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--google-text);
  margin: 24px 0 12px;
}

.product-team-content h4:first-child {
  margin-top: 0;
}

.product-team-content p {
  margin: 0 0 16px;
}

.product-team-content ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.product-team-content li {
  margin-bottom: 8px;
}

/* 图片灯箱 */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  cursor: zoom-out;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

/* 空状态 */
.product-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--google-text-secondary);
}

.product-empty-state i {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.product-empty-state p {
  font-size: 0.95rem;
  margin: 0;
}

/* ========== 13. 网站流量 Tab ========== */

.product-traffic-content {
  padding: 8px 0;
}

.traffic-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .traffic-overview {
    grid-template-columns: repeat(2, 1fr);
  }
}

.traffic-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background-color: var(--chat-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.dark-mode .traffic-stat-card {
  border-color: rgba(255,255,255,0.08);
}

.traffic-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: rgba(11, 87, 208, 0.1);
  color: var(--google-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.traffic-stat-value {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--google-text);
}

.traffic-stat-label {
  font-size: 0.8rem;
  color: var(--google-text-secondary);
}

.traffic-section {
  margin-bottom: 24px;
}

.traffic-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--google-text);
  margin: 0 0 16px;
}

.traffic-source-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.traffic-source-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.traffic-source-name {
  width: 80px;
  font-size: 0.85rem;
  color: var(--google-text);
  flex-shrink: 0;
}

.traffic-source-bar {
  flex: 1;
  height: 8px;
  background-color: var(--chat-bg);
  border-radius: 4px;
  overflow: hidden;
}

.traffic-source-fill {
  height: 100%;
  background-color: var(--google-primary);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.traffic-source-percent {
  width: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--google-text);
  text-align: right;
}

.traffic-region-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.traffic-region-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background-color: var(--chat-bg);
  border-radius: 8px;
}

.traffic-region-flag {
  font-size: 1.2rem;
}

.traffic-region-name {
  flex: 1;
  font-size: 0.9rem;
  color: var(--google-text);
}

.traffic-region-percent {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--google-text);
}

/* ========== 14. 品牌声量 Tab ========== */

.product-brand-content {
  padding: 8px 0;
}

.brand-overview {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 32px;
  padding: 24px;
  background-color: var(--chat-bg);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .brand-overview {
    flex-direction: column;
    text-align: center;
  }
}

.dark-mode .brand-overview {
  border-color: rgba(255,255,255,0.08);
}

.brand-score-card {
  text-align: center;
}

.brand-score-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--google-primary), #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}

.brand-score-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.brand-score-label {
  font-size: 0.85rem;
  color: var(--google-text-secondary);
}

.brand-metrics {
  flex: 1;
  display: flex;
  gap: 24px;
}

@media (max-width: 768px) {
  .brand-metrics {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.brand-metric-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-metric-item i {
  font-size: 1.2rem;
  color: var(--google-primary);
}

.brand-metric-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--google-text);
}

.brand-metric-label {
  font-size: 0.8rem;
  color: var(--google-text-secondary);
}

.brand-section {
  margin-bottom: 24px;
}

.brand-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--google-text);
  margin: 0 0 16px;
}

.brand-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-topic-tag {
  padding: 6px 14px;
  background-color: var(--chat-bg);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--google-text);
}

.dark-mode .brand-topic-tag {
  border-color: rgba(255,255,255,0.12);
}

.brand-reviews {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand-review-item {
  padding: 16px;
  background-color: var(--chat-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.dark-mode .brand-review-item {
  border-color: rgba(255,255,255,0.08);
}

.brand-review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.brand-review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #22c55e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
}

.brand-review-name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--google-text);
}

.brand-review-rating {
  color: #facc15;
  font-size: 0.8rem;
}

.brand-review-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--google-text-secondary);
  line-height: 1.6;
}

/* ========== 15. 类似产品 Tab ========== */

.product-similar-content {
  padding: 8px 0;
}

.similar-product-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.similar-product-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background-color: var(--chat-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s var(--ease-curve);
}

.similar-product-card:hover {
  border-color: var(--google-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.dark-mode .similar-product-card {
  border-color: rgba(255,255,255,0.08);
}

.dark-mode .similar-product-card:hover {
  border-color: var(--google-primary);
}

.similar-product-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5, #22c55e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  flex-shrink: 0;
}

.similar-product-info {
  flex: 1;
  min-width: 0;
}

.similar-product-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--google-text);
  margin-bottom: 4px;
}

.similar-product-desc {
  font-size: 0.85rem;
  color: var(--google-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.similar-product-arrow {
  color: var(--google-text-secondary);
  transition: color 0.2s;
}

.similar-product-card:hover .similar-product-arrow {
  color: var(--google-primary);
}

/* ========== 16. 开源平替 Tab ========== */

.product-opensource-content {
  padding: 8px 0;
}

.opensource-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .opensource-product-grid {
    grid-template-columns: 1fr;
  }
}

.opensource-product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background-color: var(--chat-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s var(--ease-curve);
}

.opensource-product-card:hover {
  border-color: var(--google-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.dark-mode .opensource-product-card {
  border-color: rgba(255,255,255,0.08);
}

.opensource-product-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.opensource-product-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: #24292e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.opensource-product-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--google-text);
}

.opensource-product-desc {
  font-size: 0.8rem;
  color: var(--google-text-secondary);
}

.opensource-product-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.dark-mode .opensource-product-stats {
  border-top-color: rgba(255,255,255,0.08);
}

.opensource-stat {
  font-size: 0.8rem;
  color: var(--google-text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.opensource-stat i {
  font-size: 0.75rem;
}

.opensource-stat-lang {
  margin-left: auto;
  padding: 2px 8px;
  background-color: rgba(11, 87, 208, 0.1);
  color: var(--google-primary);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.opensource-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background-color: rgba(11, 87, 208, 0.05);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--google-text-secondary);
}

.opensource-notice i {
  color: var(--google-primary);
  margin-top: 2px;
}

/* ========== 17. 相关资讯 Tab ========== */

.product-news-content {
  padding: 8px 0;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background-color: var(--chat-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s var(--ease-curve);
}

.news-item:hover {
  border-color: var(--google-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.dark-mode .news-item {
  border-color: rgba(255,255,255,0.08);
}

.news-item-date {
  width: 50px;
  text-align: center;
  flex-shrink: 0;
}

.news-date-day {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--google-primary);
  line-height: 1;
}

.news-date-month {
  display: block;
  font-size: 0.75rem;
  color: var(--google-text-secondary);
  margin-top: 4px;
}

.news-item-content {
  flex: 1;
  min-width: 0;
}

.news-item-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--google-text);
  margin: 0 0 8px;
  line-height: 1.4;
}

.news-item-summary {
  font-size: 0.85rem;
  color: var(--google-text-secondary);
  margin: 0 0 8px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item-source {
  font-size: 0.75rem;
  color: var(--google-text-secondary);
  opacity: 0.8;
}

/* ========== 18. 移动端自适应优化 ========== */

/* 平板端 (max-width: 992px) */
@media (max-width: 992px) {
  /* 主布局改为单列，右侧面板移到最后 */
  .product-detail-wrapper {
    flex-direction: column;
    gap: 32px;
  }
  
  /* 右侧面板全宽 */
  .product-detail-sidebar {
    width: 100%;
    position: static;
    order: 2; /* 确保在主内容后面 */
  }
  
  .sidebar-section-title {
    margin-bottom: 16px;
  }
  
  .sidebar-rank-card {
    max-width: 400px;
  }
  
  .sidebar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .sidebar-action-item {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    padding: 12px 16px;
    background-color: var(--chat-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
  }
  
  .dark-mode .sidebar-action-item {
    border-color: rgba(255,255,255,0.08);
  }
  
  .sidebar-info-section {
    margin-bottom: 20px;
  }
}

/* 手机端 (max-width: 768px) */
@media (max-width: 768px) {
  /* 产品头部调整 */
  .product-detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  
  .product-detail-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    font-size: 1.8rem;
  }
  
  .product-detail-info {
    text-align: center;
  }
  
  .product-detail-title {
    font-size: 1.3rem;
  }
  
  .product-detail-slogan {
    font-size: 0.9rem;
  }
  
  /* 打开站点按钮全宽 */
  .product-detail-action {
    width: 100%;
  }
  
  .product-visit-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
  
  /* 标签居中 */
  .product-detail-tags {
    justify-content: center;
  }
  
  /* Tab 横向滚动优化 */
  .product-detail-tabs {
    margin-bottom: 20px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 0;
    width: calc(100% + 32px);
  }
  
  .product-detail-tabs-scroll {
    padding-right: 70px;
  }
  
  .product-tab-more {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 1px;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, transparent 0%, var(--google-bg) 30%);
    padding-left: 24px;
    padding-right: 16px;
  }
  
  .dark-mode .product-tab-more {
    background: linear-gradient(to right, transparent 0%, var(--google-bg) 30%);
  }
  
  .product-tab-more-btn {
    font-size: 0.9rem !important;
    padding: 10px 0 10px 8px !important;
  }

  /* 流量统计卡片 */
  .traffic-overview {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .traffic-stat-card {
    padding: 14px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .traffic-stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .traffic-stat-value {
    font-size: 1.2rem;
  }
  
  .traffic-stat-label {
    font-size: 0.75rem;
  }
  
  .traffic-source-item {
    flex-wrap: wrap;
  }
  
  .traffic-source-name {
    width: 70px;
    font-size: 0.8rem;
  }
  
  /* 品牌声量 */
  .brand-overview {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    text-align: center;
  }
  
  .brand-score-circle {
    width: 70px;
    height: 70px;
  }
  
  .brand-score-value {
    font-size: 1.5rem;
  }
  
  .brand-metrics {
    width: 100%;
    justify-content: space-around;
    gap: 16px;
  }
  
  .brand-metric-item {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
  
  .brand-metric-value {
    font-size: 1.1rem;
  }
  
  /* 类似产品卡片 */
  .similar-product-card {
    padding: 14px;
    gap: 12px;
  }
  
  .similar-product-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    font-size: 1.1rem;
  }
  
  /* 开源平替 */
  .opensource-product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  /* 资讯列表 */
  .news-item {
    padding: 14px;
    gap: 14px;
  }
  
  .news-item-date {
    width: 45px;
  }
  
  .news-date-day {
    font-size: 1.3rem;
  }
  
  .news-item-title {
    font-size: 0.95rem;
  }
  
  /* 右侧面板调整 */
  .sidebar-rank-card {
    max-width: 100%;
  }
  
  .sidebar-actions {
    gap: 10px;
  }
  
  .sidebar-action-item {
    min-width: calc(50% - 5px);
    flex: none;
    width: calc(50% - 5px);
  }
}

/* 小屏手机 (max-width: 576px) */
@media (max-width: 576px) {
  /* 页面内边距 */
  .product-detail-section {
    padding: 12px 14px 24px;
  }
  
  /* 面包屑导航 */
  .product-breadcrumb {
    font-size: 0.8rem;
    gap: 6px;
    margin-bottom: 16px;
  }
  
  /* 产品图标 */
  .product-detail-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    font-size: 1.5rem;
  }
  
  .product-detail-title {
    font-size: 1.2rem;
  }
  
  /* 标签 */
  .product-tag {
    font-size: 0.8rem;
    padding: 5px 10px;
  }
  
  /* 产品描述 */
  .product-detail-description {
    font-size: 0.9rem;
    line-height: 1.7;
  }
  
  /* Tab 区域 */
  .product-detail-tab {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  
  .product-tab-more-btn {
    padding: 10px 12px !important;
    font-size: 0.85rem !important;
  }
  
  .product-tab-more-btn i {
    font-size: 0.6rem;
  }
  
  /* 流量统计 */
  .traffic-stat-card {
    padding: 12px;
  }
  
  .traffic-stat-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .traffic-stat-value {
    font-size: 1.1rem;
  }
  
  .traffic-section-title {
    font-size: 0.9rem;
  }
  
  /* 品牌话题标签 */
  .brand-topic-tag {
    font-size: 0.8rem;
    padding: 5px 10px;
  }
  
  .brand-review-item {
    padding: 12px;
  }
  
  .brand-review-text {
    font-size: 0.85rem;
  }
  
  /* 类似产品 */
  .similar-product-name {
    font-size: 0.9rem;
  }
  
  .similar-product-desc {
    font-size: 0.8rem;
  }
  
  /* 开源平替 */
  .opensource-product-card {
    padding: 14px;
  }
  
  .opensource-notice {
    font-size: 0.8rem;
    padding: 10px 12px;
  }
  
  /* 资讯 */
  .news-item {
    padding: 12px;
    gap: 12px;
  }
  
  .news-item-title {
    font-size: 0.9rem;
  }
  
  .news-item-summary {
    font-size: 0.8rem;
  }
  
  /* 右侧面板 */
  .sidebar-rank-card {
    padding: 14px;
  }
  
  .sidebar-rank-number {
    font-size: 1.6rem;
  }
  
  .sidebar-vote-btn {
    padding: 11px 16px;
    font-size: 0.9rem;
  }
  
  .sidebar-action-item {
    width: 100%;
    min-width: 100%;
  }
  
  .sidebar-info-title {
    font-size: 0.8rem;
  }
  
  .sidebar-info-item {
    font-size: 0.8rem;
    padding: 6px 0;
  }
}

/* 超小屏幕 (max-width: 400px) */
@media (max-width: 400px) {
  .product-detail-section {
    padding: 10px 10px 20px;
  }
  
  .product-detail-wrapper {
    gap: 24px;
  }
  
  .product-detail-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    font-size: 1.3rem;
  }
  
  .product-detail-title {
    font-size: 1.1rem;
  }
  
  /* Tab区域调整边距 */
  .product-detail-tabs {
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 10px;
    padding-right: 10px;
    width: calc(100% + 20px);
  }
  
  .product-tab-more {
    right: 10px;
  }
  
  .product-detail-tab {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  
  .traffic-overview {
    gap: 8px;
  }
  
  .traffic-stat-card {
    padding: 10px;
  }
  
  .traffic-stat-value {
    font-size: 1rem;
  }
  
  .brand-metrics {
    flex-wrap: wrap;
  }
}


/* ========== 19. 应用工具页面 ========== */

.minitool-section {
  width: 100%;
  padding: 32px 120px 48px;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .minitool-section {
    padding: 24px 24px 32px;
  }
}

@media (max-width: 576px) {
  .minitool-section {
    padding: 16px 16px 24px;
  }
}

/* 标题和搜索框容器 */
.minitool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.minitool-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--google-text);
  margin: 0;
  flex-shrink: 0;
}

/* 搜索框 */
.minitool-search {
  flex: 1;
  max-width: 360px;
}

.minitool-search-box {
  position: relative;
  width: 100%;
}

.minitool-search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  background-color: var(--input-bg);
  border: 1px solid transparent;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--google-text);
  outline: none;
  transition: all 0.2s var(--ease-curve);
}

.minitool-search-input::placeholder {
  color: var(--google-text-secondary);
  opacity: 0.7;
}

.minitool-search-input:focus {
  background-color: var(--input-bg-focus);
  border-color: var(--google-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dark-mode .minitool-search-input:focus {
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.minitool-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--google-text-secondary);
  font-size: 0.85rem;
  pointer-events: none;
}

.minitool-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--google-text-secondary);
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.minitool-search-clear:hover {
  background-color: rgba(0,0,0,0.06);
  color: var(--google-text);
}

.dark-mode .minitool-search-clear:hover {
  background-color: rgba(255,255,255,0.08);
}

.minitool-search-box.has-value .minitool-search-clear {
  display: flex;
}

/* 响应式：小屏幕时搜索框换行 */
@media (max-width: 576px) {
  .minitool-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .minitool-search {
    width: 100%;
    max-width: 100%;
  }
}

/* Tab 导航 */
.minitool-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.minitool-tabs::-webkit-scrollbar {
  display: none;
}

.minitool-tab {
  position: relative;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--google-text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s;
  flex-shrink: 0;
}

.minitool-tab:hover {
  color: var(--google-text);
}

.minitool-tab.active {
  color: var(--google-text);
}

.minitool-tab.active::after {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -1px;
  height: 2px;
  background-color: var(--google-text);
  border-radius: 2px 2px 0 0;
}

.dark-mode .minitool-tab.active::after {
  background-color: var(--google-text);
}

@media (max-width: 576px) {
  .minitool-tab {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
  
  .minitool-tab.active::after {
    left: 14px;
    right: 14px;
  }
}

/* 工具内容区 */
.minitool-content {
  min-height: 200px;
}

/* 分类区块（全部Tab时显示） */
.minitool-category {
  margin-bottom: 32px;
}

.minitool-category:last-child {
  margin-bottom: 0;
}

.minitool-category-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--google-text);
  margin: 0 0 16px;
  padding-left: 4px;
}

/* 工具网格 */
.minitool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .minitool-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .minitool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .minitool-grid {
    grid-template-columns: 1fr;
  }
}

/* 工具卡片 */
.minitool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background-color: var(--chat-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s var(--ease-curve);
}

.minitool-card:hover {
  border-color: var(--google-primary);
  background-color: rgba(11, 87, 208, 0.04);
  text-decoration: none;
  color: inherit;
}

.dark-mode .minitool-card {
  background-color: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.dark-mode .minitool-card:hover {
  border-color: var(--google-primary);
  background-color: rgba(168, 199, 250, 0.08);
}

.minitool-card.hidden {
  display: none;
}

.minitool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: rgba(11, 87, 208, 0.1);
  color: var(--google-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.dark-mode .minitool-card-icon {
  background-color: rgba(168, 199, 250, 0.15);
}

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

.minitool-card-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--google-text);
  margin-bottom: 2px;
}

.minitool-card-desc {
  font-size: 0.8rem;
  color: var(--google-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 空状态 */
.minitool-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--google-text-secondary);
}

.minitool-empty.show {
  display: flex;
}

.minitool-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.minitool-empty-text {
  font-size: 0.95rem;
  margin: 0;
}

/* 筛选后的平铺网格（非全部Tab时） */
.minitool-filtered-grid {
  display: none;
}

.minitool-filtered-grid.show {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .minitool-filtered-grid.show {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .minitool-filtered-grid.show {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .minitool-filtered-grid.show {
    grid-template-columns: 1fr;
  }
}


/* ========== 20. 搜索结果页面 ========== */

.search-section {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 32px 24px 48px;
  box-sizing: border-box;
}

/* 瀑布流模式下的特殊处理 */
.search-section.waterfall-mode {
  padding: 32px 24px 48px;
}

@media (max-width: 576px) {
  .search-section {
    padding: 16px 16px 32px;
  }
}

/* 搜索框容器 */
.search-box-wrapper {
  margin-bottom: 24px;
  max-width: 720px;
}

.search-box-wrapper .home-input-wrapper {
  max-width: 100%;
  margin: 0;
}

/* 站点徽章插槽容器 */
.site-badge-slot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.site-badge-slot:empty {
  display: none;
}

/* Tab 导航 - 贯穿整个页面的分割线 */
.search-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: none;
  margin-bottom: 24px;
  margin-left: -24px;
  margin-right: -24px;
  padding-left: 24px;
  padding-right: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.search-tabs::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: var(--border-color);
}

.search-tabs::-webkit-scrollbar {
  display: none;
}

.search-tab {
  position: relative;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--google-text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s;
  flex-shrink: 0;
  text-decoration: none;
  z-index: 1;
}

.search-tab:hover {
  color: var(--google-text);
  text-decoration: none;
}

.search-tab.active {
  color: var(--google-text);
}

.search-tab.active::after {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 2px;
  background-color: var(--google-text);
  border-radius: 2px 2px 0 0;
}

@media (max-width: 576px) {
  .search-tabs {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .search-tab {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
  
  .search-tab.active::after {
    left: 14px;
    right: 14px;
  }
}

/* 搜索结果列表（全部、产品、话题、用户） */
.search-results {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 720px;
}

/* 单条搜索结果 */
.search-result-item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 16px;
  margin-left: -16px;
  border-radius: 12px;
  transition: background-color 0.2s;
}

.search-result-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
  text-decoration: none;
  color: inherit;
}

.dark-mode .search-result-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.search-result-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.8rem;
  color: var(--google-text-secondary);
}

.search-result-source {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-result-source-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: contain;
}

.search-result-source-name {
  font-weight: 500;
}

.search-result-meta-sep {
  color: var(--google-text-secondary);
  opacity: 0.5;
}

.search-result-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

.search-result-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--google-primary);
  margin: 0 0 8px;
  line-height: 1.4;
}

.search-result-item:hover .search-result-title {
  text-decoration: underline;
}

.search-result-desc {
  font-size: 0.9rem;
  color: var(--google-text-secondary);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-desc mark {
  background-color: transparent;
  color: var(--google-text);
  font-weight: 600;
}

.search-result-time {
  font-size: 0.8rem;
  color: var(--google-text-secondary);
  margin-top: 8px;
}

/* 瀑布流模式下的 waterfall-grid 样式调整 */
.search-section.waterfall-mode .waterfall-grid {
  padding: 0;
}

/* 分页 */
.search-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 40px;
  padding: 20px 0;
  max-width: 720px;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

/* 瀑布流模式下分页居中 */
.search-section.waterfall-mode .search-pagination {
  max-width: 100%;
  justify-content: center;
}

.search-pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--google-text);
  background-color: var(--chat-bg);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.search-pagination-btn:hover {
  background-color: rgba(11, 87, 208, 0.08);
  border-color: var(--google-primary);
  color: var(--google-primary);
  text-decoration: none;
}

.dark-mode .search-pagination-btn {
  background-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .search-pagination-btn:hover {
  background-color: rgba(168, 199, 250, 0.15);
}

.search-pagination-btn.active {
  background-color: var(--google-primary);
  border-color: var(--google-primary);
  color: #fff;
}

.search-pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.search-pagination-arrow {
  min-width: 44px;
  padding: 0;
}

.search-pagination-arrow i {
  font-size: 1rem;
}

.search-pagination-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  font-size: 1rem;
  color: var(--google-text-secondary);
}

/* 空结果状态 */
.search-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--google-text-secondary);
  max-width: 720px;
}

.search-empty.show {
  display: flex;
}

.search-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.search-empty-text {
  font-size: 1rem;
  margin: 0 0 8px;
}

.search-empty-hint {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0;
}

/* 移动端分页 */
@media (max-width: 576px) {
  .search-pagination {
    gap: 4px;
  }
  
  .search-pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 0.9rem;
  }
  
  .search-pagination-arrow {
    min-width: 40px;
  }
}

/* ========== 21. 右下角固定工具栏 ========== */

.fixed-toolbar {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1040;
  transition: opacity 0.3s var(--ease-curve), visibility 0.3s var(--ease-curve);
}

/* 工作台打开时隐藏 */
.fixed-toolbar.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.fixed-toolbar-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--google-bg);
  color: var(--google-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s var(--ease-curve);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.fixed-toolbar-btn:hover {
  background-color: var(--chat-bg);
  border-color: var(--google-primary);
  color: var(--google-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.dark-mode .fixed-toolbar-btn {
  background-color: var(--google-surface);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .fixed-toolbar-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--google-primary);
}

/* 悬浮提示 */
.fixed-toolbar-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 12px;
  background-color: var(--google-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--google-text);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s var(--ease-curve);
  pointer-events: none;
}

.fixed-toolbar-btn:hover .fixed-toolbar-tooltip {
  opacity: 1;
  visibility: visible;
}

.dark-mode .fixed-toolbar-tooltip {
  background-color: var(--google-surface);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* 返回顶部按钮默认隐藏 */
#backToTopBtn {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s var(--ease-curve);
}

#backToTopBtn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 移动端隐藏固定工具栏 */
@media (max-width: 768px) {
  .fixed-toolbar {
    display: none;
  }
}

/* ========== 22. AIGC检测工具页面 ========== */

.aigc-detect-section {
  width: 100%;
  min-height: calc(100vh - 60px);
  padding: 24px;
  padding-right: 80px; /* 右侧留出空间给悬浮按钮 */
  box-sizing: border-box;
}

.aigc-detect-container {
  display: flex;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 左侧输入面板 */
.aigc-input-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--chat-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  height: 600px;
}

.dark-mode .aigc-input-panel {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

/* 头部样式 - 和右侧一致 */
.aigc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-color);
  min-height: 50px;
}

.dark-mode .aigc-panel-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.aigc-header-left {
  display: flex;
  align-items: center;
  height: 50px;
}

.aigc-panel-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--google-primary);
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.aigc-panel-title::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--google-primary);
}

.aigc-header-right {
  display: flex;
  align-items: center;
  height: 50px;
}

/* 强度滑块样式 */
.aigc-strength-slider {
  display: flex;
  align-items: center;
  gap: 8px;
}

.aigc-strength-label {
  font-size: 0.9rem;
  color: var(--google-text-secondary);
  flex-shrink: 0;
}

.aigc-slider-wrapper {
  width: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.aigc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: var(--border-color);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  margin: 0;
}

.dark-mode .aigc-slider {
  background: rgba(255, 255, 255, 0.25);
}

.aigc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--google-primary);
  cursor: pointer;
  box-shadow: none;
}

.aigc-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--google-primary);
  cursor: pointer;
  box-shadow: none;
}

.aigc-strength-value {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: -10px;
  position: relative;
  z-index: 2;
}

.aigc-strength-value i {
  font-size: 1rem;
  color: #f5a623;
  line-height: 1;
}

.aigc-strength-value span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #f5a623;
  min-width: 10px;
  text-align: center;
  line-height: 1;
}

.aigc-input-body {
  flex: 1;
  padding: 0 20px;
  overflow: hidden;
}

.aigc-textarea {
  width: 100%;
  height: 100%;
  padding: 16px 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--google-text);
  font-size: 0.95rem;
  line-height: 1.7;
  resize: none;
  font-family: inherit;
}

.aigc-textarea::placeholder {
  color: var(--google-text-secondary);
  opacity: 0.6;
}

/* 底部操作栏 */
.aigc-input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  gap: 16px;
}

.dark-mode .aigc-input-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.aigc-footer-left {
  display: flex;
  align-items: center;
}

.aigc-char-count {
  font-size: 0.85rem;
  color: var(--google-text-secondary);
}

.aigc-footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.aigc-footer-right.aigc-buttons-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 操作按钮 */
.aigc-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease-curve);
  border: 1px solid transparent;
}

.aigc-btn-primary {
  background-color: var(--google-primary);
  color: #fff;
  border-color: var(--google-primary);
}

.aigc-btn-primary:hover {
  background-color: var(--google-primary-hover);
  border-color: var(--google-primary-hover);
}

.dark-mode .aigc-btn-primary {
  color: #1e1f20;
}

.aigc-btn-secondary {
  background-color: transparent;
  color: var(--google-primary);
  border-color: var(--google-primary);
}

.aigc-btn-secondary:hover {
  background-color: rgba(66, 133, 244, 0.08);
}

/* 右侧结果面板 */
.aigc-result-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--chat-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  height: 600px;
}

.dark-mode .aigc-result-panel {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

/* 结果Tab栏 */
.aigc-result-tabs {
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-color);
}

.dark-mode .aigc-result-tabs {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.aigc-result-tab {
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--google-text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: color 0.2s var(--ease-curve);
}

.aigc-result-tab:hover {
  color: var(--google-text);
}

.aigc-result-tab.active {
  color: var(--google-primary);
}

.aigc-result-tab.active::after {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 2px;
  background-color: var(--google-primary);
}

/* 结果内容区 */
.aigc-result-body {
  flex: 1;
  overflow: auto;
  padding: 24px;
}

.aigc-result-content {
  display: none;
  height: 100%;
}

.aigc-result-content.active {
  display: block;
}

/* 空状态 */
.aigc-result-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--google-text-secondary);
}

.aigc-result-empty-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 2.5rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.aigc-result-empty p {
  font-size: 1rem;
  margin: 0;
}

/* 检测结果卡片 */
.aigc-detect-result-card {
  background-color: var(--google-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.dark-mode .aigc-detect-result-card {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.aigc-detect-score {
  text-align: center;
  margin-bottom: 24px;
}

.aigc-score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--google-primary) 0%, #5c9aff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.aigc-score-value {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.aigc-score-label {
  font-size: 0.95rem;
  color: var(--google-text-secondary);
}

.aigc-detect-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aigc-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: var(--chat-bg);
  border-radius: 8px;
}

.dark-mode .aigc-detail-item {
  background-color: rgba(255, 255, 255, 0.04);
}

.aigc-detail-label {
  font-size: 0.9rem;
  color: var(--google-text-secondary);
}

.aigc-detail-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--google-text);
}

.aigc-risk-high {
  color: #ea4335;
}

.aigc-risk-medium {
  color: #fbbc04;
}

.aigc-risk-low {
  color: #34a853;
}

/* 降重结果卡片 */
.aigc-reduce-result-card {
  background-color: var(--google-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.dark-mode .aigc-reduce-result-card {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.aigc-reduce-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.dark-mode .aigc-reduce-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.aigc-reduce-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--google-text);
}

.aigc-reduce-strength {
  font-size: 0.85rem;
  color: var(--google-text-secondary);
  background-color: rgba(66, 133, 244, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
}

.dark-mode .aigc-reduce-strength {
  background-color: rgba(138, 180, 248, 0.15);
}

.aigc-reduce-content {
  padding: 20px;
  color: var(--google-text);
  font-size: 0.95rem;
  line-height: 1.8;
}

.aigc-reduce-content p {
  margin: 0 0 12px 0;
}

.aigc-reduce-content p:last-child {
  margin-bottom: 0;
}

.aigc-reduce-actions {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

.dark-mode .aigc-reduce-actions {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.aigc-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--google-text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s var(--ease-curve);
}

.aigc-copy-btn:hover {
  background-color: var(--google-primary);
  border-color: var(--google-primary);
  color: #fff;
}

.dark-mode .aigc-copy-btn:hover {
  color: #1e1f20;
}

/* 响应式布局 */
@media (max-width: 992px) {
  .aigc-detect-section {
    padding-right: 24px;
  }
  
  .aigc-detect-container {
    flex-direction: column;
  }
  
  .aigc-input-panel,
  .aigc-result-panel {
    flex: none;
    height: 500px;
  }
  
  .aigc-reduce-btn {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 16px 20px;
    width: calc(100% - 40px);
    text-align: center;
  }
}

@media (max-width: 768px) {
  .aigc-detect-section {
    padding: 16px;
  }
  
  .aigc-detect-container {
    gap: 16px;
  }
  
  .aigc-panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 20px;
  }
  
  .aigc-header-right {
    width: 100%;
  }
  
  .aigc-strength-slider {
    width: 100%;
  }
  
  .aigc-slider-wrapper {
    flex: 1;
  }
  
  .aigc-input-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .aigc-footer-left {
    justify-content: center;
  }
  
  .aigc-footer-right {
    flex-direction: column;
  }
  
  .aigc-action-btn {
    width: 100%;
    justify-content: center;
  }
  
  .aigc-result-tab {
    padding: 12px 14px;
    font-size: 0.9rem;
  }
}

/* ========== 工具卡片高亮动画 ========== */
.workspace-tool-card.highlight {
  animation: tool-highlight 1.5s ease;
}

@keyframes tool-highlight {
  0%, 100% {
    box-shadow: none;
  }
  50% {
    box-shadow: 0 0 0 3px var(--google-primary), 0 4px 12px rgba(66, 133, 244, 0.3);
  }
}

.dark-mode .workspace-tool-card.highlight {
  animation: tool-highlight-dark 1.5s ease;
}

@keyframes tool-highlight-dark {
  0%, 100% {
    box-shadow: none;
  }
  50% {
    box-shadow: 0 0 0 3px var(--google-primary), 0 4px 12px rgba(138, 180, 248, 0.3);
  }
}