@charset "utf-8";
/* controls.css · 按钮、行内链接和通用图标 */

.icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: currentColor;
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding-inline: 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.btn--primary {
  background: var(--accent-solid);
  color: #ffffff;
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(
    115deg,
    transparent 25%,
    rgba(255, 255, 255, 0.3) 48%,
    transparent 70%
  );
  translate: -130% 0;
  transition: translate 0.65s var(--ease);
  pointer-events: none;
}

.btn--primary:hover {
  background: var(--accent-solid-hover);
}

.btn--primary:hover::before,
.btn--primary:focus-visible::before {
  translate: 130% 0;
}

.btn--ghost {
  border-color: var(--line);
  color: var(--fg);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-tint);
  background: var(--accent-wash);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-2);
  transition: color 0.25s var(--ease);
}

.link-arrow__glyph {
  display: inline-block;
  color: var(--fg-3);
  transition:
    transform 0.3s var(--ease),
    color 0.25s var(--ease);
}

.link-arrow:hover {
  color: var(--accent);
}

.link-arrow:hover .link-arrow__glyph {
  transform: translateX(4px);
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .link-arrow:hover .link-arrow__glyph {
    transform: none;
  }
}

@media (max-width: 380px) {
  .hero__actions .btn {
    flex: 1 1 auto;
  }
}
