/* ============================================
   乐此加密 - 首页专属样式
   ============================================ */

/* --- Hero 区域 --- */
.hero {
  text-align: center;
  padding: 4rem 0;
  background: #e1dcd2 url("/img/bg_img.jpg") no-repeat center center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

/* 深色渐变遮罩层 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /*background: var(--gradient-hero);*/
  z-index: 1;
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.top_container {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 30px;
  width: 90%;
  max-width: 950px;
  margin: 0 auto;
}

.hero h1 {
  color: #222222;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero p {
  color: #000000;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero 区域的 CTA 按钮 - 脉冲呼吸动画 */
.hero .cta-button {
  padding: 14px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.4);
  position: relative;
  overflow: hidden;
}

.hero .cta-button::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  z-index: -1;
  animation: ctaPulse 2.5s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0; transform: scale(1.15); }
}

.hero .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

/* --- 特性区域 --- */
#features {
  padding: 4rem 0 2rem;
}

#features > h2 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
}

.article_block {
  background: var(--color-bg-card);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

/* 顶部渐变色条 */
.article_block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.article_block:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.article_block:hover::before {
  transform: scaleX(1);
}

.article_block h3 {
  color: var(--color-primary-dark);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.article_block p {
  color: #111111; /*var(--color-text-secondary);*/
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- 三步骤区域 --- */
#support {
  padding: 3rem 0;
}

#support > h2 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.support_container {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
}

.support_container ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step-counter;
}

.support_container li {
  position: relative;
  padding-left: 72px;
  padding-bottom: 2rem;
  counter-increment: step-counter;
  margin-bottom: 0;
}

/* 步骤连接线 */
.support_container li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 22px;
  top: 48px;
  width: 2px;
  bottom: 0;
  background: linear-gradient(to bottom, var(--color-primary-light), var(--color-border));
}

.support_container li:last-child {
  padding-bottom: 0;
}

/* 步骤编号圆圈 */
.support_container li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.support_container h3 {
  color: var(--color-text);
  font-size: 1.15rem;
  margin: 0 0 0.4rem 0;
  padding-top: 2px;
}

.support_container p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* --- FAQ 区域（首页） --- */
#faq {
  padding: 3rem 0 4rem;
}

#faq > h2 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

#faq article {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

#faq article:hover {
  box-shadow: var(--shadow-md);
}

/* FAQ 手风琴标题 */
#faq article h3 {
  margin: 0;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition-fast);
  user-select: none;
}

#faq article h3:hover {
  background: #f8fafc;
}

/* 展开/收起箭头 */
#faq article h3::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform var(--transition-fast);
}

#faq article.faq-open h3::after {
  transform: rotate(-135deg);
}

#faq article.faq-open h3 {
  background: #f8fafc;
  color: var(--color-primary);
}

/* FAQ 答案内容区域 */
#faq article .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

#faq article.faq-open .faq-answer {
  max-height: 500px;
}

#faq article p {
  padding: 1rem 1.25rem;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid var(--color-border-light);
}

#faq article p a {
  color: var(--color-primary);
  font-weight: 500;
}

#faq article p a:hover {
  color: var(--color-primary-dark);
}

/* ============================================
   首页响应式 - 768px
   ============================================ */
@media (max-width: 768px) {
  .hero {
    padding: 3.5rem 0 3rem;
  }

  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.35;
  }

  .hero p {
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0 5px;
    margin-bottom: 1.5rem;
  }

  .top_container {
    width: 92%;
    padding: 28px 18px;
    border-radius: var(--radius-lg);
  }

  .hero .cta-button {
    padding: 12px 28px;
    font-size: 0.95rem;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem 0;
  }

  .article_block {
    padding: 20px 16px;
  }

  .article_block h3 {
    font-size: 1.05rem;
  }

  .article_block p {
    font-size: 0.9rem;
  }

  .support_container {
    padding: 1.5rem 1rem 1.5rem 1.25rem;
  }

  .support_container li {
    padding-left: 56px;
    padding-bottom: 1.5rem;
  }

  .support_container li::before {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .support_container li:not(:last-child)::after {
    left: 18px;
    top: 42px;
  }

  #faq article {
    margin-bottom: 0.6rem;
  }

  #faq article h3 {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  #faq article p {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }

  #features > h2,
  #support > h2,
  #faq > h2 {
    font-size: 1.4rem;
  }
}

/* ============================================
   首页响应式 - 480px
   ============================================ */
@media (max-width: 480px) {
  .hero {
    padding: 2.5rem 0;
  }

  .hero h1 {
    font-size: 1.3rem;
  }

  .top_container {
    width: 95%;
    padding: 20px 14px;
  }

  .support_container li {
    padding-left: 50px;
  }

  .support_container li::before {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .support_container li:not(:last-child)::after {
    left: 16px;
    top: 38px;
  }
}
