/* ===== 页面专属：首页 .page-home ===== */
.page-home {
  --ph-bg-alt: #F5ECE1;
  --ph-accent-line: #E85D3A;
  --ph-kiwi-glow: rgba(139, 195, 74, 0.2);
  --ph-ring-color: rgba(139, 195, 74, 0.25);
  --ph-card-shadow: 0 4px 24px rgba(44, 30, 22, 0.06);
  --ph-filter-bg: rgba(255, 255, 255, 0.6);
  --ph-highlight-radius: 20px;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  font-family: var(--font-body);
}

/* ---------- 面包屑 ---------- */
.page-home .breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xs) 1.5rem 0;
  font-size: 0.8rem;
  color: var(--text-soft);
  font-family: var(--font-caption);
  letter-spacing: 0.02em;
}
.page-home .breadcrumb-item + .breadcrumb-separator {
  margin: 0 0.4rem;
}
.page-home .breadcrumb-current {
  color: var(--accent-orange);
  font-weight: 600;
}

/* ---------- 封面专题 ---------- */
.page-home .cover-feature {
  padding: var(--space-md) 1.5rem var(--space-lg);
  position: relative;
  overflow: hidden;
}
.page-home .cover-feature::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle at 70% 40%, var(--ph-kiwi-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.page-home .cover-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "brand"
    "visual"
    "intro"
    "index";
  gap: var(--space-sm) 0;
  align-items: center;
}
.page-home .cover-header {
  grid-area: brand;
  text-align: center;
}
.page-home .cover-brand {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--bg-dark);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.page-home .cover-version {
  font-family: var(--font-subheading);
  font-size: 1rem;
  color: var(--accent-orange);
  margin: var(--space-xs) 0 0;
  font-weight: 600;
  font-style: italic;
}
.page-home .cover-version-accent {
  color: var(--text-soft);
  font-weight: 400;
}
.page-home .cover-visual {
  grid-area: visual;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-sm) 0;
}
.page-home .cover-kiwi {
  width: 200px;
  height: 200px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  animation: ph-spinKiwi 18s linear infinite;
  will-change: transform;
  filter: drop-shadow(0 8px 32px rgba(139, 195, 74, 0.3));
  transition: filter 0.4s ease;
}
.page-home .cover-kiwi:hover {
  animation-duration: 4s;
  filter: drop-shadow(0 12px 48px rgba(139, 195, 74, 0.5));
}
.page-home .cover-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  border: 1.5px solid var(--ph-ring-color);
  animation: ph-pulseRing 4s ease-in-out infinite;
  pointer-events: none;
}
.page-home .cover-ring--slow {
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border-color: rgba(232, 93, 58, 0.15);
  animation-duration: 6s;
  animation-direction: reverse;
}
.page-home .cover-intro {
  grid-area: intro;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.page-home .cover-tagline {
  font-family: var(--font-subheading);
  font-size: 1.15rem;
  font-weight: 600;
  font-style: italic;
  color: var(--accent-orange);
  margin: 0 0 var(--space-xs);
  letter-spacing: 0.04em;
}
.page-home .cover-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0;
}
.page-home .cover-index {
  grid-area: index;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs) var(--space-sm);
  padding-top: var(--space-md);
  border-top: 2px solid var(--ph-accent-line);
  margin-top: var(--space-xs);
}
.page-home .cover-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  padding: 0.3rem 0.8rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
  position: relative;
}
.page-home .cover-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width 0.3s ease;
}
.page-home .cover-link:hover::after,
.page-home .cover-link:focus-visible::after {
  width: 100%;
}
.page-home .cover-link:hover {
  color: var(--accent-orange);
}

/* ---------- 核心优势 ---------- */
.page-home .core-advantages {
  background-color: var(--ph-bg-alt);
  padding: var(--space-lg) 1.5rem;
}
.page-home .section-heading {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--bg-dark);
  margin: 0 0 var(--space-md);
  text-align: center;
  letter-spacing: -0.01em;
}
.page-home .heading-decor {
  color: var(--accent-orange);
  font-size: 1.2rem;
  margin-right: 0.4rem;
  display: inline-block;
}
.page-home .advantages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  max-width: var(--max-width);
  margin: 0 auto;
}
.page-home .advantage-card {
  background: var(--glass-white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--ph-highlight-radius);
  padding: var(--space-sm) var(--space-sm);
  box-shadow: var(--ph-card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.page-home .advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(44, 30, 22, 0.1);
}
.page-home .advantage-icon {
  width: 48px;
  height: 48px;
  color: var(--accent-orange);
  margin-bottom: var(--space-xs);
}
.page-home .advantage-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.page-home .advantage-card[data-theme="security"] .advantage-icon { color: var(--kiwi-green); }
.page-home .advantage-card[data-theme="sync"] .advantage-icon { color: var(--tech-blue); }
.page-home .advantage-card[data-theme="support"] .advantage-icon { color: var(--accent-orange); }
.page-home .advantage-title {
  font-family: var(--font-subheading);
  font-size: 1.3rem;
  font-weight: 600;
  font-style: italic;
  color: var(--bg-dark);
  margin: 0 0 var(--space-xs);
}
.page-home .advantage-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0;
}

