:root {
  --primary: #7B68EE;
  --primary-dark: #5A4ACF;
  --secondary: #4CAF50;
  --accent: #FFD700;
  --dark: #2D2D2D;
  --light: #F8F9FA;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background-color: #0a0e17;
  color: #f8f9fa;
  overflow-x: hidden;
}

.header-scrolled {
  background: rgba(10, 14, 23, 0.94) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.page-hero-guide {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 10% 20%, rgba(76, 175, 80, 0.18) 0%, transparent 35%),
    radial-gradient(circle at 90% 80%, rgba(123, 104, 238, 0.14) 0%, transparent 35%),
    linear-gradient(160deg, #0a0e17 0%, #151b2d 100%);
  overflow: hidden;
}

.page-hero-guide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(123, 104, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 104, 238, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, transparent 100%);
}

.hero-guide-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.section-title-guide {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  position: relative;
  padding-left: 1rem;
}

.section-title-guide::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 5px;
  background: linear-gradient(to bottom, var(--secondary), var(--primary));
  border-radius: 3px;
}

.guide-card {
  position: relative;
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.guide-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--secondary), var(--primary));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.guide-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(76, 175, 80, 0.18);
  border-color: rgba(76, 175, 80, 0.25);
}

.guide-card:hover::before {
  transform: scaleY(1);
}

.guide-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(123, 104, 238, 0.15));
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--accent);
}

.faq-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(123, 104, 238, 0.25);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  text-align: left;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.25rem;
  color: rgba(255,255,255,0.75);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  transition: transform 0.3s ease;
  color: var(--accent);
}

.btn-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 0 var(--primary-dark), 0 12px 24px rgba(0, 0, 0, 0.35);
}

.btn-3d:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 0 var(--primary-dark), 0 20px 36px rgba(0, 0, 0, 0.4);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(123, 104, 238, 0.2);
  color: #d4cdff;
  border: 1px solid rgba(123, 104, 238, 0.3);
}
