@charset "utf-8";
/*
 * AIgongju Theme - LECMS
 * AI 工具导航主题样式
 * 设计参考：ai-tab.cn / xiaoan.cc
 */

/* ============ 基础重置 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #1f2937;
  background: #f5f7fb;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; border: 0; }
ul, ol { list-style: none; }
button, input { font-family: inherit; font-size: inherit; outline: none; }
button { cursor: pointer; border: 0; background: none; }

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;
  --blue: #2563eb;
  --nav-active: #2563eb; /* 左侧导航选中色：想要截图里的绿色改成 #16b777 即可 */
  --text: #1f2937;
  --text-sub: #6b7280;
  --text-light: #9ca3af;
  --border: #e8ebf2;
  --bg: #f5f7fb;
  --card: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 2px 12px rgba(31, 41, 55, .05);
  --shadow-hover: 0 10px 30px rgba(79, 70, 229, .12);
  --sidebar-w: 190px;
  --header-h: 66px;
}

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.3px;
  flex-shrink: 0;
}
.logo:hover { color: var(--text); }
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 19px; font-weight: 800;
  box-shadow: 0 4px 10px rgba(79,70,229,.35);
}
.logo-mark svg { width: 21px; height: 21px; fill: #fff; }
.logo-em { color: var(--primary); }

.top-nav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.top-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text-sub);
  white-space: nowrap;
}
.top-nav a:hover, .top-nav a.active { background: var(--primary-light); color: var(--primary); }

.header-search {
  margin-left: auto;
  position: relative;
  width: clamp(200px, 26vw, 380px);
  flex-shrink: 1;
}
.header-search form { display: flex; align-items: center; }
.header-search input {
  width: 100%;
  height: 40px;
  padding: 0 92px 0 16px;
  border: 1px solid var(--border);
  background: #f7f8fc;
  border-radius: 22px;
  transition: all .2s;
}
.header-search input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.header-search button {
  position: absolute;
  right: 4px;
  height: 32px;
  padding: 0 16px;
  border-radius: 18px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  transition: background .2s;
}
.header-search button:hover { background: var(--primary-dark); }
.menu-toggle { display: none; font-size: 22px; color: var(--text); padding: 4px 8px; }

