/* ===================================
   Sixlog 首页样式 - 现代化设计
   =================================== */

/* ===================================
   1. 主容器样式
   =================================== */
.home-main {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  min-height: 100vh;
  padding: 0;
}

/* 覆盖 body 背景 */
body {
  background: #f8fafc !important;
}

/* 确保主容器占满屏幕 */
body > main {
  background: transparent !important;
}

body > main > .home-main {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
}

/* ===================================
   2. 轮播图区域
   =================================== */
.hero-section {
  padding: 0;
  margin-bottom: 0;
}

.hero-slider-wrapper {
  position: relative;
}

.hero-slider-container {
  position: relative;
  height: 480px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.15);
  background: #f1f5f9;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slide-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 8s ease-out;
}

.slide.active .slide-image {
  transform: scale(1.05);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.1) 70%,
    transparent 100%
  );
}

.slide-content-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 48px;
  z-index: 2;
}

.slide-content {
  max-width: 600px;
  animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  color: white;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.slide-title {
  font-size: 36px;
  font-weight: 700;
  color: white;
  line-height: 1.3;
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: white;
  color: #2A5DAA;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slide-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: #2A5DAA;
  color: white;
}

.slide-cta i {
  transition: transform 0.3s;
}

.slide-cta:hover i {
  transform: translateX(4px);
}

/* 轮播控制按钮 */
.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  pointer-events: none;
  z-index: 10;
}

.slider-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  color: #2A5DAA;
  font-size: 18px;
  transition: all 0.3s;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-btn:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* 轮播指示点 */
.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.slider-dot.active {
  width: 24px;
  border-radius: 4px;
  background: white;
}

/* ===================================
   3. 内容区域
   =================================== */
.content-section {
  background: transparent;
}

/* 章节标题 */
.section-header {
  margin-bottom: 32px;
}

.section-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
}

.title-decorator {
  width: 4px;
  height: 32px;
  background: linear-gradient(180deg, #2A5DAA 0%, #4B8CD7 100%);
  border-radius: 2px;
}

.title-text {
  position: relative;
}

.section-subtitle {
  font-size: 14px;
  color: #64748b;
  margin-left: 16px;
}

/* ===================================
   4. 文章卡片
   =================================== */
.articles-grid {
  display: grid;
  gap: 24px;
}

.article-card {
  position: relative;
  background: white !important;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e1;
}

.article-link {
  display: block;
  padding: 24px;
  color: inherit;
  text-decoration: none;
}

.article-content {
  position: relative;
  z-index: 1;
}

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

.article-card:hover .article-title {
  color: #2A5DAA;
}

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

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #94a3b8;
}

.meta-item i {
  font-size: 14px;
}

.article-hover-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2A5DAA 0%, #4B8CD7 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .article-hover-effect {
  transform: scaleX(1);
}

/* 空状态 */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: 12px;
  border: 2px dashed #e2e8f0;
}

.empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 50%;
}

.empty-icon i {
  font-size: 36px;
  color: #94a3b8;
}

.empty-text {
  font-size: 18px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}

.empty-subtext {
  font-size: 14px;
  color: #94a3b8;
}

/* ===================================
   5. 分页
   =================================== */
.pagination {
  margin-top: 48px;
}

.pagination .pagination-list {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.pagination .pagination-list li {
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  list-style: none !important;
}

.pagination-btn,
.pagination-number {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 16px !important;
  background: white !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  color: #475569 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all 0.2s !important;
  text-decoration: none !important;
  gap: 6px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  float: none !important;
}

.pagination-btn:hover,
.pagination-number:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.pagination-number.active {
  background: linear-gradient(135deg, #2A5DAA 0%, #4B8CD7 100%);
  border-color: #2A5DAA;
  color: white;
  font-weight: 600;
}

.pagination-number.active:hover {
  transform: translateY(0);
}

/* ===================================
   6. 侧边栏
   =================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: white !important;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
}

.sidebar-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.sidebar-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f1f5f9;
}

.card-icon {
  font-size: 18px;
  color: #2A5DAA;
}

.card-title {
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

/* 搜索表单 */
.search-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-input-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #1e293b;
  transition: all 0.3s;
  background: #f8fafc;
}

.search-input:focus {
  outline: none;
  border-color: #2A5DAA;
  background: white;
  box-shadow: 0 0 0 3px rgba(42, 93, 170, 0.1);
}

.search-input::placeholder {
  color: #94a3b8;
}

.home-search-btn {
  width: 100% !important;
  padding: 12px !important;
  background: linear-gradient(135deg, #2A5DAA 0%, #4B8CD7 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  line-height: 1.5 !important;
  white-space: nowrap !important;
}

.home-search-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(42, 93, 170, 0.3) !important;
}

/* 热门列表 */
.hot-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hot-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.3s;
  text-decoration: none;
}

.hot-item:hover {
  background: #f8fafc;
}

.hot-rank {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
}

.hot-rank.rank-1 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.hot-rank.rank-2 {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.3);
}

.hot-rank.rank-3 {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(251, 146, 60, 0.3);
}

.hot-rank.rank-4,
.hot-rank.rank-5 {
  background: #f1f5f9;
  color: #64748b;
}

.hot-content {
  flex: 1;
  min-width: 0;
}

.hot-title {
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}

.hot-item:hover .hot-title {
  color: #2A5DAA;
}

.hot-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #94a3b8;
}

.hot-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 统计卡片 */
.stats-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #bae6fd;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2A5DAA 0%, #4B8CD7 100%);
  border-radius: 10px;
  color: white;
  font-size: 20px;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #2A5DAA;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: #64748b;
}

/* 友情链接 */
.links-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #475569;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s;
}

.link-item:hover {
  background: white;
  border-color: #2A5DAA;
  color: #2A5DAA;
  transform: translateX(4px);
}

.link-text {
  flex: 1;
}

.link-icon {
  font-size: 12px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.link-item:hover .link-icon {
  opacity: 1;
}

/* ===================================
   7. 响应式设计
   =================================== */
@media (max-width: 1024px) {
  .hero-slider-container {
    height: 400px;
  }
  
  .slide-title {
    font-size: 28px;
  }
  
  .slide-content-wrapper {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .hero-slider-container {
    height: 320px;
    border-radius: 12px;
  }
  
  .slide-title {
    font-size: 22px;
  }
  
  .slide-content-wrapper {
    padding: 24px;
  }
  
  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .section-title {
    font-size: 22px;
  }
  
  .title-decorator {
    height: 24px;
  }
  
  .article-title {
    font-size: 18px;
  }
  
  .sidebar {
    margin-top: 24px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-slider-container {
    height: 280px;
  }
  
  .slide-title {
    font-size: 20px;
  }
  
  .slide-badge {
    font-size: 12px;
    padding: 4px 12px;
  }
  
  .slide-cta {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .pagination-btn,
  .pagination-number {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }
}
