/* ===== 首页专属样式 ===== */
.page-home {
  --ph-ring-progress: 0%;
  background: var(--bg-cream);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  letter-spacing: 0.02em;
  overflow: hidden;
}

/* ---------- 主题声明 ---------- */
.page-home .ph-hero {
  position: relative;
  padding: 52px 0 72px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(245, 240, 232, 0)),
    var(--bg-cream);
  overflow: hidden;
}

.page-home .ph-hero::before {
  content: "";
  position: absolute;
  right: -12%;
  top: -28%;
  width: 58%;
  height: 150%;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.14), rgba(0, 150, 199, 0.02));
  transform: skewX(-12deg);
  pointer-events: none;
}

.page-home .ph-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 40%, var(--cyan) 100%);
  opacity: 0.9;
}

.page-home .ph-hero-grid {
  display: grid;
  gap: 36px;
  position: relative;
  z-index: 1;
}

.page-home .ph-hero-copy {
  max-width: 640px;
}

.page-home .ph-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.page-home .ph-eyebrow-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.page-home .ph-hero h1 {
  margin: 0 0 22px;
  font-family: var(--font-headline);
  font-size: clamp(28px, 5.6vw, 46px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.page-home .ph-hero-divider {
  display: inline-block;
  margin: 0 10px;
  color: var(--accent);
}

.page-home .ph-hero-lead {
  margin: 0 0 30px;
  max-width: 580px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(43, 32, 26, 0.86);
}

.page-home .ph-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.page-home .ph-btn-primary {
  transform: skewX(-4deg);
  border: 0;
}

.page-home .ph-btn-primary:hover {
  transform: skewX(-4deg) translateY(-2px);
}

.page-home .ph-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px;
  transition: color 0.3s var(--ease-out);
}

.page-home .ph-link-arrow:hover {
  color: var(--accent);
}

.page-home .ph-hero-media {
  margin: 0;
  padding: 12px 12px 18px;
  background: var(--bg-deep);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.page-home .ph-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.page-home .ph-hero-media figcaption {
  padding-top: 14px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.86);
}

.page-home .ph-hero-decor {
  position: absolute;
  right: -16px;
  bottom: -32px;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  user-select: none;
}

.page-home .ph-hero-number {
  font-family: var(--font-headline);
  font-size: clamp(120px, 20vw, 220px);
  font-weight: 700;
  line-height: 1;
  color: rgba(27, 58, 92, 0.06);
  letter-spacing: -0.04em;
}

.page-home .ph-hero-slash {
  width: 64px;
  height: 10px;
  margin: 0 0 28px 12px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-deep));
  transform: skewX(-24deg);
}

/* ---------- 内容目录 ---------- */
.page-home .ph-directory {
  position: relative;
  padding-top: 72px;
  padding-bottom: 72px;
  background: var(--bg-cream);
}

.page-home .ph-section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.page-home .ph-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.page-home .ph-kicker-index {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--text-main);
  color: var(--bg-cream);
  font-size: 12px;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.page-home .ph-kicker--light {
  color: var(--gold);
}

.page-home .ph-section-head h2 {
  margin: 0 0 12px;
  font-family: var(--font-headline);
  font-size: clamp(24px, 3.3vw, 32px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.page-home .ph-section-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(43, 32, 26, 0.82);
}

.page-home .ph-dir-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 36px;
}

.page-home .ph-dir-card {
  position: relative;
  display: block;
  padding: 30px 24px 24px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text-main);
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.page-home .ph-dir-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.page-home .ph-dir-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(43, 32, 26, 0.1);
}

.page-home .ph-dir-card:hover::after {
  transform: scaleX(1);
}

.page-home .ph-dir-num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-headline);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: rgba(27, 58, 92, 0.12);
}

.page-home .ph-dir-icon {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--bg-deep);
}

.page-home .ph-dir-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.page-home .ph-dir-card p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(43, 32, 26, 0.78);
  min-height: 76px;
}

.page-home .ph-dir-more {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: gap 0.3s var(--ease-out);
}

.page-home .ph-sync-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  margin-bottom: 28px;
  background: var(--bg-deep);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.page-home .ph-sync-round {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}