/* ============ 主体布局 ============ */
.layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px 26px 60px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* ============ 左侧固定分类导航（线性图标 · 药丸菜单） ============ */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-h) + 22px);
  max-height: calc(100vh - var(--header-h) - 44px);
  overflow-y: auto;
  background: #f7f8fa;
  border-radius: 14px;
  padding: 10px 8px 18px;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  /* 底部渐隐，提示列表可继续滚动 */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), rgba(0,0,0,.12));
  mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), rgba(0,0,0,.12));
}
.sidebar::-webkit-scrollbar { width: 0; }
.sidebar:hover::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.ag-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sidebar-menu { position: relative; }
.menu { display: block; }
.menu li { display: block; width: 100%; margin-bottom: 2px; }
.menu li a {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 12px;
  color: #5a5a5a;
  font-size: 14px; font-weight: 500;
  box-sizing: border-box;
  transition: background .18s, color .18s, box-shadow .18s;
}
.menu li a span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 线性图标：颜色跟随文字，选中态自动变白 */
.menu-ico {
  width: 19px; height: 19px; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  opacity: .78;
  transition: opacity .18s;
}
.menu li a:hover { background: #fff; color: var(--nav-active); box-shadow: 0 2px 10px rgba(31,41,55,.05); }
.menu li a:hover .menu-ico { opacity: 1; }
.menu li.active a, .menu li.active a:hover {
  background: var(--nav-active); color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.menu li.active a .menu-ico { opacity: 1; stroke-width: 2; }

/* ============ 内容区 ============ */
.main { flex: 1; min-width: 0; }

/* 首页 Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #4f46e5 0%, #6366f1 48%, #3b82f6 100%);
  color: #fff;
  padding: 34px 38px;
  margin-bottom: 26px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px; top: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.09);
}
.hero::before {
  content: "";
  position: absolute;
  right: 90px; bottom: -120px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.hero h1 { font-size: 27px; font-weight: 800; margin-bottom: 8px; position: relative; z-index: 1; letter-spacing: -.3px; }
.hero p { font-size: 14px; opacity: .9; max-width: 640px; position: relative; z-index: 1; }
.hero-stats { display: flex; gap: 30px; margin-top: 22px; position: relative; z-index: 1; }
.hero-stats .stat b { display: block; font-size: 24px; font-weight: 800; line-height: 1.2; }
.hero-stats .stat span { font-size: 12px; opacity: .82; }

/* 分类区块 */
.cat-section { margin-bottom: 34px; }
.section-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.section-bar { width: 4px; height: 19px; border-radius: 3px; background: linear-gradient(180deg, #6366f1, #4338ca); }
.section-head h2 { font-size: 18px; font-weight: 700; color: var(--text); }
.section-head .sec-desc { font-size: 12px; color: var(--text-light); font-weight: 400; margin-left: 4px; }
.section-more {
  margin-left: auto;
  font-size: 13px; color: var(--text-sub);
  display: flex; align-items: center; gap: 4px;
}
.section-more:hover { color: var(--primary); }
.section-more svg { width: 14px; height: 14px; fill: currentColor; }

/* 工具卡片网格 */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 14px;
}
.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 17px 17px 15px;
  box-shadow: var(--shadow);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #d8dcf5;
}
.tool-card-top { display: flex; gap: 12px; align-items: flex-start; }
.tool-thumb {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  font-size: 20px; font-weight: 800; color: var(--primary);
}
.tool-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tool-info { min-width: 0; flex: 1; }
.tool-name {
  font-size: 15px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 6px;
}
.tool-card:hover .tool-name { color: var(--primary); }
.tool-badge {
  font-size: 10px; font-weight: 600; padding: 1px 6px;
  border-radius: 5px; background: #fff1f0; color: #f04b3f; flex-shrink: 0;
}
.tool-badge.hot { background: #fff7e6; color: #fa8c16; }
.tool-desc {
  margin-top: 8px;
  font-size: 12.5px; color: var(--text-sub);
  line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 41px;
}
.tool-card-bottom {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.tool-tags { display: flex; gap: 5px; flex-wrap: wrap; overflow: hidden; }
.tool-tag {
  font-size: 11px; color: var(--text-light);
  background: #f5f6fa; padding: 2px 8px; border-radius: 5px;
  white-space: nowrap;
}
.btn-view {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px; font-weight: 600;
  transition: all .2s;
}
.btn-view:hover { background: var(--primary); color: #fff; }
.btn-view svg { width: 12px; height: 12px; fill: currentColor; }

/* 面包屑 */
.breadcrumb {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--text-light);
  margin-bottom: 20px; flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: #d1d5db; }
.breadcrumb .cur { color: var(--text-sub); }

/* 分类页 / 列表页头 */
.list-head {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.list-head h1 { font-size: 23px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.list-head h1 .hd-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--primary-light); display: inline-flex; align-items: center; justify-content: center; }
.list-head h1 .hd-icon svg { width: 17px; height: 17px; fill: var(--primary); }
.list-head p { color: var(--text-sub); font-size: 13.5px; line-height: 1.8; }
.list-count { margin-top: 12px; font-size: 12px; color: var(--text-light); }

/* 筛选栏 */
.filter-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 18px;
}
.filter-bar .filter-label { font-size: 13px; color: var(--text-sub); font-weight: 600; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chips a {
  font-size: 12px; color: var(--text-sub);
  padding: 5px 12px; border-radius: 7px; background: #f5f6fa;
}
.filter-chips a:hover, .filter-chips a.active { background: var(--primary-light); color: var(--primary); }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 36px; height: 36px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 9px;
  background: #fff; color: var(--text-sub); font-size: 13px;
  transition: all .2s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current, .pagination span.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .disabled { opacity: .45; cursor: not-allowed; }

/* ============ 工具详情页 ============ */
.detail-wrap { display: flex; gap: 24px; align-items: flex-start; }
.detail-main { flex: 1; min-width: 0; }
.detail-side { width: 280px; flex-shrink: 0; }

.detail-hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.detail-hero-top { display: flex; gap: 18px; align-items: center; }
.detail-thumb {
  width: 78px; height: 78px; flex-shrink: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800; color: var(--primary);
  overflow: hidden;
}
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-h h1 { font-size: 25px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 8px; }
.detail-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meta-tag {
  font-size: 12px; padding: 3px 10px; border-radius: 6px;
  background: var(--primary-light); color: var(--primary); font-weight: 500;
}
.meta-tag.gray { background: #f5f6fa; color: var(--text-sub); }
.meta-txt { font-size: 12px; color: var(--text-light); }
.detail-lead { margin-top: 18px; font-size: 14px; color: var(--text-sub); line-height: 1.85; }
.detail-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: 0 4px 12px rgba(79,70,229,.28);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 7px 18px rgba(79,70,229,.36); }
.btn-primary svg { width: 15px; height: 15px; fill: #fff; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 10px;
  border: 1px solid var(--border); color: var(--text-sub);
  font-weight: 500; font-size: 14px; background: #fff;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.content-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.content-card h2 {
  font-size: 18px; font-weight: 700; color: var(--text);
  margin-bottom: 16px; padding-left: 13px; position: relative;
}
.content-card h2::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 4px; border-radius: 3px; background: linear-gradient(180deg, #6366f1, #4338ca);
}
.content-card h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 20px 0 8px; }
.content-card p { color: var(--text-sub); line-height: 1.9; margin-bottom: 12px; }
.content-card ul.feature-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px 22px; margin-top: 6px; }
.content-card ul.feature-list li {
  position: relative; padding-left: 22px; color: var(--text-sub); line-height: 1.75;
}
.content-card ul.feature-list li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.faq-item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-q { font-weight: 600; color: var(--text); font-size: 14.5px; margin-bottom: 7px; display: flex; gap: 8px; }
.faq-q .q-mark { color: var(--primary); font-weight: 800; }
.faq-a { color: var(--text-sub); line-height: 1.85; padding-left: 22px; }

/* 侧栏卡片 */
.side-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  margin-bottom: 18px; box-shadow: var(--shadow);
}
.side-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.side-card h3 svg { width: 16px; height: 16px; fill: var(--primary); }
.rank-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.rank-list li:last-child { border-bottom: 0; }
.rank-num {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 6px;
  background: #f5f6fa; color: var(--text-light);
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.rank-list li:nth-child(1) .rank-num { background: #fee2e2; color: #ef4444; }
.rank-list li:nth-child(2) .rank-num { background: #ffedd5; color: #f97316; }
.rank-list li:nth-child(3) .rank-num { background: #fef9c3; color: #ca8a04; }
.rank-list .rank-title {
  flex: 1; font-size: 13px; color: var(--text-sub);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank-list .rank-title:hover { color: var(--primary); }
.side-mini-tool { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.side-mini-tool:last-child { border-bottom: 0; }
.side-mini-thumb { width: 34px; height: 34px; border-radius: 9px; background: var(--primary-light); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); }
.side-mini-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.side-mini-info { min-width: 0; flex: 1; }
.side-mini-info b { display: block; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-mini-info span { font-size: 11px; color: var(--text-light); }

/* ============ 新闻列表 ============ */
.news-layout { display: flex; gap: 24px; align-items: flex-start; }
.news-main { flex: 1; min-width: 0; }
.news-side { width: 290px; flex-shrink: 0; }
.page-title-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--border);
}
.page-title-bar h1 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.page-title-bar h1 svg { width: 22px; height: 22px; fill: var(--primary); }
.news-tabs { display: flex; gap: 6px; }
.news-tabs a { font-size: 13px; padding: 5px 13px; border-radius: 7px; color: var(--text-sub); }
.news-tabs a.active, .news-tabs a:hover { background: var(--primary); color: #fff; }

/* ============ 快讯列表（仿截图：纯白扁平圆角卡片 · 标题+摘要+分类/日期/浏览量） ============ */
.kuaixun-box { width: 100%; }
.kuaixun-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.kuaixun-title { font-size: 19px; font-weight: 800; color: var(--text); }
.kuaixun-count { font-size: 12px; color: var(--text-light); }
.kuaixun-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.kuaixun-item {
  background: #fff; border: 0;
  border-radius: 14px; box-shadow: 0 2px 12px rgba(31,35,41,.05);
  padding: 22px 24px 18px;
}
.kuaixun-link {
  display: block; font-size: 21px; font-weight: 800; line-height: 1.45;
  color: #1f2329; text-decoration: none;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.kuaixun-link:hover { color: var(--primary); }
.kuaixun-content {
  margin-top: 12px; color: #8f959e; font-size: 15px; line-height: 1.8;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.kuaixun-content img { max-width: 100%; height: auto; }
.new-meta { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; }
.new-meta-left { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.new-meta-left .kx-cate {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 6px; background: #f2f3f5;
  color: #4e5969; font-size: 13px; font-weight: 500;
}
.new-meta-left .kx-date { display: inline-flex; align-items: center; gap: 6px; color: #8f959e; font-size: 13px; }
.new-meta-left svg { width: 16px; height: 16px; flex: none; }
.new-meta-left .kx-cate svg { color: #16a34a; }
.new-meta-right { font-size: 13px; color: #8f959e; display: flex; align-items: center; }
.new-meta-right .kx-views { display: inline-flex; align-items: center; gap: 6px; }
.new-meta-right svg { width: 16px; height: 16px; }
.xx-home-btns { text-align: center; padding: 18px 0 4px; color: var(--text-light); font-size: 13px; }
.xx-home-btns .pagination, .xx-home-btns ul { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.xx-home-btns a, .xx-home-btns span {
  display: inline-block; min-width: 34px; padding: 6px 12px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--card); color: var(--text-sub); font-size: 13px;
}
.xx-home-btns a:hover { border-color: var(--primary); color: var(--primary); }

/* 右侧热门推荐（缩略图 + 简介 + 浏览量） */
.aside-block {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.aside-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.similar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.similar-item {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px;
  align-items: center; padding: 9px 6px; margin-bottom: 4px;
  border-radius: 9px; border: 1px solid transparent;
}
.similar-item:hover { background: #f7f8fc; border-color: var(--border); }
.similar-item .si-link { display: block; min-width: 0; }
.similar-item .si-main { min-width: 0; }
/* 热门推荐介绍默认隐藏（兼容线上模板未更新时，仅靠 CSS 也能去掉简介） */
.similar-item .si-meta { display: none !important; }
.similar-item .si-name { margin: 0 0 4px; font-size: 13.5px; color: var(--text); font-weight: 600; line-height: 1.5; word-break: break-word; }
.similar-item .si-link:hover .si-name { color: var(--primary); }
.similar-item .si-stat { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-light); }
.icon-views { display: inline-block; width: 13px; height: 13px; background: currentColor; -webkit-mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5C6 5 3 12 3 12s3 7 9 7 9-7 9-7-3-7-9-7zm0 11a4 4 0 110-8 4 4 0 010 8z'/%3E%3C/svg%3E") no-repeat center/contain; mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5C6 5 3 12 3 12s3 7 9 7 9-7 9-7-3-7-9-7zm0 11a4 4 0 110-8 4 4 0 010 8z'/%3E%3C/svg%3E") no-repeat center/contain; }

/* ============ 快讯详情（仿 ixiaoxiong.com/kuaixun/{id}.html · 浅色） ============ */
.kuaixun-detail {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 34px; box-shadow: var(--shadow);
}
.kuaixun-detail-header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.kuaixun-detail-title { font-size: 25px; font-weight: 800; line-height: 1.45; color: var(--text); margin: 0 0 16px; }
.kuaixun-detail-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--text-light); }
.kuaixun-detail-meta span { display: inline-flex; align-items: center; gap: 5px; }
.kuaixun-detail-meta .ico { display: inline-block; width: 14px; height: 14px; background: currentColor; -webkit-mask: no-repeat center/contain; mask: no-repeat center/contain; }
.ico-time { -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm0 18a8 8 0 110-16 8 8 0 010 16zm1-13h-2v6l5 3 1-2-4-2V7z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm0 18a8 8 0 110-16 8 8 0 010 16zm1-13h-2v6l5 3 1-2-4-2V7z'/%3E%3C/svg%3E"); }
.ico-user { -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 100-10 5 5 0 000 10zm0 2c-4 0-8 2-8 5v3h16v-3c0-3-4-5-8-5z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 100-10 5 5 0 000 10zm0 2c-4 0-8 2-8 5v3h16v-3c0-3-4-5-8-5z'/%3E%3C/svg%3E"); }
.ico-from { -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.2l6 3.3L12 10.8 6 7.5l6-3.3zM5 9l6 3.3v6.4L5 15.4V9zm14 6.4l-6 3.3v-6.4L19 9v6.4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.2l6 3.3L12 10.8 6 7.5l6-3.3zM5 9l6 3.3v6.4L5 15.4V9zm14 6.4l-6 3.3v-6.4L19 9v6.4z'/%3E%3C/svg%3E"); }
.ico-views { -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5C6 5 3 12 3 12s3 7 9 7 9-7 9-7-3-7-9-7zm0 11a4 4 0 110-8 4 4 0 010 8z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5C6 5 3 12 3 12s3 7 9 7 9-7 9-7-3-7-9-7zm0 11a4 4 0 110-8 4 4 0 010 8z'/%3E%3C/svg%3E"); }
.kuaixun-detail-content { color: var(--text); font-size: 15px; line-height: 1.9; margin-bottom: 24px; overflow-x: hidden; word-wrap: break-word; word-break: break-word; }
/* 采集来的富文本常带内联固定宽度(如 width:880px)、text-wrap-mode:nowrap、padding，
   强制收敛到容器内并允许换行。text-wrap-mode 是新版 Chrome 属性，须单独覆盖 */
.kuaixun-detail-content *,
.kuaixun-detail-content *::before,
.kuaixun-detail-content *::after,
.article-content *,
.article-content *::before,
.article-content *::after {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  text-wrap-mode: wrap !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}
.kuaixun-detail-content p,
.article-content p { margin: 0 0 16px; }
.kuaixun-detail-content img,
.article-content img { max-width: 100% !important; height: auto !important; border-radius: 8px; margin: 12px 0; }
.kuaixun-detail-content h2,
.article-content h2 { font-size: 19px; font-weight: 700; margin: 26px 0 14px; padding-left: 12px; border-left: 4px solid var(--primary); }
.kuaixun-detail-content h3,
.article-content h3 { font-size: 16px; font-weight: 700; margin: 22px 0 10px; }
.kuaixun-detail-content a,
.article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.kuaixun-detail-content ul, .kuaixun-detail-content ol,
.article-content ul, .article-content ol { margin: 0 0 18px 22px; padding-left: 20px; }
.kuaixun-detail-content li,
.article-content li { margin-bottom: 8px; }
/* 正文中直接写在元素上的 font-size 保留，但统一行高与颜色继承，避免深浅不一 */
.kuaixun-detail-content span, .kuaixun-detail-content li,
.article-content span, .article-content li { line-height: inherit; }
.kuaixun-detail-disclaimer {
  background: #f7f8fc; border: 1px solid var(--border); border-radius: 9px;
  padding: 13px 16px; font-size: 12px; color: var(--text-light); line-height: 1.7; margin-bottom: 22px;
}
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.article-tags a { font-size: 12px; color: var(--text-sub); background: #f5f6fa; padding: 5px 12px; border-radius: 7px; }
.article-tags a:hover { background: var(--primary-light); color: var(--primary); }
.kuaixun-detail-prevnext { border-top: 1px solid var(--border); padding-top: 16px; }
.kuaixun-detail-prevnext .pn-item { font-size: 13.5px; color: var(--text-light); padding: 6px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kuaixun-detail-prevnext .pn-item a { color: var(--text-sub); }
.kuaixun-detail-prevnext .pn-item a:hover { color: var(--primary); }
.related-box { margin-top: 26px; }
.related-box h3 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.related-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.related-item {
  display: flex; gap: 12px; padding: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.related-item:hover { border-color: var(--primary); }
.related-thumb { width: 76px; height: 56px; border-radius: 7px; background: linear-gradient(135deg,#dbeafe,#e0e7ff); flex-shrink: 0; overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-item b { font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ 搜索页 ============ */
.search-result-head { font-size: 14px; color: var(--text-sub); margin-bottom: 18px; }
.search-result-head b { color: var(--primary); font-size: 16px; }
.search-keyword { color: var(--primary); font-weight: 700; }
.no-result { text-align: center; padding: 70px 20px; color: var(--text-light); background: var(--card); border-radius: var(--radius); }
.no-result svg { width: 60px; height: 60px; fill: #d1d5db; margin: 0 auto 16px; }

/* ============ 页脚 ============ */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
.footer-inner { max-width: 1440px; margin: 0 auto; padding: 40px 26px 24px; }
.footer-top { display: flex; gap: 40px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.footer-col { flex: 1; min-width: 220px; }
.footer-col.brand { flex: 1.4; }
.footer-logo { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.footer-col p { font-size: 12.5px; color: var(--text-light); line-height: 1.8; max-width: 320px; }
.footer-col h4 { font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { font-size: 12.5px; color: var(--text-sub); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  padding-top: 20px; text-align: center;
  font-size: 12px; color: var(--text-light); line-height: 2;
}
.footer-bottom a { color: var(--text-sub); }
.footer-bottom a:hover { color: var(--primary); }
.footer-bottom .sep { margin: 0 8px; color: #d1d5db; }

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .detail-side, .news-side { display: none; }
  .layout { padding: 18px; }
}
@media (max-width: 820px) {
  .top-nav { display: none; }
  .menu-toggle { display: block; }
  .header-inner { padding: 0 16px; gap: 12px; }
  .header-search { width: auto; flex: 1; }
  .header-search input { padding-right: 70px; }
  .header-search button { padding: 0 12px; }
  .layout { flex-direction: column; padding: 14px; }
  .sidebar {
    position: static; width: 100%; max-height: none;
    display: none;
    -webkit-mask-image: none; mask-image: none;
  }
  .sidebar.show { display: block; }
  .tool-grid { grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); }
  .hero { padding: 26px 22px; }
  .hero h1 { font-size: 22px; }
  .content-card, .kuaixun-detail { padding: 22px 18px; }
  .kuaixun-detail-title { font-size: 21px; }
  .kuaixun-detail-meta { gap: 12px; font-size: 12px; }
  .kuaixun-item { padding: 16px; }
  .kuaixun-link { font-size: 17px; }
  .related-grid { grid-template-columns: 1fr; }
  .content-card ul.feature-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .logo-em, .logo span:not(.logo-mark) { font-size: 17px; }
  .tool-grid { grid-template-columns: 1fr; }
  .kuaixun-item { padding: 14px; }
  .kuaixun-link { font-size: 16px; }
  .new-meta-right { display: none; }
  .hero-stats { gap: 18px; }
  .detail-hero-top { flex-direction: column; align-items: flex-start; }
}
