/**
 * 全站基础：背景、版心、卡片、按钮、页脚等（与各页 Tailwind 类配合）
 */
@import url('site-tokens.css');
@import url('site-typography.css');
@import url('reveal-on-scroll.css');
@import url('floating-orb.css');
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--site-font-sans, system-ui, sans-serif);
  overflow-x: clip;
}

@supports not (overflow: clip) {
  body {
    overflow-x: hidden;
  }
}

.site-content-layer main,
.site-content-layer .container {
  max-width: 100%;
}

img,
video {
  max-width: 100%;
  height: auto;
}

button,
[role='button'],
[type='button'],
[type='submit'],
.site-nav-link {
  touch-action: manipulation;
}

a[href]:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--site-focus-ring, 0 0 0 3px rgba(22, 93, 255, 0.35));
  border-radius: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body.app-bg {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(22, 93, 255, 0.08), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(76, 175, 80, 0.06), transparent 50%),
    linear-gradient(180deg, rgb(248 250 252) 0%, rgb(241 245 249) 100%);
}

.dark body.app-bg {
  background:
    radial-gradient(1000px 500px at 15% -5%, rgba(22, 93, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgb(15 23 42) 0%, rgb(2 6 23) 100%);
}

.site-content-layer {
  position: relative;
  z-index: 10;
}

.surface-plain {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--site-shadow-soft);
}

.dark .surface-plain {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(51, 65, 85, 0.65);
}

.btn-base {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--site-radius-xl);
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--site-primary, #16a34a);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-outline {
  background: transparent;
}

.field {
  border-radius: var(--site-radius-xl);
  border: 1px solid rgb(226 232 240);
  background: rgba(255, 255, 255, 0.9);
}

.dark .field {
  border-color: rgb(51 65 85);
  background: rgba(15, 23, 42, 0.6);
}

.site-footer-spring-mark {
  margin-bottom: 0.5rem;
}

.site-footer-spring-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgb(22 163 74);
  border: 2px solid rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.08);
}

.dark .site-footer-spring-ring {
  color: rgb(74 222 128);
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(22, 163, 74, 0.12);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.modal-backdrop.modal-enter,
.modal-content-pop.modal-enter {
  opacity: 0;
}

.modal-backdrop.modal-enter-active,
.modal-content-pop.modal-enter-active {
  opacity: 1;
  transition: opacity 0.25s ease;
}

.modal-content-pop.modal-leave {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

