/* 男娘日记 — single-page layout, rose/plum palette */

:root {
  --bg: #fdf5f9;
  --bg-elevated: #ffffff;
  --tint: #f3e8f5;
  --text: #1a1220;
  --muted: #5c4d66;
  --primary: #c2187a;
  --primary-soft: #e85aa8;
  --accent: #7c3aed;
  --accent-soft: #a78bfa;
  --border: rgba(124, 58, 237, 0.12);
  --shadow: 0 18px 50px rgba(74, 20, 90, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --font-sans: "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Outfit", var(--font-sans);
  --header-pink: #ff4b6d;
  /* 与「建议学习路径」区块统一的淡粉渐变底 */
  --gradient-learning-path: linear-gradient(
    158deg,
    #ffffff 0%,
    #fff8fb 28%,
    #fff2f7 55%,
    #ffeaf3 82%,
    #ffe3ef 100%
  );
  /* 全站与首屏 Hero 统一的淡粉紫纵向渐变 */
  --page-bg-gradient: linear-gradient(
    180deg,
    #fff1f2 0%,
    #fce7f3 42%,
    #f3e8ff 100%
  );
  --pink-purple-bg: var(--page-bg-gradient);
  --hero-unified-bg: var(--page-bg-gradient);
  /* 变装教程推荐区块 */
  --tutorial-rec-bg: linear-gradient(180deg, #f6f0ff 0%, #fdebff 100%);
  --rec-purple: #c084fc;
  --rec-pink: #f472b6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--page-bg-gradient);
  min-height: 100vh;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

.page-sparkle {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(236, 72, 153, 0.09) 0%, transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(167, 139, 250, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(244, 114, 182, 0.06) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  display: none;
}

.wrap {
  width: min(1200px, 92vw);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.narrow {
  max-width: 720px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
}

.breadcrumb-wrap {
  padding: 0.45rem 0 0;
  position: relative;
  z-index: 2;
}

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--muted);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item a {
  color: #7c3aed;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: rgba(92, 77, 102, 0.45);
  user-select: none;
}

a.seo-internal-link {
  color: #7c3aed;
  text-decoration: underline;
  text-decoration-color: rgba(124, 58, 237, 0.35);
  text-underline-offset: 0.12em;
}

a.seo-internal-link:hover {
  color: #6d28d9;
  text-decoration-color: rgba(124, 58, 237, 0.55);
}

/* Header — pink banner + white nav (reference layout) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* —— Kawaii 顶栏（参考 mockup） */
.site-header--kawaii {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(167, 139, 250, 0.15);
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.header-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.15;
  background: linear-gradient(90deg, #f472b6 0%, #e879f9 38%, #a855f7 72%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-logo:focus-visible {
  outline: 2px solid color-mix(in srgb, #a855f7 65%, transparent);
  outline-offset: 4px;
  border-radius: 12px;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  flex: 1 1 auto;
}

.header-nav-link {
  color: #5c4d66;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.header-nav-link:hover {
  color: #7c3aed;
}

.header-nav-link.is-active {
  color: #5b21b6;
  border-bottom-color: #a855f7;
}

.header-search-inner {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-icon {
  position: absolute;
  left: 0.85rem;
  display: flex;
  color: #a89bb8;
  pointer-events: none;
}

.header-search input {
  width: min(200px, 36vw);
  padding: 0.45rem 1rem 0.45rem 2.35rem;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input::placeholder {
  color: #a89bb8;
}

.header-search input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

@media (max-width: 900px) {
  .header-bar {
    justify-content: center;
  }

  .header-nav {
    order: 3;
    width: 100%;
  }

  .header-search {
    width: 100%;
  }

  .header-search input {
    width: 100%;
  }
}

/* 首屏 Hero + 快捷入口 + 欢迎区 + 推荐（mockup） */
.section-kawaii-hero {
  position: relative;
  z-index: 1;
}

.hero-primary {
  position: relative;
  overflow-x: visible;
  overflow-y: visible;
  padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(2.75rem, 5vw, 3.5rem);
  background: var(--page-bg-gradient);
}

.hero-primary-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-fx {
  position: absolute;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.95), 0 0 2px rgba(236, 72, 153, 0.35);
  user-select: none;
  line-height: 1;
}

.hero-fx--s1 {
  top: 12%;
  left: 8%;
  font-size: 1.1rem;
  opacity: 0.75;
}

.hero-fx--s2 {
  top: 22%;
  left: 18%;
  font-size: 0.75rem;
  opacity: 0.55;
}

.hero-fx--s3 {
  top: 8%;
  right: 22%;
  font-size: 0.9rem;
  opacity: 0.65;
}

.hero-fx--s4 {
  bottom: 28%;
  left: 12%;
  font-size: 2rem;
  opacity: 0.35;
  color: rgba(255, 255, 255, 0.7);
}

.hero-fx--s5 {
  bottom: 18%;
  right: 10%;
  font-size: 1rem;
  opacity: 0.6;
}

.hero-fx--h1 {
  top: 35%;
  left: 4%;
  font-size: 0.85rem;
  color: rgba(251, 113, 133, 0.45);
  text-shadow: none;
}

.hero-fx--h2 {
  top: 55%;
  right: 8%;
  font-size: 1rem;
  color: rgba(244, 114, 182, 0.4);
  text-shadow: none;
}

.hero-fx--h3 {
  bottom: 38%;
  right: 28%;
  font-size: 0.7rem;
  color: rgba(192, 132, 252, 0.45);
  text-shadow: none;
}

.hero-primary-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.25rem, 3.5vw, 2.75rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-primary-inner {
    grid-template-columns: 1fr;
  }
}

/* 右侧三图区：横幅内偏右居中，与左栏文案对齐视觉重心 */
.hero-primary-visual {
  min-width: 0;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 0 0 clamp(0.25rem, 2vw, 1rem);
  justify-self: stretch;
}

.landing-head {
  margin: 0 0 1rem;
  max-width: min(22em, 100%);
  font-family: var(--font-sans);
}

.landing-line {
  display: block;
}

.landing-line--top {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 700;
  color: #4c1d95;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.landing-line--main {
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  background: linear-gradient(105deg, #5b21b6 0%, #a855f7 55%, #e879f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-primary-copy {
  padding-right: clamp(0, 2vw, 0.75rem);
}

.hero-primary-desc {
  margin: 0 0 1.25rem;
  max-width: min(42em, 100%);
  font-size: 0.98rem;
  line-height: 1.75;
  color: #6b7280;
}

.hero-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* 首屏主题词：男娘日记五星、伪娘日记与女装大佬三星 */
.hero-keywords {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.65rem 0.85rem;
  max-width: min(46em, 100%);
}

.hero-kw-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.7rem 0.55rem 0.55rem;
  margin: 0;
  min-height: 0;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(192, 132, 252, 0.22);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.07);
}

@media (max-width: 620px) {
  .hero-keywords {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

.hero-kw-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #5b21b6;
  background: rgba(243, 232, 255, 0.85);
  border: 1px solid rgba(167, 139, 250, 0.2);
  line-height: 1.3;
  white-space: nowrap;
}

.hero-kw-tag--lead {
  flex-wrap: wrap;
  max-width: 100%;
  color: #5b21b6;
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.22), rgba(244, 114, 182, 0.16));
  border-color: rgba(244, 114, 182, 0.28);
  font-weight: 700;
}

.hero-kw-tag--accent {
  color: #9d174d;
  background: linear-gradient(135deg, rgba(251, 207, 232, 0.65), rgba(253, 230, 224, 0.75));
  border-color: rgba(244, 114, 182, 0.35);
  font-weight: 700;
}

.hero-kw-stars {
  margin-left: 0.25rem;
  font-size: clamp(0.65rem, 1.5vw, 0.78rem);
  line-height: 1;
  vertical-align: 0.06em;
  letter-spacing: -0.04em;
  white-space: nowrap;
  filter: drop-shadow(0 1px 2px rgba(244, 114, 182, 0.25));
}

.hero-kw-stars--3 {
  font-size: clamp(0.78rem, 2vw, 0.92rem);
  letter-spacing: 0.06em;
}

@media (max-width: 480px) {
  .hero-kw-tag {
    font-size: 0.78rem;
    padding: 0.26rem 0.55rem;
  }

  .hero-kw-group {
    padding: 0.5rem 0.6rem;
  }
}

.btn-kawaii {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

/* 主按钮 */
.btn-kawaii--solid {
  padding: 10px 20px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #c084fc, #f472b6);
  border: none;
  box-shadow: 0 8px 24px rgba(192, 132, 252, 0.35);
}

.btn-kawaii--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(244, 114, 182, 0.35);
}

/* 次按钮 */
.btn-kawaii--outline {
  padding: 10px 20px;
  font-weight: 500;
  color: #374151;
  background: #f3f4f6;
  border: none;
  box-shadow: none;
}

.btn-kawaii--outline:hover {
  color: #1f2937;
  background: #e5e7eb;
}

/* 两图叠放扇形：左倾 + 右倾重叠 */
.card-stack {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  isolation: isolate;
  min-height: min(400px, 58vw);
  width: 100%;
  max-width: min(300px, 90vw);
  margin: 0 auto;
  padding: clamp(0.85rem, 3vw, 1.35rem) clamp(0.5rem, 4vw, 1.75rem) clamp(1rem, 3vw, 1.5rem);
  box-sizing: border-box;
  overflow: visible;
  line-height: 0;
}

.card-stack-img {
  position: relative;
  flex: 0 0 auto;
  display: block;
  width: auto;
  height: min(380px, 52vw);
  max-height: 380px;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  object-fit: cover;
  box-shadow:
    0 10px 32px rgba(139, 92, 246, 0.22),
    0 2px 12px rgba(91, 33, 182, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.95);
  outline: none;
  margin: 0;
}

.card-stack-img:not(:first-child) {
  margin-left: clamp(-2.75rem, -11vw, -1.5rem);
}

.card-stack-img--1 {
  transform: rotate(-7deg);
  z-index: 2;
}

.card-stack-img--2 {
  transform: rotate(7deg);
  z-index: 3;
}

@media (max-width: 900px) {
  .card-stack {
    max-width: min(300px, 88vw);
    min-height: min(380px, 60vw);
  }
}

@media (max-width: 480px) {
  .card-stack {
    max-width: 100%;
    padding: 0.65rem 0 1rem;
  }

  .card-stack-img {
    height: min(380px, 48vw);
    max-height: 380px;
    border-radius: 16px;
  }

  .card-stack-img:not(:first-child) {
    margin-left: clamp(-1.85rem, -14vw, -0.95rem);
  }
}

.quick-cats {
  margin-top: -1.5rem;
  padding: 0 0 clamp(2rem, 4vw, 3rem);
  position: relative;
  z-index: 2;
}

.quick-cats-panel {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08), 0 2px 0 rgba(255, 255, 255, 0.8) inset;
}

.quick-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem 1rem;
}

@media (max-width: 900px) {
  .quick-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .quick-cat-grid {
    grid-template-columns: 1fr;
  }
}

.quick-cat-card {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(165deg, #ffffff 0%, #fff5f9 100%);
  border: 1px solid rgba(243, 232, 255, 0.85);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.12);
}

.quick-cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, #fdf4ff, #fdf2f8);
  color: #d946ef;
}

.quick-cat-emoji {
  font-size: 1.35rem;
  line-height: 1;
}

.quick-cat-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.quick-cat-title {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #1f2937;
  letter-spacing: -0.01em;
}

.quick-cat-sub {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.2rem;
  line-height: 1.4;
}

@media (max-width: 1200px) {
  .quick-cat-title {
    font-size: 1rem;
  }

  .quick-cat-sub {
    font-size: 0.82rem;
  }
}

.tutorial-rec {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  position: relative;
  z-index: 1;
  background: var(--tutorial-rec-bg);
}

.tutorial-rec-heading {
  margin: 0 0 1.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--rec-purple), var(--rec-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tutorial-rec-spark {
  font-size: 0.95em;
  margin: 0 0.35rem;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--rec-purple);
}

.tutorial-rec-heading .tutorial-rec-spark:last-of-type {
  color: var(--rec-pink);
}

.rec-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.75rem;
}

