/* ===== 首页落地页样式 (替代 Tailwind CDN) ===== */
/* 仅包含 index.html 实际使用到的工具类 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
::selection { background: #005BAB; color: #fff; }

/* ---------- Layout ---------- */
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.inline-flex { display: inline-flex; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }

.flex-col { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.text-right { text-align: right; }

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

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-10 { gap: 2.5rem; }
.gap-16 { gap: 4rem; }

.space-x-8 > * + * { margin-inline-start: 2rem; }
.space-y-2 > * + * { margin-block-start: 0.5rem; }

/* ---------- Sizing ---------- */
.w-full { width: 100%; }
.w-2 { width: 0.5rem; }
.w-3\.5 { width: 0.875rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-7 { width: 1.75rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }
.w-40 { width: 10rem; }
.w-44 { width: 11rem; }
.w-64 { width: 16rem; }
.w-72 { width: 18rem; }
.w-80 { width: 20rem; }
.w-96 { width: 24rem; }
.w-\[18px\] { width: 18px; }

.h-2 { height: 0.5rem; }
.h-3\.5 { height: 0.875rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-7 { height: 1.75rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-72 { height: 18rem; }
.h-80 { height: 20rem; }
.h-96 { height: 24rem; }
.h-\[18px\] { height: 18px; }
.h-auto { height: auto; }
.h-full { height: 100%; }

.min-h-screen { min-height: 100vh; }
.min-w-\[140px\] { min-width: 140px; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-\[500px\] { max-width: 500px; }
.aspect-square { aspect-ratio: 1 / 1; }

/* ---------- Spacing ---------- */
.p-1\.5 { padding: 0.375rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-1\.5 { padding-inline: 0.375rem; }
.px-2 { padding-inline: 0.5rem; }
.px-2\.5 { padding-inline: 0.625rem; }
.px-4 { padding-inline: 1rem; }
.px-5 { padding-inline: 1.25rem; }
.px-8 { padding-inline: 2rem; }
.py-0\.5 { padding-block: 0.125rem; }
.py-1 { padding-block: 0.25rem; }
.py-2 { padding-block: 0.5rem; }
.py-2\.5 { padding-block: 0.625rem; }
.py-4 { padding-block: 1rem; }
.py-12 { padding-block: 3rem; }
.py-20 { padding-block: 5rem; }
.py-24 { padding-block: 6rem; }
.pt-32 { padding-block-start: 8rem; }
.pb-20 { padding-block-end: 5rem; }

.mx-auto { margin-inline: auto; }
.mt-1 { margin-block-start: 0.25rem; }
.mt-2 { margin-block-start: 0.5rem; }
.mt-4 { margin-block-start: 1rem; }
.mt-8 { margin-block-start: 2rem; }
.mb-1 { margin-block-end: 0.25rem; }
.mb-2 { margin-block-end: 0.5rem; }
.mb-3 { margin-block-end: 0.75rem; }
.mb-4 { margin-block-end: 1rem; }
.mb-6 { margin-block-end: 1.5rem; }
.mb-8 { margin-block-end: 2rem; }
.mb-10 { margin-block-end: 2.5rem; }
.mb-16 { margin-block-end: 4rem; }
.ml-2 { margin-inline-start: 0.5rem; }
.mr-2 { margin-inline-end: 0.5rem; }

/* ---------- Position ---------- */
.inset-0 { inset: 0; }
.inset-4 { inset: 1rem; }
.inset-16 { inset: 4rem; }
.top-0 { top: 0; }
.top-1\/2 { top: 50%; }
.top-\[5\%\] { top: 5%; }
.top-\[10\%\] { top: 10%; }
.bottom-0 { bottom: 0; }
.bottom-\[5\%\] { bottom: 5%; }
.bottom-\[10\%\] { bottom: 10%; }
.left-0 { left: 0; }
.left-\[0\%\] { left: 0%; }
.right-0 { right: 0; }
.right-\[0\%\] { right: 0%; }
.-top-24 { top: -6rem; }
.-right-24 { right: -6rem; }
.-left-24 { left: -6rem; }
.-mr-20 { margin-right: -5rem; }
.-mt-20 { margin-top: -5rem; }
.-ml-20 { margin-left: -5rem; }
.-mb-20 { margin-bottom: -5rem; }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }

/* ---------- Typography ---------- */
.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-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* ---------- Colors ---------- */
.text-white { color: #fff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-blue-100 { color: #dbeafe; }
.text-blue-300 { color: #93c5fd; }
.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: #2563eb; }
.text-green-500 { color: #22c55e; }
.text-yellow-500 { color: #eab308; }
.text-orange-300 { color: #fdba74; }
.text-indigo-300 { color: #a5b4fc; }
.text-indigo-500 { color: #6366f1; }
.text-indigo-600 { color: #4f46e5; }
.text-emerald-300 { color: #6ee7b7; }
.text-\[\#005BAB\] { color: #005BAB; }
.text-\[\#EF8200\] { color: #EF8200; }
.text-transparent { color: transparent; }

.bg-white { background-color: #fff; }
.bg-white\/90 { background-color: rgb(255 255 255 / 90%); }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-900 { background-color: #111827; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-100\/50 { background-color: rgb(219 234 254 / 50%); }
.bg-blue-100\/60 { background-color: rgb(219 234 254 / 60%); }
.bg-blue-500 { background-color: #3b82f6; }
.bg-orange-50 { background-color: #fff7ed; }
.bg-orange-50\/80 { background-color: rgb(255 247 237 / 80%); }
.bg-yellow-50 { background-color: #fefce8; }
.bg-yellow-400 { background-color: #facc15; }
.bg-indigo-50 { background-color: #eef2ff; }
.bg-indigo-100 { background-color: #e0e7ff; }
.bg-\[\#005BAB\] { background-color: #005BAB; }
.bg-\[\#EF8200\] { background-color: #EF8200; }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }

/* Gradients */
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }

.from-\[\#005BAB\] { --tw-gradient-from: #005BAB; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-blue-50\/50 { --tw-gradient-from: rgb(239 246 255 / 50%); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-blue-100 { --tw-gradient-from: #dbeafe; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-orange-100 { --tw-gradient-from: #ffedd5; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-indigo-100 { --tw-gradient-from: #e0e7ff; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-emerald-100 { --tw-gradient-from: #d1fae5; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-yellow-300 { --tw-gradient-from: #fde047; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }

.to-white { --tw-gradient-to: #fff; }
.to-blue-50 { --tw-gradient-to: #eff6ff; }
.to-orange-50 { --tw-gradient-to: #fff7ed; }
.to-indigo-50 { --tw-gradient-to: #eef2ff; }
.to-emerald-50 { --tw-gradient-to: #ecfdf5; }
.to-yellow-500 { --tw-gradient-to: #eab308; }
.to-\[\#0088ff\] { --tw-gradient-to: #0088ff; }

/* ---------- Border ---------- */
.border { border-width: 1px; border-style: solid; border-color: #e5e7eb; }
.border-2 { border-width: 2px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #e5e7eb; }
.border-t-0 { border-top-width: 0; }
.border-transparent { border-color: transparent; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-blue-100 { border-color: #dbeafe; }
.border-blue-200 { border-color: #bfdbfe; }
.border-blue-200\/50 { border-color: rgb(191 219 254 / 50%); }
.border-orange-200\/30 { border-color: rgb(254 215 170 / 30%); }
.border-white\/50 { border-color: rgb(255 255 255 / 50%); }
.border-\[\#005BAB\]\/20 { border-color: rgb(0 91 171 / 20%); }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-b-2xl { border-bottom-left-radius: 1rem; border-bottom-right-radius: 1rem; }
.rounded-bl-\[100px\] { border-bottom-left-radius: 100px; }

/* ---------- Effects ---------- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -4px rgb(0 0 0 / 10%); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 10%), 0 8px 10px -6px rgb(0 0 0 / 10%); }
.shadow-\[0_0_40px_rgba\(0\,91\,171\,0\.15\)\] { box-shadow: 0 0 40px rgba(0,91,171,0.15); }
.shadow-blue-500\/30 { --tw-shadow-color: rgb(59 130 246 / 30%); box-shadow: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); }
.drop-shadow-sm { filter: drop-shadow(0 1px 1px rgb(0 0 0 / 5%)); }
.filter { /* enables filter context */ }
.blur-md { filter: blur(12px); }
.blur-3xl { filter: blur(64px); }
.backdrop-blur-md { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.mix-blend-multiply { mix-blend-mode: multiply; }

.opacity-5 { opacity: 0.05; }
.opacity-10 { opacity: 0.1; }
.opacity-20 { opacity: 0.2; }
.opacity-40 { opacity: 0.4; }
.opacity-90 { opacity: 0.9; }

/* ---------- Transitions ---------- */
.transition-all { transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors { transition: color 150ms, background-color 150ms, border-color 150ms; }
.transition-shadow { transition: box-shadow 150ms; }
.transition-transform { transition: transform 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.transform { /* enables transform */ }
.cursor-pointer { cursor: pointer; }

/* ---------- Hover ---------- */
.hover\:bg-\[\#004b8d\]:hover { background-color: #004b8d; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:border-gray-300:hover { border-color: #d1d5db; }
.hover\:text-\[\#005BAB\]:hover { color: #005BAB; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -2px rgb(0 0 0 / 10%); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 10%), 0 8px 10px -6px rgb(0 0 0 / 10%); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:scale-105:hover { transform: scale(1.05); }

/* ---------- Group hover ---------- */
.group:hover .group-hover\:text-white { color: #fff; }
.group:hover .group-hover\:bg-white { background-color: #fff; }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:from-\[\#005BAB\] { --tw-gradient-from: #005BAB; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.group:hover .group-hover\:from-\[\#EF8200\] { --tw-gradient-from: #EF8200; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.group:hover .group-hover\:from-indigo-600 { --tw-gradient-from: #4f46e5; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.group:hover .group-hover\:from-emerald-500 { --tw-gradient-from: #10b981; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.group:hover .group-hover\:to-blue-800 { --tw-gradient-to: #1e40af; }
.group:hover .group-hover\:to-orange-600 { --tw-gradient-to: #ea580c; }
.group:hover .group-hover\:to-indigo-800 { --tw-gradient-to: #3730a3; }
.group:hover .group-hover\:to-emerald-700 { --tw-gradient-to: #047857; }

/* ---------- Animate ---------- */
.animate-pulse { animation: tw-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes tw-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:px-6 { padding-inline: 1.5rem; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
  .sm\:left-\[5\%\] { left: 5%; }
  .sm\:right-\[5\%\] { right: 5%; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .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\:items-end { align-items: flex-end; }
  .md\:mb-0 { margin-block-end: 0; }
  .md\:text-left { text-align: left; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:text-left { text-align: left; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .lg\:justify-start { justify-content: flex-start; }
  .lg\:mx-0 { margin-inline: 0; }
  .lg\:mt-0 { margin-block-start: 0; }
  .lg\:px-8 { padding-inline: 2rem; }
  .lg\:pt-40 { padding-block-start: 10rem; }
  .lg\:pb-32 { padding-block-end: 8rem; }
}
