/*
 * 首页 UI 细节优化 - 2026-09-16
 * 在现有设计基础上做细节提升，不改变整体布局和色彩体系
 */

/* ===== 1. 全局微调 ===== */
:root {
  --c-primary: #1a3cb8;
  --c-primary-dark: #122a85;
  --c-accent: #00b4ff;
  --radius: 8px;
}

body {
  background: #f4f6f9;
  letter-spacing: 0.01em;
}

/* ===== 2. 顶部 top-bar 优化 ===== */
.top-bar {
  background: #1a1a2e;
  color: #999;
  border-bottom: none;
}
.top-bar a { color: #bbb; }
.top-bar a:hover { color: #fff; }

/* ===== 3. Header 优化 ===== */
.site-header {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--c-primary) 0%, var(--c-accent) 100%) 1;
}
.site-branding .site-title {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.main-navigation ul.menu > li > a {
  font-weight: 500;
  transition: color 0.2s;
}
.main-navigation ul.menu > li > a:hover::after,
.main-navigation ul.menu > li.current-menu-item > a::after {
  height: 3px;
  border-radius: 2px 2px 0 0;
}

/* ===== 4. 内容区块优化 ===== */
.content-block {
  border: none;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  margin-bottom: 24px;
  transition: box-shadow 0.25s ease;
}
.content-block:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.05);
}
.block-header {
  padding: 14px 20px;
  background: linear-gradient(to right, #fafbfc, #fff);
  border-bottom: 1px solid #f0f2f5;
}
.block-header h2 {
  font-size: 18px;
  font-weight: 700;
  padding-left: 12px;
  position: relative;
}
.block-header h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--c-primary), var(--c-accent));
  border-radius: 2px;
}
.block-more {
  font-size: 13px;
  transition: color 0.2s;
}
.block-more:hover {
  color: var(--c-accent);
}