.rec-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: #6b5a7a;
  background: #ffffff;
  border: 1px solid color-mix(in srgb, var(--rec-purple) 28%, transparent);
  box-shadow: 0 4px 14px rgba(192, 132, 252, 0.12);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.rec-tab:hover {
  color: #5b21b6;
  border-color: color-mix(in srgb, var(--rec-purple) 45%, transparent);
  box-shadow: 0 6px 18px rgba(244, 114, 182, 0.15);
}

.rec-tab.is-active {
  background: linear-gradient(135deg, var(--rec-purple), var(--rec-pink));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--rec-purple) 40%, transparent),
    0 4px 16px color-mix(in srgb, var(--rec-pink) 25%, transparent);
}

.rec-portrait-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .rec-portrait-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .rec-portrait-grid {
    grid-template-columns: 1fr;
  }
}

.rec-portrait-card {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid color-mix(in srgb, var(--rec-purple) 18%, transparent);
  box-shadow: 0 12px 32px rgba(192, 132, 252, 0.14), 0 4px 12px rgba(244, 114, 182, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rec-portrait-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(192, 132, 252, 0.2), 0 8px 20px rgba(244, 114, 182, 0.12);
}

.rec-portrait-img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--tint);
}

.rec-portrait-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rec-portrait-cap {
  margin: 0;
  padding: 0.85rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: #5b21b6;
  background: #ffffff;
}