/* ---------- 更新亮点 ---------- */
.page-home .update-highlights {
  padding: var(--space-lg) 1.5rem;
  position: relative;
}
.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: var(--space-md);
}
.page-home .filter-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 1.2rem;
  border: 1.5px solid var(--text-soft);
  border-radius: 30px;
  background: var(--ph-filter-bg);
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.page-home .filter-btn[aria-pressed="true"],
.page-home .filter-btn:hover,
.page-home .filter-btn:focus-visible {
  background: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange);
}
.page-home .highlights-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  max-width: var(--max-width);
  margin: 0 auto;
}
.page-home .highlight-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  background: var(--glass-white);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--ph-highlight-radius);
  padding: var(--space-sm);
  box-shadow: var(--ph-card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease;
}
.page-home .highlight-block:hover {
  transform: translateY(-3px);
}
.page-home .highlight-block--full {
  flex-direction: column;
}
.page-home .highlight-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}
.page-home .highlight-block .highlight-img {
  max-height: 200px;
}
.page-home .highlight-block--full .highlight-img {
  max-height: 150px;
  object-position: center top;
}
.page-home .highlight-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.page-home .highlight-title {
  font-family: var(--font-subheading);
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  color: var(--bg-dark);
  margin: 0;
}
.page-home .highlight-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
}
.page-home .highlight-badge {
  display: inline-block;
  font-family: var(--font-caption);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent-orange);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  align-self: flex-start;
  margin-top: 0.3rem;
}

/* ---------- 品牌日志精选 ---------- */
.page-home .journal-picks {
  background-color: var(--ph-bg-alt);
  padding: var(--space-lg) 1.5rem;
}
.page-home .journal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  max-width: var(--max-width);
  margin: 0 auto;
}
.page-home .journal-card {
  background: var(--glass-white);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--ph-highlight-radius);
  padding: var(--space-sm);
  box-shadow: var(--ph-card-shadow);
  border-left: 4px solid var(--accent-orange);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.page-home .journal-card:hover {
  transform: translateX(4px);
  border-left-color: var(--kiwi-green);
}
.page-home .journal-marker {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(232, 93, 58, 0.12);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.page-home .journal-title {
  font-family: var(--font-subheading);
  font-size: 1.15rem;
  font-weight: 600;
  font-style: italic;
  color: var(--bg-dark);
  margin: 0 0 var(--space-xs);
}
.page-home .journal-summary {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0 0 var(--space-xs);
}
.page-home .journal-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-orange);
  text-decoration: none;
  transition: gap 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.page-home .journal-link:hover,
.page-home .journal-link:focus-visible {
  gap: 0.6rem;
  text-decoration: underline;
}

/* ---------- 动画 ---------- */
@keyframes ph-spinKiwi {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes ph-pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.12); opacity: 0.2; }
}

/* ---------- 桌面端 (≥768px) ---------- */
@media (min-width: 768px) {
  .page-home .cover-feature {
    padding: var(--space-lg) 1.5rem;
  }
  .page-home .cover-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "brand visual"
      "intro visual"
      "index index";
    gap: var(--space-sm) var(--space-md);
    max-width: var(--max-width);
    margin: 0 auto;
  }
  .page-home .cover-header {
    text-align: left;
    align-self: end;
  }
  .page-home .cover-brand {
    font-size: 3.6rem;
  }
  .page-home .cover-visual {
    padding: 0;
    justify-content: flex-end;
    align-self: center;
  }
  .page-home .cover-kiwi {
    width: 320px;
    height: 320px;
  }
  .page-home .cover-ring {
    width: 340px;
    height: 340px;
    margin: -170px 0 0 -170px;
  }
  .page-home .cover-ring--slow {
    width: 420px;
    height: 420px;
    margin: -210px 0 0 -210px;
  }
  .page-home .cover-intro {
    text-align: left;
    max-width: 480px;
    margin: 0;
    align-self: start;
  }
  .page-home .cover-tagline {
    font-size: 1.3rem;
  }
  .page-home .cover-index {
    justify-content: flex-start;
    padding-top: var(--space-sm);
    margin-top: var(--space-sm);
  }
  .page-home .cover-link {
    font-size: 1rem;
    padding: 0.3rem 1rem;
  }

  .page-home .advantages-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
  .page-home .advantage-card {
    padding: var(--space-md);
  }

  .page-home .highlights-layout {
    gap: var(--space-md);
  }
  .page-home .highlight-block {
    flex-direction: row;
    align-items: center;
    padding: var(--space-md);
  }
  .page-home .highlight-block .highlight-img {
    width: 260px;
    height: 170px;
    flex-shrink: 0;
  }
  .page-home .highlight-block--full {
    flex-direction: row;
  }
  .page-home .highlight-block--full .highlight-img {
    width: 400px;
    max-height: 140px;
  }
  .page-home .highlight-content {
    padding-left: var(--space-sm);
  }
  .page-home .highlight-title {
    font-size: 1.3rem;
  }

  .page-home .journal-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
  .page-home .journal-card {
    padding: var(--space-md);
  }
  .page-home .journal-marker {
    font-size: 2.4rem;
  }
}

/* ---------- 大桌面端 (≥1024px) ---------- */
@media (min-width: 1024px) {
  .page-home .cover-brand {
    font-size: 4.2rem;
  }
  .page-home .cover-kiwi {
    width: 380px;
    height: 380px;
  }
  .page-home .cover-ring {
    width: 400px;
    height: 400px;
    margin: -200px 0 0 -200px;
  }
  .page-home .cover-ring--slow {
    width: 500px;
    height: 500px;
    margin: -250px 0 0 -250px;
  }
  .page-home .cover-intro {
    max-width: 520px;
  }
  .page-home .cover-desc {
    font-size: 1.05rem;
  }
  .page-home .section-heading {
    font-size: 2.4rem;
  }
  .page-home .advantage-title {
    font-size: 1.5rem;
  }
}
