/* 前台用户专属 - 页头、案例列表、案例详情 */

/* ========== 页头 ========== */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-nav a, .header-nav span {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.header-nav a:hover {
    color: var(--text);
    background: var(--bg);
}

.header-nav a.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* ========== 案例卡片 ========== */
.case-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding-top: 8px;
}

.case-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    cursor: pointer;
}

.case-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.case-cover {
    height: 180px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.case-cover .placeholder {
    font-size: 40px;
    color: var(--text-muted);
}

.case-info {
    padding: 18px;
}

.case-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.4;
}

.case-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== 案例详情 ========== */
.case-detail-header {
    margin-bottom: 28px;
}

.case-detail-header a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 14px;
    padding: 6px 12px;
    background: var(--bg);
    border-radius: 6px;
}

.case-detail-header a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.case-detail-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.case-detail-cover {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.case-detail-cover img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.case-detail-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 导图区域 */
.diagram-section {
    margin-top: 36px;
}

.diagram-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.view-diagram-btn {
    margin-top: 18px;
    text-align: center;
}
