/* ============================================
   项目列表页样式
   ============================================ */

/* --- 项目卡片网格（2列） --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

/* --- 卡片容器 --- */
.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  transition: box-shadow .3s;
}
.project-card:hover { box-shadow: 0 6px 32px rgba(0,0,0,.12); }
 
/* --- 封面图 --- */
.project-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.project-card:hover .project-img img { transform: scale(1.06); }

/* --- 左上角 Logo --- */
.project-logo {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  background: rgba(255,255,255,.92);
  padding: 10px 18px; border-radius: 8px;
  display: flex; align-items: center;
  min-height: 40px;
}
.project-logo span {
  font-size: 12px; font-weight: 700; color: var(--base);
  white-space: nowrap; letter-spacing: .5px;
}

/* ============================================
   信息栏 — 绝对定位 + 毛玻璃（列表卡片）
   ============================================ */
.card-overlay .project-info {
  position: absolute; left: 0; bottom: 0;
  width: 100%;
  padding: 28px 24px 24px;
  background: rgba(255, 255, 255, .70);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px 20px 0 0;
}

/* --- 标题 --- */
.project-info h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 6px;
}
.project-info h3 a {
  color: var(--base); transition: color .2s;
}
.project-info h3 a:hover { color: var(--lime); }

/* --- 描述 --- */
.project-desc {
  font-size: 13px; color: var(--gray-text); line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

/* --- 底部操作栏 --- */
.project-actions {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}

/* --- Read More 按钮 --- */
.read-more {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 20px;
  background: var(--gray-bg); color: var(--gray-text);
  border: none; border-radius: 50px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.read-more:hover {
  background: var(--lime); color: var(--base);
  padding: 8px 14px 8px 20px;
  box-shadow: 0 6px 20px rgba(185,224,53,.35);
  transform: translateY(-2px);
}
.read-more i {
  font-size: 11px; width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-border); color: var(--gray-text);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.read-more:hover i {
  background: rgba(0,0,0,.18); color: var(--base);
  transform: translateX(3px);
}

/* --- 分享 --- */
.share-wrap { position: relative; }
.share-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: transparent; border: 1.5px solid var(--gray-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; color: var(--gray-text);
  transition: all .3s;
}
.share-btn:hover {
  background: var(--base); color: var(--lime);
  border-color: var(--base);
}
.share-popup {
  position: absolute; bottom: 50px; right: 0;
  display: flex; gap: 6px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all .3s; z-index: 10;
}
.share-wrap.active .share-popup {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.share-popup a {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff;
  transition: transform .25s;
}
.share-popup a:hover { transform: scale(1.15); }
.share-fb   { background: #1877f2; }
.share-tw   { background: #1da1f2; }
.share-li   { background: #0a66c2; }
.share-link { background: var(--gray-dark); }

/* --- Pagination --- */
.pagination {
  display: flex; justify-content: center;
  align-items: center; gap: 6px;
  list-style: none; padding: 0;
}
.pagination li { display: flex; }
.pagination li a,
.pagination li span {
  width: 40px; height: 40px;
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--gray-border);
  background: #fff; color: var(--gray-dark);
  border-radius: 50%;
  transition: all 0.25s;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.pagination li.active span {
  background: var(--lime); color: var(--base);
  border-color: var(--lime);
}
.pagination li a:hover {
  background: var(--lime); color: var(--base);
  border-color: var(--lime);
}

/* --- Detail Top Bar --- */
.detail-topbar {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 24px;
}
.detail-topbar .back-link {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--base);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--base);
  transition: all 0.3s;
}
.detail-topbar .back-link:hover {
  background: var(--base); color: var(--lime);
}

/* --- Detail Top Bar Share --- */
.detail-share { position: relative; }
.detail-share .detail-share-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 2px solid var(--base);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; color: var(--base);
  transition: all 0.3s;
}
.detail-share .detail-share-btn:hover {
  background: var(--base); color: var(--lime);
}
.detail-share .share-popup {
  position: absolute; top: 52px; right: 0;
  display: flex; gap: 6px;
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: all 0.3s; z-index: 10;
}
.detail-share.active .share-popup {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.detail-share .share-popup a {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; transition: all 0.25s;
}
.detail-share .share-popup a:hover { transform: scale(1.15); }
