.project-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-breadcrumb {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
}

.project-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.project-breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
}

.project-title {
    color: var(--text-primary);
    font-weight: 600;
}

.project-actions {
    display: flex;
    gap: 1rem;
}

.btn-icon {
    margin-right: 0.5rem;
}

/* 项目元信息卡片 */
.project-meta-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-meta-content {
    display: flex;
    padding: 2rem;
}

.project-cover {
    flex: 0 0 300px;
    margin-right: 2rem;
}

.cover-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.project-meta-info {
    flex: 1;
}

.project-title-large {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-category-tag {
    margin-bottom: 1.5rem;
}

.category-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--bg-primary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.project-tech-stack {
    margin-bottom: 2rem;
}

.project-tech-stack h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(79, 195, 247, 0.2);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(79, 195, 247, 0.3);
}

.project-meta-stats {
    display: flex;
    gap: 2rem;
}

.meta-stat {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.status-active {
    color: #4CAF50;
}

.status-completed {
    color: #2196F3;
}

.status-paused {
    color: #FF9800;
}

/* README容器 */
.project-readme-container {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.readme-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 40, 0.5);
}

.readme-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.readme-icon {
    margin-right: 0.5rem;
}

.readme-content {
    padding: 2rem;
}

.markdown-body {
    color: var(--text-primary);
    line-height: 1.7;
}

.readme-section {
    margin-bottom: 2.5rem;
}

.readme-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.feature-list {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.feature-list li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* 代码块样式 */
.code-block {
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(10, 10, 40, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.copy-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.copy-icon {
    margin-right: 0.3rem;
}

.code-block pre {
    margin: 0;
    padding: 1.5rem;
    background: rgba(10, 10, 40, 0.5);
    overflow-x: auto;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.project-structure pre {
    background: rgba(10, 10, 40, 0.5);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 相关项目 */
.related-projects {
    margin-top: 3rem;
}

.related-projects .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-project-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.related-project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.related-project-image {
    height: 150px;
    overflow: hidden;
}

.related-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-project-card:hover .related-project-image img {
    transform: scale(1.05);
}

.related-project-info {
    padding: 1.5rem;
}

.related-project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.related-project-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.related-project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.related-project-link:hover {
    text-decoration: underline;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    margin: 10% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.close-modal {
    color: var(--text-secondary);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.share-option {
    display: flex;
    gap: 1rem;
}

#share-url {
    flex: 1;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.copy-url-btn {
    background: var(--primary-color);
    color: var(--bg-primary);
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.copy-url-btn:hover {
    background: var(--primary-dark);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .project-detail-container {
        padding: 1rem;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .project-meta-content {
        flex-direction: column;
    }
    
    .project-cover {
        flex: none;
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .project-meta-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .related-projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .project-title-large {
        font-size: 2rem;
    }
    
    .project-meta-content,
    .readme-content {
        padding: 1.5rem;
    }
    
    .readme-section h3 {
        font-size: 1.3rem;
    }
    
    .share-option {
        flex-direction: column;
    }
}

.code-actions {
    display: flex;
    gap: 8px;
}

/* 下载按钮样式 */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.4);
    color: white;
    text-decoration: none;
}

/* 项目操作区域的下载按钮 */
.project-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
}

.project-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.4);
}

/* 复制按钮样式调整 */
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #2d3748;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
}