.top-banner {
  background-color: var(--header-pink);
  color: #fff;
  text-align: left;
  padding: 0.85rem 0 1rem;
}

.top-banner-inner {
  position: relative;
  z-index: 1;
}

.top-banner-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.top-banner-tagline {
  margin: 0.3rem 0 0;
  font-size: 0.875rem;
  font-weight: 400;
  opacity: 0.95;
  line-height: 1.45;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.85rem;
  background: #fff;
  border-bottom: 1px solid #eeeeee;
  padding: 0.9rem 1rem;
}

.top-nav-link {
  display: inline-block;
  color: #000;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: opacity 0.15s ease;
}

.top-nav-link:hover {
  opacity: 0.65;
}

.top-nav-link.is-active {
  border-color: #000;
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-accent {
  background: linear-gradient(120deg, var(--primary), var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-prose {
  max-width: 38em;
  margin: 0 0 1.5rem;
}

.hero-welcome {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 2.1vw, 1.08rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--text);
}

.hero-text {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-text:last-of-type {
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  padding: 10px 20px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #c084fc, #f472b6);
  border: none;
  box-shadow: 0 8px 24px rgba(192, 132, 252, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(244, 114, 182, 0.35);
}

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--accent);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: rgba(124, 58, 237, 0.35);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-tags li {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--muted);
  border: 1px solid var(--border);
}

.hero-visual {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.img-cap {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.65rem 1rem 0.85rem;
  margin: 0;
  border-top: 1px solid var(--border);
}

/* Sections */
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-tint {
  background: var(--page-bg-gradient);
  border-block: 1px solid var(--border);
}

/* 教程卡片区：与 #path 建议学习路径同款淡粉渐变 */
.section-tint.section-tint--learning {
  background: var(--pink-purple-bg);
  border-block: 1px solid rgba(255, 170, 195, 0.28);
}

/* 热门穿搭教程（#topics）— 设计规范：渐变底、白卡片、紫粉主色、栅格 3×24px */
.hot-outfits {
  padding: clamp(48px, 5vw, 64px) 0;
  background: var(--pink-purple-bg);
}

#intro {
  background: var(--tutorial-rec-bg);
}

.path-categories {
  background: var(--pink-purple-bg);
}

#intro .wrap.narrow {
  max-width: min(1200px, 92vw);
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(192, 132, 252, 0.2);
  border-radius: 20px;
  padding: clamp(1.35rem, 3.2vw, 2.25rem);
  box-shadow: 0 14px 34px rgba(192, 132, 252, 0.14), 0 6px 18px rgba(244, 114, 182, 0.1);
}

#intro .section-title {
  background: linear-gradient(135deg, #c084fc, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#intro .prose {
  color: #6b5a75;
}

/* 化妆教程 — 淡紫粉渐变底、半透明白卡、紫粉主色 */
#topics-makeup {
  background: var(--tutorial-rec-bg);
  border-block: 1px solid rgba(192, 132, 252, 0.22);
}