/* ===== 5. 轮播置顶优化 ===== */
.sticky-carousel {
  padding: 6px 4px;
}
.sticky-slide {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.sticky-slide-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%);
}
.sticky-slide-cat {
  border-radius: 20px;
  padding: 3px 10px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* ===== 6. 每日 AI 资讯列表优化 ===== */
.ai-text-list li {
  border-bottom: 1px solid #f4f6f9;
}
.ai-text-item {
  padding: 18px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.ai-text-item:hover {
  background: #f8faff;
  padding-left: 16px;
}
.ai-text-no {
  font-size: 26px;
  color: var(--c-primary);
  opacity: 0.25;
  transition: opacity 0.2s;
}
.ai-text-item:hover .ai-text-no {
  opacity: 0.6;
}
.ai-text-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ai-text-cat {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 500;
}

/* ===== 7. 专题卡片优化 ===== */
.zt-rec-grid {
  gap: 18px;
}
.zt-rec-card,
.case-rec-card {
  border: 1px solid #eef0f4;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.zt-rec-card:hover,
.case-rec-card:hover {
  border-color: rgba(26,60,184,0.2);
  box-shadow: 0 8px 24px rgba(26,60,184,0.1);
  transform: translateY(-3px);
}
.zt-rec-cat,
.case-rec-cat {
  border-radius: 20px;
  padding: 3px 10px;
  font-weight: 500;
}
.zt-rec-title,
.case-rec-title {
  font-size: 15px;
  font-weight: 600;
}

/* ===== 8. 右栏 widget 优化 ===== */
.widget {
  border: none;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
}
.widget-title {
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  position: relative;
  background: linear-gradient(to right, #fafbfc, #fff);
}
.widget-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, var(--c-primary), var(--c-accent));
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: -2px;
}
.news-list li a,
.hot-list li a,
.events-list li a {
  transition: all 0.15s ease;
}
.news-list li a:hover,
.hot-list li a:hover,
.events-list li a:hover {
  background: #f8faff;
  padding-left: 22px;
}
.event-date {
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(26,60,184,0.2);
}

/* ===== 9. 行业百科优化 ===== */
.baike-list li a {
  transition: all 0.15s;
  padding: 2px 0;
}
.baike-list li a:hover {
  padding-left: 4px;
}

/* ===== 10. Footer 优化 ===== */
.site-footer {
  background: linear-gradient(180deg, #1e1e32 0%, #16162a 100%);
  margin-top: 50px;
}
.footer-modules .fm-col h4::after {
  background: var(--c-accent);
  border-radius: 2px;
}
.footer-about-logo {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
  box-shadow: 0 4px 16px rgba(0,180,255,0.3);
}
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 18px;
}

/* ===== 11. 图片懒加载占位优化 ===== */
.sticky-slide-thumb,
.zt-rec-thumb,
.case-rec-thumb {
  background: linear-gradient(135deg, #f0f2f7 0%, #e8ecf3 100%);
}

/* ===== 12. 滚动条美化 ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f4f6f9; }
::-webkit-scrollbar-thumb { background: #c8cdd5; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a8aeb8; }

/* ===== 13. 文章列表缩略图 hover 效果增强 ===== */
.ai-text-item .ai-text-cat {
  box-shadow: 0 1px 3px rgba(26,60,184,0.2);
}

/* ===== 14. 轮播指示器优化 ===== */
.sticky-carousel::-webkit-scrollbar { height: 4px; }
.sticky-carousel::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
}

/* ===== 15. 导航栏框式样式 ===== */
.nav-boxed ul.menu {
  background: #f4f6f9;
  border-radius: 10px;
  padding: 4px;
  display: inline-flex;
  gap: 2px;
}
.nav-boxed ul.menu > li {
  margin: 0;
}
.nav-boxed ul.menu > li > a {
  height: auto;
  line-height: 1;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: #555;
  transition: all 0.2s ease;
}
.nav-boxed ul.menu > li > a:hover,
.nav-boxed ul.menu > li.current-menu-item > a {
  background: var(--c-primary);
  color: #fff;
}
.nav-boxed ul.menu > li > a::after {
  display: none !important;
}
.nav-boxed {
  margin-left: 20px;
}

/* ===== 16. 导航搜索按钮修复 ===== */
.header-search-toggle {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 16px;
  min-width: 40px;
  text-align: center;
}
.header-search-toggle span {
  display: inline-block;
  white-space: nowrap;
}
.nav-boxed {
  margin-left: 20px;
  overflow-x: auto;
  flex: 1;
}
.nav-boxed ul.menu {
  flex-wrap: nowrap;
  justify-content: center;
}
.nav-boxed ul.menu > li > a {
  padding: 7px 9px;
  font-size: 12.5px;
  letter-spacing: -0.01em;
}

/* ===== 17. 日期文字优化 ===== */
.top-bar {
  letter-spacing: 0.02em;
}

/* ===== 18. AI指数研究 入口卡片 ===== */
.ai-index-entry {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #152d8d 0%, #0f3fa8 55%, #00aeff 130%);
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 16px rgba(21,45,141,0.18);
  transition: all 0.3s ease;
}
.ai-index-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(21,45,141,0.28);
}
.ai-index-entry-icon {
  font-size: 28px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.14);
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-index-entry-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ai-index-entry-text strong {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.ai-index-entry-text em {
  font-style: normal;
  font-size: 12px;
  color: rgba(255,255,255,0.82);
}
.ai-index-entry-arrow {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.14);
  padding: 6px 14px;
  border-radius: 20px;
  transition: background 0.2s;
}
.ai-index-entry:hover .ai-index-entry-arrow {
  background: rgba(255,255,255,0.28);
}

/* ===== 19. 右栏侧边栏卡片排版优化 ===== */
.site-sidebar .widget {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(16,42,118,0.04), 0 10px 28px rgba(16,42,118,0.06);
  margin-bottom: 20px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.site-sidebar .widget:hover {
  box-shadow: 0 4px 14px rgba(16,42,118,0.08), 0 14px 36px rgba(16,42,118,0.10);
  transform: translateY(-2px);
}
.site-sidebar .widget-title {
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid #eef1f6;
  background: linear-gradient(to right, #f7f9fc, #ffffff);
  letter-spacing: 0.01em;
}
.site-sidebar .widget-title::before {
  width: 4px;
  height: 18px;
  vertical-align: -3px;
  margin-right: 10px;
}
.site-sidebar .widget .news-list,
.site-sidebar .widget .baike-list,
.site-sidebar .widget .hot-list,
.site-sidebar .widget .events-list {
  padding: 10px 14px 8px;
}
/* 问答 / 资讯列表（baike-list） */
.site-sidebar .baike-list li {
  padding: 4px 0;
  border-bottom: 1px dashed #f0f2f7;
}
.site-sidebar .baike-list li:last-child {
  border-bottom: 0;
}
.site-sidebar .baike-list li a {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.55;
  color: #3a4152;
  padding: 5px 8px;
  border-radius: 8px;
  transition: all 0.18s ease;
}
.site-sidebar .baike-list li a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  flex-shrink: 0;
  margin-top: 8px;
}
.site-sidebar .baike-list li a:hover {
  background: #f2f6ff;
  color: var(--c-primary);
  padding-left: 12px;
}
/* 最新文章推荐（news-list） */
.site-sidebar .news-list {
  padding: 6px 10px;
}
.site-sidebar .news-list li a {
  padding: 9px 10px;
  border-radius: 10px;
  transition: all 0.18s ease;
}
.site-sidebar .news-list li a:hover {
  background: #f2f6ff;
  padding-left: 14px;
}
.site-sidebar .news-list .news-no {
  width: 26px;
  font-size: 17px;
}
.site-sidebar .news-list .news-title {
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 500;
}
.site-sidebar .news-list .news-time {
  font-size: 11px;
  color: #a8b0bf;
  margin-left: auto;
  flex-shrink: 0;
  margin-top: 1px;
}
/* 更多链接按钮化 */
.site-sidebar .widget-more-link {
  display: block;
  text-align: center;
  margin: 4px 14px 14px;
  padding: 8px 10px;
  font-size: 12.5px;
  color: var(--c-primary);
  background: #f0f5ff;
  border: none;
  border-top: 0;
  border-radius: 20px;
  transition: all 0.2s ease;
}
.site-sidebar .widget-more-link:hover {
  background: var(--c-primary);
  color: #fff;
}
