/* 首页样式 - home.css */

/* 右侧内容区域 */
.right-content {
  flex: 1;
  overflow-y: auto;
  background: #f8f9fa;
}

/* 内容区域布局 */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

.full-width-content {
  width: 100%;
}

.split-content {
  display: flex;
  gap: 24px;
  padding: 0 24px 24px 24px;
}

.featured-sections {
  flex: 1;
  overflow-y: auto;
}

.sidebar-recommendations {
  width: 320px;
  flex-shrink: 0;
  background: white;
  border-radius: 16px;
  padding: 20px;
  height: fit-content;
  align-self: flex-start;
}

/* 主要横幅样式 */
.main-banner {
  margin: 24px 24px 32px 24px;
}

.banner-bg-new {
  background: linear-gradient(135deg, #e8f5e8, #f0f8ff);
  border-radius: 20px;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.banner-content-new {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.banner-icon {
  margin-bottom: 20px;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #4a70ff, #25f4a0);
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(74, 112, 255, 0.3);
}

.banner-main-icon {
  width: 40px;
  height: 40px;
  color: white;
}

.banner-main-title {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 20px 0 16px 0;
  line-height: 1.2;
}

.highlight-green {
  color: #22c55e;
}

.banner-main-subtitle {
  font-size: 18px;
  color: #666;
  margin: 0;
  font-weight: 500;
}

.banner-decorations {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.decoration-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 10%;
  right: 10%;
  animation-delay: -2s;
}

.shape-2 {
  width: 60px;
  height: 60px;
  top: 70%;
  right: 20%;
  animation-delay: -4s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  top: 30%;
  left: 10%;
  animation-delay: -1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* 快速创建区域 */
.quick-create-section {
  margin: 0 24px 40px 24px;
}

.section-title-main {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 20px;
}

.quick-create-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.quick-create-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.quick-create-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.card-image {
  height: 140px;
  position: relative;
  overflow: hidden;
}

.card-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-restaurant {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.bg-study {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.bg-art {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.card-content {
  padding: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-tags {
  display: flex;
  gap: 6px;
}

.tag-item {
  background: #f3f4f6;
  color: #6b7280;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.card-author {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #9ca3af;
}

.author-icon {
  width: 12px;
  height: 12px;
}

.card-description {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-category {
  margin-top: 8px;
}

.category-tag {
  background: #ecfdf5;
  color: #059669;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

/* 特色区域 */
.featured-section {
  margin-bottom: 40px;
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.public-account-section {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.brand-section {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
}

.premium-section {
  background: linear-gradient(135deg, #2d3748, #4a5568);
  color: white;
}

.section-header-large {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 20px;
}

.section-icon-container {
  position: relative;
}

.section-icon-large {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.section-icon-svg {
  width: 40px;
  height: 40px;
  color: white;
}

.section-text {
  flex: 1;
}

.section-main-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.section-description {
  font-size: 14px;
  opacity: 0.8;
  margin: 0;
}

.featured-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.app-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.app-icon-svg {
  width: 24px;
  height: 24px;
  color: white;
}

/* 右侧推荐列表 */
.recommendations-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f3f4;
}

.recommendations-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.view-more {
  font-size: 14px;
  color: #12b886;
  text-decoration: none;
  font-weight: 500;
}

.recommendation-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #f1f3f4;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.recommendation-item:hover {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px 12px;
}

.recommendation-item:last-child {
  border-bottom: none;
}

.rec-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.rec-content {
  flex: 1;
}

.rec-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.rec-author {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 8px 0;
}

.rec-description {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.4;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rec-stats {
  display: flex;
  gap: 12px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #9ca3af;
}

.stat-icon {
  width: 12px;
  height: 12px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .split-content {
    flex-direction: column;
  }
  
  .sidebar-recommendations {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .banner-bg-new {
    padding: 40px 20px;
  }

  .banner-main-title {
    font-size: 24px;
  }

  .quick-create-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid {
    justify-content: center;
  }
}