/* 首页特有样式 */
.banner-section {
  margin-top: 30px;
}

.swiper {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.article-list {
  margin-top: 30px;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.article-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255, 140, 0, 0.2);
}

.article-list-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.article-list-more {
  font-size: 13px;
  color: #ff8c00;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.article-list-more:hover {
  background: rgba(255, 140, 0, 0.1);
  border-color: rgba(255, 140, 0, 0.5);
}

.article-list-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.article-item {
  display: block;
  padding: 16px;
  border-radius: 12px;
  background: #f8f9fa;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-item:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 140, 0, 0.2);
}

.article-item-title {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-item:hover .article-item-title {
  color: #ff8c00;
}

.article-item-meta {
  font-size: 12px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.swiper-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.swiper-slide:hover::before {
  opacity: 1;
}

.swiper-slide:hover {
  transform: scale(1.02);
}

.swiper-slide > div {
  text-align: center;
  z-index: 1;
  padding: 20px;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.swiper-slide h2 {
  font-size: 42px;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.5px;
}

.swiper-slide p {
  font-size: 20px;
  opacity: 0.95;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  font-weight: 300;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.swiper-pagination-bullet {
  background: white;
  opacity: 0.6;
  width: 10px;
  height: 10px;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  width: 24px;
  border-radius: 5px;
}

/* 标题样式 */
.section-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0 25px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  position: relative;
  padding-left: 15px;
  margin: 0;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 28px;
  background: linear-gradient(135deg, #ff8c00 0%, #ff6b35 100%);
  border-radius: 2px;
}

.section-more {
  font-size: 14px;
  color: #ff8c00;
  text-decoration: none;
  padding: 6px 16px;
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.section-more:hover {
  background: rgba(255, 140, 0, 0.1);
  border-color: rgba(255, 140, 0, 0.5);
}

/* 应用网格 */
.app-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 20px;
  margin-bottom: 40px;
}

@media (max-width: 1400px) {
  .app-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .app-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
}

/* 应用卡片 */
.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 12px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.app-item:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 140, 0, 0.2);
}

/* 应用图标 */
.app-icon {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

.app-item:hover .app-icon {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 应用信息 */
.app-info {
  width: 100%;
}

.app-info h3 {
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1a1a1a;
  transition: color 0.3s ease;
}

.app-item:hover .app-info h3 {
  color: #ff8c00;
}

.app-info p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.top-apps {
  display: flex;
  justify-content: space-between;
}

.top-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 20px;
}

.top-item img {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  margin-bottom: 6px;
}

.app-grid-mini {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.app-mini-item {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 5px 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.app-mini-item:hover {
  background: #ff8c00;
  color: #fff;
}
