@charset "UTF-8";
@import url("common.css");

/* ===== 首页 Hero ===== */
.page-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 30%, rgba(127, 29, 29, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(5, 150, 105, 0.12) 0%, transparent 40%),
    linear-gradient(180deg, #0f0f0f 0%, var(--jx-bg) 100%);
  padding-top: 5rem;
  padding-bottom: 4rem;
}

/* 刀光/剑气装饰 */
.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.page-hero::before {
  top: 15%;
  left: -10%;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.6), transparent);
  transform: rotate(-25deg);
  filter: blur(1px);
}

.page-hero::after {
  bottom: 25%;
  right: -5%;
  width: 45%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(5, 150, 105, 0.5), transparent);
  transform: rotate(20deg);
  filter: blur(1px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-title {
  font-family: "Ma Shan Zheng", "KaiTi", "STKaiti", cursive;
  font-size: var(--text-hero);
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 4px 30px rgba(127, 29, 29, 0.6);
}

.hero-title em {
  color: var(--jx-accent);
  font-style: normal;
}

.hero-slogan {
  color: var(--jx-muted);
  font-size: clamp(1rem, 2vw, 1.35rem);
  margin-top: 1rem;
  max-width: 540px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero 右侧视觉 */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone-frame {
  position: relative;
  width: 280px;
  max-width: 90%;
  border-radius: 2rem;
  border: 2px solid rgba(251, 191, 36, 0.25);
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.2), rgba(5, 150, 105, 0.1));
  padding: 0.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(127, 29, 29, 0.15);
  overflow: hidden;
}

.hero-phone-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), transparent 50%);
  pointer-events: none;
}

.hero-phone-frame img {
  border-radius: 1.5rem;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-logo-float {
  position: absolute;
  top: -1.5rem;
  right: -1rem;
  width: 90px;
  max-width: 28vw;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* 向下滚动提示 */
.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--jx-accent);
  animation: bounce 2s infinite;
  z-index: 2;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(10px); }
  60% { transform: translateX(-50%) translateY(5px); }
}

/* ===== 简介 + 数据 ===== */
.intro-section {
  background: var(--jx-bg);
  position: relative;
}

.intro-text {
  color: var(--jx-muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-item {
  background: rgba(127, 29, 29, 0.12);
  border: 1px solid rgba(127, 29, 29, 0.35);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: "Ma Shan Zheng", "KaiTi", "STKaiti", cursive;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--jx-accent);
  line-height: 1;
}

.stat-label {
  color: var(--jx-muted);
  font-size: 0.9rem;
  margin-top: 0.4rem;
  display: block;
}

/* ===== 特色介绍区（左右交替大图+文字） ===== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-media {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--jx-border);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
  aspect-ratio: 16 / 10;
}

.feature-media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-media:hover img {
  transform: scale(1.04);
}

.feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 10, 10, 0.6));
  pointer-events: none;
}

.feature-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--jx-secondary);
  background: rgba(5, 150, 105, 0.12);
  border: 1px solid rgba(5, 150, 105, 0.35);
  margin-bottom: 0.75rem;
}

.feature-title {
  font-family: "Ma Shan Zheng", "KaiTi", "STKaiti", cursive;
  font-size: var(--text-card-title);
  color: #fff;
  margin-bottom: 0.75rem;
}

.feature-desc {
  color: var(--jx-muted);
  line-height: 1.8;
}

/* ===== 下载区（平台标签页） ===== */
.download-section {
  position: relative;
  background:
    radial-gradient(circle at 50% 0%, rgba(127, 29, 29, 0.18) 0%, transparent 50%),
    #0d0d0d;
  border-top: 1px solid var(--jx-border);
  border-bottom: 1px solid var(--jx-border);
}

.download-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.4rem;
  border-radius: 9999px;
  border: 1px solid var(--jx-border);
}

.download-tab {
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  color: var(--jx-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.download-tab:hover {
  color: #fff;
}

.download-tab.active {
  color: #1a0f00;
  background: var(--jx-accent);
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.3);
}

.download-panel {
  display: none;
}

.download-panel.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.download-card {
  background: var(--jx-card);
  border: 1px solid var(--jx-border);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.download-card h3 {
  font-family: "Ma Shan Zheng", "KaiTi", "STKaiti", cursive;
  font-size: 1.75rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.download-card p {
  color: var(--jx-muted);
  margin-bottom: 1.5rem;
}

/* ===== 响应式 md:768px ===== */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }

  .hero-phone-frame {
    width: 340px;
  }

  .hero-logo-float {
    width: 140px;
    max-width: 22vw;
    top: -2rem;
    right: -2rem;
  }

  .feature-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem;
    margin-bottom: 5rem;
  }

  .feature-row.reverse .feature-media {
    order: 2;
  }

  .feature-row.reverse .feature-text {
    order: 1;
  }
}
