/* 前台主页样式文件 - 完全本地化版本 */

/* 现代化UI优化 */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* 基础重置和字体 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'system-ui', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f9fafb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    color: #374151;
}

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

/* 主要内容区域 - 统一宽度 */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.flex {
    display: flex;
}

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

.flex-grow {
    flex-grow: 1;
}

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

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

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

.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-4 > * + * {
    margin-top: 1rem;
}

/* 现代化动画和交互效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

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

/* 现代化悬停效果 */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* 玻璃效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 悬停效果 */
.hover\:bg-white\/10:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hover\:bg-white\/30:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 过渡效果 */
.transition-all {
    transition: all 0.3s ease;
}

.duration-300 {
    transition-duration: 300ms;
}

/* 间距和布局 */
.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

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

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

/* 间距 */
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

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

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

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

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

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

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

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.p-10 {
    padding: 2.5rem;
}

.p-12 {
    padding: 3rem;
}

.p-8 {
    padding: 2rem;
}

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

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

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

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

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

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

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

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

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

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

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

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

.mt-12 {
    margin-top: 3rem;
}

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

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

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

.ml-2 {
    margin-left: 0.5rem;
}

.ml-3 {
    margin-left: 0.75rem;
}

/* 尺寸 */
.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-2\.5 {
    height: 0.625rem;
}

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

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

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

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

.text-2xl {
    font-size: 1.5rem;
}

.text-2xl {
    font-size: 1.5rem;
}

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

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-6xl {
    font-size: 3.75rem;
}

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

/* 颜色 */
.text-white {
    color: #ffffff;
}

.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-green-500 {
    color: #10b981;
}

.text-green-600 {
    color: #059669;
}

.text-green-700 {
    color: #047857;
}

.text-green-800 {
    color: #065f46;
}

.text-blue-500 {
    color: #3b82f6;
}

.text-blue-600 {
    color: #2563eb;
}

.text-blue-700 {
    color: #1d4ed8;
}

.text-blue-800 {
    color: #1e40af;
}

.text-red-500 {
    color: #ef4444;
}

.text-red-600 {
    color: #dc2626;
}

.text-yellow-300 {
    color: #fde047;
}

.text-green-300 {
    color: #86efac;
}

.text-blue-300 {
    color: #93c5fd;
}

.text-purple-300 {
    color: #c4b5fd;
}

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

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

.bg-gray-900 {
    background-color: #111827;
}

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

.bg-green-50 {
    background-color: #f0fdf4;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-green-600 {
    background-color: #059669;
}

.bg-green-700 {
    background-color: #047857;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.bg-blue-700 {
    background-color: #1d4ed8;
}

.bg-red-500 {
    background-color: #ef4444;
}

.bg-red-600 {
    background-color: #dc2626;
}

.bg-primary {
    background-color: #165DFF;
}

.bg-accent {
    background-color: #FF7D00;
}

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, #165DFF 0%, #36CFC9 100%);
}

.gradient-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 边框 */
.border {
    border-width: 1px;
}

.border-green-200 {
    border-color: #bbf7d0;
}

.border-blue-200 {
    border-color: #bfdbfe;
}

.border-red-200 {
    border-color: #fecaca;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-gray-700 {
    border-color: #374151;
}

.border-t {
    border-top-width: 1px;
}

/* 圆角 */
.rounded {
    border-radius: 0.375rem;
}

.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);
}

.shadow-glow {
    box-shadow: 0 8px 25px rgba(22, 93, 255, 0.15);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 定位 */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

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

.inset-y-0 {
    top: 0;
    bottom: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.top-0 {
    top: 0;
}

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

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

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

/* 溢出 */
.overflow-hidden {
    overflow: hidden;
}

/* 文本对齐 */
.text-center {
    text-align: center;
}

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

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

/* 字体粗细 */
.font-medium {
    font-weight: 500;
}

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

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

/* 透明度 */
.opacity-90 {
    opacity: 0.9;
}

/* 显示/隐藏 */
.hidden {
    display: none;
}

.block {
    display: block;
}

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

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

/* 网格布局 */
.grid {
    display: grid;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* 响应式网格 - 横向布局优化 */
@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));
    }
    
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    
    .md\:text-left {
        text-align: left;
    }
    
    .md\:text-right {
        text-align: right;
    }
    
    .md\:text-3xl {
        font-size: 2rem;
    }
    
    .md\:text-4xl {
        font-size: 2.5rem;
    }
    
    .md\:text-5xl {
        font-size: 3rem;
    }
    
    .md\:justify-start {
        justify-content: flex-start;
    }
    
    .md\:justify-center {
        justify-content: center;
    }
    
    /* 横向布局优化 */
    .md\:flex-row {
        flex-direction: row;
    }
    
    .md\:items-stretch {
        align-items: stretch;
    }
    
    .md\:h-auto {
        height: auto;
    }
    
    .md\:min-h-0 {
        min-height: 0;
    }
}

