/* 自定义CSS样式 - 补充Tailwind未覆盖的样式 */

/* 字体设置 */
body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
}

/* 颜色语义定义 */
:root {
    --primary: #3b82f6;      /* 蓝色 */
    --primary-hover: #2563eb;
    --secondary: #6b7280;    /* 灰色 */
    --secondary-hover: #4b5563;
    --accent: #10b981;       /* 绿色 */
    --foreground: #1f2937;   /* 深灰色 */
    --muted-foreground: #6b7280;
    --border: #e5e7eb;
    --muted: #f9fafb;
    --background: #ffffff;
}

/* 暗色模式 */
.dark {
    --primary: #60a5fa;
    --primary-hover: #3b82f6;
    --secondary: #9ca3af;
    --secondary-hover: #6b7280;
    --accent: #34d399;
    --foreground: #f9fafb;
    --muted-foreground: #d1d5db;
    --border: #374151;
    --muted: #111827;
    --background: #1f2937;
}

/* 渐变背景 */
.gradient-hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 30%, #fef3c7 100%);
    position: relative;
    overflow: hidden;
}

.dark .gradient-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #334155 100%);
}

/* 倒计时样式 */
.countdown-item {
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.countdown-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--foreground);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--accent));
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* 功能卡片 */
.feature-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.dark .feature-card {
    background: var(--muted);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* 模态框样式 */
.modal-container {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--background);
    border-radius: 1rem;
    width: 90%;
    max-width: 32rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modal-slide-in 0.3s ease-out;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 9999px;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background-color: var(--muted);
}

.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--background);
    color: var(--foreground);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 动画延迟 */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

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

.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

.animation-delay-300 {
    animation-delay: 300ms;
}

.animation-delay-600 {
    animation-delay: 600ms;
}

/* 关键帧动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* 响应式调整 */
@media (max-width: 768px) {
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-item {
        padding: 1rem 0.5rem;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}
