/* ===== 首页专属样式 ===== */
.page-home {
  --home-glow: rgba(30, 144, 255, 0.35);
  position: relative;
}

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

/* --- Hero 首屏 --- */
.home-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 72px;
  isolation: isolate;
}

.home-hero-media,
.home-hero-overlay,
.home-hero-gridline,
.home-hero-beam {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-hero-media {
  z-index: -4;
}

.home-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.home-hero-overlay {
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(13, 17, 23, 0.72) 0%, rgba(13, 17, 23, 0.88) 55%, var(--bg) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(30, 144, 255, 0.22), transparent 55%);
}

.home-hero-gridline {
  z-index: -2;
  background-image:
    linear-gradient(rgba(30, 144, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 144, 255, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 80%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 80%);
}

.home-hero-beam {
  z-index: -1;
  top: -25%;
  right: -12%;
  left: 55%;
  height: 150%;
  background: linear-gradient(100deg, transparent, rgba(30, 144, 255, 0.18) 58%, rgba(255, 127, 80, 0.16) 100%);
  transform: rotate(18deg);
}

.home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 72px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 0;
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.home-hero-context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.home-hero-context-label {
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero-context a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition);
}

.home-hero-context a:hover {
  color: var(--blue);
}

.home-hero-context-sep {
  color: var(--border);
}

.home-hero-context-current {
  color: var(--text);
  font-weight: 600;
}

.home-hero-badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.home-hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 7.2vw, 5.4rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--white);
  margin: 0 0 10px;
  max-width: 760px;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.42);
}

.home-hero-en {
  display: block;
  font-family: var(--font-data);
  font-size: 0.76rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 20px;
}

.home-hero-lead {
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.75;
  color: rgba(230, 237, 243, 0.88);
  max-width: 620px;
  margin: 0 0 28px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.home-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
}

.home-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-stat-num {
  font-family: var(--font-data);
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  text-shadow: 0 0 30px var(--home-glow);
  animation: home-num-pulse 3.2s ease-in-out infinite;
}

.home-stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes home-num-pulse {
  0%, 100% {
    text-shadow: 0 0 16px rgba(30, 144, 255, 0.3);
  }
  50% {
    text-shadow: 0 0 32px rgba(30, 144, 255, 0.75);
  }
}

/* --- V4 数据面板 --- */
.home-v4-grid {
  display: grid;
  gap: 28px;
}

.home-v4-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
  background: var(--card);
}

.home-v4-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.home-v4-media-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--white);
  background: rgba(13, 17, 23, 0.72);
  border: 1px solid rgba(30, 144, 255, 0.5);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}

.home-v4-list {
  display: grid;
  gap: 14px;
}

.home-v4-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.home-v4-item:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 144, 255, 0.5);
  box-shadow: var(--shadow-blue);
}

.home-v4-item-num {
  font-family: var(--font-data);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.4;
  min-width: 26px;
}

.home-v4-item h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}

.home-v4-item p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0;
}

/* --- 三步定位 --- */
.home-steps {
  position: relative;
}

.home-steps-track {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.home-step-card {
  position: relative;
  padding: 30px 24px 24px;
  background: linear-gradient(160deg, var(--card-raised), var(--card));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  animation: home-step-in 0.6s var(--ease-out) both;
}

.home-step-card:nth-child(2) {
  animation-delay: 0.12s;
}

.home-step-card:nth-child(3) {
  animation-delay: 0.24s;
}

.home-step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 127, 80, 0.45);
  box-shadow: var(--shadow-orange);
}

.home-step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), transparent);
  border-radius: 0 3px 3px 0;
}

.home-step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(30, 144, 255, 0.85);
  margin-bottom: 12px;
}

.home-step-name {
  display: block;
  font-size: 1.36rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.home-step-card p {
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--text-dim);
  margin: 0 0 16px;
}

.home-step-chip {
  display: inline-block;
}

.home-steps-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

.home-steps-media img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center 28%;
}

@keyframes home-step-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- 核心功能 --- */
.home-features {
  position: relative;
  overflow: hidden;
}

.home-features-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
}

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

.home-features-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(13, 17, 23, 0.86) 55%, var(--bg) 100%);
}

