/* ===== 大陶匠首页 - 居中简洁风格 ===== */

/* ===== 英雄区 ===== */
.hero {
  padding: 80px 40px;
  text-align: center;
  background: linear-gradient(180deg, #f5ede0 0%, #faf8f4 100%);
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #3a2a1a;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 18px;
  color: #777;
  margin-bottom: 40px;
}

.hero-search {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
}

.hero-search input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid #ddd;
  border-radius: 24px;
  font-size: 15px;
  outline: none;
}

.hero-search-btn {
  padding: 14px 32px;
  border: none;
  border-radius: 24px;
  background: #8b5a2b;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

/* ===== 数据统计 ===== */
.stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 40px;
  background: #fff;
  border-bottom: 1px solid #f0e8dc;
}

.stat {
  text-align: center;
}

.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: #8b5a2b;
}

.stat-label {
  font-size: 14px;
  color: #999;
  margin-top: 4px;
}

/* ===== 内容区 ===== */
.section {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #3a2a1a;
}

.section-more {
  font-size: 14px;
  color: #8b5a2b;
  text-decoration: none;
}

/* ===== 功能卡片 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #f5ede0, #e8d5b7);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #3a2a1a;
}

.feature-desc {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
}

/* ===== 釉方卡片 ===== */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== 原料卡片 ===== */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.material-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.3s;
}

.material-card:hover {
  transform: translateY(-4px);
}

.material-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #e8d5b7, #d4b896);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.material-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #3a2a1a;
}

.material-desc {
  font-size: 12px;
  color: #999;
  line-height: 1.5;
}

.material-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  background: #f5ede0;
  color: #8b5a2b;
  border-radius: 4px;
  font-size: 11px;
}

.recipe-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.3s;
}

.recipe-card:hover {
  transform: translateY(-4px);
}

.recipe-img {
  height: 180px;
  background: linear-gradient(135deg, #e8d5b7, #d4b896);
  position: relative;
}

.recipe-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.9);
  border-radius: 4px;
  font-size: 12px;
  color: #8b5a2b;
}

.recipe-info {
  padding: 20px;
}

.recipe-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #3a2a1a;
}

.recipe-desc {
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
  line-height: 1.5;
}

.recipe-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #aaa;
}

/* ===== 帖子卡片 ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.post-item {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  gap: 16px;
  cursor: pointer;
}

.post-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8d5b7, #d4b896);
  flex-shrink: 0;
}

.post-info {
  flex: 1;
}

.post-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #f5ede0;
  color: #8b5a2b;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 8px;
}

.post-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  color: #3a2a1a;
}

.post-excerpt {
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
  line-height: 1.5;
}

.post-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #bbb;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #999;
}

/* ===== 响应式 - 平板端 ===== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 40px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recipes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 响应式 - 手机端 ===== */
@media (max-width: 768px) {
  .hero {
    padding: 40px 16px;
  }

  .hero-title {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .hero-search {
    gap: 8px;
  }

  .hero-search input {
    padding: 12px 16px;
    font-size: 14px;
  }

  .hero-search-btn {
    padding: 12px 20px;
    white-space: nowrap;
  }

  .stats {
    gap: 16px;
    padding: 20px 16px;
  }

  .stat-num {
    font-size: 22px;
  }

  .stat-label {
    font-size: 12px;
  }

  .section {
    padding: 32px 16px;
  }

  .section-header {
    margin-bottom: 20px;
  }

  .section-title {
    font-size: 20px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .feature-card {
    padding: 16px 12px;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
  }

  .feature-title {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .feature-desc {
    font-size: 12px;
  }

  .recipes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .material-card {
    padding: 16px 12px;
  }

  .material-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
  }

  .recipe-img {
    height: 140px;
  }

  .recipe-info {
    padding: 14px;
  }

  .recipe-title {
    font-size: 15px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .post-item {
    padding: 14px;
    gap: 12px;
  }

  .post-img {
    width: 64px;
    height: 64px;
  }
}