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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #f9fafb;
}

/* 背景图片 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://t.alcy.cc/ycy');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

/* 亚克力效果覆盖层 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 - 亚克力效果 */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: #374151;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.2s;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-register {
    background: #3b82f6;
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-size: 0.875rem;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border: 1px solid #3b82f6;
}

.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: 1px solid #6b7280;
}

.btn-secondary:hover {
    background: #4b5563;
    border-color: #4b5563;
}

.btn-full {
    width: 100%;
}

/* 首页英雄区域 - 亚克力效果 */
.hero {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px) saturate(160%);
    -webkit-backdrop-filter: blur(15px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 80px 0;
    display: flex;
    align-items: center;
    min-height: 70vh;
    margin: 40px 0;
    border-radius: 16px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding: 0 40px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #1f2937;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: #6b7280;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

.hero-image {
    flex: 1;
    text-align: center;
    font-size: 10rem;
    opacity: 0.1;
}

/* 特性区域 - 亚克力效果 */
.features {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px) saturate(160%);
    -webkit-backdrop-filter: blur(15px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    margin: 40px 0;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #1f2937;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 0 20px;
}

.feature-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.8);
}

.feature-card i {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #1f2937;
}

.feature-card p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* 认证页面 */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #1f2937;
    font-size: 1.5rem;
}

/* 表单样式 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(209, 213, 219, 0.6);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.auth-links {
    text-align: center;
    margin-top: 16px;
}

.auth-links a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
}

/* 警告信息 */
.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
}

.alert-error {
    background: rgba(254, 242, 242, 0.8);
    color: #dc2626;
    border: 1px solid rgba(254, 202, 202, 0.6);
}

.alert-success {
    background: rgba(240, 253, 244, 0.8);
    color: #16a34a;
    border: 1px solid rgba(187, 247, 208, 0.6);
}

/* 控制台样式 - 亚克力效果 */
.dashboard-container {
    padding: 32px 0;
    min-height: calc(100vh - 60px);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.dashboard-header h1 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 8px;
}

/* 上传区域 - 亚克力效果 */
.upload-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 32px;
}

.upload-section h2 {
    margin-bottom: 16px;
    color: #1f2937;
    font-size: 1.25rem;
}

.file-upload-area {
    border: 1px dashed rgba(209, 213, 219, 0.6);
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: rgba(255, 255, 255, 0.4);
}

.file-upload-area:hover {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.6);
}

.file-upload-area i {
    font-size: 2.5rem;
    color: #9ca3af;
    margin-bottom: 12px;
}

.file-upload-area p {
    color: #6b7280;
    margin-bottom: 0;
    font-size: 0.875rem;
}

#fileInput {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-form {
    margin-bottom: 24px;
}

/* 文件网格 - 亚克力效果 */
.files-section h2 {
    margin-bottom: 16px;
    color: #1f2937;
    font-size: 1.25rem;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.file-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}

.file-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.9);
}

.file-icon {
    text-align: center;
    margin-bottom: 12px;
}

.file-icon i {
    font-size: 2rem;
    color: #3b82f6;
}

.file-info h4 {
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 1rem;
    word-break: break-all;
}

.file-info p {
    color: #6b7280;
    font-size: 0.75rem;
    margin-bottom: 5px;
}

.file-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
    padding-top: 12px;
}

/* 操作按钮 */
.btn-action {
    padding: 6px 12px;
    border: 1px solid rgba(209, 213, 219, 0.6);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.6);
    color: #374151;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
    backdrop-filter: blur(10px);
}

.btn-action:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: rgba(255, 255, 255, 0.8);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #d1d5db;
}

.empty-state h3 {
    margin-bottom: 8px;
    color: #374151;
}

/* 页脚 */
.footer {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(229, 231, 235, 0.6);
    color: #6b7280;
    text-align: center;
    padding: 24px 0;
    font-size: 0.875rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 48px 0;
        margin: 20px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-image {
        font-size: 6rem;
        margin-top: 32px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .nav-links {
        gap: 16px;
    }
    
    .files-grid {
        grid-template-columns: 1fr;
    }
    
    .file-actions {
        flex-direction: column;
    }
    
    .auth-card {
        margin: 0 16px;
    }
    
    .features, .dashboard-header {
        margin: 20px 0;
        padding: 40px 20px;
    }
}
/* 邮箱验证相关样式 */
.email-input-group {
    display: flex;
    gap: 10px;
}

.btn-send-code {
    padding: 10px 15px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-send-code:hover:not(:disabled) {
    background: #059669;
}

.btn-send-code:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.captcha-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-image {
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #d1d5db;
}

/* 表单验证样式 */
.form-group input:invalid {
    border-color: #ef4444;
}

.form-group input:valid {
    border-color: #10b981;
}