#topics-makeup .section-title {
  background: linear-gradient(135deg, var(--rec-purple), var(--rec-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#topics-makeup .card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(192, 132, 252, 0.18);
  box-shadow: 0 12px 32px rgba(192, 132, 252, 0.14), 0 4px 12px rgba(244, 114, 182, 0.08);
}

#topics-makeup .card:hover {
  box-shadow: 0 20px 44px rgba(192, 132, 252, 0.2), 0 8px 20px rgba(244, 114, 182, 0.12);
}

#topics-makeup .card-body h3 {
  color: #6d28d9;
}

#topics-makeup .card-body p {
  color: #6b5a75;
}

.hot-outfits-kicker {
  margin: 0 0 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  text-align: center;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 1px;
  color: #1f2937;
}

.hot-outfits-kicker-icon {
  flex-shrink: 0;
  font-size: 1em;
  line-height: 1;
}

.hot-outfits-kicker-highlight,
.hot-outfits-kicker-rest {
  font: inherit;
  font-weight: inherit;
}

.hot-outfits-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.hot-outfits-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 24px;
}

.hot-outfits-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1f2937;
}

.hot-outfits-more {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #c084fc, #f472b6);
  border: none;
  box-shadow: 0 8px 22px rgba(192, 132, 252, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.hot-outfits-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(244, 114, 182, 0.35);
}

.hot-outfits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hot-card {
  margin: 0;
  min-width: 0;
}

.hot-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.hot-card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.hot-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f3f4f6;
  border-radius: 16px;
}

.hot-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.hot-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin-top: 14px;
  min-height: 0;
}

