/* 自定义样式 - 基于Tailwind CSS */

/* 全局基础样式 */
* {
    border-color: rgb(229 231 235);
}

html {
    height: 100%;
    font-feature-settings: 'cv11', 'ss01';
    font-variation-settings: 'opsz' 32;
}

body {
    height: 100%;
    background-color: rgb(249 250 251);
    color: rgb(17 24 39);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

/* 隐藏元素 */
[x-cloak] { 
    display: none !important; 
}

/* 移动端菜单的x-cloak处理 - 让Alpine.js完全控制显示 */
.mobile-menu[x-cloak] {
    display: none !important;
}

/* Tailwind实用类定义 */
.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;
}

.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

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

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

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

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-x-6 > * + * {
    margin-left: 1.5rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

/* 常用颜色变量 */
:root {
    --color-gray-50: rgb(249 250 251);
    --color-gray-100: rgb(243 244 246);
    --color-gray-200: rgb(229 231 235);
    --color-gray-300: rgb(209 213 219);
    --color-gray-400: rgb(156 163 175);
    --color-gray-500: rgb(107 114 128);
    --color-gray-600: rgb(75 85 99);
    --color-gray-700: rgb(55 65 81);
    --color-gray-800: rgb(31 41 55);
    --color-gray-900: rgb(17 24 39);
    
    /* Primary colors (blue) */
    --color-primary-50: rgb(239 246 255);
    --color-primary-100: rgb(219 234 254);
    --color-primary-200: rgb(191 219 254);
    --color-primary-300: rgb(147 197 253);
    --color-primary-400: rgb(96 165 250);
    --color-primary-500: rgb(59 130 246);
    --color-primary-600: rgb(37 99 235);
    --color-primary-700: rgb(29 78 216);
    --color-primary-800: rgb(30 64 175);
    --color-primary-900: rgb(30 58 138);
    
    /* Success colors (green) */
    --color-success-50: rgb(240 253 244);
    --color-success-100: rgb(220 252 231);
    --color-success-200: rgb(187 247 208);
    --color-success-300: rgb(134 239 172);
    --color-success-400: rgb(74 222 128);
    --color-success-500: rgb(34 197 94);
    --color-success-600: rgb(22 163 74);
    --color-success-700: rgb(21 128 61);
    --color-success-800: rgb(22 101 52);
    --color-success-900: rgb(20 83 45);
    
    /* Warning colors (yellow) */
    --color-warning-50: rgb(254 252 232);
    --color-warning-100: rgb(254 249 195);
    --color-warning-200: rgb(254 240 138);
    --color-warning-300: rgb(253 224 71);
    --color-warning-400: rgb(250 204 21);
    --color-warning-500: rgb(234 179 8);
    --color-warning-600: rgb(202 138 4);
    --color-warning-700: rgb(161 98 7);
    --color-warning-800: rgb(133 77 14);
    --color-warning-900: rgb(113 63 18);
    
    /* Indigo colors */
    --color-indigo-50: rgb(238 242 255);
    --color-indigo-100: rgb(224 231 255);
    --color-indigo-200: rgb(199 210 254);
    --color-indigo-300: rgb(165 180 252);
    --color-indigo-400: rgb(129 140 248);
    --color-indigo-500: rgb(99 102 241);
    --color-indigo-600: rgb(79 70 229);
    --color-indigo-700: rgb(67 56 202);
    --color-indigo-800: rgb(55 48 163);
    --color-indigo-900: rgb(49 46 129);
    
    /* Purple colors */
    --color-purple-50: rgb(250 245 255);
    --color-purple-100: rgb(243 232 255);
    --color-purple-200: rgb(233 213 255);
    --color-purple-300: rgb(196 181 253);
    --color-purple-400: rgb(167 139 250);
    --color-purple-500: rgb(139 92 246);
    --color-purple-600: rgb(124 58 237);
    --color-purple-700: rgb(109 40 217);
    --color-purple-800: rgb(91 33 182);
    --color-purple-900: rgb(76 29 149);
    
    /* Red colors */
    --color-red-50: rgb(254 242 242);
    --color-red-100: rgb(254 226 226);
    --color-red-200: rgb(254 202 202);
    --color-red-300: rgb(252 165 165);
    --color-red-400: rgb(248 113 113);
    --color-red-500: rgb(239 68 68);
    --color-red-600: rgb(220 38 38);
    --color-red-700: rgb(185 28 28);
    --color-red-800: rgb(153 27 27);
    --color-red-900: rgb(127 29 29);
}

/* 常用布局类 */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.text-gray-500 {
    color: var(--color-gray-500);
}

.text-gray-600 {
    color: var(--color-gray-600);
}

.text-gray-700 {
    color: var(--color-gray-700);
}

.text-gray-900 {
    color: var(--color-gray-900);
}

.bg-white {
    background-color: white;
}

.bg-gray-50 {
    background-color: var(--color-gray-50);
}

.bg-gray-100 {
    background-color: var(--color-gray-100);
}

.border {
    border-width: 1px;
}

.border-gray-200 {
    border-color: var(--color-gray-200);
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

/* 响应式类 */
@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .sm\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }
    
    .md\:hidden {
        display: none;
    }
    
    .md\:block {
        display: block;
    }
}

