/* 本地化 TailwindCSS 替代方案 */
/* 基础样式 */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    transition: color 0.3s, background-color 0.3s;
}

/* 移除所有链接的下划线 */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}



/* 布局类 */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.pt-16 {
    padding-top: 4rem;
}

/* 网格系统 */
.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

/* 弹性布局 */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-x-8 > * + * {
    margin-left: 2rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

/* 文本样式 */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

.text-7xl {
    font-size: 4.5rem;
    line-height: 1;
}

.font-bold {
    font-weight: 800;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

/* 颜色系统 */
.text-gray-100 {
    color: #f3f4f6;
}

.text-gray-300 {
    color: #d1d5db;
}

.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-white {
    color: #ffffff;
}

.text-yellow-500 {
    color: #eab308;
}

.text-yellow-600 {
    color: #ca8a04;
}

.text-yellow-500 {
    color: #facc15;
}

.text-yellow-400 {
    color: #fef08a;
}

.text-yellow-300 {
    color: #fde047;
}

.text-primary-300 {
    color: #93c5fd;
}

.text-primary-400 {
    color: #60a5fa;
}

.text-primary-500 {
    color: #3b82f6;
}

.text-primary-600 {
    color: #2563eb;
}

.text-secondary-300 {
    color: #86efac;
}

.text-secondary-400 {
    color: #4ade80;
}

.text-secondary-500 {
    color: #22c55e;
}

.text-accent-300 {
    color: #fde047;
}

.text-accent-400 {
    color: #facc15;
}

.text-accent-500 {
    color: #eab308;
}



/* 背景颜色 */
.bg-white {
    background-color: #ffffff;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

.bg-gray-300 {
    background-color: #d1d5db;
}

.bg-gray-400 {
    background-color: #9ca3af;
}

.bg-gray-500 {
    background-color: #6b7280;
}

.bg-gray-600 {
    background-color: #4b5563;
}

.bg-gray-700 {
    background-color: #374151;
}

.bg-gray-800 {
    background-color: #1f293b;
}

.bg-gray-900 {
    background-color: #111827;
}

.bg-dark-700 {
    background-color: #334155;
}

.bg-dark-800 {
    background-color: #1e293b;
}

.bg-dark-900 {
    background-color: #0f172a;
}

.bg-primary-200 {
    background-color: #bfdbfe;
}

.bg-primary-300 {
    background-color: #93c5fd;
}

.bg-primary-400 {
    background-color: #60a5fa;
}

.bg-primary-500 {
    background-color: #3b82f6;
}

.bg-primary-600 {
    background-color: #2563eb;
}

.bg-primary-700 {
    background-color: #1d4ed8;
}

.bg-primary-50 {
    background-color: #eff6ff;
}

.bg-secondary-200 {
    background-color: #bbf7d0;
}

.bg-secondary-300 {
    background-color: #86efac;
}

.bg-secondary-400 {
    background-color: #4ade80;
}

.bg-secondary-500 {
    background-color: #22c55e;
}

.bg-accent-200 {
    background-color: #fef08a;
}

.bg-accent-300 {
    background-color: #fde047;
}

.bg-accent-400 {
    background-color: #facc15;
}

.bg-accent-500 {
    color: #eab308;
}

.bg-blue-500 {
    background-color: #3b82f6;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.bg-orange-400 {
    background-color: #fb923c;
}

.bg-orange-600 {
    background-color: #ea580c;
}

.bg-red-400 {
    background-color: #f87171;
}

.bg-yellow-400 {
    background-color: #facc15;
}

.bg-yellow-300 {
    background-color: #fde047;
}

.bg-yellow-500 {
    background-color: #facc15;
}

.bg-yellow-600 {
    background-color: #eab308;
}

.bg-yellow-700 {
    background-color: #ca8a04;
}

.bg-yellow-50 {
    background-color: #fefce8;
}

.bg-green-400 {
    background-color: #4ade80;
}

.bg-purple-400 {
    background-color: #a78bfa;
}

.bg-pink-400 {
    background-color: #f472b6;
}



/* 边框 */
.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-gray-700 {
    border-color: #374151;
}

.border-primary-500 {
    border-color: #3b82f6;
}

.border-primary-300 {
    border-color: #93c5fd;
}

.border-primary-400 {
    border-color: #60a5fa;
}

.border-yellow-400 {
    border-color: #fef08a;
}

.border-yellow-500 {
    border-color: #facc15;
}

.border-yellow-300 {
    border-color: #fde047;
}



/* 圆角 */
.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* 阴影 */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.cute-shadow {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}



/* 定位 */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.top-0 {
    top: 0;
}

.top-1\/2 {
    top: 50%;
}

.left-1\/2 {
    left: 50%;
}

.right-6 {
    right: 1.5rem;
}

.left-6 {
    left: 1.5rem;
}

.bottom-4 {
    bottom: 1rem;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* 尺寸 */
.w-full {
    width: 100%;
}

.w-8 {
    width: 2rem;
}

.w-12 {
    width: 3rem;
}

.w-16 {
    width: 4rem;
}

.w-64 {
    width: 16rem;
}

.h-8 {
    height: 2rem;
}

.h-12 {
    height: 3rem;
}

.h-16 {
    height: 4rem;
}

.h-64 {
    height: 16rem;
}

.max-w-lg {
    max-width: 32rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

/* 间距 */
.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.ml-3 {
    margin-left: 0.75rem;
}

/* 填充 */
.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* 显示 */
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-flex {
    display: inline-flex;
}

/* 响应式 */
@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .sm\:flex-row {
        flex-direction: row;
    }
    
    .sm\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }
    
    .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\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    
    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
    
    .md\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
    
    .md\:text-7xl {
        font-size: 4.5rem;
        line-height: 1;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* 动画 */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceGentle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(12deg);
    }
    50% {
        transform: translateY(-10px) rotate(12deg);
    }
}

@keyframes floatReverse {
    0%, 100% {
        transform: translateY(0px) rotate(-6deg);
    }
    50% {
        transform: translateY(10px) rotate(-6deg);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.animate-bounce-gentle {
    animation: bounceGentle 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-reverse {
    animation: floatReverse 4s ease-in-out infinite;
}

/* 过渡效果 */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    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-500 {
    transition-duration: 500ms;
}

/* 变换 */
.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));
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:bg-primary-600:hover {
    background-color: #2563eb;
}

.hover\:bg-blue-600:hover {
    background-color: #2563eb;
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

.hover\:bg-gray-200:hover {
    background-color: #e5e7eb;
}

.hover\:bg-gray-700:hover {
    background-color: #374151;
}

.hover\:bg-gray-800:hover {
    background-color: #1f293b;
}

.hover\:text-primary-300:hover {
    color: #93c5fd;
}

.hover\:text-primary-400:hover {
    color: #60a5fa;
}

.hover\:text-white:hover {
    color: #ffffff;
}

/* 毛玻璃效果 */
.glass {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}



/* 渐变背景 */
.cute-gradient {
    background: linear-gradient(135deg, #f0f9ff 0%, #f0fdf4 100%);
}

.cute-gradient-alt {
    background: linear-gradient(135deg, #fef9c3 0%, #dbeafe 100%);
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #64748b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}



/* 工具类 */
.z-50 {
    z-index: 50;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-hidden {
    overflow: hidden;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-grow {
    flex-grow: 1;
}

/* 轮播相关 */
.carousel-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: #9ca3af;
    opacity: 0.5;
    transition: all 0.3s;
}

.carousel-indicator.bg-opacity-100 {
    opacity: 1;
}

.carousel-indicator.bg-opacity-50 {
    opacity: 0.5;
}

/* 文本大小响应式 */
@media (min-width: 640px) {
    .sm\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
}

@media (min-width: 768px) {
    .md\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    
    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
    
    .md\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
    
    .md\:text-7xl {
        font-size: 4.5rem;
        line-height: 1;
    }
}

/* 新增颜色支持 */
.bg-pink-500 {
    background-color: #ec4899;
}

.bg-pink-600 {
    background-color: #db2777;
}

.bg-pink-700 {
    background-color: #be185d;
}

.bg-rose-500 {
    background-color: #f43f5e;
}

.bg-rose-600 {
    background-color: #e11d48;
}

.bg-rose-700 {
    background-color: #be123c;
}

.bg-rose-800 {
    background-color: #9f1239;
}

.bg-blue-700 {
    background-color: #1d4ed8;
}

.bg-blue-800 {
    background-color: #1e40af;
}

.bg-purple-600 {
    background-color: #9333ea;
}

.bg-purple-700 {
    background-color: #7c3aed;
}

.bg-purple-800 {
    background-color: #6b21a8;
}

.bg-purple-900 {
    background-color: #581c87;
}

/* 渐变背景 */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-blue-600 {
    --tw-gradient-from: #2563eb;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(37, 99, 235, 0));
}

.from-primary-500 {
    --tw-gradient-from: #3b82f6;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(59, 130, 246, 0));
}

.to-primary-600 {
    --tw-gradient-to: #2563eb;
}

.from-primary-600 {
    --tw-gradient-from: #2563eb;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(37, 99, 235, 0));
}

.to-primary-700 {
    --tw-gradient-to: #1d4ed8;
}

.from-yellow-500 {
    --tw-gradient-from: #facc15;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(250, 204, 21, 0));
}

.to-yellow-600 {
    --tw-gradient-to: #eab308;
}

.from-yellow-600 {
    --tw-gradient-from: #eab308;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(234, 179, 8, 0));
}

.to-yellow-700 {
    --tw-gradient-to: #ca8a04;
}

.from-yellow-400 {
    --tw-gradient-from: #facc15;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(250, 204, 21, 0));
}

.to-yellow-500 {
    --tw-gradient-to: #eab308;
}

.from-yellow-300 {
    --tw-gradient-from: #fde047;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(253, 224, 71, 0));
}

.to-yellow-400 {
    --tw-gradient-to: #facc15;
}

.to-purple-600 {
    --tw-gradient-to: #9333ea;
}

.from-blue-700 {
    --tw-gradient-from: #1d4ed8;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(29, 78, 216, 0));
}

.to-purple-800 {
    --tw-gradient-to: #6b21a8;
}

.from-blue-800 {
    --tw-gradient-from: #1e40af;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(30, 64, 175, 0));
}

.to-purple-900 {
    --tw-gradient-to: #581c87;
}

.from-pink-500 {
    --tw-gradient-from: #ec4899;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(236, 72, 153, 0));
}

.to-rose-500 {
    --tw-gradient-to: #f43f5e;
}

.from-pink-600 {
    --tw-gradient-from: #db2777;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(219, 39, 119, 0));
}

.to-rose-600 {
    --tw-gradient-to: #e11d48;
}

.from-pink-700 {
    --tw-gradient-from: #be185d;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(190, 24, 93, 0));
}

.to-rose-700 {
    --tw-gradient-to: #be123c;
}

.from-pink-800 {
    --tw-gradient-from: #9d174d;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(157, 23, 77, 0));
}

.to-rose-800 {
    --tw-gradient-to: #9f1239;
}

/* 边框颜色 */
.border-blue-600 {
    border-color: #2563eb;
}

.border-pink-500 {
    border-color: #ec4899;
}

/* 阴影增强 */
.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 文字阴影 */
.drop-shadow-sm {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}

.drop-shadow-md {
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
}

.drop-shadow-lg {
    filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1));
} 