/* ========== 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 {
  background-color: var(--google-bg) !important;
  transition: margin-left var(--transition-speed) var(--ease-out);
  /* min-height: auto !important; */
  height: auto !important;
}

.content-wrapper {
  background-color: var(--google-bg) !important;
  transition: margin-left var(--transition-speed) var(--ease-out);
   /* min-height: auto !important; */
  height: auto !important;
}

/* 覆盖AdminLTE的默认样式，防止footer被拉上去 */
.main-footer {
  /* margin-left: 0 !important; */
  position: relative !important;
  z-index: 1;
}

/* ========== 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;
}

/* ========== 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;
}

/* 关闭 AdminLTE 默认的 push 行为，改成纯 overlay */
.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;
}

.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);
}

/* 首页中间布局：与频道一致的顶部 padding */
.content-wrapper .home-container {
  min-height: auto !important;
  display: flex;
  justify-content: center;
  padding: 40px 12px 12px;
}

/* 确保content-wrapper不会导致页面高度异常 */
.content-wrapper {
  /* min-height: auto !important; */
  height: auto !important;
  padding-bottom: 0 !important;
}

.content-wrapper .content {
  /* min-height: auto !important; */
  height: auto !important;
  padding-bottom: 0 !important;
}

/* 防止AdminLTE JS动态设置高度 */
body.layout-fixed .content-wrapper,
body.fixed .content-wrapper {
  /* min-height: auto !important; */
  height: auto !important;
  padding-top: 0 !important;
}

/* ========== 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;
}

/* 排行榜右侧：评论 + Like（仅首页热榜用） */
.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;
  position: relative;
  z-index: 1;
  background-color: var(--google-bg);
}
@media (max-width: 992px) {
  .product-nav-section {
    padding: 16px 24px 32px
  }
}
@media (max-width: 576px) {
  .product-nav-section {
    padding: 12px 12px 24px;
  }
}

/* 热榜顶部标题 + Tab */
.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);
  position: relative;
  z-index: 1;
  background-color: var(--google-bg);
}
.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. 频道页专用（AI 对话软件等二级域名） ========== */

.channel-main {
  width: 100%;
  /* 与首页 product-nav-section 保持相似左右留白 */
  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);
}

/* 频道卡片容器：直接用 product-nav-grid */
.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);
  }
}


/* ========== 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;
  aspect-ratio: var(--wf-ar, 4 / 3);
  overflow: hidden;
}

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

/* 让每张卡片高度有差异（即使图片原始比例接近，也能呈现瀑布流错落感） */
.waterfall-grid .waterfall-card:nth-child(6n + 1) { --wf-ar: 4 / 3; }
.waterfall-grid .waterfall-card:nth-child(6n + 2) { --wf-ar: 1 / 1; }
.waterfall-grid .waterfall-card:nth-child(6n + 3) { --wf-ar: 3 / 4; }
.waterfall-grid .waterfall-card:nth-child(6n + 4) { --wf-ar: 16 / 9; }
.waterfall-grid .waterfall-card:nth-child(6n + 5) { --wf-ar: 2 / 3; }
.waterfall-grid .waterfall-card:nth-child(6n + 6) { --wf-ar: 5 / 4; }

/* 文章标题 */
.waterfall-title {
  margin: 0;
  padding: 12px 12px 4px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--google-text);
  background-color: var(--google-bg);
  /* 多行文本截断：超过2行显示省略号 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2; /* 标准属性，用于更好的浏览器兼容性 */
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word; /* 允许在单词内换行，避免长单词溢出 */
  word-wrap: break-word; /* 兼容旧浏览器 */
}

/* 标题链接颜色：日间模式黑色，夜间模式白色 */
.waterfall-title a {
  color: var(--google-text);
  text-decoration: none;
  display: block; /* 确保链接占满整个标题区域，文本截断才能正常工作 */
  width: 100%;
}

.waterfall-title a:hover {
  color: var(--google-text);
  text-decoration: underline;
  opacity: 0.8;
}

/* 底部信息层 */
.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 a{
  color: inherit;
}
.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;
  }
}