/* ============ 首页专属样式 Radiant Skincare Hub ============ */

/* ============ Hero 杂志网格 ============ */
.d2fcd2-hero {
  padding: 48px 0 20px;
}

.d2fcd2-hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}

.d2fcd2-hero-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 500px;
}

.d2fcd2-hero-main .d2fcd2-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.d2fcd2-hero-main:hover .d2fcd2-card-bg { transform: scale(1.04); }

.d2fcd2-hero-main .d2fcd2-card-overlay {
  background: linear-gradient(180deg, rgba(18,24,22,0.02) 20%, rgba(18,24,22,0.82) 100%);
  padding: 30px;
  min-height: 500px;
}

.d2fcd2-hero-main .d2fcd2-card-title {
  font-size: 36px;
  letter-spacing: -0.03em;
  max-width: 500px;
}

.d2fcd2-hero-side {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 24px;
}

.d2fcd2-hero-side .d2fcd2-card { min-height: 0; }
.d2fcd2-hero-side .d2fcd2-card-title { font-size: 18px; }

/* ============ 区块标题（统一） ============ */
.d2fcd2-section {
  padding: 44px 0;
}

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

.d2fcd2-section-head h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.d2fcd2-section-head h2::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--accent);
  display: inline-block;
}

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

/* ============ Editor's Choice 横向 3 列专题卡片 ============ */
.d2fcd2-ec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.d2fcd2-ec-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--bg-alt);
}

.d2fcd2-ec-card h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.d2fcd2-ec-card h3::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.d2fcd2-ec-list { list-style: none; margin: 0; padding: 0; }

.d2fcd2-ec-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.d2fcd2-ec-list li:last-child { border-bottom: none; }

.d2fcd2-ec-list a {
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  display: flex;
  gap: 10px;
}

.d2fcd2-ec-list a:hover { color: var(--accent); opacity: 1; }

.d2fcd2-ec-list .d2fcd2-ec-num {
  color: var(--text-muted);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  min-width: 18px;
}

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

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

.d2fcd2-feed-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-deep);
}

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

.d2fcd2-feed-item:hover .d2fcd2-card-bg { transform: scale(1.04); }

.d2fcd2-feed-body .d2fcd2-card-cat {
  position: static;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  padding: 3px 9px;
}

.d2fcd2-feed-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 12px 0 12px;
}

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

.d2fcd2-feed-excerpt { color: var(--text-muted); font-size: 15px; line-height: 1.75; }

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

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

/* ============ 辅助页面快捷链接区 ============ */
.d2fcd2-quicklinks {
  padding: 30px 0;
  display: flex;
  justify-content: center;
  gap: 14px 30px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.d2fcd2-quicklinks a {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.d2fcd2-quicklinks a:hover { color: var(--accent); opacity: 1; }

.d2fcd2-quicklinks-sep { color: var(--border); align-self: center; }

/* ============ 标签云与话题索引（分类网格图卡） ============ */
.d2fcd2-topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.d2fcd2-topic-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--border);
}

.d2fcd2-topic-card .d2fcd2-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.d2fcd2-topic-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,24,22,0.05) 0%, rgba(18,24,22,0.72) 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.d2fcd2-topic-name {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
}

.d2fcd2-topic-count {
  color: rgba(255,255,255,0.8);
  font-size: 12px;
}

/* ============ Category Spotlight 2×2 大格 ============ */
.d2fcd2-spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.d2fcd2-spot-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg-alt);
}

.d2fcd2-spot-card h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

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

.d2fcd2-spot-list { list-style: none; margin: 0; padding: 0; }

.d2fcd2-spot-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.d2fcd2-spot-list li:last-child { border-bottom: none; }

.d2fcd2-spot-list a {
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.d2fcd2-spot-list a:hover { color: var(--accent); opacity: 1; }

.d2fcd2-spot-date {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
  margin-left: auto;
}

/* 首页响应式 */
@media (max-width: 960px) {
  .d2fcd2-hero-grid { grid-template-columns: 1fr; }
  .d2fcd2-hero-main { min-height: 420px; }
  .d2fcd2-hero-main .d2fcd2-card-overlay { min-height: 420px; }
  .d2fcd2-hero-main .d2fcd2-card-title { font-size: 26px; }
  .d2fcd2-hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .d2fcd2-ec-grid { grid-template-columns: 1fr; }
  .d2fcd2-feed-item { grid-template-columns: 1fr; gap: 18px; }
  .d2fcd2-feed-item:nth-child(even) .d2fcd2-feed-media { order: 0; }
  .d2fcd2-topics-grid { grid-template-columns: repeat(2, 1fr); }
  .d2fcd2-spotlight { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .d2fcd2-hero-side { grid-template-columns: 1fr; }
  .d2fcd2-topics-grid { grid-template-columns: 1fr; }
  .d2fcd2-hero-main { min-height: 340px; }
  .d2fcd2-hero-main .d2fcd2-card-overlay { min-height: 340px; }
}
