/* NovaAnimeWeb 样式文件 - 现代卡片风格 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: #000000;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 - 现代卡片风格 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #000000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand a {
    color: #000000;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: transform 0.3s;
    display: inline-block;
}

.navbar-brand a:hover {
    transform: scale(1.05);
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navbar-menu a {
    color: #000000;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000000;
    transition: width 0.3s;
}

.navbar-menu a:hover::after {
    width: 100%;
}

.navbar-menu span {
    color: #666666;
    font-size: 0.9rem;
}

/* 主内容区 */
.main-content {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

/* 提示消息 - 卡片风格 */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    border-left: 4px solid;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background-color: #f0fdf4;
    color: #000000;
    border-left-color: #22c55e;
}

.alert-error {
    background-color: #fef2f2;
    color: #000000;
    border-left-color: #ef4444;
}

/* 按钮 - 现代卡片风格 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: #000000;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #333333;
}

.btn-secondary {
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.btn-secondary:hover {
    background-color: #f5f5f5;
}

.btn-success {
    background-color: #22c55e;
    color: #ffffff;
}

.btn-success:hover {
    background-color: #16a34a;
}

.btn-danger {
    background-color: #ef4444;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 首页英雄区 - 现代卡片风格 */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #000000;
    border-radius: 24px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero .description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: #666666;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 功能特性 - 动态卡片 */
.features {
    margin-bottom: 3rem;
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    animation: fadeIn 0.6s ease-out backwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.feature-item h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #000000;
}

/* 工作流程 - 流动卡片设计 */
.workflow {
    background: #ffffff;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.workflow h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
}

.workflow-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.workflow-steps .step {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #ffffff;
    padding: 1.25rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.workflow-steps .step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.workflow-steps .arrow {
    font-size: 1.5rem;
    color: #000000;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* 认证表单 - 现代卡片设计 */
.auth-form-container {
    max-width: 480px;
    margin: 3rem auto;
    background: #ffffff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    animation: fadeInUp 0.6s ease-out;
}

.auth-form-container h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #000000;
    font-size: 2rem;
    font-weight: 700;
}

.auth-form .form-group {
    margin-bottom: 1.75rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #000000;
    font-size: 0.95rem;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    background-color: #ffffff;
    color: #000000;
    transition: all 0.3s;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: #000000;
    background-color: #fafafa;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
}

.auth-form small {
    display: block;
    margin-top: 0.5rem;
    color: #666666;
    font-size: 0.875rem;
}

.auth-form .form-footer {
    text-align: center;
    margin-top: 2rem;
    color: #666666;
}

.auth-form .form-footer a {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid #000000;
    transition: all 0.3s;
}

.auth-form .form-footer a:hover {
    color: #666666;
    border-bottom-color: #666666;
}

/* 项目列表 - 动态卡片 */
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    animation: fadeIn 0.5s ease-out;
}

.projects-header h1 {
    font-weight: 700;
    font-size: 2.5rem;
    color: #000000;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    animation: fadeInUp 0.5s ease-out backwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

.project-card h3 {
    margin-bottom: 0.75rem;
    color: #000000;
    font-size: 1.5rem;
    font-weight: 700;
}

.project-card .project-meta {
    color: #666666;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.project-card .project-status {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-card .status-draft {
    background-color: #f5f5f5;
    color: #666666;
}

.project-card .status-processing {
    background-color: #fef3c7;
    color: #92400e;
}

.project-card .status-completed {
    background-color: #dcfce7;
    color: #166534;
}

.project-card .status-error {
    background-color: #fee2e2;
    color: #991b1b;
}

.project-card .project-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.project-card .project-actions .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    flex: 1;
}

/* 项目编辑器 - 流畅卡片 */
.editor-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease-out;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.editor-header h2 {
    font-weight: 700;
    font-size: 2rem;
    color: #000000;
}

.scenes-container {
    margin-top: 2rem;
}

.scene-card {
    background: #ffffff;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border-left: 5px solid #000000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.scene-card:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border-left-width: 8px;
}

.scene-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.scene-header strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000000;
}

.scene-duration {
    display: inline-block;
    padding: 0.375rem 1rem;
    background-color: #000000;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    margin-left: 1rem;
    border-radius: 20px;
}

/* 进度条 - 流动设计 */
.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #000000 0%, #333333 100%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 页脚 - 优雅渐变 */
.footer {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.footer p {
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* 响应式设计 - 完全自适应 */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 1.5rem;
        border-radius: 16px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .workflow {
        padding: 2rem;
        border-radius: 16px;
    }
    
    .workflow-steps {
        flex-direction: column;
    }
    
    .workflow-steps .arrow {
        transform: rotate(90deg);
    }
    
    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navbar-menu {
        gap: 1rem;
    }
    
    .auth-form-container {
        margin: 2rem 1rem;
        padding: 2rem;
        border-radius: 16px;
    }
    
    .editor-container {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

