/* 通用样式 - AI照片处理平台 */

/* 基础样式 */
body {
    background-color: #121212;
    color: white;
    font-family: 'Inter', sans-serif;
}

/* 通用组件样式 */
.testimonial-card {
    background-color: #1E1E1E;
    border-radius: 8px;
}

.pricing-card {
    background-color: #1E1E1E;
    border-radius: 12px;
}

.star-rating {
    color: #FFD700;
}

/* 移动端菜单 */
.mobile-menu {
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1E1E1E;
}

::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FFD700;
}

/* 水平滚动条样式 */
.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: #1E1E1E;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 4px;
}

.horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: #FFD700;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

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

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

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, #121212 0%, #1E1E1E 100%);
}

/* 文字阴影 */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 加载动画 */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: loading 2s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 响应式优化 */
@media (max-width: 768px) {
    .hero-images img:nth-child(3) {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero-images {
        transform: scale(0.8);
    }

    .mobile-optimized {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* 按钮样式 */
.btn-primary {
    background-color: #FFD700;
    color: #121212;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background-color: #2A2A2A;
    color: white;
    border: 1px solid #404040;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #404040;
    border-color: #FFD700;
}

/* 卡片样式 */
.feature-card {
    background-color: #1E1E1E;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.1);
    border: 1px solid #FFD700;
}

.stats-card {
    background-color: #2A2A2A;
    border-radius: 8px;
}

.recent-item {
    background-color: #2A2A2A;
    border-radius: 8px;
    border: 1px solid #404040;
}

.recent-item:hover {
    border-color: #FFD700;
}

/* 输入框样式 */
.input-field {
    background-color: #2A2A2A;
    border: 1px solid #404040;
    color: white;
}

.input-field:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

/* 登录卡片样式 */
.login-card {
    background-color: #1E1E1E;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Tab样式 */
.tab-active {
    background-color: #FFD700;
    color: #121212;
}

.tab-inactive {
    background-color: #2A2A2A;
    color: #B3B3B3;
}

/* 侧边栏样式 */
.sidebar {
    background-color: #1E1E1E;
    border-right: 1px solid #404040;
}

.main-content {
    background-color: #121212;
}

/* 头像样式 */
.avatar {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #121212;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 处理状态动画 */
.processing-status {
    position: relative;
    overflow: hidden;
}

.processing-status::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    animation: processing 2s infinite;
}

@keyframes processing {
    0% { left: -100%; }
    100% { left: 100%; }
}