/* ================= 首页专属样式 ================= */
.page-home {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.page-home img {
  max-width: 100%;
  height: auto;
}

/* ================= 首屏封面 ================= */
.page-home .home-cover {
  position: relative;
  padding: clamp(56px, 8vw, 120px) 0 clamp(72px, 9vw, 128px);
  background: var(--bg-primary);
  overflow: hidden;
}

.page-home .home-cover__art {
  position: absolute;
  top: -4%;
  right: -8%;
  width: min(78vw, 940px);
  height: auto;
  opacity: 0.16;
  pointer-events: none;
  transform: rotate(-4deg);
  z-index: 0;
}

.page-home .home-cover__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(28px, 5vw, 56px);
}

.page-home .home-cover__crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  margin-bottom: 18px;
}

.page-home .home-cover__crumb::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--accent-orange);
}

.page-home .home-cover__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.page-home .home-cover__lede {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 34em;
  margin: 0 0 30px;
}

.page-home .home-cover__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .home-cover__card {
  position: relative;
  max-width: 400px;
  background: var(--surface-overlay);
  border: 1px solid var(--border-muted);
  box-shadow: var(--shadow-paper);
  padding: clamp(22px, 4vw, 32px);
  transform: rotate(0.6deg);
}

.page-home .home-cover__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-yellow) 60%, var(--accent-blue));
}

.page-home .home-cover__card-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.page-home .home-cover__version {
  background: var(--accent-yellow);
  color: var(--text-primary);
  font-size: 0.72rem;
  padding: 3px 10px;
  letter-spacing: 0.06em;
}

.page-home .home-cover__toc {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-cover__toc a {
  display: flex;
  gap: 14px;
  align-items: baseline;
  text-decoration: none;
  color: var(--text-primary);
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-muted);
  font-size: 0.94rem;
  transition: color 0.3s var(--transition-timing), padding-left 0.3s var(--transition-timing);
}

.page-home .home-cover__toc a:hover {
  color: var(--accent-orange);
  padding-left: 6px;
}

.page-home .home-cover__toc li:last-child a {
  border-bottom: none;
}

.page-home .home-cover__toc a span {
  font-family: var(--font-mono);
  color: var(--accent-orange);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ================= 信任提示条 ================= */
.page-home .home-note {
  background: var(--ink-soft);
}

.page-home .home-note__inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-block: 16px;
}

.page-home .home-note__inner p {
  color: #F7F1E8;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.page-home .home-note .pulse-dot {
  background: var(--accent-yellow);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ================= 三步直达 ================= */
.page-home .home-steps {
  position: relative;
  padding-block: clamp(64px, 8vw, 96px);
}

.page-home .home-steps__head {
  display: grid;
  gap: 18px;
  margin-bottom: 44px;
}

.page-home .home-steps__title,
.page-home .home-daily__title,
.page-home .home-update__title,
.page-home .home-featured__title,
.page-home .home-index__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin: 12px 0 0;
}

.page-home .home-steps__intro {
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 36em;
}

.page-home .home-steps__grid {
  display: grid;
  gap: 28px;
}

.page-home .home-steps__figure {
  position: relative;
  margin: 0;
}

.page-home .home-steps__figure::after {
  content: "3 STEPS";
  position: absolute;
  bottom: 16px;
  left: -10px;
  background: var(--accent-blue);
  color: #F7F1E8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 14px;
  letter-spacing: 0.08em;
}

.page-home .home-steps__figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--border-muted);
  box-shadow: var(--shadow-paper);
}

.page-home .home-steps__list {
  display: grid;
  gap: 14px;
}

.page-home .home-step {
  background: var(--surface-overlay);
  border: 1px solid var(--border-muted);
  border-left: 4px solid var(--accent-blue);
  box-shadow: var(--shadow-paper);
  transition: border-color 0.3s var(--transition-timing), transform 0.3s var(--transition-timing);
}

.page-home .home-step:hover {
  transform: translateY(-2px);
  border-color: var(--accent-blue);
}

.page-home .home-step[open] {
  border-left-color: var(--accent-orange);
}

.page-home .home-step summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.page-home .home-step summary::-webkit-details-marker {
  display: none;
}

.page-home .home-step summary:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: -2px;
}

.page-home .home-step__num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.page-home .home-step[open] .home-step__num {
  color: var(--accent-orange);
}

.page-home .home-step__title {
  font-weight: 600;
  font-size: 1.02rem;
}

.page-home .home-step__toggle {
  position: relative;
  margin-left: auto;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-muted);
  border-radius: 50%;
  flex-shrink: 0;
}

.page-home .home-step__toggle::before,
.page-home .home-step__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: var(--text-primary);
  transform: translate(-50%, -50%);
}

.page-home .home-step__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.3s var(--transition-timing);
}

.page-home .home-step[open] .home-step__toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.page-home .home-step__desc {
  margin: 0;
  padding: 0 20px 20px 50px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.94rem;
}

/* ================= 每日素材包 ================= */
.page-home .home-daily {
  padding-block: clamp(64px, 8vw, 96px);
  background: var(--surface-overlay);
  border-top: 1px solid var(--border-muted);
  border-bottom: 1px solid var(--border-muted);
}

.page-home .home-daily__grid {
  display: grid;
  gap: 40px;
}

.page-home .home-daily__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--badge-green);
  color: var(--badge-green);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  margin: 18px 0 24px;
}

.page-home .home-daily__desc {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.page-home .home-daily__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.page-home .home-daily__cats li span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border-muted);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: border-color 0.3s var(--transition-timing), color 0.3s var(--transition-timing);
}