.page-home .ph-sync-note {
  margin-left: auto;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.page-home .ph-context-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .ph-context-links a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.page-home .ph-context-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- 版本同步提示 ---------- */
.page-home .ph-version {
  padding: 88px 0;
  background:
    linear-gradient(120deg, var(--bg-deep) 0%, var(--bg-deep-2) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-home .ph-version::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.page-home .ph-version::after {
  content: "";
  position: absolute;
  left: -60px;
  top: 20%;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(45deg);
  pointer-events: none;
}

.page-home .ph-version-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
}

.page-home .ph-version-copy h2 {
  margin: 0 0 18px;
  font-family: var(--font-headline);
  font-size: clamp(24px, 3.3vw, 32px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: #fff;
}

.page-home .ph-version-copy > p {
  margin: 0 0 24px;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.page-home .ph-version-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .ph-version-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.page-home .ph-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.page-home .ph-version-tip {
  margin-bottom: 24px;
  font-size: 15px;
}

.page-home .ph-version-tip strong {
  font-family: var(--font-headline);
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.page-home .ph-btn-version {
  border: 0;
  transform: skewX(-4deg);
}

.page-home .ph-btn-version:hover {
  transform: skewX(-4deg) translateY(-2px);
}

.page-home .ph-download-tip {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.page-home .ph-download-tip summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
  cursor: pointer;
  list-style: none;
}

.page-home .ph-download-tip summary::-webkit-details-marker {
  display: none;
}

.page-home .ph-download-tip summary span {
  display: inline-block;
  color: var(--accent);
  font-size: 18px;
  transition: transform 0.3s var(--ease-out);
}

.page-home .ph-download-tip[open] summary span {
  transform: rotate(45deg);
}

.page-home .ph-download-tip-body {
  padding: 14px 0 4px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.page-home .ph-download-tip-body a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-home .ph-version-media {
  margin: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.page-home .ph-version-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- 三步核对工作流 ---------- */
.page-home .ph-workflow {
  padding: 88px 0;
  background: var(--bg-cream);
}

.page-home .ph-workflow-head {
  margin-bottom: 48px;
}

.page-home .ph-workflow-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.page-home .ph-workflow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
  counter-reset: none;
}

.page-home .ph-workflow-step {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.page-home .ph-step-num {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--text-main);
  color: var(--bg-cream);
  font-family: var(--font-headline);
  font-size: 17px;
  font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.page-home .ph-workflow-step:nth-child(2) .ph-step-num {
  background: var(--bg-deep);
}

.page-home .ph-workflow-step:nth-child(3) .ph-step-num {
  background: var(--accent);
}

.page-home .ph-step-body h3 {
  margin: 0 0 8px;
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-home .ph-step-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(43, 32, 26, 0.8);
  max-width: 460px;
}

.page-home .ph-workflow-media {
  margin: 0;
  padding: 10px 10px 16px;
  background: var(--bg-deep);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.page-home .ph-workflow-media img {
  display: block;
  width: 100%;
  height: auto;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.page-home .ph-workflow-media figcaption {
  padding-top: 12px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- 数据仪表板 ---------- */
.page-home .ph-dashboard {
  padding: 88px 0 72px;
  background:
    radial-gradient(circle at 85% 15%, rgba(0, 180, 216, 0.18), transparent 46%),
    linear-gradient(150deg, var(--bg-deep-2) 0%, var(--bg-deep) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-home .ph-dashboard::before {
  content: "";
  position: absolute;
  left: -70px;
  bottom: 40px;
  width: 220px;
  height: 220px;
  border: 2px solid rgba(0, 180, 216, 0.2);
  transform: rotate(45deg);
  pointer-events: none;
}

.page-home .ph-dashboard::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--accent));
  opacity: 0.7;
}

.page-home .ph-dash-head {
  margin-bottom: 48px;
}

.page-home .ph-dash-head h2 {
  color: #fff;
}

.page-home .ph-dash-head .ph-section-desc {
  color: rgba(255, 255, 255, 0.8);
}

.page-home .ph-stats-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 52px;
}

.page-home .ph-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition: background 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.page-home .ph-stat-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.page-home .ph-ring {
  --ph-ring-progress: 0%;
  position: relative;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 var(--ph-ring-progress), rgba(255, 255, 255, 0.12) var(--ph-ring-progress) 100%);
}

.page-home .ph-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--bg-deep-2);
}

.page-home .ph-ring::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 180, 216, 0.55);
  animation: ph-ring-spin 24s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .ph-ring::after {
    animation: none;
  }
}

@keyframes ph-ring-spin {
  to {
    transform: rotate(360deg);
  }
}

.page-home .ph-ring-value {
  position: relative;
  z-index: 1;
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
}

.page-home .ph-stat-label {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
}

.page-home .ph-dash-chart {
  margin: 0 0 24px;
  padding: 12px 12px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.page-home .ph-dash-chart img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .ph-dash-chart figcaption {
  padding-top: 12px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
}

.page-home .ph-dash-footnote {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- 响应式与网格 ---------- */
@media (min-width: 640px) {
  .page-home .ph-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .ph-dir-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .ph-dir-card:last-child {
    grid-column: span 2;
  }

  .page-home .ph-dir-card:last-child p {
    min-height: auto;
  }
}

@media (min-width: 900px) {
  .page-home .ph-hero {
    padding: 72px 0 96px;
  }

  .page-home .ph-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
  }

  .page-home .ph-version-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }

  .page-home .ph-workflow-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

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

@media (min-width: 1080px) {
  .page-home .ph-dir-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .ph-dir-card:last-child {
    grid-column: auto;
  }

  .page-home .ph-dir-card p {
    min-height: 92px;
  }
}