@media (min-width: 1024px) {
    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Primary color classes */
.bg-primary-50 { background-color: var(--color-primary-50); }
.bg-primary-100 { background-color: var(--color-primary-100); }
.bg-primary-200 { background-color: var(--color-primary-200); }
.bg-primary-300 { background-color: var(--color-primary-300); }
.bg-primary-400 { background-color: var(--color-primary-400); }
.bg-primary-500 { background-color: var(--color-primary-500); }
.bg-primary-600 { background-color: var(--color-primary-600); }
.bg-primary-700 { background-color: var(--color-primary-700); }
.bg-primary-800 { background-color: var(--color-primary-800); }
.bg-primary-900 { background-color: var(--color-primary-900); }

.text-primary-50 { color: var(--color-primary-50); }
.text-primary-100 { color: var(--color-primary-100); }
.text-primary-200 { color: var(--color-primary-200); }
.text-primary-300 { color: var(--color-primary-300); }
.text-primary-400 { color: var(--color-primary-400); }
.text-primary-500 { color: var(--color-primary-500); }
.text-primary-600 { color: var(--color-primary-600); }
.text-primary-700 { color: var(--color-primary-700); }
.text-primary-800 { color: var(--color-primary-800); }
.text-primary-900 { color: var(--color-primary-900); }

/* Success color classes */
.bg-success-50 { background-color: var(--color-success-50); }
.bg-success-100 { background-color: var(--color-success-100); }
.bg-success-200 { background-color: var(--color-success-200); }
.bg-success-300 { background-color: var(--color-success-300); }
.bg-success-400 { background-color: var(--color-success-400); }
.bg-success-500 { background-color: var(--color-success-500); }
.bg-success-600 { background-color: var(--color-success-600); }
.bg-success-700 { background-color: var(--color-success-700); }
.bg-success-800 { background-color: var(--color-success-800); }
.bg-success-900 { background-color: var(--color-success-900); }

.text-success-50 { color: var(--color-success-50); }
.text-success-100 { color: var(--color-success-100); }
.text-success-200 { color: var(--color-success-200); }
.text-success-300 { color: var(--color-success-300); }
.text-success-400 { color: var(--color-success-400); }
.text-success-500 { color: var(--color-success-500); }
.text-success-600 { color: var(--color-success-600); }
.text-success-700 { color: var(--color-success-700); }
.text-success-800 { color: var(--color-success-800); }
.text-success-900 { color: var(--color-success-900); }

/* Warning color classes */
.bg-warning-50 { background-color: var(--color-warning-50); }
.bg-warning-100 { background-color: var(--color-warning-100); }
.bg-warning-200 { background-color: var(--color-warning-200); }
.bg-warning-300 { background-color: var(--color-warning-300); }
.bg-warning-400 { background-color: var(--color-warning-400); }
.bg-warning-500 { background-color: var(--color-warning-500); }
.bg-warning-600 { background-color: var(--color-warning-600); }
.bg-warning-700 { background-color: var(--color-warning-700); }
.bg-warning-800 { background-color: var(--color-warning-800); }
.bg-warning-900 { background-color: var(--color-warning-900); }

.text-warning-50 { color: var(--color-warning-50); }
.text-warning-100 { color: var(--color-warning-100); }
.text-warning-200 { color: var(--color-warning-200); }
.text-warning-300 { color: var(--color-warning-300); }
.text-warning-400 { color: var(--color-warning-400); }
.text-warning-500 { color: var(--color-warning-500); }
.text-warning-600 { color: var(--color-warning-600); }
.text-warning-700 { color: var(--color-warning-700); }
.text-warning-800 { color: var(--color-warning-800); }
.text-warning-900 { color: var(--color-warning-900); }

/* Indigo color classes */
.bg-indigo-50 { background-color: var(--color-indigo-50); }
.bg-indigo-100 { background-color: var(--color-indigo-100); }
.bg-indigo-200 { background-color: var(--color-indigo-200); }
.bg-indigo-300 { background-color: var(--color-indigo-300); }
.bg-indigo-400 { background-color: var(--color-indigo-400); }
.bg-indigo-500 { background-color: var(--color-indigo-500); }
.bg-indigo-600 { background-color: var(--color-indigo-600); }
.bg-indigo-700 { background-color: var(--color-indigo-700); }
.bg-indigo-800 { background-color: var(--color-indigo-800); }
.bg-indigo-900 { background-color: var(--color-indigo-900); }

.text-indigo-50 { color: var(--color-indigo-50); }
.text-indigo-100 { color: var(--color-indigo-100); }
.text-indigo-200 { color: var(--color-indigo-200); }
.text-indigo-300 { color: var(--color-indigo-300); }
.text-indigo-400 { color: var(--color-indigo-400); }
.text-indigo-500 { color: var(--color-indigo-500); }
.text-indigo-600 { color: var(--color-indigo-600); }
.text-indigo-700 { color: var(--color-indigo-700); }
.text-indigo-800 { color: var(--color-indigo-800); }
.text-indigo-900 { color: var(--color-indigo-900); }

/* Purple color classes */
.bg-purple-50 { background-color: var(--color-purple-50); }
.bg-purple-100 { background-color: var(--color-purple-100); }
.bg-purple-200 { background-color: var(--color-purple-200); }
.bg-purple-300 { background-color: var(--color-purple-300); }
.bg-purple-400 { background-color: var(--color-purple-400); }
.bg-purple-500 { background-color: var(--color-purple-500); }
.bg-purple-600 { background-color: var(--color-purple-600); }
.bg-purple-700 { background-color: var(--color-purple-700); }
.bg-purple-800 { background-color: var(--color-purple-800); }
.bg-purple-900 { background-color: var(--color-purple-900); }

.text-purple-50 { color: var(--color-purple-50); }
.text-purple-100 { color: var(--color-purple-100); }
.text-purple-200 { color: var(--color-purple-200); }
.text-purple-300 { color: var(--color-purple-300); }
.text-purple-400 { color: var(--color-purple-400); }
.text-purple-500 { color: var(--color-purple-500); }
.text-purple-600 { color: var(--color-purple-600); }
.text-purple-700 { color: var(--color-purple-700); }
.text-purple-800 { color: var(--color-purple-800); }
.text-purple-900 { color: var(--color-purple-900); }

/* Red color classes */
.bg-red-50 { background-color: var(--color-red-50); }
.bg-red-100 { background-color: var(--color-red-100); }
.bg-red-200 { background-color: var(--color-red-200); }
.bg-red-300 { background-color: var(--color-red-300); }
.bg-red-400 { background-color: var(--color-red-400); }
.bg-red-500 { background-color: var(--color-red-500); }
.bg-red-600 { background-color: var(--color-red-600); }
.bg-red-700 { background-color: var(--color-red-700); }
.bg-red-800 { background-color: var(--color-red-800); }
.bg-red-900 { background-color: var(--color-red-900); }

.text-red-50 { color: var(--color-red-50); }
.text-red-100 { color: var(--color-red-100); }
.text-red-200 { color: var(--color-red-200); }
.text-red-300 { color: var(--color-red-300); }
.text-red-400 { color: var(--color-red-400); }
.text-red-500 { color: var(--color-red-500); }
.text-red-600 { color: var(--color-red-600); }
.text-red-700 { color: var(--color-red-700); }
.text-red-800 { color: var(--color-red-800); }
.text-red-900 { color: var(--color-red-900); }

/* Gradient backgrounds */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to));
}