.page-home .home-daily__cats li span:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.page-home .home-daily__figure {
  position: relative;
  margin: 0;
}

.page-home .home-daily__figure::after {
  content: "DAILY";
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-yellow);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  letter-spacing: 0.12em;
}

.page-home .home-daily__figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--border-muted);
  box-shadow: var(--shadow-paper);
}

/* ================= 品牌服务更新 ================= */
.page-home .home-update {
  background: var(--ink-soft);
  color: #F7F1E8;
  padding-block: clamp(64px, 8vw, 96px);
}

.page-home .home-update__inner {
  display: grid;
  gap: 40px;
}

.page-home .home-update__figure {
  position: relative;
  margin: 0;
}

.page-home .home-update__figure::before {
  content: "v9.0";
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  background: var(--accent-orange);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 5px 12px;
  letter-spacing: 0.06em;
}

.page-home .home-update__figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-paper);
  outline: 1px solid var(--accent-yellow);
  outline-offset: 10px;
}

.page-home .home-update__content p {
  color: rgba(247, 241, 232, 0.78);
  line-height: 1.8;
  margin-bottom: 24px;
}

.page-home .home-update__title strong {
  color: var(--accent-orange);
  font-size: 1.35em;
}

.page-home .home-update__list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .home-update__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.65;
}

.page-home .home-update__list li::before {
  content: "✓";
  font-family: var(--font-mono);
  color: var(--accent-yellow);
  flex-shrink: 0;
}

.page-home .home-update .section-label {
  color: var(--accent-yellow);
}

.page-home .home-update .btn-ghost {
  color: #F7F1E8;
  border-color: rgba(247, 241, 232, 0.4);
}

.page-home .home-update .btn-ghost:hover {
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
}

/* ================= 编辑推荐 ================= */
.page-home .home-featured {
  padding-block: clamp(64px, 8vw, 96px);
}

.page-home .home-featured__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.page-home .home-featured__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
}

.page-home .home-featured__more::after {
  content: "→";
  transition: transform 0.3s var(--transition-timing);
}

.page-home .home-featured__more:hover::after {
  transform: translateX(4px);
}

.page-home .home-featured__list {
  display: grid;
  gap: 18px;
}

.page-home .home-featured__item {
  position: relative;
  background: var(--surface-overlay);
  border: 1px solid var(--border-muted);
  padding: clamp(22px, 4vw, 30px);
  box-shadow: var(--shadow-paper);
  transition: transform 0.3s var(--transition-timing), box-shadow 0.3s var(--transition-timing);
}

.page-home .home-featured__item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 64px;
  height: 4px;
  background: var(--accent-orange);
}

.page-home .home-featured__item:nth-child(2)::before {
  background: var(--accent-blue);
}

.page-home .home-featured__item:nth-child(3)::before {
  background: var(--accent-yellow);
}

.page-home .home-featured__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(30, 26, 23, 0.12);
}

.page-home .home-featured__item h3 {
  margin: 14px 0 10px;
  font-size: 1.12rem;
}

.page-home .home-featured__item h3 a {
  color: inherit;
  text-decoration: none;
}

.page-home .home-featured__item h3 a:hover {
  color: var(--accent-orange);
}

.page-home .home-featured__item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ================= 栏目索引 ================= */
.page-home .home-index {
  padding-block: clamp(64px, 8vw, 96px);
  border-top: 1px solid var(--border-muted);
}

.page-home .home-index__intro {
  color: var(--text-secondary);
  max-width: 38em;
  line-height: 1.8;
  margin-bottom: 36px;
}

.page-home .home-index__grid {
  display: grid;
  gap: 14px;
}

.page-home .home-index__card {
  display: block;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--surface-overlay);
  border: 1px solid var(--border-muted);
  padding: clamp(20px, 3vw, 28px);
  position: relative;
  transition: transform 0.3s var(--transition-timing), border-color 0.3s var(--transition-timing);
}

.page-home .home-index__card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-orange);
}

.page-home .home-index__num {
  display: block;
  font-family: var(--font-mono);
  color: var(--accent-orange);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.page-home .home-index__card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.page-home .home-index__card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ================= 响应式布局 ================= */
@media (min-width: 760px) {
  .page-home .home-cover__inner {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: end;
  }

  .page-home .home-steps__grid,
  .page-home .home-daily__grid,
  .page-home .home-update__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .page-home .home-steps__figure,
  .page-home .home-daily__figure,
  .page-home .home-update__figure {
    align-self: center;
  }

  .page-home .home-update__figure img {
    transform: rotate(-1deg);
  }

  .page-home .home-daily__figure img {
    transform: rotate(1.2deg);
  }

  .page-home .home-featured__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .page-home .home-index__grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }

  .page-home .home-index__card:nth-child(1),
  .page-home .home-index__card:nth-child(2) {
    grid-column: span 3;
  }

  .page-home .home-index__card:nth-child(3),
  .page-home .home-index__card:nth-child(4),
  .page-home .home-index__card:nth-child(5) {
    grid-column: span 2;
  }
}

@media (min-width: 1080px) {
  .page-home .home-steps__figure img {
    min-height: 420px;
  }

  .page-home .home-daily__figure img {
    min-height: 360px;
  }

  .page-home .home-update__figure img {
    min-height: 380px;
  }

  .page-home .home-featured__item:nth-child(2) {
    transform: translateY(12px);
  }

  .page-home .home-featured__item:nth-child(2):hover {
    transform: translateY(8px);
  }
}
