/* ===== 详情页特有样式 ===== */



/* Main Layout */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}
.main-content { min-width: 0; }

/* Detail Card */
.detail-card {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 10px;
  padding: 28px 32px;
  margin-bottom: 16px;
}
.detail-head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.site-icon {
  width: 300px;
  height: 190px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border: 1px solid #e0e7ff;
  flex-shrink: 0;
  color: #94a3b8;
  font-size: 14px;
}
.site-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.site-icon .shot-tip { position: relative; z-index: 1; }
.site-main { flex: 1; min-width: 0; }
.site-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.site-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.5px;
  white-space: nowrap;      /* 不换行 */
  overflow: hidden;         /* 超出隐藏 */
  text-overflow: ellipsis;  /* 超出显示省略号 */
}
.site-title m{
        color: #4091e7;
}
.site-domain-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #6b7280;
}
.site-domain-row a { color: #2563eb; font-weight: 500; }
.site-domain-row a:hover { text-decoration: underline; }
.site-domain-row .iconfont { font-size: 14px; }
.site-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stars {
  color: #d4a017;
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1;
}
.rating-num { font-size: 18px; font-weight: 700; color: #d4a017; }
.rating-count { font-size: 12px; color: #9ca3af; }
.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

/* Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #ebeef5;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid #ebeef5;
}
.stat-item {
  background: #fff;
  padding: 18px 16px;
  text-align: center;
}
.stat-label { font-size: 12px; color: #9ca3af; margin-bottom: 4px; }
.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.stat-value.blue { color: #2563eb; }
.stat-value.amber { color: #d97706; }
.stat-value.green { color: #16a34a; }

/* Info Grid（三列信息卡） */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 24px;
  margin-top: 20px;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}
.info-item .info-label {
  font-size: 13px;
  color: #6b7280;
  flex-shrink: 0;
}
.info-item .info-value {
  font-size: 14px;
  color: #1f2937;
  font-weight: 500;
  min-width: 0;
}
.info-item .info-value a { color: #2563eb; }
.info-item .info-value a:hover { text-decoration: underline; }

/* Description */
.desc-text {
  color: #4b5563;
  line-height: 1.85;
  font-size: 14px;
}
.desc-text p { margin-bottom: 12px; }
.desc-text p:last-child { margin-bottom: 0; }
.desc-text strong { color: #111827; font-weight: 600; }
.desc-text .hl {
  background: #fef3c7;
  padding: 1px 5px;
  border-radius: 3px;
  color: #92400e;
  font-weight: 500;
}
.feature-list {
  margin-top: 12px;
  padding-left: 4px;
}
.feature-list li {
  padding: 4px 0 4px 18px;
  position: relative;
  color: #4b5563;
  font-size: 13.5px;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: #2563eb;
  border-radius: 50%;
}

/* Chart（ECharts 人气走势） */
.trend-chart {
  width: 100%;
  height: 280px;
}

/* Related Sites */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.related-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 22px 20px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-logo {
  width: 100%;
  max-width: 200px;
  height: 90px;
  max-height: 100%;


  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;

  overflow: hidden;
}
.related-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 200px;
  max-height: 100%;
  object-fit: contain;
  background: #fff;
  box-sizing: border-box;
}
.related-logo .logo-char { position: relative; z-index: 1; }
.related-info { width: 100%; max-width: 100%; }
.related-name {
  font-size: 16px;
  color: #1f2937;
  margin: 0 auto 4px;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.related-desc {
  font-size: 13px;
  color: #9ca3af;
  max-width: 100%;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

/* Sidebar */
.sidebar { min-width: 0; }
.side-card {
  padding: 18px 20px;
  margin-bottom: 16px;
}
.side-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 6px;
}
.side-title .iconfont { color: #2563eb; font-size: 16px; }
.side-title .na-more {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
  text-decoration: none;
  transition: color .2s ease;
}
.side-title .na-more:hover { color: #2563eb; }
/* 最新文章列表（复用首页“今日热门”小圆点 + hover 填充特效） */
.latest-list { padding: 4px 0 8px; }
.latest-list li {
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #f5f6f8;
}
.latest-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;
}
.latest-list li:last-child { border-bottom: none; }
.latest-list .ll-t {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.latest-list .ll-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;
}
.latest-list .ll-d { flex-shrink: 0; font-size: 12px; color: #9ca3af; }
.latest-list li:hover { background: #f8faff; }
.latest-list li:hover .ll-t { color: #2563eb; }
.latest-list li:hover .ll-t::before { background: #93c5fd; border-color: #93c5fd; }
/* 广告位（预留）—— 虚线占位，可替换为真实广告图 */
.side-ad {
  position: relative;
  margin-bottom: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}
.side-ad .sa-tag {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0,0,0,.06);
  color: #6b7280;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 0 0 6px 0;
}
.side-ad .sa-inner {
  height: 170px;
  border: 1.5px dashed #d1d5db;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9ca3af;
}
.side-ad .sa-icon { font-size: 30px; }
.side-ad .sa-title { font-size: 14px; color: #6b7280; margin: 0; }
.side-ad .sa-size { font-size: 12px; color: #c0c4cd; }
.side-rank-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #f0f0f0;
  transition: all 0.2s;
}
.side-rank-list li:last-child { border-bottom: none; }
.side-rank-list li:hover { padding-left: 4px; }
.side-rank-list li:hover .side-rank-name { color: #2563eb; }
.rank-num {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rank-num.top1 { background: #fef3c7; color: #b45309; }
.rank-num.top2 { background: #f3f4f6; color: #6b7280; }
.rank-num.top3 { background: #fef3c7; color: #d97706; }
.side-rank-name {
  flex: 1;
  font-size: 13px;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.side-rank-heat { font-size: 12px; color: #9ca3af; flex-shrink: 0; }

/* Ad placeholder */
.ad-box {
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}
.ad-box .ad-label {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
  font-size: 11px;
  color: #78350f;
  margin-bottom: 8px;
}
.ad-box h4 { font-size: 15px; color: #78350f; margin-bottom: 4px; }
.ad-box p { font-size: 12px; color: #92400e; opacity: 0.8; }

/* Quick links */
.quick-links { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-links a {
  padding: 5px 10px;
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 4px;
  font-size: 12px;
  transition: all 0.2s;
}
.quick-links a:hover { background: #2563eb; color: #fff; }

/* 评论模块 */
.comment-section .section-bd { padding: 0; }
.comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid #f3f4f6;
}
.comment-head .count {
  font-size: 12px;
  color: #3b82f6;
  background: #eff6ff;
  padding: 1px 10px;
  border-radius: 12px;
}
.comment-head .write-btn {
  margin-left: auto;
  padding: 7px 18px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  border: none;
  border-radius: 18px;
  cursor: pointer;
  transition: opacity .2s;
}
.comment-head .write-btn:hover { opacity: .9; }
.comment-list { padding: 4px 18px; }
.comment-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #f5f6f8;
}
.comment-item:last-child { border-bottom: none; }
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}
.comment-avatar.c2 { background: linear-gradient(135deg, #10b981, #34d399); }
.comment-avatar.c3 { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.comment-main { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-name { font-size: 13px; font-weight: 600; color: #1f2937; }
.comment-time { font-size: 12px; color: #9ca3af; }
.comment-text { font-size: 13px; color: #4b5563; line-height: 1.7; }
.comment-actions { display: flex; gap: 16px; margin-top: 10px; }
.comment-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .2s;
}
.comment-actions button:hover { color: #3b82f6; }
.comment-actions .like-btn.active { color: #ef4444; }
.comment-compose {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-top: 1px solid #f3f4f6;
  align-items: flex-start;
}
.comment-compose .compose-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}
.comment-compose textarea {
  flex: 1;
  min-height: 64px;
  resize: none;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
}
.comment-compose textarea:focus { border-color: #3b82f6; }
.comment-compose .send {
  align-self: flex-end;
  padding: 8px 22px;
  font-size: 13px;
  color: #fff;
  background: #3b82f6;
  border: none;
  border-radius: 18px;
  cursor: pointer;
}
.comment-compose .send:hover { opacity: .9; }
/* 层级回复 */
.comment-reply {
  margin: 10px 0 0 52px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #dbeafe;
}
.comment-reply .cr-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.comment-reply .cr-name { font-size: 12px; font-weight: 600; color: #3b82f6; }
.comment-reply .cr-time { font-size: 11px; color: #9ca3af; }
.comment-reply .cr-text { font-size: 13px; color: #4b5563; line-height: 1.6; }
.comment-reply .cr-actions { display: flex; gap: 14px; margin-top: 6px; }
.comment-reply .cr-actions button {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px;
  color: #9ca3af; background: none; border: none; cursor: pointer; transition: color .2s;
}
.comment-reply .cr-actions button:hover { color: #3b82f6; }

/* 侧边 Tab 排行（文章/软件） —— 复刻 qqziyuan umAppTabs */
.widget.umAppTabs {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 10px;
  padding: 20px 22px 18px;
  margin-bottom: 16px;
}
.widget.umAppTabs .umTabe {
  margin-bottom: 6px;
  overflow: hidden;
  font-size: 0;
  border-bottom: 1px solid #f2f3f7;
  text-align: center;
}
.widget.umAppTabs .umTabe li {
  display: inline-block;
  height: 36px;
  line-height: 36px;
  padding: 0 6px 0 2px;
  font-size: 15px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  position: relative;
  margin-right: 22px;
}
.widget.umAppTabs .umTabe li.active { color: #2563eb; }
.widget.umAppTabs .umTabe li.active::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 6px;
  bottom: -1px;
  height: 2px;
  background: #2563eb;
  border-radius: 2px;
}
.widget.umAppTabs .umTabeCon { padding: 0; background: none; min-height: auto; }
.umAppTabs .umAppTops { counter-reset: sectioncounter; display: none; }
.umAppTabs .umAppTops:first-child { display: block; }
.umAppTabs .umAppTops li {
  position: relative;
  font-size: 14px;
  width: 100%;
  height: 20px;
  line-height: 20px;
  margin: 14px 0 6px;
  padding-left: 32px;
  overflow: hidden;
  white-space: normal;
}
.umAppTabs .umAppTops li .pic {
  width: 68px;
  height: 68px;
  display: none;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.umAppTabs .umAppTops li .pic a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
}
.umAppTabs .umAppTops li.on { height: 68px; line-height: 20px; }
.umAppTabs .umAppTops li.on .pic { display: flex; float: left; }
.umAppTabs .umAppTops li.on .text {
  overflow: hidden;
  padding-left: 15px;
  margin-top: 8px;
}
.umAppTabs .umAppTops li.on .tit { width: 100%; padding-right: 0; line-height: 20px; margin-bottom: 5px; }
.umAppTabs .umAppTops li.on .divTit { padding-top: 0; width: 100%; text-align: left; }
.umAppTabs .umAppTops .tit {
  display: inline-block;
  width: 72%;
  padding-right: 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: middle;
  font-weight: 500;
  color: #374151;
}
.umAppTabs .umAppTops .tit a:hover { color: #2563eb; }
.umAppTabs .umAppTops .divTit {
  font-size: 12px;
  opacity: .4;
  overflow: hidden;
  height: 20px;
  line-height: 20px;
  display: inline-block;
  width: 28%;
  text-align: right;
  vertical-align: middle;
}
.umAppTabs .umAppTops li::before {
  content: counter(sectioncounter);
  counter-increment: sectioncounter;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  position: absolute;
  background: rgba(233, 234, 240, 1);
  color: #666;
  top: 0;
  left: 0;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50px;
}
.umAppTabs .umAppTops li.on::before { height: 68px; line-height: 68px; }
.umAppTabs .umAppTops li:nth-child(1)::before,
.umAppTabs .umAppTops li:nth-child(2)::before,
.umAppTabs .umAppTops li:nth-child(3)::before { color: #fff; }
.umAppTabs .umAppTops li:nth-child(1)::before { background: #ff3a3a; }
.umAppTabs .umAppTops li:nth-child(2)::before { background: #ff9e20; }
.umAppTabs .umAppTops li:nth-child(3)::before { background: #dbad42; }