/* 本地CSS文件 - 包含所有必要的样式 */

/* 基础重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* 布局样式 */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.max-w-md { max-width: 28rem; }
.w-full { width: 100%; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.block { display: block; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0px; right: 0px; bottom: 0px; left: 0px; }

/* 背景和颜色 */
.bg-white { background-color: #ffffff; }
.bg-red-50 { background-color: #fef2f2; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-gray-500 { background-color: #6b7280; }
.text-white { color: #ffffff; }
.text-gray-800 { color: #1f2937; }
.text-gray-600 { color: #4b5563; }
.text-gray-500 { color: #6b7280; }
.text-red-500 { color: #ef4444; }
.text-red-800 { color: #991b1b; }
.text-red-700 { color: #b91c1c; }
.text-green-500 { color: #22c55e; }
.text-green-800 { color: #166534; }
.text-green-700 { color: #15803d; }
.text-blue-500 { color: #3b82f6; }
.text-blue-800 { color: #1e40af; }
.text-blue-700 { color: #1d4ed8; }
.text-yellow-500 { color: #eab308; }
.text-purple-600 { color: #9333ea; }

/* 边框和圆角 */
.rounded-2xl { border-radius: 1rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-gray-300 { border-color: #d1d5db; }
.border-red-300 { border-color: #fca5a5; }
.border-green-200 { border-color: #bbf7d0; }
.border-blue-200 { border-color: #bfdbfe; }
.border-t { border-top-width: 1px; }

/* 阴影 */
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* 间距 */
.p-8 { padding: 2rem; }
.p-4 { padding: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* 尺寸 */
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }

/* 字体 */
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-center { text-align: center; }

/* 渐变背景 */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-purple-500 { --tw-gradient-from: #8b5cf6; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(139, 92, 246, 0)); }
.to-pink-500 { --tw-gradient-to: #ec4899; }

/* 间距工具类 */
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }

/* 对齐 */
.items-start { align-items: flex-start; }
.flex-1 { flex: 1 1 0%; }
.justify-center { justify-content: center; }

/* 输入框样式 */
.input-group { position: relative; }
.input-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #9ca3af; }
.input-group input { padding-left: 45px; }

/* 焦点样式 */
.focus\:ring-2:focus { 
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); 
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); 
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); 
}
.focus\:ring-purple-500:focus { --tw-ring-color: #8b5cf6; }
.focus\:border-transparent:focus { border-color: transparent; }

/* 悬停效果 */
.hover\:text-purple-800:hover { color: #6b21a8; }
.hover\:text-gray-700:hover { color: #374151; }
.hover\:bg-blue-600:hover { background-color: #2563eb; }
.hover\:bg-gray-600:hover { background-color: #4b5563; }

/* 过渡动画 */
.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; 
}

/* 自定义样式 */
.login-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.wechat-btn {
    background: linear-gradient(135deg, #1aad19 0%, #2dc653 100%);
    transition: all 0.3s ease;
}

.wechat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 173, 25, 0.3);
}

.password-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    transition: all 0.3s ease;
}

.password-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.browser-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    z-index: 1000;
}

.home-btn {
    position: fixed;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.home-btn:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Loading弹层样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 300px;
    width: 90%;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1aad19;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.loading-subtitle {
    color: #666;
    font-size: 14px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Font Awesome 图标样式 */
.fa:before { 
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900; 
    display: inline-block;
    width: 1.2em;
    text-align: center;
}

.fa-home:before { content: "\f015"; }
.fa-wechat:before { content: "\f1d7"; }
.fa-globe:before { content: "\f0ac"; }
.fa-heart:before { content: "\f004"; }
.fa-exclamation-triangle:before { content: "\f071"; }
.fa-check-circle:before { content: "\f058"; }
.fa-mobile:before { content: "\f10b"; }
.fa-lock:before { content: "\f023"; }
.fa-sign-in:before { content: "\f090"; }
.fa-arrow-left:before { content: "\f060"; }
.fa-user:before { content: "\f007"; }
.fa-shield:before { content: "\f132"; }
.fa-bolt:before { content: "\f0e7"; }
.fa-users:before { content: "\f0c0"; }
.fa-user-plus:before { content: "\f234"; }
.fa-question-circle:before { content: "\f059"; }
.fa-sign-out:before { content: "\f2f5"; }



