/* ========== 项目页面样式 ========== */

/* 英雄区域 */
.project-hero {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}
.project-hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}
.project-hero p {
    font-size: 16px;
    opacity: 0.9;
}

/* 项目网格 */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* 项目卡片 */
.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.project-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.project-card-body {
    padding: 24px;
}
.project-card-status {
    display: inline-block;
    background: #d4edda;
    color: #155724;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}
.project-card-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 12px;
}
.project-card-client {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}
.project-card-client strong {
    color: #333;
}
.project-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.project-tag {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    color: #666;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}
.project-tag-icon {
    margin-right: 4px;
}
.project-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}
.project-card-date {
    font-size: 13px;
    color: #999;
}
.project-card-link {
    color: #11998e;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.project-card-link:hover {
    text-decoration: underline;
}

/* 无结果 */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

/* ========== 项目详情页样式 ========== */
.project-detail-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}
.project-detail-header {
    margin-bottom: 30px;
}
.project-detail-status {
    display: inline-block;
    background: #d4edda;
    color: #155724;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.project-detail-title {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.4;
    margin: 0 0 20px;
}
.project-detail-client {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.project-detail-client strong {
    color: #333;
}
.project-detail-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}
.project-detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 30px;
}
.project-info-item {
    text-align: center;
}
.project-info-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 6px;
}
.project-info-value {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}
.project-detail-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}
.project-detail-desc p {
    margin-bottom: 20px;
    text-indent: 2em;
}
.project-back-link {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    padding: 12px 24px;
    background: #11998e;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}
.project-back-link:hover {
    background: #0d806d;
}

/* 响应式 */
@media (max-width: 768px) {
    .project-hero h1 {
        font-size: 28px;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
    .project-detail-title {
        font-size: 24px;
    }
    .project-detail-image {
        height: 300px;
    }
}

.project-detail-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}
.project-detail-header {
    margin-bottom: 30px;
}
.project-detail-status {
    display: inline-block;
    background: #d4edda;
    color: #155724;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.project-detail-title {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.4;
    margin: 0 0 20px;
}
.project-detail-client {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.project-detail-client strong {
    color: #333;
}
.project-detail-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}
.project-detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 30px;
}
.project-info-item {
    text-align: center;
}
.project-info-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 6px;
}
.project-info-value {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}
.project-detail-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}
.project-detail-desc p {
    margin-bottom: 20px;
    text-indent: 2em;
}
.project-back-link {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    padding: 12px 24px;
    background: #11998e;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}
.project-back-link:hover {
    background: #0d806d;
}
