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

/* Hero 区域 */
.hero {
  background: linear-gradient(135deg, #1A2A3A 0%, #0D1B2A 100%);
  color: #fff;
  text-align: center;
  padding: 80px 20px 60px;
  border-radius: 8px;
  margin-bottom: 40px;
}

.hero h1 {
  color: #fff;
  font-size: 2.5em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-subtitle {
  color: #ccc;
  font-size: 1.2em;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 筒仓入口区 */
.hub-section {
  padding: 40px 0;
  text-align: center;
}

.hub-section h2 {
  font-size: 2em;
  margin-bottom: 32px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.hub-card {
  background: #fff;
  border-radius: 8px;
  padding: 32px 24px;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(26, 42, 58, 0.12);
  text-decoration: none;
}

.hub-icon {
  font-size: 3em;
  margin-bottom: 16px;
}

.hub-card h3 {
  color: #1A2A3A;
  margin-bottom: 12px;
  font-size: 1.3em;
}

.hub-card p {
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.hub-link {
  color: #E85D04;
  font-weight: 600;
}

/* 精选内容区 */
.featured-section {
  padding: 40px 0;
}

.featured-section h2 {
  font-size: 2em;
  margin-bottom: 8px;
  text-align: center;
}

.section-intro {
  color: #666;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.featured-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(26, 42, 58, 0.1);
  text-decoration: none;
}

.featured-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.featured-content {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.featured-score {
  display: inline-block;
  background: #E85D04;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85em;
  margin-bottom: 8px;
  align-self: flex-start;
}

.featured-card h3 {
  color: #1A2A3A;
  margin-bottom: 8px;
  font-size: 1.1em;
  line-height: 1.4;
}

.featured-summary {
  color: #555;
  font-size: 0.9em;
  line-height: 1.5;
  flex-grow: 1;
}

.featured-category {
  color: #999;
  font-size: 0.8em;
  margin-top: 8px;
}

/* 最新文章区 */
.latest-section {
  padding: 40px 0;
}

.latest-section h2 {
  font-size: 2em;
  margin-bottom: 32px;
  text-align: center;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.latest-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  transition: border-color 0.2s ease;
}

.latest-card:hover {
  border-color: #E85D04;
  text-decoration: none;
}

.latest-date {
  color: #999;
  font-size: 0.85em;
}

.latest-card h3 {
  color: #1A2A3A;
  margin: 8px 0;
  font-size: 1.05em;
  line-height: 1.4;
}

.latest-card p {
  color: #555;
  font-size: 0.9em;
  line-height: 1.5;
}

/* 信任区 */
.trust-section {
  padding: 60px 0;
  background: #f5f5f0;
  border-radius: 8px;
  margin: 40px 0;
  text-align: center;
}

.trust-section h2 {
  font-size: 2em;
  margin-bottom: 32px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.trust-item {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
}

.trust-icon {
  font-size: 2em;
  display: block;
  margin-bottom: 12px;
}

.trust-item h3 {
  color: #1A2A3A;
  margin-bottom: 8px;
  font-size: 1.1em;
}

.trust-item p {
  color: #555;
  font-size: 0.9em;
  line-height: 1.6;
}

/* 作者迷你卡片区 */
.authors-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto 32px;
  padding: 0 20px;
}

.author-mini-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 250px;
  max-width: 280px;
  text-align: left;
}

.author-mini-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-mini-card strong {
  color: #1A2A3A;
  display: block;
  margin-bottom: 4px;
}

.author-mini-card p {
  color: #666;
  font-size: 0.85em;
  line-height: 1.4;
  margin: 0;
}

/* 响应式 */
@media (max-width: 768px) {
  .hero {
    padding: 60px 16px 40px;
  }
  .hero h1 {
    font-size: 1.8em;
  }
  .hub-grid,
  .featured-grid,
  .latest-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .authors-mini {
    flex-direction: column;
    align-items: center;
  }
  .author-mini-card {
    max-width: 100%;
  }
}