/* 页面主布局 */
.page-layout {
  display: flex;
  gap: 24px;
  margin-top: 30px;
}

/* 左侧导航 */
.side-nav {
  width: 180px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  height: fit-content;
  background: #fff;
  border-radius: 6px;
  padding: 16px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.side-nav-title {
  font-size: 14px;
  font-weight: 600;
  color: #888;
  padding: 8px 20px;
  margin-bottom: 8px;
}

.side-nav a {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  color: #333;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.side-nav a:hover {
  background: #f5f3ff;
  color: #1e40af;
  border-left-color: #1e40af;
}

.side-nav a.active {
  background: #f5f3ff;
  color: #1e40af;
  border-left-color: #1e40af;
  font-weight: 500;
}

/* 主内容区 */
.main-content {
  flex: 1;
  min-width: 0;
}

/* 首页特有样式 */
.banner-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.swiper {
  width: 100%;
  height: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.article-list {
  width: 100%;
  background: #fff;
  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(102, 126, 234, 0.2);
}

.article-list-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.article-list-more {
  font-size: 13px;
  color: #667eea;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.article-list-more:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.5);
}

.article-list-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.article-item {
  display: block;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.article-item-title {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 8px;
  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: #667eea;
}

@media (max-width: 768px) {
  .page-layout {
    flex-direction: column;
  }

  .side-nav {
    display: none;
  }

  .swiper {
    height: 250px;
  }

  .article-list-content {
    grid-template-columns: 1fr;
  }
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  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;
}

.sect-container{
  background: #fff;
  padding: 20px;
  margin: 30px 0;
}

/* 标题样式 */
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 25px;
  position: relative;
  padding-left: 15px;
}

/* 应用网格 */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 5px;
}

.app-grid .card {
  background: #f8f8f8;
}

/* 应用卡片 */
.app-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.app-item:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: rgba(102, 126, 234, 0.2);
}

/* 应用图标 */
.app-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  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;
  flex-shrink: 0;
}

.app-item:hover .app-icon {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 应用信息 */
.app-info {
  flex: 1;
  min-width: 0;
}

.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: #667eea;
}

.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;
}

.app-grid-mini{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
}

.app-grid-mini .card{
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;
}
.app-grid-mini .card h3{
  font-size: 18px;
  font-weight: 400;
}
