/* =========================================================================
   AFTERGLOW OFFICIAL · Blog Landing Page (/blog/)
   全部 scope 在 body.ms-blog-page 下，不污染他页
   设计：Hero (holo accent) + 4 个分类版块 + 卡片网格 + CTA
   ========================================================================= */

body.ms-blog-page .ast-archive-description,
body.ms-blog-page .entry-header,
body.ms-blog-page .post-thumbnail {
  display: none !important;  /* 隐藏 Astra 默认 Page header（我们自己做 hero） */
}

body.ms-blog-page .ms-blog-landing {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 32px 96px;
}

@media (max-width: 768px) {
  body.ms-blog-page .ms-blog-landing {
    padding: 0 20px 64px;
  }
}

/* =========================================================================
   1 · Hero
   ========================================================================= */
.ms-blog-hero {
  padding: 64px 0 80px;
  border-bottom: 1px solid var(--ms-line, #e5e5e5);
  text-align: center;
  position: relative;
}

.ms-blog-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: var(--ms-grad-holo-bright, linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff));
  background-size: 200% 100%;
  animation: ms-shimmer 5s linear infinite;
  border-radius: 2px;
}

.ms-blog-hero__inner {
  max-width: 720px;
  margin: 0 auto;
}

.ms-blog-hero__eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ms-ink-muted, #666);
  margin: 0 0 16px;
}

.ms-blog-hero__title {
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.015em;
  text-transform: uppercase;
  margin: 0 0 20px;
  color: var(--ms-ink, #000);
}

.ms-blog-hero__lead {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ms-ink-muted, #666);
  margin: 0 0 40px;
}

.ms-blog-hero__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.ms-blog-hero__nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1.5px solid var(--ms-line-strong, #ccc);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ms-ink, #000);
  text-decoration: none;
  transition: all .25s ease;
}
.ms-blog-hero__nav-chip:hover {
  background: var(--ms-ink, #000);
  color: #fff;
  border-color: var(--ms-ink, #000);
  transform: translateY(-1px);
}

.ms-blog-hero__nav-icon {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

/* —— 每个分类独立霓虹色（hover 时变白以适配黑底）—— */
.ms-blog-hero__nav-chip:nth-child(1) .ms-blog-hero__nav-icon { color: #ff2e95; }   /* MUSIC: 霓虹粉 */
.ms-blog-hero__nav-chip:nth-child(2) .ms-blog-hero__nav-icon { color: #00d4ff; }   /* FESTIVALS: 电光蓝 */
.ms-blog-hero__nav-chip:nth-child(3) .ms-blog-hero__nav-icon { color: #b25dff; }   /* EXPERIENCE: 电光紫 */
.ms-blog-hero__nav-chip:nth-child(4) .ms-blog-hero__nav-icon { color: #ffb800; }   /* FASHION: 金色 */
.ms-blog-hero__nav-chip:hover .ms-blog-hero__nav-icon { color: #fff; }

/* —— Section 顶部 icon 也每个分类独立色，跟 chip 呼应 —— */
.ms-blog-section:nth-of-type(2) .ms-blog-section__icon { /* Music */
  background: linear-gradient(135deg, #ff2e95, #ff5cb0);
  background-size: 200% 200%;
}
.ms-blog-section:nth-of-type(3) .ms-blog-section__icon { /* Editorial */
  background: linear-gradient(135deg, #00d4ff, #00b8e6);
  background-size: 200% 200%;
}
.ms-blog-section:nth-of-type(4) .ms-blog-section__icon { /* Experience */
  background: linear-gradient(135deg, #b25dff, #c77dff);
  background-size: 200% 200%;
}
.ms-blog-section:nth-of-type(5) .ms-blog-section__icon { /* Fashion */
  background: linear-gradient(135deg, #ffb800, #ffd700);
  background-size: 200% 200%;
}

@keyframes ms-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* =========================================================================
   2 · Section
   ========================================================================= */
.ms-blog-section {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--ms-line, #e5e5e5);
  scroll-margin-top: 80px;  /* 锚点跳转留 header 高度 */
}
.ms-blog-section:last-of-type {
  border-bottom: 0;
}

.ms-blog-section__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 24px;
  margin: 0 0 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ms-line, #e5e5e5);
}

@media (max-width: 768px) {
  .ms-blog-section__header {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.ms-blog-section__heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.ms-blog-section__icon {
  font-size: 28px;
  color: var(--ms-ink, #000);
  background: var(--ms-grad-holo-bright, linear-gradient(135deg, #ff00ff, #00ffff));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ms-shimmer 6s linear infinite;
  line-height: 1;
}

.ms-blog-section__title {
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ms-ink, #000);
}

.ms-blog-section__tagline {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ms-ink-muted, #666);
  margin: 0;
  max-width: 520px;
}

.ms-blog-section__viewall {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ms-ink, #000);
  text-decoration: none;
  border-bottom: 1.5px solid var(--ms-ink, #000);
  padding-bottom: 4px;
  white-space: nowrap;
  transition: opacity .2s ease;
}
.ms-blog-section__viewall:hover {
  opacity: .6;
}

/* =========================================================================
   3 · Card grid
   ========================================================================= */
.ms-blog-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .ms-blog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .ms-blog-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 480px) {
  .ms-blog-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   4 · Card
   ========================================================================= */
.ms-blog-card {
  margin: 0;
  list-style: none;
  position: relative;
}

.ms-blog-card__link {
  display: block;
  text-decoration: none;
  color: var(--ms-ink, #000);
}

.ms-blog-card__media {
  aspect-ratio: 4 / 5;
  background: var(--ms-bg-soft, #f7f7f7) center / cover no-repeat;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: transform .35s ease;
}

.ms-blog-card__link:hover .ms-blog-card__media {
  transform: translateY(-3px);
}

/* No-image fallback：放大 emoji 占位 */
.ms-blog-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: var(--ms-ink-faint, #999);
  background: var(--ms-grad-holo-bright);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: .4;
  animation: ms-shimmer 8s linear infinite;
}

.ms-blog-card__body {
  padding: 16px 4px 0;
}

.ms-blog-card__meta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ms-ink-muted, #666);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ms-blog-card__cat {
  font-weight: 600;
  color: var(--ms-ink, #000);
}

.ms-blog-card__sep {
  opacity: .5;
}

.ms-blog-card__title {
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0;
  color: var(--ms-ink, #000);
  transition: opacity .2s ease;
}

.ms-blog-card__link:hover .ms-blog-card__title {
  opacity: .65;
}

/* =========================================================================
   5 · Bottom CTA
   ========================================================================= */
.ms-blog-cta {
  margin: 64px 0 0;
  padding: 64px 32px;
  background: var(--ms-bg-soft, #f7f7f7);
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ms-blog-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ms-grad-holo-bright);
  background-size: 300% 300%;
  opacity: .08;
  animation: ms-shimmer 10s linear infinite;
  pointer-events: none;
}

.ms-blog-cta > * {
  position: relative;
}

.ms-blog-cta h2 {
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -.01em;
  text-transform: uppercase;
  line-height: .95;
  margin: 0 0 16px;
  color: var(--ms-ink, #000);
}

.ms-blog-cta p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--ms-ink-muted, #666);
  margin: 0 0 32px;
  max-width: 480px;
  margin-inline: auto;
}

.ms-blog-cta__btn {
  display: inline-block;
  padding: 16px 32px;
  background: var(--ms-ink, #000);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: opacity .25s ease, transform .25s ease;
}

.ms-blog-cta__btn:hover {
  opacity: .85;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .ms-blog-cta {
    padding: 48px 20px;
    margin: 48px 0 0;
  }
}
