/* CSS/special/project.css */
.project-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.page-header {
    margin-bottom: 32px;
}
.page-header h1 {
    color: var(--primary, #2a5c3a);
    font-size: 2rem;
    margin-bottom: 4px;
}
.page-header p {
    opacity: 0.7;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* 项目卡片 */
.project-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.project-card-cover {
    height: 100px;
    background: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.project-card-body {
    padding: 18px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card-body h3 {
    color: var(--primary, #2a5c3a);
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.project-desc {
    font-size: 0.9rem;
    opacity: 0.75;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 16px;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid rgba(0,0,0,0.04);
    padding-top: 14px;
}

.project-status {
    font-size: 0.75rem;
    padding: 4px 14px;
    border-radius: 40px;
    background: rgba(0,0,0,0.04);
}
.status-done {
    background: rgba(42, 92, 58, 0.12);
    color: var(--primary, #2a5c3a);
}
.status-progress {
    background: rgba(241, 163, 92, 0.2);
    color: #b85a32;
}
.status-plan {
    background: rgba(0,0,0,0.04);
    opacity: 0.6;
}

.project-link {
    color: var(--primary, #2a5c3a);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}
.project-link:hover {
    text-decoration: underline;
}

/* 项目详情页 */
.detail-container {
    max-width: 750px;
    margin: 0 auto;
}
.back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--primary, #2a5c3a);
    text-decoration: none;
    opacity: 0.7;
}
.back-link:hover { opacity: 1; }

.project-detail .detail-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.project-detail h1 {
    color: var(--primary, #2a5c3a);
    font-size: 2rem;
    line-height: 1.3;
    margin-right: 16px;
}
.detail-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    white-space: nowrap;
    margin-top: 6px;
}
.detail-year {
    opacity: 0.5;
    font-size: 0.9rem;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 24px;
}
.detail-tags .tag {
    background: rgba(255,255,255,0.5);
    padding: 4px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.6);
}

.detail-body {
    line-height: 1.9;
    font-size: 1.05rem;
}
.detail-body p {
    margin-bottom: 1.2rem;
}
.detail-body ul {
    padding-left: 24px;
    margin-bottom: 1.2rem;
}
.detail-body li {
    margin-bottom: 6px;
}
.detail-media {
    background: rgba(255,255,255,0.4);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    font-size: 2rem;
    color: var(--primary, #2a5c3a);
    margin-bottom: 24px;
    border: 1px dashed rgba(0,0,0,0.06);
}

.project-card-placeholder {
    opacity: 0.7;
    cursor: default;
}
.project-card-placeholder:hover {
    transform: none;
    box-shadow: none;
}

@media (max-width: 600px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
    .project-detail h1 {
        font-size: 1.5rem;
    }
    .detail-header {
        flex-direction: column;
    }
}