@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\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* 最大宽度 */
.max-w-2xl {
    max-width: 42rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-6xl {
    max-width: 72rem;
}

/* 宽度 */
.w-full {
    width: 100%;
}

/* 光标 */
.cursor-pointer {
    cursor: pointer;
}

/* 过渡效果 */
.transition-custom {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-all {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: color 0.3s ease;
}

/* 悬停效果 */
.hover\:text-white:hover {
    color: #ffffff;
}

.hover\:text-yellow-300:hover {
    color: #fde047;
}

.hover\:bg-white\/10:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hover\:bg-white\/30:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.hover\:bg-primary\/90:hover {
    background-color: rgba(22, 93, 255, 0.9);
}

.hover\:bg-accent\/90:hover {
    background-color: rgba(255, 125, 0, 0.9);
}

.hover\:bg-red-600:hover {
    background-color: #dc2626;
}

.hover\:bg-green-700:hover {
    background-color: #047857;
}

.hover\:bg-blue-700:hover {
    background-color: #1d4ed8;
}

.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover\:scale-110:hover {
    transform: scale(1.02);
}

/* 导航链接样式优化 */
nav a {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

nav a:hover::before {
    left: 100%;
}

nav a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

nav a i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

nav a:hover i {
    transform: scale(1.1);
}

/* 注册按钮特殊样式 */
nav a.bg-white\/20 {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

nav a.bg-white\/20:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 导航菜单列表样式 */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    margin: 0;
}

/* 导航链接激活状态 */
nav a.active {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 导航链接焦点状态 */
nav a:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* 导航链接按下状态 */
nav a:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 变换 */
.scale-110 {
    transform: scale(1.02);
}

/* 背景模糊 */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

/* 玻璃效果 */
.glass-effect {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.glass-effect:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* 特性卡片 - 横向布局优化 */
.feature-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 上传区域 - 横向布局优化 */
.upload-area {
    border: 2px dashed #d1d5db;
    background-color: #f9fafb;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

/* 支持文件类型显示 - 优化样式 */
#supportedExtensions {
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.6;
    max-width: 100%;
    overflow-wrap: break-word;
    text-align: center;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    display: block;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#supportedExtensions:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.15));
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* 英雄区域中的IP地址显示块 */
.gradient-hero #clientIp {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-align: center;
    margin: 0 auto;
}

.gradient-hero #clientIp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.gradient-hero #clientIp:hover::before {
    left: 100%;
}

.gradient-hero #clientIp:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.2));
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* IP地址复制提示动画 */
@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.copy-success {
    animation: copySuccess 0.3s ease-in-out;
}

/* IP地址显示块容器样式 */
.gradient-hero .bg-white\/15 {
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
    padding: 1.5rem 2rem !important;
}

.gradient-hero .bg-white\/15:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2) !important;
}

/* IP地址显示块内容居中 */
.gradient-hero .bg-white\/15 .text-center {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gradient-hero .bg-white\/15 .flex {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.gradient-hero .bg-white\/15 .text-center p:last-child {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* 优化IP地址显示块的紧凑性 */
.gradient-hero .bg-white\/15 h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.gradient-hero .bg-white\/15 .text-center p {
    margin: 0.25rem 0;
}

/* 字体等宽优化 */
.font-mono {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* 选择文本样式 */
.select-all {
    user-select: all;
    -webkit-user-select: all;
    -moz-user-select: all;
    -ms-user-select: all;
}

/* 上传区域中的支持文件类型显示 */
#upload .bg-gradient-to-r {
    background: linear-gradient(135deg, #eff6ff, #e0e7ff) !important;
    border: 1px solid #c7d2fe !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

#upload .bg-gradient-to-r:hover {
    background: linear-gradient(135deg, #dbeafe, #c7d2fe) !important;
    border-color: #a5b4fc !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.15);
}

#upload #supportedExtensions {
    color: #374151;
    font-weight: 500;
    margin: 0;
}

/* 上传区域优化 */
.upload-area {
    border: 2px dashed #d1d5db;
    background-color: #f9fafb;
    transition: all 0.3s ease;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

/* 选择文件按钮优化 */
.upload-area label {
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.2);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

/* 上传区域第一行布局优化 */
.upload-area .flex {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.upload-area .flex p {
    margin: 0;
}

/* 上传区域图标优化 */
.upload-area .fa-cloud-upload {
    margin-bottom: 1rem;
}

.upload-area label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.upload-area label:hover::before {
    left: 100%;
}

.upload-area label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 93, 255, 0.3);
}

/* 上传区域图标动画 */
.upload-area .fa-cloud-upload {
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.upload-area:hover .fa-cloud-upload {
    transform: scale(1.1);
    color: #3b82f6 !important;
}

/* 上传区域紧凑布局优化 */
.upload-area .mb-4 {
    margin-bottom: 1rem;
}

.upload-area .mb-3 {
    margin-bottom: 0.75rem;
}

.upload-area .p-3 {
    padding: 0.75rem;
}

/* 加载动画样式 */
.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* 统计卡片 - 横向布局优化 */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 动画 */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 表单元素 */
input[type="text"], input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="file"]:focus {
    outline: none;
    border-color: #165DFF;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

/* 按钮 */
button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover, .btn:hover {
    transform: translateY(-1px);
}

/* 进度条 */
.progress-bar {
    background: linear-gradient(90deg, #165DFF, #36CFC9);
    transition: width 0.3s ease;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background: #10B981;
    color: white;
}

.notification.error {
    background: #EF4444;
    color: white;
}

.notification.warning {
    background: #F59E0B;
    color: white;
}

.notification.info {
    background: #3B82F6;
    color: white;
}

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

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

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .gradient-hero {
        padding: 1rem 0.75rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .upload-area {
        padding: 1rem 0.75rem;
        min-height: 160px;
    }
    
    .upload-area .fa-cloud-upload {
        font-size: 2.5rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .upload-area p {
        font-size: 0.875rem !important;
    }
    
    .upload-area label {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }
    
    /* 移动端第一行布局优化 */
    .upload-area .flex {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    /* IP地址显示块移动端优化 */
    .gradient-hero .bg-white\/15 {
        padding: 1rem 1.5rem !important;
        max-width: 90% !important;
        margin: 0 auto !important;
    }
    
    .gradient-hero #clientIp {
        font-size: 0.875rem !important;
        padding: 0.5rem 1rem !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
    }
    
    .p-12 {
        padding: 1.5rem;
    }
    
    .p-8 {
        padding: 1rem;
    }
    
    .space-x-8 {
        gap: 1rem;
    }
    
    .space-x-8 > * + * {
        margin-left: 0;
    }
    
    /* 移动端导航优化 */
    nav ul {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    nav a {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    nav a i {
        font-size: 14px;
    }
    
    nav a span {
        display: none;
    }
    
    /* 移动端显示图标和文字 */
    @media (min-width: 640px) {
        nav a span {
            display: inline;
        }
    }
}

/* 工具类 */
.col-span-full {
    grid-column: 1 / -1;
}

.pointer-events-none {
    pointer-events: none;
}

.pl-3 {
    padding-left: 0.75rem;
}

.pl-10 {
    padding-left: 2.5rem;
}

.pr-3 {
    padding-right: 0.75rem;
}

.py-1\.5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

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

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

.pt-8 {
    padding-top: 2rem;
}

/* 特殊效果 */
.text-white\/80 {
    color: rgba(255, 255, 255, 0.8);
}

.text-white\/90 {
    color: rgba(255, 255, 255, 0.9);
}

.bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.2);
}

.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

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

.from-blue-600\/20 {
    --tw-gradient-from: rgba(37, 99, 235, 0.2);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(37, 99, 235, 0));
}

.to-cyan-500\/20 {
    --tw-gradient-to: rgba(6, 182, 212, 0.2);
}

.from-purple-600\/20 {
    --tw-gradient-from: rgba(147, 51, 234, 0.2);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(147, 51, 234, 0));
}

.to-blue-600\/20 {
    --tw-gradient-to: rgba(37, 99, 235, 0.2);
}

.from-blue-600\/10 {
    --tw-gradient-from: rgba(37, 99, 235, 0.1);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(37, 99, 235, 0));
}

.to-purple-600\/10 {
    --tw-gradient-to: rgba(147, 51, 234, 0.1);
}

.from-gray-900 {
    --tw-gradient-from: #111827;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(17, 24, 39, 0));
}

.to-gray-800 {
    --tw-gradient-to: #1f2937;
}

.from-blue-500 {
    --tw-gradient-from: #3b82f6;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(59, 130, 246, 0));
}

.to-blue-600 {
    --tw-gradient-to: #2563eb;
}

.from-orange-500 {
    --tw-gradient-from: #f97316;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(249, 115, 22, 0));
}

.to-orange-600 {
    --tw-gradient-to: #ea580c;
}

.from-red-500 {
    --tw-gradient-from: #ef4444;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239, 68, 68, 0));
}

.to-red-600 {
    --tw-gradient-to: #dc2626;
}

/* 焦点样式 */
.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.5);
}

.focus\:ring-primary:focus {
    --tw-ring-color: #165DFF;
}

.focus\:border-primary:focus {
    border-color: #165DFF;
}

/* 持续时间 */
.duration-500 {
    transition-duration: 500ms;
}

/* 最小高度 */
.min-h-screen {
    min-height: 100vh;
}

/* 字体族 */
.font-inter {
    font-family: 'Inter', 'system-ui', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
