/* assets/css/style.css - 主样式文件 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0418 0%, #1a0b2e 50%, #0a0418 100%);
    color: #ffffff;
    min-height: 100vh;
}

/* 导航栏 */
.navbar {
    background: rgba(10, 4, 24, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, #c084fc, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo i {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #a855f7;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #c084fc;
}

.user-name {
    color: #c084fc;
    font-size: 14px;
}

.admin-link {
    background: rgba(139, 92, 246, 0.2);
    padding: 6px 12px;
    border-radius: 8px;
}

.logout-link {
    color: #f87171 !important;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #a855f7;
}

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, rgba(26, 11, 46, 0.8), rgba(15, 5, 32, 0.9));
    padding: 80px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.hero-content h1 {
    font-size: 48px;
    background: linear-gradient(135deg, #c084fc, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 12px 28px;
    border-radius: 40px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #a855f7;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #c084fc;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* 产品区域 */
.products-section {
    padding: 64px 24px;
}

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

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #c084fc, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-header p {
    color: rgba(255, 255, 255, 0.6);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.product-card {
    background: rgba(26, 11, 46, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.2);
}

.product-cover {
    height: 200px;
    overflow: hidden;
}

.product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d1b4e, #1a0b2e);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-placeholder i {
    font-size: 64px;
    color: rgba(168, 85, 247, 0.3);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #c084fc;
}

.product-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.product-progress {
    margin-bottom: 16px;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    height: 8px;
    margin-bottom: 8px;
}

.progress-fill {
    background: linear-gradient(90deg, #a855f7, #c084fc);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.latest-update {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

.latest-update i {
    margin-right: 4px;
}

.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c084fc;
    text-decoration: none;
    font-size: 14px;
    transition: gap 0.3s;
}

.btn-view:hover {
    gap: 12px;
}

/* 产品详情页 */
.product-detail {
    min-height: calc(100vh - 64px);
}

.product-header {
    padding: 60px 24px;
    text-align: center;
}

.product-title h1 {
    font-size: 48px;
    margin-bottom: 16px;
    color: #c084fc;
}

.product-title p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

.share-section {
    margin-top: 24px;
}

.btn-share {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 10px 24px;
    border-radius: 40px;
    color: #c084fc;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-share:hover {
    background: rgba(139, 92, 246, 0.3);
}

/* 进度板块 */
.progress-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 48px 0;
}

.section-card {
    background: rgba(26, 11, 46, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.section-title i {
    font-size: 20px;
    color: #a855f7;
}

.section-title h3 {
    flex: 1;
    font-size: 18px;
}

.section-title .count {
    background: rgba(139, 92, 246, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    color: #c084fc;
}

.module-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.module-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 12px;
    border-left: 3px solid;
}

.module-item.pending { border-left-color: #fbbf24; }
.module-item.scheduled { border-left-color: #60a5fa; }
.module-item.developing { border-left-color: #f97316; }
.module-item.testing { border-left-color: #a855f7; }
.module-item.completed { border-left-color: #4ade80; }

.module-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.module-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.module-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.module-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.progress-bar-small {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    height: 4px;
}

.progress-fill-small {
    background: linear-gradient(90deg, #a855f7, #c084fc);
    height: 100%;
}

.empty-state {
    text-align: center;
    padding: 24px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.empty-state-large {
    text-align: center;
    padding: 60px;
    color: rgba(255, 255, 255, 0.4);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.page-link {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.page-link:hover,
.page-link.active {
    background: #a855f7;
    color: white;
}

/* 社区板块 */
.community-section {
    margin: 48px 0;
}

.community-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.community-section .section-header h2 {
    margin-bottom: 0;
}

.requirements-list,
.crowdfunding-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.requirement-card,
.crowdfunding-card {
    background: rgba(26, 11, 46, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 20px;
}

.requirement-header,
.crowdfunding-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
}

.requirement-author,
.crowdfunding-author {
    color: #c084fc;
}

.requirement-date,
.crowdfunding-deadline {
    color: rgba(255, 255, 255, 0.5);
}

.requirement-card h4,
.crowdfunding-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #f0f0f0;
}

.requirement-card p,
.crowdfunding-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 16px;
}

.requirement-actions {
    display: flex;
    gap: 16px;
}

.vote-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

.vote-btn.good:hover {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.vote-btn.bad:hover {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.crowdfunding-stats {
    margin-bottom: 16px;
}

.stats-details {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.btn-support {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-support:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #1a0b2e, #0f0520);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(139, 92, 246, 0.3);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.modal-header h3 {
    color: #c084fc;
}

.modal-header .close {
    background: none;
    border: none;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.modal-content form {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #a855f7;
}

/* 认证页面 */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.auth-card {
    background: rgba(26, 11, 46, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header i {
    font-size: 48px;
    color: #a855f7;
    margin-bottom: 16px;
}

.auth-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.6);
}

.auth-form .form-group.checkbox {
    display: flex;
    align-items: center;
}

.auth-form .form-group.checkbox input {
    width: auto;
    margin-right: 8px;
}

.auth-error {
    background: rgba(248, 113, 113, 0.2);
    border: 1px solid #f87171;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    color: #f87171;
    font-size: 14px;
}

.auth-success {
    background: rgba(74, 222, 128, 0.2);
    border: 1px solid #4ade80;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    color: #4ade80;
    font-size: 14px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.auth-footer a {
    color: #c084fc;
    text-decoration: none;
}

/* 页脚 */
.footer {
    background: rgba(10, 4, 24, 0.95);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    padding: 48px 24px 24px;
    margin-top: 48px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}

.footer-info h3 {
    margin-bottom: 8px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #c084fc;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 4, 24, 0.98);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-title h1 {
        font-size: 32px;
    }
    
    .progress-sections {
        grid-template-columns: 1fr;
    }
    
    .community-section .section-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .auth-card {
        padding: 24px;
    }
}