.home-features .container {
  position: relative;
  z-index: 1;
}

.home-features-grid {
  display: grid;
  gap: 16px;
}

.home-feature-card {
  padding: 28px 24px;
  background: rgba(22, 27, 34, 0.92);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.home-feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(30, 144, 255, 0.45);
  box-shadow: var(--shadow-card);
}

.home-feature-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 18px 0 10px;
}

.home-feature-card p {
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--text-dim);
  margin: 0;
}

.home-feature-card--focus {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    linear-gradient(150deg, rgba(30, 144, 255, 0.14), transparent 55%),
    rgba(22, 27, 34, 0.94);
  border-color: rgba(30, 144, 255, 0.35);
}

.home-feature-card--focus h3 {
  font-size: 1.55rem;
  margin-top: 0;
}

.home-feature-card--focus p {
  max-width: 40ch;
}

.home-feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.home-feature-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--font-data);
  font-size: 0.86rem;
  color: var(--text);
}

.home-feature-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-feature-metrics span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(63, 185, 80, 0.6);
}

/* --- 下载体验 --- */
.home-download-grid {
  display: grid;
  gap: 18px;
}

.home-download-card {
  position: relative;
  padding: 30px 26px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.home-download-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float);
}

.home-download-card--current {
  border-color: rgba(30, 144, 255, 0.5);
  box-shadow: var(--shadow-blue);
}

.home-download-version {
  position: absolute;
  top: 8px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border);
  opacity: 0.75;
}

.home-download-card--current .home-download-version {
  -webkit-text-stroke: 1.5px rgba(30, 144, 255, 0.7);
}

.home-download-card h3 {
  font-size: 1.34rem;
  font-weight: 800;
  color: var(--text);
  margin: 42px 0 16px;
  padding-right: 56px;
}

.home-download-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.home-download-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(230, 237, 243, 0.82);
}

.home-download-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--blue), var(--orange));
}

.home-download-card--guide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(140deg, rgba(255, 127, 80, 0.12), transparent 50%),
    var(--card);
}

.home-download-card--guide h3 {
  margin-top: 0;
}

.home-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.home-download-foot {
  margin-top: 32px;
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.home-download-honor {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.home-download-extra {
  margin: 0;
}

.home-download-extra a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.home-download-extra a:hover {
  color: var(--orange);
}

/* --- 平板适配 --- */
@media (min-width: 640px) {
  .home-hero-stats {
    gap: 24px 56px;
  }

  .home-v4-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-steps-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-step-card:last-child {
    grid-column: 1 / -1;
  }

  .home-steps-media img {
    height: 280px;
  }

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

  .home-download-card--guide {
    grid-column: 1 / -1;
  }

  .home-download-foot {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* --- 桌面适配 --- */
@media (min-width: 960px) {
  .home-hero {
    min-height: 96vh;
    padding-bottom: 96px;
  }

  .home-v4-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    align-items: center;
  }

  .home-v4-list {
    grid-template-columns: 1fr;
  }

  .home-steps-track {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
  }

  .home-step-card:last-child {
    grid-column: auto;
  }

  .home-steps-track::before {
    content: "";
    position: absolute;
    top: 108px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--orange), var(--blue));
    opacity: 0.35;
  }

  .home-step-num {
    font-size: 4.2rem;
  }

  .home-steps-media img {
    height: 340px;
    object-position: center 22%;
  }

  .home-features-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-areas:
      "focus focus focus focus saved saved"
      "focus focus focus focus exports exports"
      "sub sub sub sub sub sub";
  }

  .home-feature-card--focus {
    grid-area: focus;
  }

  .home-feature-card--saved {
    grid-area: saved;
  }

  .home-feature-card--exports {
    grid-area: exports;
  }

  .home-feature-card--sub {
    grid-area: sub;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 28px;
  }

  .home-feature-card--sub .tag {
    flex-shrink: 0;
  }

  .home-feature-card--sub h3 {
    margin: 0;
    flex-shrink: 0;
  }

  .home-feature-card--sub p {
    max-width: 46ch;
  }

  .home-download-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-download-card--guide {
    grid-column: auto;
  }
}

/* --- 减弱动效 --- */
@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
