/* SEO页面的额外样式 */

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 移动端菜单 */
@media (max-width: 768px) {
    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 50;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .mobile-menu a {
        display: block;
        padding: 12px 16px;
        color: #374151;
        text-decoration: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .mobile-menu a:hover {
        background-color: #f3f4f6;
    }
}

/* 渐变背景动画 */
.hero-gradient {
    background: linear-gradient(-45deg, #667eea, #764ba2, #667eea, #764ba2);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 悬停效果 */
.feature-card:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

/* 响应式文本 */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        line-height: 1.5;
    }
}

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

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

/* 按钮悬停效果 */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .dark-mode-auto {
        background-color: #1f2937;
        color: #f9fafb;
    }
}

/* 打印样式 */
@media print {
    header, footer, .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* 可访问性改进 */
.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-visible:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .high-contrast {
        border: 2px solid currentColor;
    }
}

/* 减少动画（用户偏好） */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Timer specific styles */
.session-type-btn {
    min-width: 160px !important;
    width: 160px !important;
    text-align: center;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ensure consistent button sizes */
#start-btn, #pause-btn {
    min-width: 160px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#reset-btn {
    min-width: 120px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Timer display improvements */
#timer-display {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* Button hover effects for timer controls */
.session-type-btn:hover {
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Active session button styling */
.session-type-btn.active {
    background-color: #6366f1 !important;
    color: white !important;
}

.session-type-btn.active:hover {
    background-color: #5855eb !important;
} 