.from-primary-50 {
    --tw-gradient-from: var(--color-primary-50);
}

.to-indigo-100 {
    --tw-gradient-to: var(--color-indigo-100);
}

/* Grid layout classes */
.grid {
    display: grid;
}

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

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

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

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

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    
    .lg\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
    
    .lg\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    
    .lg\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    
    .lg\:py-20 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* Gap utilities */
.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

/* Max width utilities */
.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-sm {
    max-width: 24rem;
}

/* Width and height utilities */
.w-5 {
    width: 1.25rem;
}

.w-8 {
    width: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.w-16 {
    width: 4rem;
}

.w-20 {
    width: 5rem;
}

.h-5 {
    height: 1.25rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-16 {
    height: 4rem;
}

.h-20 {
    height: 5rem;
}

/* Margin utilities */
.mr-2 {
    margin-right: 0.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Padding utilities */
.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Text size utilities */
.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

/* Other utilities */
.rounded-full {
    border-radius: 9999px;
}

/* 添加缺失的尺寸类 */
.w-4 {
    width: 1rem;
}

.w-6 {
    width: 1.5rem;
}

.h-4 {
    height: 1rem;
}

.h-6 {
    height: 1.5rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-1\.5 {
    margin-right: 0.375rem;
}

.-top-1 {
    top: -0.25rem;
}

.-right-1 {
    right: -0.25rem;
}

.h-3 {
    width: 0.75rem;
    height: 0.75rem;
}

.w-3 {
    width: 0.75rem;
}

.h-16 {
    height: 4rem;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.hover\:bg-gray-100:hover {
    background-color: rgb(243 244 246);
}

.hover\:text-gray-500:hover {
    color: rgb(107 114 128);
}

.hover\:bg-gray-50:hover {
    background-color: rgb(249 250 251);
}

/* 新的自定义导航栏样式 - 参考Profile页面风格 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e2e8f0;
    backdrop-filter: blur(10px);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
    padding: 0 1.5rem;
}

@media (min-width: 640px) {
    .navbar-content {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .navbar-content {
        padding: 0 2.5rem;
    }
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: #2d3748;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: #667eea;
    transform: translateY(-1px);
}

.navbar-brand svg {
    width: 32px;
    height: 32px;
    color: #667eea;
    transition: all 0.3s ease;
}

.navbar-brand:hover svg {
    color: #764ba2;
    transform: rotate(5deg) scale(1.1);
}

/* PC端导航链接 */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex !important;
    }
}

.navbar-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #718096;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    border: none;
}

.navbar-link:hover {
    color: #2d3748;
    background: #f7fafc;
    transform: none;
    box-shadow: none;
}

.navbar-link.active {
    color: #667eea;
    background: #f0f4ff;
    box-shadow: none;
}

.navbar-link svg {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

/* 用户认证区域 */
.navbar-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 语言切换按钮 */
.language-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #718096;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.language-toggle-btn:hover {
    color: #2d3748;
    background: white;
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.language-icon {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
}

.language-text {
    display: none;
    font-weight: 500;
}

.language-arrow {
    width: 12px;
    height: 12px;
    color: #cbd5e0;
    transition: all 0.3s ease;
    display: none;
}

/* 桌面端显示文字和箭头 */
@media (min-width: 640px) {
    .language-text {
        display: inline;
    }
    
    .language-arrow {
        display: block;
    }
}

.language-arrow.rotate-180 {
    transform: rotate(180deg);
}

/* 语言切换下拉框样式 */
.language-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.75rem;
    width: 10rem;
    z-index: 50;
    transform-origin: top right;
}

.language-dropdown-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 
                0 10px 10px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 0.75rem 0;
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.language-dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1.25rem;
    text-align: left;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.language-dropdown-item:hover {
    color: #667eea;
    transform: translateX(2px);
}

.language-flag {
    font-size: 1.125rem;
    margin-right: 0.75rem;
}

.language-name {
    font-weight: 600;
    letter-spacing: 0.025em;
}

.language-dropdown-divider {
    height: 1px;
    margin: 0.5rem 1rem;
    background: linear-gradient(90deg, transparent 0%, #e2e8f0 20%, #e2e8f0 80%, transparent 100%);
    opacity: 0.6;
}

/* 下拉框动画 */
.language-dropdown-enter {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.language-dropdown-enter-start {
    opacity: 0;
    transform: scale(0.95) translateY(-8px);
}

.language-dropdown-enter-end {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.language-dropdown-leave {
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.language-dropdown-leave-start {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.language-dropdown-leave-end {
    opacity: 0;
    transform: scale(0.95) translateY(-8px);
}

/* 语言下拉框响应式优化 */
@media (max-width: 640px) {
    .language-dropdown {
        width: 9rem;
        margin-top: 0.5rem;
    }
    
    .language-dropdown-item {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .language-flag {
        font-size: 1rem;
        margin-right: 0.5rem;
    }
}

/* Safari兼容性 */
@supports (-webkit-backdrop-filter: blur(10px)) {
    .language-dropdown-content {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .language-dropdown-content {
        background: white;
        border-width: 2px;
    }
    
    .language-dropdown-item {
        border-bottom: 1px solid #e2e8f0;
    }
    
    .language-dropdown-item:last-child {
        border-bottom: none;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .language-dropdown-item,
    .language-dropdown-enter,
    .language-dropdown-leave {
        transition: none;
        transform: none !important;
    }
    
    .language-dropdown-item:hover {
        transform: none;
    }
}

/* 用户下拉菜单样式 - 与语言切换下拉框一致 */
.user-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.75rem;
    width: 12rem;
    z-index: 50;
    transform-origin: top right;
}

.user-dropdown-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 
                0 10px 10px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 0.75rem 0;
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1.25rem;
    text-align: left;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.user-dropdown-item:hover {
    color: #667eea;
    transform: translateX(2px);
}

.user-dropdown-icon {
    width: 16px;
    height: 16px;
    margin-right: 0.75rem;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.user-dropdown-item:hover .user-dropdown-icon {
    color: #667eea;
}

.user-dropdown-text {
    font-weight: 600;
    letter-spacing: 0.025em;
}

.user-dropdown-divider {
    height: 1px;
    margin: 0.5rem 1rem;
    background: linear-gradient(90deg, transparent 0%, #e2e8f0 20%, #e2e8f0 80%, transparent 100%);
    opacity: 0.6;
}

/* 退出登录按钮特殊样式 */
.user-dropdown-logout {
    color: #dc2626;
}

.user-dropdown-logout:hover {
    color: #b91c1c;
}

.user-dropdown-logout .user-dropdown-icon {
    color: #f87171;
}

.user-dropdown-logout:hover .user-dropdown-icon {
    color: #dc2626;
}

/* 用户下拉框动画 */
.user-dropdown-enter {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.user-dropdown-enter-start {
    opacity: 0;
    transform: scale(0.95) translateY(-8px);
}

.user-dropdown-enter-end {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.user-dropdown-leave {
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.user-dropdown-leave-start {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.user-dropdown-leave-end {
    opacity: 0;
    transform: scale(0.95) translateY(-8px);
}

/* 用户下拉框响应式优化 */
@media (max-width: 640px) {
    .user-dropdown {
        width: 11rem;
        margin-top: 0.5rem;
    }
    
    .user-dropdown-item {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .user-dropdown-icon {
        width: 14px;
        height: 14px;
        margin-right: 0.5rem;
    }
}

/* Safari兼容性 */
@supports (-webkit-backdrop-filter: blur(10px)) {
    .user-dropdown-content {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .user-dropdown-content {
        background: white;
        border-width: 2px;
    }
    
    .user-dropdown-item {
        border-bottom: 1px solid #e2e8f0;
    }
    
    .user-dropdown-item:last-child {
        border-bottom: none;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .user-dropdown-item,
    .user-dropdown-enter,
    .user-dropdown-leave {
        transition: none;
        transform: none !important;
    }
    
    .user-dropdown-item:hover {
        transform: none;
    }
}

/* 认证按钮样式 */
.auth-button-secondary {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #667eea;
    background: white;
    border: 2px solid #667eea;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.auth-button-secondary:hover {
    color: white;
    background: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.auth-button-primary {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid transparent;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.auth-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* 用户头像按钮 */
.user-menu-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-menu-button:hover {
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.user-menu-button .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.user-menu-button .user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    color: #718096;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-right: 0.75rem;
    /* 确保按钮可见 */
    position: relative;
    z-index: 10;
}

.mobile-menu-btn:hover {
    color: #2d3748;
    background: white;
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 移动端菜单按钮显示控制 */
.mobile-menu-btn {
    display: flex;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* 导航栏布局优化 - 已简化，首页按钮现在在左侧区域 */

/* 移动端优化 */
@media (max-width: 639px) {
    .navbar-brand span {
        font-size: 1.125rem;
    }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
    .navbar-brand span {
        font-size: 1rem;
    }
}

/* 确保按钮间距合适 */
.navbar-content .flex.items-center {
    gap: 1rem;
}

.navbar-content .flex.items-center.space-x-2 {
    gap: 0.5rem;
}

/* 加载动画样式 */
.loader {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 响应式显示控制 - 修复Tailwind类不生效的问题 */
.desktop-auth-buttons {
    display: none;
}

/* 桌面端显示 */
@media (min-width: 768px) {
    .desktop-auth-buttons {
        display: flex !important;
    }
}

/* 移动端模态框优化 */
@media (max-width: 640px) {
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 1rem 1rem 0.5rem 1rem;
    }
    
    .modal-footer {
        padding: 0.5rem 1rem 1rem 1rem;
    }
    
    /* 紧凑的表单布局 */
    .form-group {
        margin-bottom: 0.75rem;
    }
    
    .form-label {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    .form-input {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* 邀请码字段在移动端的特殊样式 */
    #invite-code + .text-xs {
        font-size: 0.75rem;
        margin-top: 0.25rem;
    }
    
    /* 服务条款在移动端更紧凑 */
    .modal-body label {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* 按钮在移动端的优化 */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    /* 认证选项卡在移动端更紧凑 */
    .auth-tabs {
        margin-bottom: 0.75rem;
    }
    
    .auth-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* 响应式隐藏/显示 */
.sm\:block {
    display: none;
}

@media (min-width: 640px) {
    .sm\:block {
        display: block;
    }
}



/* 下拉菜单样式 */
.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 12rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgb(229 231 235);
    z-index: 50;
    padding: 0.25rem 0;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: rgb(55 65 81);
    text-decoration: none;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: rgb(243 244 246);
}

.dropdown-item.text-red-600 {
    color: rgb(220 38 38);
}

.dropdown-item.text-red-600:hover {
    background-color: rgb(254 242 242);
}

/* 通知徽章 */
.notification-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 0.75rem;
    height: 0.75rem;
    background-color: rgb(220 38 38);
    border-radius: 50%;
    font-size: 0.75rem;
}

/* 加载器动画 */
.loader {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 进度条 */
.progress-bar {
    width: 100%;
    background-color: rgb(229 231 235);
    border-radius: 9999px;
    height: 0.5rem;
    overflow: hidden;
}

.progress-fill {
    background-color: rgb(37 99 235);
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 头像 */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgb(107 114 128);
    color: white;
    font-weight: 500;
}

.avatar-sm { 
    width: 2rem; 
    height: 2rem; 
    font-size: 0.875rem;
}

.avatar-md { 
    width: 2.5rem; 
    height: 2.5rem; 
    font-size: 1rem;
}

.avatar-lg { 
    width: 3rem; 
    height: 3rem; 
    font-size: 1.125rem;
}

/* 徽章 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-primary { 
    background-color: rgb(219 234 254); 
    color: rgb(30 64 175); 
}

.badge-success { 
    background-color: rgb(220 252 231); 
    color: rgb(22 101 52); 
}

.badge-warning { 
    background-color: rgb(254 249 195); 
    color: rgb(161 98 7); 
}

.badge-error { 
    background-color: rgb(254 226 226); 
    color: rgb(153 27 27); 
}

.badge-gray { 
    background-color: rgb(243 244 246); 
    color: rgb(31 41 55); 
}

/* 任务状态徽章 */
.status-pending { 
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: rgb(254 249 195); 
    color: rgb(161 98 7); 
}

.status-processing { 
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: rgb(219 234 254); 
    color: rgb(30 64 175); 
}

.status-completed { 
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: rgb(220 252 231); 
    color: rgb(22 101 52); 
}

.status-failed { 
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: rgb(254 226 226); 
    color: rgb(153 27 27); 
}

.status-cancelled { 
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: rgb(243 244 246); 
    color: rgb(31 41 55); 
}

/* 按钮基础样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-width: 1px;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    cursor: pointer;
    min-height: 44px; /* 移动端友好的最小触摸区域 */  
    padding: 0.5rem 1rem;
    text-decoration: none;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-sm {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    min-height: 36px;
}

.btn-lg {
    font-size: 1.125rem;
    padding: 0.75rem 1.5rem;
    min-height: 52px;
}

/* 按钮变体 */
.btn-primary {
    background-color: rgb(37 99 235);
    color: white;
    border-color: rgb(37 99 235);
}

.btn-primary:hover {
    background-color: rgb(29 78 216);
    border-color: rgb(29 78 216);
}

.btn-primary:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background-color: white;
    color: rgb(55 65 81);
    border-color: rgb(209 213 219);
}

.btn-secondary:hover {
    background-color: rgb(249 250 251);
}

.btn-secondary:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.btn-success {
    background-color: rgb(22 163 74);
    color: white;
    border-color: rgb(22 163 74);
}

.btn-success:hover {
    background-color: rgb(21 128 61);
    border-color: rgb(21 128 61);
}

.btn-success:focus {
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.5);
}

.btn-danger {
    background-color: rgb(220 38 38);
    color: white;
    border-color: rgb(220 38 38);
}

.btn-danger:hover {
    background-color: rgb(185 28 28);
    border-color: rgb(185 28 28);
}

.btn-danger:focus {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.5);
}

/* 卡片 */
.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid rgb(229 231 235);
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 上传区域 */
.upload-area {
    border: 2px dashed rgb(209 213 219);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: rgb(156 163 175);
    background-color: rgb(249 250 251);
    transform: scale(1.02);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.upload-area.dragover {
    border-color: rgb(59 130 246);
    background-color: rgb(239 246 255);
    border-style: solid;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

.upload-area.processing {
    border-color: rgb(251 191 36);
    background-color: rgb(254 249 195);
    animation: pulse 2s infinite;
}

@media (max-width: 640px) {
    .upload-area {
        padding: 1.5rem;
        min-height: 250px;
    }
}

/* 文件卡片 */
.file-card {
    background-color: white;
    border-radius: 0.5rem;
    border: 1px solid rgb(229 231 235);
    padding: 1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.file-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: rgb(209 213 219);
}

.file-card-image {
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    object-fit: cover;
    background-color: rgb(243 244 246);
    flex-shrink: 0;
    border: 1px solid rgb(229 231 235);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.file-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.375rem;
}

.file-card-placeholder {
    color: rgb(156 163 175);
    font-size: 1.5rem;
    font-weight: 600;
}

.file-card-info {
    flex: 1;
    min-width: 0;
}

.file-card-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(17 24 39);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0.25rem;
}

.file-card-size {
    font-size: 0.75rem;
    color: rgb(107 114 128);
}

.file-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.file-card-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
}

.file-card-status.pending {
    background-color: rgb(243 244 246);
    color: rgb(75 85 99);
}

.file-card-status.uploading {
    background-color: rgb(219 234 254);
    color: rgb(37 99 235);
}

.file-card-status.processing {
    background-color: rgb(254 249 195);
    color: rgb(161 98 7);
}

.file-card-status.completed {
    background-color: rgb(220 252 231);
    color: rgb(22 101 52);
}

.file-card-status.error {
    background-color: rgb(254 226 226);
    color: rgb(153 27 27);
}

/* 文件卡片进度条 */
.file-progress {
    width: 100%;
    background-color: rgb(229 231 235);
    border-radius: 9999px;
    height: 0.375rem;
    margin-top: 0.5rem;
    overflow: hidden;
}

.file-progress-bar {
    background-color: rgb(37 99 235);
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 9999px;
}

/* 文件网格布局 */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 640px) {
    .file-grid {
        grid-template-columns: 1fr;
    }
    
    .file-card {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .file-card-image {
        width: 3rem;
        height: 3rem;
    }
    
    .file-card-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .file-card-actions button {
        padding: 0.25rem;
    }
}

/* 任务卡片 */
.task-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid rgb(229 231 235);
    padding: 1.5rem;
    transition: all 0.2s;
    cursor: pointer;
}

.task-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}



/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 24rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 1.5rem 1.5rem 0.75rem;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(156 163 175);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    color: rgb(75 85 99);
    background-color: rgb(243 244 246);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(17 24 39);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 0.875rem;
    color: rgb(107 114 128);
    margin-top: 0.5rem;
}

.modal-body {
    padding: 0 1.5rem 1rem;
}

.modal-footer {
    padding: 0.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(55 65 81);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgb(209 213 219);
    border-radius: 0.5rem;
    font-size: 1rem;
    color: rgb(17 24 39);
    background-color: white;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: rgb(37 99 235);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input:disabled {
    background-color: rgb(249 250 251);
    color: rgb(156 163 175);
    cursor: not-allowed;
}

.input-group {
    position: relative;
}

.input-addon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-link {
    background: none;
    border: none;
    color: rgb(37 99 235);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-link:hover {
    color: rgb(29 78 216);
    text-decoration: underline;
}

.btn-link:disabled {
    color: rgb(156 163 175);
    cursor: not-allowed;
    text-decoration: none;
}

/* 登录方式切换 */
.auth-tabs {
    display: flex;
    background-color: rgb(243 244 246);
    border-radius: 0.5rem;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    background: none;
    border: none;
    color: rgb(107 114 128);
}

.auth-tab.active {
    background-color: white;
    color: rgb(37 99 235);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* 验证码输入框 */
.verification-input {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.verification-digit {
    width: 3rem;
    height: 3rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    border: 2px solid rgb(209 213 219);
    border-radius: 0.5rem;
    background-color: white;
    transition: all 0.2s;
}

.verification-digit:focus {
    outline: none;
    border-color: rgb(37 99 235);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 错误提示 */
.error-message {
    color: rgb(220 38 38);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.success-message {
    color: rgb(22 163 74);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* 新的移动端菜单样式 - 参考Profile页面风格 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
}

/* 移动端菜单背景遮罩 */
.mobile-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.4s ease-out;
}

/* 移动端菜单面板 */
.mobile-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid #e2e8f0;
    z-index: 10001;
}

/* 移动端菜单动画 */
.mobile-menu-enter {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-enter-start {
    transform: translateX(-100%);
    opacity: 0;
}

.mobile-menu-enter-end {
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu-leave {
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-leave-start {
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu-leave-end {
    transform: translateX(-100%);
    opacity: 0;
}

/* 移动端菜单头部 */
.mobile-menu-header {
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    position: relative;
}

.mobile-menu-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-logo {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.mobile-menu-logo svg {
    width: 24px;
    height: 24px;
    color: white;
}

.mobile-menu-brand-text h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.mobile-menu-brand-text p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0.25rem 0 0 0;
}

.mobile-menu-close {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mobile-menu-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 移动端用户信息区域 */
.mobile-user-section {
    padding: 1.5rem;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-user-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    border: 3px solid #e2e8f0;
}

.mobile-user-details {
    flex: 1;
    min-width: 0;
}

.mobile-user-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-user-email {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* VIP用户徽章样式 */
.mobile-user-badge-vip {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #8b4513;
    border: 1px solid #ffd700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* 普通用户徽章样式 - 简单样式 */
.mobile-user-badge-free {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.mobile-badge-icon {
    width: 12px;
    height: 12px;
}

/* 移动端认证按钮区域 */
.mobile-auth-section {
    padding: 1.5rem;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-btn-icon {
    width: 16px;
    height: 16px;
}

.mobile-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-height: 52px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-auth-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid transparent;
}

.mobile-auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.mobile-auth-btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.mobile-auth-btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.mobile-auth-btn-sm {
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    min-height: 48px;
}

/* 移动端导航区域 */
.mobile-nav {
    flex: 1;
    overflow-y: visible;
    padding: 1rem 0;
    background: white;
    min-height: 0;
}

.mobile-nav::-webkit-scrollbar {
    width: 4px;
}

.mobile-nav::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-nav::-webkit-scrollbar-thumb {
    background-color: #cbd5e0;
    border-radius: 2px;
}

.mobile-nav-section {
    padding: 1rem 1.5rem;
}

.mobile-nav-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    min-height: 72px;
    position: relative;
    background: #f7fafc;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-nav-link:hover {
    background: white;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(4px) translateY(-2px);
}

.mobile-nav-link.active {
    background: #667eea;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.mobile-nav-link.active::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 80%;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.mobile-nav-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-link.active .mobile-nav-icon {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.mobile-nav-text {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.3;
    margin-bottom: 0.125rem;
}

.mobile-nav-desc {
    font-size: 0.8125rem;
    color: #718096;
    line-height: 1.3;
}

.mobile-nav-link.active .mobile-nav-text {
    color: white;
    font-weight: 700;
}

.mobile-nav-link.active .mobile-nav-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* 导航链接容器 */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* 导航链接内容区域 */
.mobile-nav-content {
    flex: 1;
    min-width: 0;
}

/* 导航链接箭头 */
.mobile-nav-arrow {
    margin-left: auto;
    width: 20px;
    height: 20px;
    color: #cbd5e0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-nav-link.active .mobile-nav-arrow {
    color: rgba(255, 255, 255, 0.8);
}

/* 导航图标颜色变体 */
.mobile-nav-icon-blue {
    background: #dbeafe;
}

.mobile-nav-icon-blue svg {
    color: #2563eb;
}

.mobile-nav-icon-green {
    background: #dcfce7;
}

.mobile-nav-icon-green svg {
    color: #16a34a;
}

.mobile-nav-icon-purple {
    background: #f3e8ff;
}

.mobile-nav-icon-purple svg {
    color: #9333ea;
}

.mobile-nav-icon-red {
    background: #fee2e2;
}

.mobile-nav-icon-red svg {
    color: #dc2626;
}

/* 个人中心区域 */
.mobile-nav-section-profile {
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
}

/* 退出登录按钮样式已移除 */

/* 移动端菜单底部 */
.mobile-menu-footer {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.mobile-footer-content {
    text-align: center;
}

.mobile-footer-content p {
    font-size: 0.8125rem;
    color: #718096;
    font-weight: 500;
    margin: 0;
}

.mobile-menu-footer a {
    color: #718096;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mobile-menu-footer a:hover {
    color: #667eea;
    text-shadow: 0 1px 2px rgba(102, 126, 234, 0.2);
}

/* 响应式优化和兼容性增强 */
@media (max-width: 640px) {
    /* 导航栏在小屏幕上的优化 */
    .navbar-content {
        height: 4rem;
        padding: 0 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
        gap: 0.5rem;
    }
    
    .navbar-brand svg {
        width: 28px;
        height: 28px;
    }
    
    /* 移动端菜单优化 */
    .mobile-menu-panel {
        width: 80%;
        max-width: 100%;
    }
    
    .mobile-menu-header {
        padding: 1.5rem 1.25rem 1.25rem;
    }
    
    .mobile-menu-header h3 {
        font-size: 1.25rem;
    }
    
    .mobile-user-section,
    .mobile-auth-section {
        padding: 1.25rem;
    }
    
    .mobile-nav-section {
        padding: 0.75rem 1.25rem;
    }
    
    .mobile-nav-link {
        padding: 0.875rem;
        min-height: auto;
    }
    
    .mobile-nav-icon {
        width: 2.5rem;
        height: 2.5rem;
        margin-right: 0.875rem;
    }
    
    .mobile-nav-text {
        font-size: 1rem;
    }
    
    .mobile-nav-desc {
        font-size: 0.8125rem;
    }
    
    /* 认证按钮在小屏幕上的优化 */
    .auth-button-secondary,
    .auth-button-primary {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

/* 极小屏幕优化 */
@media (max-width: 480px) {
    .navbar-content {
        padding: 0 0.75rem;
    }
    
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .navbar-brand svg {
        width: 24px;
        height: 24px;
    }
    
    .mobile-menu-panel {
        width: 80%;
    }
    
    .mobile-menu-header {
        padding: 1.25rem 1rem 1rem;
    }
    
    .mobile-user-section,
    .mobile-auth-section {
        padding: 1rem;
    }
    
    .mobile-nav-section {
        padding: 0.5rem 1rem;
    }
    
    .mobile-nav-link {
        padding: 0.75rem;
        min-height: 60px;
    }
    
    .mobile-nav-icon {
        width: 2.25rem;
        height: 2.25rem;
        margin-right: 0.75rem;
    }
}

/* 大屏幕优化 */
@media (min-width: 1440px) {
    .navbar-content {
        max-width: 1400px;
        padding: 0 3rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
        gap: 1rem;
    }
    
    .navbar-brand svg {
        width: 36px;
        height: 36px;
    }
    
    .desktop-nav {
        margin-left: 4rem;
        gap: 1rem;
    }
    
    .navbar-link {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 禁用hover变换效果以避免在触摸设备上的问题 */
    .navbar-brand:hover,
    .navbar-link:hover,
    .auth-button-secondary:hover,
    .auth-button-primary:hover,
    .user-menu-button:hover,
    .mobile-menu-btn:hover {
        transform: none;
    }
    
    .mobile-nav-link:hover {
        transform: none;
    }
    
    .mobile-auth-btn:hover {
        transform: none;
    }
    
    .mobile-menu-close:hover {
        transform: none;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    }
    
    /* 增大触摸目标 */
    .navbar-link,
    .auth-button-secondary,
    .auth-button-primary,
    .mobile-menu-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* 浏览器兼容性和性能优化 */
.navbar,
.mobile-menu-panel,
.navbar-link,
.auth-button-secondary,
.auth-button-primary,
.user-menu-button,
.mobile-nav-link {
    /* GPU加速 */
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* 减少重绘的优化 */
.navbar-link::before,
.mobile-nav-link.active::before {
    will-change: opacity;
}

/* Safari兼容性 */
@supports (-webkit-backdrop-filter: blur(10px)) {
    .navbar {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
    
    .mobile-menu-backdrop {
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }
    
    .mobile-menu-header .p-2,
    .mobile-menu-close {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .navbar {
        border-bottom: 2px solid;
    }
    
    .navbar-link,
    .auth-button-secondary,
    .auth-button-primary,
    .mobile-nav-link {
        border-width: 2px;
    }
}

/* 动画性能优化 */
@media (prefers-reduced-motion: reduce) {
    .navbar-brand,
    .navbar-link,
    .auth-button-secondary,
    .auth-button-primary,
    .user-menu-button,
    .mobile-menu-btn,
    .mobile-nav-link,
    .mobile-auth-btn {
        transition: none;
        transform: none !important;
    }
    
    .navbar-link::before,
    .mobile-nav-link.active::before {
        transition: none;
    }
}

/* 横屏模式优化 */
@media (max-height: 600px) and (orientation: landscape) {
    .mobile-menu-header {
        padding: 1rem 1.25rem 0.75rem;
    }
    
    .mobile-user-section,
    .mobile-auth-section {
        padding: 1rem 1.25rem;
    }
    
    .mobile-nav-link {
        min-height: 52px;
        padding: 0.625rem 0.75rem;
    }
    
    .mobile-nav-icon {
        width: 2rem;
        height: 2rem;
    }
    
    .mobile-menu-footer {
        padding: 0.75rem 1.25rem 1rem;
    }
}

/* 响应式隐藏/显示类 */
.sm\:hidden {
    display: block;
}

@media (min-width: 640px) {
    .sm\:hidden {
        display: none;
    }
}

.md\:hidden {
    display: block;
}

@media (min-width: 768px) {
    .md\:hidden {
        display: none;
    }
}

/* space-y utilities */
.space-y-1 > * + * {
    margin-top: 0.25rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

/* 移动端优化 */
@media (max-width: 640px) {
    .modal-content {
        max-width: calc(100vw - 2rem);
        margin: 0 1rem;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-body {
        padding: 0 1.5rem 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .verification-digit {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.125rem;
    }
}

/* 重复的导航栏样式已移除，使用上方的自定义样式 */

/* Toast 通知系统 */
#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 22rem;
    width: 100%;
}

.toast {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    pointer-events: auto;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success { 
    border-left: 4px solid #10B981;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.toast-error { 
    border-left: 4px solid #EF4444;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.toast-warning { 
    border-left: 4px solid #F59E0B;
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.toast-info { 
    border-left: 4px solid #3B82F6;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

/* 响应式优化 */
@media (max-width: 640px) {
    #toast-container {
        top: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
    }
}

/* 工具类 */
.mobile-padding {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .mobile-padding {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .mobile-padding {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.touch-safe {
    min-height: 44px;
    min-width: 44px;
}

.safe-area-inset-top {
    padding-top: env(safe-area-inset-top);
}

.safe-area-inset-bottom {
    padding-bottom: env(safe-area-inset-bottom);
}

/* 响应式文本截断 */
.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 滚动条样式 */
.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background-color: rgb(243 244 246);
    border-radius: 9999px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background-color: rgb(209 213 219);
    border-radius: 9999px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background-color: rgb(156 163 175);
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-fade-out {
    animation: fadeOut 0.3s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.3s ease-out;
}

/* 延迟动画 */
.animate-delay-100 { animation-delay: 100ms; }
.animate-delay-200 { animation-delay: 200ms; }
.animate-delay-300 { animation-delay: 300ms; }
.animate-delay-500 { animation-delay: 500ms; }

/* 移动端优化 */
@media (hover: none) and (pointer: coarse) {
    /* 移动设备特定样式 */
    .btn:hover {
        transform: none;
    }
    
    .card:hover {
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    }
    
    /* 增大触摸目标 */
    button, .btn, a {
        min-height: 44px;
        min-width: 44px;
    }
}

/* 特殊工具类 */
.scale-102 {
    transform: scale(1.02);
}

/* Profile 页面样式 */
.tab-btn {
    color: rgb(75 85 99);
    transition: color 0.2s, background-color 0.2s;
}

.tab-btn:hover {
    color: rgb(17 24 39);
    background-color: rgb(249 250 251);
}

.tab-btn.active {
    color: rgb(37 99 235);
    background-color: rgb(239 246 255);
}

.tab-content {
    animation: fadeIn 0.3s ease-out;
}

/* Tasks 页面样式 */
.filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 1px solid rgb(209 213 219);
    color: rgb(55 65 81);
    background-color: white;
    transition: background-color 0.2s;
}

.filter-btn:hover {
    background-color: rgb(249 250 251);
}

.filter-btn.active {
    background-color: rgb(37 99 235);
    color: white;
    border-color: rgb(37 99 235);
}

/* 背景编辑器样式 */
.custom-size-inputs {
    margin-top: 0.75rem;
}

.size-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.size-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid rgb(209 213 219);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background-color: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.size-input:focus {
    outline: none;
    border-color: rgb(37 99 235);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.size-separator {
    color: rgb(107 114 128);
    font-weight: 500;
    user-select: none;
}

.apply-size-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgb(37 99 235);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.apply-size-btn:hover {
    background-color: rgb(29 78 216);
    transform: translateY(-1px);
}

.apply-size-btn:active {
    transform: translateY(0);
}

.apply-size-btn:disabled {
    background-color: rgb(156 163 175);
    cursor: not-allowed;
    transform: none;
}

.apply-size-btn svg {
    width: 16px;
    height: 16px;
}