/* ========================================================================
   components.css —— 跨区块复用的公共组件：区块标题、齿轮图标、主按钮
   ======================================================================== */

/* ===== Decorative Section Title ===== */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px;
}
.section-title .deco {
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .deco-line {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-title .deco-line.right {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.section-title h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--text-primary);
  position: relative;
  padding: 0 20px;
}
.section-title h2::before,
.section-title h2::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px; height: 8px;
  background: var(--gold);
  transform: translateY(-50%) rotate(45deg);
}
.section-title h2::before { left: -4px; }
.section-title h2::after { right: -4px; }
.gear-icon {
  width: 24px; height: 24px;
  color: var(--gold);
}
.gear-icon.spin-slow { animation: spin 15s linear infinite; }
.gear-icon.spin-rev { animation: spin 12s linear infinite reverse; }

/* ===== 主按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(58, 123, 213, 0.2), transparent);
  transition: left 0.5s;
}
.btn-primary:hover {
  background: rgba(58, 123, 213, 0.1);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}
.btn-primary:hover::before { left: 100%; }
.btn-primary svg {
  width: 16px; height: 16px;
  transition: transform 0.3s;
}
.btn-primary:hover svg { transform: translateX(4px); }