.hot-card-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.35vw + 0.94rem, 1.125rem);
  font-weight: 600;
  line-height: 1.45;
  color: #1f2937;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hot-card-desc {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hot-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hot-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #9333ea;
  background: #f3e8ff;
}

.hot-card-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: #9ca3af;
}

.hot-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hot-stat-icon {
  flex-shrink: 0;
  opacity: 0.9;
}

@media (max-width: 1024px) {
  .hot-outfits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .hot-outfits-grid {
    grid-template-columns: 1fr;
  }

  .hot-outfits-panel {
    padding: 16px;
  }

  .hot-outfits-kicker {
    font-size: clamp(16px, 4.5vw, 28px);
    letter-spacing: 0.5px;
  }
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-head {
  margin-bottom: 2rem;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  max-width: 52em;
}

.inline-code {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  background: var(--bg-elevated);
  padding: 0.15em 0.4em;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.prose {
  color: var(--muted);
  margin: 0 0 1rem;
}

.prose:last-child {
  margin-bottom: 0;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(74, 20, 90, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--tint);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1.1rem 1.2rem 1.35rem;
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.card-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* 建议学习路径 — 深色类别网格 */
.path-categories {
  background: var(--pink-purple-bg);
  color: var(--text);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.path-categories .wrap {
  z-index: 1;
}

.path-categories-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 700;
  color: #1a1220;
  letter-spacing: -0.02em;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

.category-card-shell {
  border-radius: 15px;
  min-height: 100%;
}

.category-card-shell--featured {
  padding: 1px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f472b6, #c084fc, #a855f7);
  box-shadow: 0 0 24px rgba(236, 72, 153, 0.25);
}

.category-card {
  background: linear-gradient(
    175deg,
    #ffffff 0%,
    #fffafd 30%,
    #fff5f8 58%,
    #ffeff4 82%,
    #ffe8f1 100%
  );
  border-radius: 14px;
  padding: 1.65rem 1.4rem 1.5rem;
  height: 100%;
  border: 1px solid rgba(255, 180, 200, 0.35);
  box-shadow: 0 6px 22px rgba(255, 160, 185, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.category-card-shell--featured .category-card {
  border-radius: 15px;
  border: none;
  box-shadow: none;
}

.category-grid .category-card:hover {
  border-color: rgba(255, 170, 195, 0.5);
  box-shadow: 0 10px 30px rgba(255, 170, 195, 0.22);
  filter: brightness(1.015);
}

.category-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  margin-bottom: 1.15rem;
}

.category-icon svg {
  width: 32px;
  height: 32px;
}

.category-icon--teal {
  background: linear-gradient(145deg, #14b8a6, #0d9488);
}

.category-icon--purple {
  background: linear-gradient(145deg, #a855f7, #7c3aed);
}

.category-icon--blue {
  background: linear-gradient(145deg, #3b82f6, #2563eb);
}

.category-icon--sky {
  background: linear-gradient(145deg, #38bdf8, #0ea5e9);
}

.category-icon--rose {
  background: linear-gradient(145deg, #f472b6, #e11d48);
}

.category-icon--orange {
  background: linear-gradient(145deg, #fb923c, #ea580c);
}

.category-icon--indigo {
  background: linear-gradient(145deg, #6366f1, #4f46e5);
}

.category-icon--green {
  background: linear-gradient(145deg, #22c55e, #16a34a);
}

.category-card h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
  font-weight: 700;
  color: #1a1220;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.category-card p {
  margin: 0;
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  line-height: 1.55;
  color: #5c4d66;
}

/* CTA */
.cta-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 800px) {
  .cta-panel {
    grid-template-columns: 1fr;
  }
}

.cta-copy .section-title {
  margin-bottom: 0.75rem;
}

.cta-copy .btn {
  margin-top: 1rem;
}

.cta-visual {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cta-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--page-bg-gradient);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1.35rem;
}

.footer-quick-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #7c3aed;
  text-decoration: none;
}

.footer-quick-link:hover {
  text-decoration: underline;
  color: #6d28d9;
}

.footer-copyright {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text);
}

.footer-brand-inline {
  font-weight: 700;
  color: var(--primary);
}

.footer-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 0.25rem;
  border-top: 1px solid rgba(124, 58, 237, 0.12);
}

.footer-meta-item {
  white-space: nowrap;
}

.footer-meta-domain {
  white-space: normal;
}

.footer-meta-link {
  color: #7c3aed;
  text-decoration: none;
}

.footer-meta-link:hover {
  text-decoration: underline;
}

.footer-anchor-section {
  max-width: 52em;
  margin-inline: auto;
}

.footer-anchor-text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary);
}

.footer-brand span {
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 56em;
}
