/* Tailwind CSS替代样式 */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f0f2f5;
    color: #1f2937;
}

/* 容器和布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.max-w-2xl { max-width: 42rem; }
.max-w-xs { max-width: 20rem; }
.max-w-4xl { max-width: 56rem; }

/* 间距 */
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.pl-5 { padding-left: 1.25rem; }
.pr-12 { padding-right: 3rem; }
.pl-3 { padding-left: 0.75rem; }
.pr-10 { padding-right: 2.5rem; }

.mb-8 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.mr-1 { margin-right: 0.25rem; }

/* 文字样式 */
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* 颜色 */
.text-gray-800 { color: #1f2937; }
.text-gray-700 { color: #374151; }
.text-gray-600 { color: #4b5563; }
.text-gray-500 { color: #6b7280; }
.text-gray-400 { color: #9ca3af; }
.text-gray-900 { color: #111827; }
.text-white { color: #ffffff; }
.text-indigo-700 { color: #3730a3; }
.text-indigo-600 { color: #4f46e5; }
.text-purple-600 { color: #9333ea; }
.text-green-600 { color: #059669; }

.bg-white { background-color: #ffffff; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-indigo-700 { background-color: #4338ca; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-300 { background-color: #d1d5db; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-green-100 { background-color: #d1fae5; }
.bg-purple-600 { background-color: #9333ea; }
.bg-purple-700 { background-color: #7c3aed; }
.bg-green-600 { background-color: #059669; }
.bg-green-700 { background-color: #047857; }
.bg-green-500 { background-color: #10b981; }
.bg-red-500 { background-color: #ef4444; }
.bg-blue-500 { background-color: #3b82f6; }

/* 表单样式 */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-y-0 { top: 0; bottom: 0; }
.right-0 { right: 0; }

.w-full { width: 100%; }
.w-16 { width: 4rem; }
.h-full { height: 100%; }
.h-6 { width: 1.5rem; height: 1.5rem; }
.h-4 { width: 1rem; height: 1rem; }
.h-12 { width: 3rem; height: 3rem; }

.border-2 { border-width: 2px; }
.border { border-width: 1px; }
.border-gray-300 { border-color: #d1d5db; }
.border-transparent { border-color: transparent; }

.rounded-full { border-radius: 9999px; }
.rounded-r-full { border-top-right-radius: 9999px; border-bottom-right-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-md { border-radius: 0.375rem; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }

/* 交互样式 */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

.gap-2 { gap: 0.5rem; }
.gap-x-4 { column-gap: 1rem; }
.gap-y-2 { row-gap: 0.5rem; }

.block { display: block; }
.hidden { display: none; }
.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;
}

.space-y-4 > * + * { margin-top: 1rem; }

.break-all { word-break: break-all; }

/* 自定义样式 */
.search-input {
    transition: all 0.3s ease;
}

.search-input:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.result-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px 0 rgba(0,0,0,0.08);
    border-color: #4f46e5;
}

mark {
    background-color: #fde047;
    color: #1f2937;
    padding: 2px 4px;
    border-radius: 4px;
}

/* 按钮样式 */
button {
    cursor: pointer;
    transition: all 0.2s ease;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    transform: translateY(-1px);
}

/* 输入框和选择框样式 */
input, select {
    border: 1px solid #d1d5db;
}

input:focus, select:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* 标签样式 */
.inline-flex.items-center {
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.bg-gray-100.text-gray-800 {
    background-color: #f3f4f6;
    color: #1f2937;
}

.bg-blue-100.text-blue-800 {
    background-color: #dbeafe;
    color: #1e40af;
}

.bg-green-100.text-green-800 {
    background-color: #d1fae5;
    color: #065f46;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .md\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-left { text-align: left; }
}

/* Toast样式 */
.fixed {
    position: fixed;
}

.top-4 { top: 1rem; }
.right-4 { right: 1rem; }
.z-50 { z-index: 50; }
.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.translate-x-full { --tw-translate-x: 100%; }
.translate-x-0 { --tw-translate-x: 0px; }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-200 { transition-duration: 200ms; }

/* 动画 */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* 分隔线 */
hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
}

.border-t { border-top-width: 1px; }
.border-gray-200 { border-top-color: #e5e7eb; }
