/* ============ 首页专属样式 Skill Masters Academy ============ */

/* ============ Hero 全宽通栏大图 ============ */
.c8ea7a-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 78vh;
  min-height: 480px;
  overflow: hidden;
}

.c8ea7a-hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 6s ease;
}

.c8ea7a-hero:hover .c8ea7a-hero-media { transform: scale(1.05); }

.c8ea7a-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,17,13,0.1) 30%, rgba(16,17,13,0.88) 100%);
  display: flex;
  align-items: flex-end;
}

.c8ea7a-hero-caption {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 26px 48px;
  width: 100%;
}

.c8ea7a-hero-caption .c8ea7a-card-cat {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--accent);
  margin-bottom: 14px;
}

.c8ea7a-hero-title {
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  max-width: 720px;
}

.c8ea7a-hero-title a { color: #fff; }
.c8ea7a-hero-title a:hover { color: var(--accent); opacity: 1; }

.c8ea7a-hero-meta {
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============ 作者/创始人简介微卡片 ============ */
.c8ea7a-founder {
  padding: 46px 0 10px;
  text-align: center;
}

.c8ea7a-founder-card {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: var(--bg);
  box-shadow: var(--neu-raised);
  border-radius: 999px;
  padding: 16px 30px 16px 18px;
}

.c8ea7a-founder-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--neu-inset);
}

.c8ea7a-founder-info { text-align: left; }

.c8ea7a-founder-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}

.c8ea7a-founder-desc {
  color: var(--text-muted);
  font-size: 13px;
}

/* ============ 区块标题 ============ */
.c8ea7a-section { padding: 44px 0; }

.c8ea7a-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 34px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.c8ea7a-section-head h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0;
}

.c8ea7a-section-head a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
}

/* ============ Main Feed 图文交错 ============ */
.c8ea7a-feed-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--border);
}

.c8ea7a-feed-item:nth-child(even) .c8ea7a-feed-media { order: 2; }

.c8ea7a-feed-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--neu-raised);
}

.c8ea7a-feed-media .c8ea7a-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.c8ea7a-feed-item:hover .c8ea7a-card-bg { transform: scale(1.05); }

.c8ea7a-feed-body .c8ea7a-card-cat {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--accent);
  margin-bottom: 10px;
}

.c8ea7a-feed-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 27px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.c8ea7a-feed-title a { color: var(--text); }
.c8ea7a-feed-title a:hover { color: var(--accent); opacity: 1; }

.c8ea7a-feed-excerpt {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 16px;
}

.c8ea7a-feed-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  color: var(--accent);
}

.c8ea7a-feed-more::after { content: '→'; transition: transform 0.2s ease; }
.c8ea7a-feed-item:hover .c8ea7a-feed-more::after { transform: translateX(4px); }

/* ============ Trending Top5 序号列表 ============ */
.c8ea7a-trending-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.c8ea7a-trend-card {
  position: relative;
  background: var(--bg);
  box-shadow: var(--neu-raised);
  border-radius: var(--radius);
  padding: 30px 22px 24px;
  overflow: hidden;
  transition: transform 0.25s ease;
}

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

.c8ea7a-trend-num {
  position: absolute;
  top: 4px;
  right: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border);
  opacity: 0.7;
  pointer-events: none;
}

.c8ea7a-trend-card:first-child .c8ea7a-trend-num { -webkit-text-stroke: 1.5px var(--accent); color: var(--accent); opacity: 0.35; }

.c8ea7a-trend-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  margin: 0 0 12px;
  position: relative;
}

.c8ea7a-trend-title a { color: var(--text); }
.c8ea7a-trend-title a:hover { color: var(--accent); opacity: 1; }

.c8ea7a-trend-meta {
  color: var(--text-muted);
  font-size: 12px;
  position: relative;
}

/* ============ 辅助页面快捷链接（卡片式网格） ============ */
.c8ea7a-pagelinks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.c8ea7a-pagelink-card {
  background: var(--bg);
  box-shadow: var(--neu-raised);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.25s ease;
}

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

.c8ea7a-pagelink-icon { font-size: 28px; margin-bottom: 14px; }

.c8ea7a-pagelink-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.c8ea7a-pagelink-card h3 a { color: var(--text); }
.c8ea7a-pagelink-card h3 a:hover { color: var(--accent); opacity: 1; }

.c8ea7a-pagelink-card p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
}

/* 首页响应式 */
@media (max-width: 960px) {
  .c8ea7a-feed-item { grid-template-columns: 1fr; gap: 22px; }
  .c8ea7a-feed-item:nth-child(even) .c8ea7a-feed-media { order: 0; }
  .c8ea7a-trending-grid { grid-template-columns: repeat(2, 1fr); }
  .c8ea7a-pagelinks { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .c8ea7a-hero-title { font-size: 30px; }
  .c8ea7a-trending-grid { grid-template-columns: 1fr; }
  .c8ea7a-pagelinks { grid-template-columns: 1fr; }
  .c8ea7a-feed-title { font-size: 23px; }
}
