/* 首页专属样式 — 不影响其他页面 */

.hp-main {
  overflow-x: hidden;
}

/* ── Hero ── */
.hp-hero {
  position: relative;
  padding: 56px 0 0;
  overflow: hidden;
}

.hp-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255, 153, 0, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(77, 136, 255, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #100e24 0%, var(--bg-dark) 100%);
  pointer-events: none;
}

.hp-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 48px;
}

.hp-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(255, 153, 0, 0.1);
  border: 1px solid rgba(255, 153, 0, 0.25);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hp-hero-text h1 {
  font-size: 2.6rem;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
}

.hp-hero-text h1 br {
  display: none;
}

.hp-hero-text > p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 520px;
}

.hp-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Phone stack */
.hp-phones {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-phone {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.4s ease;
}

.hp-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hp-phone--back {
  width: 160px;
  left: 0;
  top: 40px;
  transform: rotate(-8deg);
  opacity: 0.7;
  z-index: 1;
}

.hp-phone--main {
  width: 220px;
  z-index: 3;
  border-color: rgba(255, 153, 0, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 153, 0, 0.1);
}

.hp-phone--front {
  width: 140px;
  right: 0;
  top: 60px;
  transform: rotate(6deg);
  opacity: 0.8;
  z-index: 2;
}

.hp-phones:hover .hp-phone--back { transform: rotate(-12deg) translateX(-8px); }
.hp-phones:hover .hp-phone--front { transform: rotate(10deg) translateX(8px); }

/* Stats bar */
.hp-stats {
  border-top: 1px solid var(--border);
  background: rgba(21, 20, 40, 0.6);
  backdrop-filter: blur(8px);
}

.hp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.hp-stat {
  padding: 24px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.hp-stat:last-child {
  border-right: none;
}

.hp-stat strong {
  display: block;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.hp-stat span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Section common ── */
.hp-section {
  padding: 80px 0;
}

.hp-section--dark {
  background: #0e0d20;
}

.hp-head {
  text-align: center;
  margin-bottom: 52px;
}

.hp-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hp-head h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--text);
}

.hp-head p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Bento grid ── */
.hp-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 20px;
}

.hp-bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}

.hp-bento-card:hover {
  border-color: rgba(255, 153, 0, 0.4);
  transform: translateY(-3px);
}

.hp-bento-card--wide {
  grid-column: span 2;
  flex-direction: row;
}

.hp-bento-card--wide .hp-bento-img {
  width: 45%;
  flex-shrink: 0;
}

.hp-bento-card--wide .hp-bento-img img {
  height: 100%;
  min-height: 220px;
}

.hp-bento-card--vip {
  border-color: rgba(255, 153, 0, 0.3);
  background: linear-gradient(135deg, #1a1528 0%, #1f1a10 100%);
}

.hp-bento-img {
  overflow: hidden;
}

.hp-bento-img img {
  width: 100%;
  aspect-ratio: 9/14;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s;
}

.hp-bento-card:hover .hp-bento-img img {
  transform: scale(1.04);
}

.hp-bento-body {
  padding: 20px 22px;
  flex: 1;
}

.hp-num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(255, 153, 0, 0.12);
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.hp-bento-body h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 8px;
}

.hp-bento-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Category scroll ── */
.hp-cat-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.hp-cat-scroll::-webkit-scrollbar {
  height: 4px;
}

.hp-cat-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.hp-cat-chip {
  flex: 0 0 120px;
  scroll-snap-align: start;
  text-align: center;
  cursor: default;
}

.hp-cat-chip img {
  width: 120px;
  aspect-ratio: 9/14;
  object-fit: cover;
  object-position: top;
  border-radius: 14px;
  border: 2px solid var(--border);
  margin-bottom: 10px;
  transition: border-color 0.25s, transform 0.25s;
}

