/* ===== 首页特有样式 ===== */



/* Hero Banner */
.hero {
  background: linear-gradient(135deg, #19224a 0%, #243b7f 55%, #33308f 100%);
  border-radius: 12px;
  padding: 36px 40px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 30%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(99, 102, 241, .22) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-left { max-width: 560px; }
.hero-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -.5px;
}
.hero-title span {
  background: linear-gradient(90deg, #fbbf24, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 14px;
  opacity: .85;
  margin-bottom: 20px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  gap: 32px;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 26px;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1.2;
}
.hero-stat .label {
  font-size: 12px;
  opacity: .8;
  margin-top: 2px;
}
.hero-right {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.hero-float-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 26px;
  animation: float-icon 3s ease-in-out infinite;
}
.hero-float-icon:nth-child(2) { animation-delay: .5s; }
.hero-float-icon:nth-child(3) { animation-delay: 1s; }
@keyframes float-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 快速入口 */
.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
  position: relative;
  z-index: 1;
}
.quick-nav a {
  padding: 6px 14px;
  background: rgba(255,255,255,.12);
  border-radius: 20px;
  font-size: 13px;
  color: #fff;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}
.quick-nav a:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-2px);
}
.quick-nav a .iconfont { font-size: 14px; }

/* 通用 section */
.section {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #ebeef5;
  margin-bottom: 16px;
  overflow: hidden;
}
.section-hd {
  padding: 0 0 5px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .iconfont { font-size: 18px; color: #2563eb; }
.section-title .title-tag {
  font-size: 11px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  margin-left: 4px;
}
.section-more {
  font-size: 13px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: color .2s ease;
      margin-left: auto;
}
.section-more:hover { color: #2563eb; }
.section-more .iconfont { font-size: 14px; }
.section-bd { padding: 16px 18px; }

/* 精品推荐 */
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.recommend-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #f0f2f5;
  transition: all .25s ease;
  position: relative;
  cursor: pointer;
  background: #fafbfc;
}
.recommend-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,99,235,.12);
  border-color: #bfdbfe;
  background: #fff;
}
.recommend-card .rc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: transform .3s ease;
}
.recommend-card:hover .rc-icon { transform: scale(1.1) rotate(-5deg); }
.recommend-card .rc-info { flex: 1; min-width: 0; }
.recommend-card .rc-name {
  font-size: 14px;
  color: #1f2937;
  margin-bottom: 4px;
  max-width: 88px; /* 限制约6个汉字宽 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recommend-card .rc-desc {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 6px;
  max-width: 200px; /* 限制约15个汉字宽 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recommend-card .rc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #9ca3af;
}
.recommend-card .rc-meta .views {
  display: flex;
  align-items: center;
  gap: 3px;
}
.rc-tag {
  position: absolute;
  top: -1px;
  right: 12px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 0 0 6px 6px;
  font-weight: 500;
}
.rc-tag.new { background: linear-gradient(135deg, #10b981, #059669); }
.rc-tag.hot { background: linear-gradient(135deg, #f97316, #ef4444); }
.rc-tag.vip { background: linear-gradient(135deg, #f59e0b, #d97706); }

/* 实用工具 */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}
.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s ease;
}
.tool-item:hover {
  background: #eff6ff;
  transform: translateY(-2px);
}
.tool-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: all .3s ease;
}
.tool-item:hover .tool-icon {
  transform: scale(1.15) rotate(8deg);
}
.tool-name {
  display: block;
  width: 72px; /* 限制约6个汉字宽，防止撑开 */
  max-width: 72px;
  font-size: 12px;
  color: #4b5563;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 热榜 + 分类导航 两栏 */
.main-two-col {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.left-col {
  width: 380px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.right-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 热榜 */
.hot-section { margin-bottom: 0; }
.hot-list { padding: 8px 0; }
.hot-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  transition: background .2s ease;
  cursor: pointer;
}
.hot-item:hover { background: #f9fafb; }
.hot-rank {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background: #f3f4f6;
  color: #9ca3af;
}
.hot-item:nth-child(1) .hot-rank { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.hot-item:nth-child(2) .hot-rank { background: linear-gradient(135deg, #d1d5db, #9ca3af); color: #fff; }
.hot-item:nth-child(3) .hot-rank { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.hot-name {
  flex: 1;
  font-size: 14px;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hot-item:hover .hot-name { color: #2563eb; }
.hot-heat {
  font-size: 12px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.hot-heat .iconfont { font-size: 12px; color: #f97316; }
.hot-trend {
  font-size: 12px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.hot-trend.up { color: #ef4444; }
.hot-trend.down { color: #10b981; }
.hot-trend.flat { color: #9ca3af; }

/* 最新收录 */
.new-list { padding: 4px 0; }
.new-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  transition: background .2s ease;
}
.new-item:hover { background: #f9fafb; }
.new-name {
  flex: 1;
  font-size: 13px;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.new-item:hover .new-name { color: #2563eb; }
.new-tag {
  font-size: 10px;
  font-weight: 600;
  color: #16a34a;
  background: #dcfce7;
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
}
.new-date {
  font-size: 12px;
  color: #9ca3af;
  flex-shrink: 0;
}

/* 推荐工具小网格 */
.tool-grid-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
  padding: 4px 10px 6px;
}
.tool-mini-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  border-radius: 8px;
  transition: all .2s ease;
}
.tool-mini-item:hover { background: #f9fafb; transform: translateY(-1px); }
.tool-mini-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
}
.tool-mini-icon .iconfont { font-size: 18px; }
.tool-mini-item span {
  display: block;
  width: 72px; /* 限制约6个汉字宽，防止撑开 */
  max-width: 72px;
  font-size: 12px;
  color: #4b5563;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tool-mini-item:hover span { color: #2563eb; }

/* 友情链接 */
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 4px 18px 6px;
}
.friend-links a {
  font-size: 12px;
  color: #6b7280;
  padding: 4px 0;
  transition: color .2s ease;
  white-space: nowrap;
}
.friend-links a:hover { color: #2563eb; }

/* hao123 风格分类列表 */
.cat-list-section { margin-bottom: 0; }
.cat-list-section .section-bd { padding: 0; }
.cat-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #f3f4f6;
  transition: background .2s ease;
}
.cat-row:last-child { border-bottom: none; }
.cat-row:hover { background: #fafbfc; }

.cat-row-title {
  width: 88px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding-top: 1px;
}
.cat-row-title .cat-row-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 12px;
  flex-shrink: 0;
}

.cat-row-links {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px 12px;
  min-width: 0;
}
.cat-row-links a {
  font-size: 13px;
  color: #4b5563;
  white-space: nowrap;
  padding: 3px 0;
  position: relative;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}
.cat-row-links a .a-ico {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: middle;
  text-align: center;
  line-height: 16px;
  font-size: 13px;
  overflow: hidden;
}
.cat-row-links a .a-ico img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cat-row-links a:hover { color: #2563eb; }
.cat-row-links a.hot-link::after {
  content: '热';
  position: absolute;
  top: -4px;
  right: -14px;
  font-size: 10px;
  background: #fef2f2;
  color: #ef4444;
  padding: 0 3px;
  border-radius: 2px;
  font-weight: 500;
  line-height: 1.4;
}
.cat-row-links a.new-link::after {
  content: '新';
  position: absolute;
  top: -4px;
  right: -14px;
  font-size: 10px;
  background: #ecfdf5;
  color: #10b981;
  padding: 0 3px;
  border-radius: 2px;
  font-weight: 500;
  line-height: 1.4;
}

.cat-row-more {
  flex-shrink: 0;
  width: 40px;
  text-align: right;
  padding-top: 2px;
}
.cat-row-more a {
  font-size: 13px;
  color: #9ca3af;
  transition: color .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.cat-row-more a:hover { color: #2563eb; }
.cat-row-more .iconfont { font-size: 12px; }

/* 分类颜色 */
.cat-c1 { color: #2563eb; }
.cat-c2 { color: #10b981; }
.cat-c3 { color: #f59e0b; }
.cat-c4 { color: #7c3aed; }
.cat-c5 { color: #ef4444; }
.cat-c6 { color: #0ea5e9; }
.cat-c7 { color: #ec4899; }
.cat-c8 { color: #14b8a6; }
.cat-c9 { color: #8b5cf6; }
.cat-c10 { color: #f97316; }

/* 广告位 */
.ad-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 10px;
  padding: 24px 32px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border: 1px solid #fcd34d;
}
.ad-banner::before {
  content: '广告合作';
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0,0,0,.1);
  color: #92400e;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 0 0 6px 0;
}
.ad-content {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ad-icon {
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.ad-text h3 {
  font-size: 16px;
  color: #92400e;
  margin-bottom: 4px;
}
.ad-text p {
  font-size: 13px;
  color: #a16207;
}
.ad-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 4px 12px rgba(249,115,22,.3);
  position: relative;
  overflow: hidden;
}
.ad-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,.4);
}

/* 渐入动画 */
/* 与 style.css 保持一致：不用 translateY(20px) 把区块往下推，
   避免刷新时浏览器算出的可滚动高度与稳定态不一致而「自动下滑一点点」。
   index-style.css 在 style.css 之后加载，这里的定义会覆盖 style.css，
   所以两处必须同步修改。 */
.fade-in-up {
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(0.995);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: none;
}

/* 波纹效果 */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transform: scale(0);
  animation: ripple-effect .6s ease-out;
  pointer-events: none;
}
@keyframes ripple-effect {
  to { transform: scale(4); opacity: 0; }
}

/* 文章/内容卡片（右栏独立模块，与全分类导航分开排列） */
.article-card-section {
  margin-bottom: 0;
}
.article-card-section .section-bd {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 18px;
}
.article-card {
  display: flex;
  gap: 16px;
  padding: 14px;
  border: 1px solid #f0f2f5;
  border-radius: 10px;
  background: #fafbfc;
  /*cursor: pointer;*/
  transition: all .25s ease;
  text-decoration: none;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,99,235,.12);
  border-color: #bfdbfe;
  background: #fff;
}
.article-thumb {
  width: 180px;
  height: 108px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-thumb .thumb-icon {
  font-size: 40px;
  color: rgba(255,255,255,.9);
}
.article-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.article-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}
.article-card:hover .article-title { color: #2563eb; }
.article-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #9ca3af;
  margin-top: auto;
}
.article-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.article-meta .iconfont { font-size: 14px; }
.article-meta .meta-time { color: #9ca3af; }


/* ===== 第二类卡片：渐变图标卡片（card-b，不依赖网络大图）===== */
.card-b-section .section-bd {
  padding: 14px 18px;
}
/* 3 列错落小卡片网格，更精致 */
.card-b-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card-b {
  display: block;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #f0f2f5;
  background: #fff;
  transition: all .25s ease;
}
.card-b:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(37,99,235,.12);
  border-color: #c7d2fe;
}
.card-b-cover {
  position: relative;
 /* height: 200px;*/
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card-b-cover img{ height: 150px;}
.card-b-cover .cover-icon {
  font-size: 34px;
  color: #fff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.18));
}
.card-b-c1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.card-b-c2 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.card-b-c3 { background: linear-gradient(135deg, #06b6d4, #0ea5e9); }
.card-b-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,.28);
  border-radius: 20px;
  backdrop-filter: blur(2px);
}
.card-b-body {
  padding: 12px 14px 14px;
}
.card-b-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}
.card-b:hover .card-b-title { color: #2563eb; }
.card-b-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-b-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #9ca3af;
}
.card-b-meta .meta-l {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-b-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}
.card-b-meta .iconfont { font-size: 12px; }
.card-b-meta .meta-likes .iconfont { color: #ef4444; }

/* ===== 今日热文：左图+标题+时间，右两列五行列表 ===== */
.news-card-section .section-bd {
  padding: 0 16px;
  display: flex;
  align-items: flex-start;   /* 改为顶部对齐，左右互不影响高度 */
}
.news-left {
  width: 230px;
  flex-shrink: 0;
  padding: 16px 0;
  border-right: 1px solid #f3f4f6;
  margin-right: 14px;
}
.news-left .nl-link {
  display: block;
  text-decoration: none;
  border-radius: 10px;
  background: transparent;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.news-left .nl-link:hover {
  background: #f6f9ff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37,99,235,.12);
}
.news-left .nl-cover {
  /*height: 150px;*/
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  font-size: 44px;
  color: #fff;
  border-radius: 10px;
  transition: transform 0.35s ease;
}
.news-left .nl-cover img{
    height: 150px;
}
.news-left .nl-link:hover .nl-cover { transform: scale(1.03); }
.news-left .nl-info {
  padding: 12px 0 0;
}
.news-left .nl-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}
.news-left .nl-link:hover .nl-title { color: #2563eb; }
.news-left .nl-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-left .nl-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}
.news-left .nl-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #9ca3af;
  flex-shrink: 0;
}
.news-left .nl-time .iconfont { font-size: 13px; }
.news-left .nl-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9ca3af;
  min-width: 0;
}
.news-left .nl-stats span {
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.news-left .nl-stats .iconfont { font-size: 13px; }
.news-left .nl-stats .like .iconfont { color: #ef4444; }
.news-right {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 8px;
}
.news-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  transition: background .2s ease;
}
.news-item:nth-last-child(-n+2) { border-bottom: none; }
.news-item .ni-title {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  font-size: 13px;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}
.news-item:hover { background: #f6f8ff; }
.news-item:hover .ni-title { color: #2563eb; }
.news-item .ni-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid #c7d2fe;
  margin-right: 7px;
  vertical-align: middle;
  flex-shrink: 0;
  transition: all .25s ease;
}
.news-item:hover .ni-title::before { background: #93c5fd; border-color: #2563eb; }
.news-item .ni-date {
  flex-shrink: 0;
  font-size: 12px;
  color: #9ca3af;
}

/* ===== 网站优选：一行7列 + 悬停下方操作栏 ===== */
.site-pick-section {
  /* 提升本 section 到较高层叠上下文，避免下方平级 section 盖住悬停浮层 */
  position: relative;
  z-index: 5;
  /* 允许下拉浮层不被裁剪 */
  overflow: visible;
}
.site-pick-section .section-bd {
  padding: 14px 12px 16px;
}
.site-pick-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.site-pick-item {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 15px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  transition: background .2s ease;
  cursor: pointer;
}
.site-pick-item:hover {
  background: #f3f6ff;
}
.site-ico {
  width: 15px;
  height: 15px;
  border-radius: 5px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
}
.site-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-name {
  font-size: 14px;
  color: #374151;
  width: 72px; /* 限制约6个汉字宽 */
  max-width: 72px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}
.site-pick-item:hover .site-name { color: #2563eb; }
/* 三角：右对齐到格子右侧，垂直居中，悬停淡入 + 旋转（SVG） */
.site-pick-item .site-arrow {
  position: absolute;
  right: 15px;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-50%) translateX(4px) rotate(0deg);
  transition: opacity .2s ease, transform .3s ease;
  font-size: 10px;
}
.site-pick-item .site-arrow svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #2563eb;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-pick-item:hover .site-arrow,
.site-pick-item.show .site-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(0) rotate(180deg);
}
/* 悬停时：正下方弹出操作栏（垂直向下） */
.site-pick-item .site-actions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  display: none;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  z-index: 50;
}
.site-pick-item:hover .site-actions,
.site-pick-item.show .site-actions {
  display: flex;
  animation: site-up 0.5s ease;
}
@keyframes site-up {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.site-actions a {
  padding: 15px 8px;
  font-size: 13px;
  border-radius: 0;
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  color: #374151;
  transition: all .3s ease;
}
.site-actions a:hover {
  color: #2563eb;
  background: #eff6ff;
}

/* ===== 文字截断兜底：单行省略，防撑开布局 ===== */
.tool-name,
.tool-mini-item span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-row-links a,
.site-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== 顶部导航 分类下下拉菜单 ===== */
.nav .nav-drop { position: relative; display: flex; align-items: center; }
.nav .nav-drop-trigger {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  color: #4b5563;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}
.nav .nav-drop:hover .nav-drop-trigger,
.nav .nav-drop.open .nav-drop-trigger { color: #2563eb; background: #eff6ff; }
.nav .nav-drop.active .nav-drop-trigger { color: #2563eb; background: #dbeafe;}

.nav .nav-drop:hover .nav-caret,
.nav .nav-drop.open .nav-caret {
  opacity: 1;
  transform: translateX(0) rotate(180deg);
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  margin-top: 0;
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,.12);
  padding: 16px;
  min-width: 580px;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.nav .nav-drop:hover .nav-dropdown,
.nav .nav-drop.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .25s ease, transform .25s ease;
}
.nav-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px 10px;
}
.nav-dropdown-grid a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all .2s ease;
}
.nav-dropdown-grid a:hover { background: #f3f6ff; color: #2563eb; transform: translateX(3px); }
.nav-dropdown-grid a .dd-ico {
  width: 15px;
  height: 15px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
  text-align: center;
  line-height: 26px;
}

/* ===== 首页搜索模块（hero 下方） ===== */
.indexSearch {
  background: #fff;
  padding: 50px 22px;
  margin-bottom: 16px;
  border: 1px solid #e3e8f2;
}
.is-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #f0f2f7;
}
.is-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}
.is-title .iconfont { color: #2563eb; font-size: 18px; }
.is-tip { font-size: 12px; color: #9ca3af; }
.searchType {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.searchType li {
  list-style: none;
  padding: 5px 18px;
  border-radius: 18px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}
.searchType li:hover { color: #2563eb; border-color: #bfdbfe; }
.searchType li.active {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-color: transparent;
  font-weight: 600;
}
.searchDiv {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}
.searchDiv input {
  width: min(540px, 74%);
  flex: none;
  height: 46px;
  padding: 0 20px;
  border: 2px solid #d9e2f2;
  border-radius: 23px;
  font-size: 15px;
  outline: none;
  background: #f8fafc;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.searchDiv input:focus { border-color: #2563eb; background: #fff; }
.searchDiv .btn {
  height: 46px;
  padding: 0 30px;
  border-radius: 23px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37,99,235,.25);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.searchDiv .btn:hover { opacity: .92; transform: translateY(-1px); }
.selectul { display: none; }
.hotRow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.hotLabel {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}
.hotUl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hotUl li {
  list-style: none;
  font-size: 12px;
  color: #6b7280;
  cursor: pointer;
  padding: 3px 12px;
  background: #f3f5f9;
  border-radius: 14px;
  transition: all 0.2s ease;
}
.hotUl li:hover { color: #2563eb; background: #eff6ff; }

/* ===== 新闻资讯模块（广告位上方） ===== */
.umPost {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ebeef5;
  overflow: hidden;
  margin-bottom: 16px;
}
.umNews .title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid #f3f4f6;
}
.umNews .title .tit { font-size: 16px; font-weight: 700; color: #1f2937; }
.umNews .title .sum {
  font-size: 13px;
  color: #2563eb;
  font-weight: 600;
  background: #eff6ff;
  padding: 1px 10px;
  border-radius: 12px;
}
.umNews .title .more { margin-left: auto; font-size: 13px; color: #9ca3af; transition: color .2s; }
.umNews .title .more:hover { color: #2563eb; }
.umNewArr {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.umNewArr .post {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  transition: background 0.25s ease;
  /*cursor: pointer;*/
}
.umNewArr .post:hover { background: #f6f9ff; }
.umNewArr .post:nth-child(3n+1),
.umNewArr .post:nth-child(3n+2) { border-right: 1px solid #f3f4f6; }
.umNewArr .post:nth-child(-n+3) { border-bottom: 1px solid #f3f4f6; }
.post .pic {
  width: 150px;
  height: 100px;
  flex-shrink: 1;
  flex-basis: 150px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
}
.post .pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.umNewArr .post:hover .pic img { transform: scale(1.06); }
.post .text {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post .text .tit {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post .text .tit a { color: inherit; text-decoration: none; transition: color .2s; }
.umNewArr .post .text .tit a:hover,
.umNewArr .post:hover .text .tit a { color: #2563eb; }
.post .text .tit a:hover { color: #2563eb; }
.post .umInfo {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post .info { display: flex; gap: 14px; margin-top: auto; flex-wrap: wrap; }
.post .info em {
  font-style: normal;
  font-size: 12px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 4px;
}
.post .info em .iconfont { font-size: 13px; }
.post .info em.likes .iconfont { color: #ef4444; }

/* ===== 新闻下方双栏小模块（左右一样大 + sum 滚动） ===== */
.mini-mod {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.mini-mod .mm-col {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 12px;
  overflow: hidden;
}
.mini-mod .mm-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
}
.mini-mod .mm-hd h3 { font-size: 15px; font-weight: 700; color: #1f2937; }
.mini-mod .mm-hd .sum {
  font-size: 13px;
  color: #2563eb;
  font-weight: 600;
  background: #eff6ff;
  padding: 1px 10px;
  border-radius: 12px;
}
.mini-mod .mm-hd .more {
  margin-left: auto;
  font-size: 12px;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}
.mini-mod .mm-hd .more:hover { color: #2563eb; }
.mini-mod .mm-list { padding: 4px 0; }
.mini-mod .mm-list li {
  padding: 0;
  border-bottom: 1px solid #f5f6f8;
  list-style: none;
}
.mini-mod .mm-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
}
.mini-mod .mm-list li:last-child { border-bottom: none; }
.mini-mod .mm-t {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-mod .mm-t::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid #c7d2fe;
  margin-right: 7px;
  vertical-align: middle;
  flex-shrink: 0;
  transition: all .25s ease;
}
.mini-mod .mm-d { flex-shrink: 0; font-size: 12px; color: #9ca3af; }
.mini-mod .mm-list li:hover { background: #f8faff; }
.mini-mod .mm-list li:hover .mm-t { color: #2563eb; }
.mini-mod .mm-list li:hover .mm-t::before {
  background: #93c5fd;
  border-color: #2563eb;
}

/* ===== 登录按钮下方下拉面板（大气版） ===== */
.login-drop { position: relative; display: flex; }
.login-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 300px;
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, .18);
  overflow: hidden;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.28s ease;
}
.login-drop.open .login-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.login-panel .lp-hero {
  padding: 22px 24px 18px;
  background: linear-gradient(180deg, #f5f7ff 0%, #fdfdff 100%);
  text-align: center;
  color: #1f2937;
  border-bottom: 1px solid #eef1f8;
}
.login-panel .lp-avatar {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  box-shadow: 0 6px 14px rgba(99, 102, 241, .28);
}
.login-panel .lp-welcome { font-size: 18px; font-weight: 700; color: #1f2937; }
.login-panel .lp-sub { font-size: 12px; color: #8b93a7; margin-top: 4px; }
.login-panel .lp-body { padding: 20px 22px 18px; }
.login-panel .lp-field {
  position: relative;
  margin-bottom: 12px;
}
.login-panel .lp-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  display: flex;
}
.login-panel .lp-ico .iconfont { font-size: 16px; }
.login-panel .lp-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 38px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  background: #f8fafc;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.login-panel .lp-field input:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.login-panel .lp-btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  margin-top: 4px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .25);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.login-panel .lp-btn:hover { opacity: .92; transform: translateY(-1px); }
.login-panel .lp-btn:active { transform: scale(.98); }
.login-panel .lp-links { display: flex; justify-content: space-between; margin-top: 14px; }
.login-panel .lp-links a { font-size: 13px; color: #9ca3af; text-decoration: none; transition: color .2s; }
.login-panel .lp-links a:first-child { color: #2563eb; font-weight: 500; }
.login-panel .lp-links a:hover { color: #7c3aed; }
/* 第三方登录 */
.login-panel .lp-third { margin-top: 18px; }
.login-panel .lp-third-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #a2aab8;
}
.login-panel .lp-third-title::before,
.login-panel .lp-third-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #eef1f8;
}
.login-panel .lp-third-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
}
.login-panel .lp-oauth {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.login-panel .lp-oauth:hover { transform: translateY(-2px); opacity: .9; }
.login-panel .lp-oauth.qq { background: #12a5f4; }
.login-panel .lp-oauth.wechat { background: #07c160; }
.login-panel .lp-oauth.weibo { background: #e6162d; font-size: 13px; }

/* ===== 个人中心下拉面板 ===== */
.user-drop { display: none; }                              /* 默认隐藏 */
.topbar-right.is-login .login-drop { display: none; }      /* 已登录→隐藏登录框 */
.topbar-right.is-login .user-drop { display: flex; }       /* 已登录→显示个人中心 */
.user-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 8px;
  color: #4b5563;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.user-trigger:hover { color: #2563eb; background: #eff6ff; }
.user-trigger .user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  display: grid;
  place-items: center;
}
.user-trigger .user-avatar .iconfont { font-size: 15px; }
.user-trigger .user-caret { font-size: 12px; color: #9ca3af; transition: transform .25s ease; }
.user-drop.open .user-caret { transform: rotate(180deg); }
.user-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 250px;
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
  overflow: hidden;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
}
.user-drop.open .user-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.user-panel .up-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #f1f3f9;
}
.user-panel .up-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.user-panel .up-avatar .iconfont { font-size: 22px; }
.user-panel .up-name { font-size: 15px; font-weight: 700; color: #1f2937; }
.user-panel .up-id { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.user-panel .up-nav { padding: 6px 0; }
.user-panel .up-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.user-panel .up-nav a .iconfont { font-size: 15px; color: #7c8db0; }
.user-panel .up-nav a:hover { background: #f6f9ff; color: #2563eb; }
.user-panel .up-nav a:hover .iconfont { color: #2563eb; }
.user-panel .up-logout {
  display: flex;
  justify-content: center;
  padding: 12px 18px;
  border-top: 1px solid #f1f3f9;
  font-size: 13px;
  color: #ef4444;
  text-decoration: none;
  transition: background 0.2s ease;
}
.user-panel .up-logout:hover { background: #fef2f2; }
/* 两块统一最小占位 + 内容右对齐，切换时位置不突变 */
.topbar-right { position: relative; }
.topbar-right > .login-drop,
.topbar-right > .user-drop {
  min-width: 132px;
  justify-content: flex-end;
}

/* 昵称过长截断为省略号，保证顶栏宽度稳定 */
.user-trigger .user-name {
  display: block;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-panel .up-name { /* 下拉面板里放宽到 150px，同样截断 */
  display: block; max-width: 150px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
