/*
 Theme Name:   mpoll-2026 优化测试版
 Theme URI:    https://www.mpoll.top
 Description:  mpoll.top 2026 布局优化测试主题，基于 jianlan-cms 子主题
 Author:       mpoll.top Team
 Author URI:   https://www.mpoll.top
 Template:     jianlan-cms
 Version:      1.0.0
 License:      GPL v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         ai, technology, blog, responsive
 Text Domain:  mpoll-2026
*/

/* ===== 优化测试样式 ===== */

/* 公告栏样式 */
.site-notice-bar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
}

/* Hero Banner 轮播卡片 */
.hero-banner {
  background: #f8fafc;
  padding: 40px 0;
}

.hero-carousel {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.hero-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.hero-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.hero-card-content {
  padding: 20px;
}

.hero-card-title {
  font-size: 18px;
  font-weight: bold;
  color: #1e293b;
  margin-bottom: 10px;
}

.hero-card-btn {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
}

/* 面包屑导航 */
.breadcrumb-nav {
  background: #f8fafc;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}

.breadcrumb-nav a {
  color: #2563eb;
  text-decoration: none;
}

/* 现代化文章卡片 */
.article-card-modern {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  margin-bottom: 20px;
}

.article-card-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.category-tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.tag-tutorial { background: #dbeafe; color: #1e40af; }
.tag-review { background: #d1fae5; color: #065f46; }
.tag-news { background: #ffedd5; color: #9a3412; }

/* 侧边栏模块 */
.sidebar-module {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 热门标签云 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud-item {
  padding: 6px 12px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
}

.tag-cloud-item:hover {
  background: #2563eb;
  color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
  .hero-carousel { grid-template-columns: 1fr; }
  .sidebar-col { display: none; }
}

/* Hero Banner 增强样式 */
.hero-banner {
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  padding: 50px 0;
  margin-bottom: 40px;
}

.hero-carousel {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  padding: 0 20px;
}

.hero-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.hero-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15);
}

.hero-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-card:hover img {
  transform: scale(1.05);
}

.hero-card-content {
  padding: 24px;
}

.hero-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  line-height: 1.4;
}

.hero-card-excerpt {
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-card-btn {
  display: inline-block;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.hero-card-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* 文章卡片增强 */
.article-card-modern {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  margin-bottom: 25px;
}

.article-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.article-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card-modern:hover .article-card-image {
  transform: scale(1.03);
}

.category-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-tutorial { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); color: #1e40af; }
.tag-review { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); color: #065f46; }
.tag-news { background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%); color: #9a3412; }
.tag-model { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); color: #5b21b6; }

.read-time {
  color: #94a3b8;
  font-size: 12px;
}

.article-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.article-card-modern:hover .article-card-title {
  color: #2563eb;
}

.article-card-excerpt {
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
  color: #94a3b8;
}

.article-card-author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-card-stats {
  display: flex;
  gap: 18px;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .hero-carousel {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  
  .site-header-modern nav,
  .site-header-modern .header-search {
    display: none;
  }
  
  .article-card-modern {
    margin-bottom: 20px;
  }
}