.hp-cat-chip:hover img {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.hp-cat-chip span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Showcase ── */
.hp-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hp-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hp-showcase-grid img {
  border-radius: 14px;
  border: 1px solid var(--border);
  aspect-ratio: 9/14;
  object-fit: cover;
  object-position: top;
  width: 100%;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.hp-showcase-grid img:hover {
  transform: scale(1.03);
  z-index: 2;
  position: relative;
}

.hp-sg-1 { transform: translateY(12px); }
.hp-sg-2 { transform: translateY(-8px); }
.hp-sg-3 { transform: translateY(8px); }
.hp-sg-4 { transform: translateY(-12px); }

.hp-showcase-info h2 {
  font-size: 1.8rem;
  margin: 12px 0 16px;
  color: var(--text);
}

.hp-showcase-info > p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.75;
}

.hp-checklist {
  list-style: none;
}

.hp-checklist li {
  position: relative;
  padding: 10px 0 10px 28px;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.hp-checklist li:last-child {
  border-bottom: none;
}

.hp-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ── Download steps ── */
.hp-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.hp-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.3;
  z-index: 0;
}

.hp-step {
  text-align: center;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.hp-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 20px rgba(255, 153, 0, 0.15);
}

.hp-step h3 {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 8px;
}

.hp-step p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Article + TOC ── */
.hp-article-wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}

.hp-toc {
  position: sticky;
  top: calc(var(--header-h) + 80px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.hp-toc h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.hp-toc nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hp-toc a {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}

.hp-toc a:hover {
  color: var(--primary);
  background: rgba(255, 153, 0, 0.06);
  border-left-color: var(--primary);
}

.hp-article {
  max-width: none;
}

/* ── FAQ grid ── */
.hp-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hp-faq-grid .faq-item {
  margin-bottom: 0;
}

/* ── CTA ── */
.hp-cta {
  padding: 0 0 80px;
}

.hp-cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 32px;
  background: linear-gradient(135deg, #1c1638 0%, #2a1a08 50%, #1a1840 100%);
  border: 1px solid rgba(255, 153, 0, 0.2);
  border-radius: 20px;
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
}

.hp-cta-inner::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 153, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hp-cta-text {
  position: relative;
}

.hp-cta-text h2 {
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.hp-cta-text p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.hp-cta-btn {
  flex-shrink: 0;
  position: relative;
  padding: 14px 36px;
  font-size: 1rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hp-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-bento-card--wide {
    grid-column: span 2;
  }

  .hp-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .hp-steps::before {
    display: none;
  }

  .hp-article-wrap {
    grid-template-columns: 1fr;
  }

  .hp-toc {
    position: static;
  }

  .hp-toc nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .hp-toc a {
    border-left: none;
    border: 1px solid var(--border);
  }
}

@media (max-width: 768px) {
  .hp-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hp-hero-text h1 br {
    display: block;
  }

  .hp-hero-text > p {
    margin-left: auto;
    margin-right: auto;
  }

  .hp-hero-cta {
    justify-content: center;
  }

  .hp-phones {
    height: 340px;
    order: -1;
  }

  .hp-phone--main { width: 180px; }
  .hp-phone--back { width: 130px; left: 10%; }
  .hp-phone--front { width: 110px; right: 10%; }

  .hp-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-stat:nth-child(2) {
    border-right: none;
  }

  .hp-stat:nth-child(1),
  .hp-stat:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .hp-bento {
    grid-template-columns: 1fr;
  }

  .hp-bento-card--wide {
    grid-column: span 1;
    flex-direction: column;
  }

  .hp-bento-card--wide .hp-bento-img {
    width: 100%;
  }

  .hp-showcase {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hp-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hp-faq-grid {
    grid-template-columns: 1fr;
  }

  .hp-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 36px 28px;
  }

  .hp-cta-btn {
    width: 100%;
    justify-content: center;
  }

  .hp-section {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .hp-hero-text h1 {
    font-size: 1.7rem;
  }

  .hp-head h2 {
    font-size: 1.5rem;
  }

  .hp-showcase-grid {
    gap: 10px;
  }

  .hp-sg-1, .hp-sg-2, .hp-sg-3, .hp-sg-4 {
    transform: none;
  }
}
