/* 首页本地样式（替代 Tailwind CDN，首屏更快） */
*, *::before, *::after { box-sizing: border-box; border-width: 0; border-style: solid; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; line-height: inherit; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: inherit; }
button { font: inherit; color: inherit; background: transparent; border: none; cursor: pointer; }
details > summary { list-style: none; }
hr { border: 0; border-top: 1px solid; }

:root {
  --hp-primary: #2B80FF;
  --hp-secondary: #1E40AF;
  --hp-accent: #3B82F6;
  --hp-dark: #1E293B;
  --hp-light: #F8FAFC;
}

.bg-light { background-color: var(--hp-light); }
.text-dark { color: var(--hp-dark); }
.font-sans { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.text-primary { color: var(--hp-primary); }
.bg-primary { background-color: var(--hp-primary); }
.bg-dark { background-color: var(--hp-dark); }
.text-white { color: #fff; }

.container { width: 100%; margin-left: auto; margin-right: auto; }
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

.mx-auto { margin-left: auto; margin-right: auto; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.p-1 { padding: 0.25rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.pt-28 { padding-top: 7rem; }
.pb-20 { padding-bottom: 5rem; }

.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.flex { display: flex; }
.inline-block { display: inline-block; }
.block { display: block; }
.hidden { display: none; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.shrink-0 { flex-shrink: 0; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }

.w-full { width: 100%; }
.w-11 { width: 2.75rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-4\/5 { width: 80%; }
.h-11 { height: 2.75rem; }
.h-4\/5 { height: 80%; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-48 { height: 12rem; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }

.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.top-6 { top: 1.5rem; }
.right-0 { right: 0; }
.right-6 { right: 1.5rem; }
.left-0 { left: 0; }
.bottom-0 { bottom: 0; }
.bottom-6 { bottom: 1.5rem; }
.-right-3 { right: -0.75rem; }
.-z-10 { z-index: -10; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-\[60\] { z-index: 60; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; border-color: #e5e7eb; }
.border-t { border-top-width: 1px; border-color: #e5e7eb; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-800 { border-color: #1f2937; }
.border-primary { border-color: var(--hp-primary); }
.border-primary\/30 { border-color: rgba(43, 128, 255, 0.3); }
.border-white\/80 { border-color: rgba(255, 255, 255, 0.8); }

.bg-white { background-color: #fff; }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }
.bg-gray-50 { background-color: #f9fafb; }
.bg-amber-500 { background-color: #f59e0b; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-50\/50 { background-color: rgba(239, 246, 255, 0.5); }
.bg-green-50 { background-color: #f0fdf4; }
.bg-purple-50 { background-color: #faf5ff; }
.bg-yellow-50 { background-color: #fefce8; }
.bg-indigo-50 { background-color: #eef2ff; }
.bg-pink-50 { background-color: #fdf2f8; }
.bg-primary\/10 { background-color: rgba(43, 128, 255, 0.1); }
.bg-primary\/15 { background-color: rgba(43, 128, 255, 0.15); }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-\[clamp\(1\.8rem\,4vw\,2\.5rem\)\] { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.text-\[clamp\(2rem\,5vw\,3\.5rem\)\] { font-size: clamp(2rem, 5vw, 3.5rem); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-tight { line-height: 1.25; }
.text-center { text-align: center; }
.underline { text-decoration: underline; }

.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-amber-600 { color: #d97706; }
.text-primary\/70 { color: rgba(43, 128, 255, 0.7); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }

.opacity-0 { opacity: 0; }
.opacity-80 { opacity: 0.8; }
.opacity-100 { opacity: 1; }
.pointer-events-none { pointer-events: none; }

.overflow-hidden { overflow: hidden; }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-700 { transition-duration: 700ms; }
.transition-custom { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

.transform { transform: translateZ(0); }
.translate-y-8 { transform: translateY(2rem); }
.translate-y-full { transform: translateY(100%); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.group[open] .group-open\:rotate-180 { transform: rotate(180deg); }

.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.from-blue-50 { --tw-gradient-from: #eff6ff; --tw-gradient-to: rgb(239 246 255 / 0); }
.to-indigo-50 { --tw-gradient-to: #eef2ff; }
.from-primary\/90 { --tw-gradient-from: rgba(43, 128, 255, 0.9); --tw-gradient-to: rgba(43, 128, 255, 0); }
.to-primary { --tw-gradient-to: var(--hp-primary); }

.hover\:bg-primary\/90:hover { background-color: rgba(43, 128, 255, 0.9); }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); }
.hover\:text-primary:hover { color: var(--hp-primary); }
.hover\:border-primary:hover { border-color: var(--hp-primary); }
.hover\:opacity-100:hover { opacity: 1; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.focus\:not-sr-only:focus { position: static; width: auto; height: auto; padding: inherit; margin: inherit; overflow: visible; clip: auto; white-space: normal; }
.focus\:absolute:focus { position: absolute; }
.focus\:top-2:focus { top: 0.5rem; }
.focus\:left-2:focus { left: 0.5rem; }
.focus\:z-\[100\]:focus { z-index: 100; }
.focus\:bg-white:focus { background-color: #fff; }
.focus\:px-4:focus { padding-left: 1rem; padding-right: 1rem; }
.focus\:py-2:focus { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.focus\:rounded:focus { border-radius: 0.25rem; }

.prose-sm { font-size: 0.875rem; line-height: 1.6; }
.cursor-pointer { cursor: pointer; }
.list-none { list-style: none; }

@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:inline { display: inline; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:ml-4 { margin-left: 1rem; }
  .sm\:mt-0 { margin-top: 0; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:w-1\/2 { width: 50%; }
  .md\:w-4\/5 { width: 80%; }
  .md\:h-4\/5 { height: 80%; }
  .md\:mb-0 { margin-bottom: 0; }
  .md\:mr-6 { margin-right: 1.5rem; }
  .md\:pt-36 { padding-top: 9rem; }
  .md\:pb-28 { padding-bottom: 7rem; }
  .md\:gap-6 { gap: 1.5rem; }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .transition-all, .transition-opacity, .transition-transform, .transition-custom, .duration-300, .duration-700 {
    transition: none !important;
  }
}
