/* 挑战详情页：在 project-detail 基础上补充与覆盖 */

/* 活动费用卡片：与其他 meta-item 同结构，仅颜色区分 */
.meta-item--fee::before {
    background: linear-gradient(90deg, #e8a54d 0%, #c45a11 100%);
}

.meta-item--fee {
    border-color: rgba(196, 90, 17, 0.25);
    background: linear-gradient(135deg, #fffbf5 0%, #fff8eb 100%);
}

.meta-item--fee .meta-label {
    background: rgba(196, 90, 17, 0.1);
    color: #a04a0e;
}

.meta-item--fee .meta-value {
    color: #c45a11;
}

.challenge-detail-hero .hero-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.detail-intro {
    font-size: 15px;
    line-height: 1.8;
    color: var(--dark-gray);
}

.detail-intro p {
    margin: 0 0 14px 0;
}

.detail-intro p:last-child {
    margin-bottom: 0;
}

.detail-tasks {
    margin: 0;
    padding-left: 22px;
    list-style: disc;
}

.detail-tasks li {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--dark-gray);
}

.process-lead {
    font-size: 15px;
    line-height: 1.7;
    color: var(--dark-gray);
    margin: 0 0 20px 0;
}

.process-lead strong {
    color: var(--deep-space-blue);
}

.rewards-lead {
    font-size: 15px;
    line-height: 1.7;
    color: var(--dark-gray);
    margin: 0 0 16px 0;
}

.rewards-lead strong {
    color: var(--deep-space-blue);
}

.rewards-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.rewards-list li {
    position: relative;
    padding: 12px 14px 12px 44px;
    border: 1px solid #e4edf8;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff 0%, #f3f8ff 100%);
    color: var(--dark-gray);
    font-size: 14px;
    line-height: 1.6;
}

.rewards-list li::before {
    content: "✓";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--starlight-gold);
    color: var(--deep-space-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.mentors-lead {
    font-size: 15px;
    line-height: 1.7;
    color: var(--dark-gray);
    margin: 0 0 24px 0;
}

.mentors-lead strong {
    color: var(--deep-space-blue);
}

.mentor-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 20px;
}

.mentor-category-title {
    font-size: 16px;
    color: var(--deep-space-blue);
    margin: 0 0 14px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--starlight-gold);
}

#section-mentors .mentor-grid {
    display: block;
    min-height: 1px;
}

.mentor-card {
    background: linear-gradient(135deg, #f9fbfe 0%, #f4f8fe 100%);
    border: 1px solid #e4edf8;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.mentor-card:hover {
    box-shadow: 0 8px 20px rgba(10, 36, 99, 0.1);
    transform: translateY(-2px);
}

.mentor-card-photo-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    background: #e4edf8;
    flex-shrink: 0;
}

.mentor-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 5%;
    display: block;
}

.mentor-card-avatar {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #cde0ff 0%, #a6c8ff 100%);
    color: var(--deep-space-blue);
    font-size: 28px;
    font-weight: 700;
}

.mentor-card-body {
    padding: 14px 16px;
    flex: 1;
}

.mentor-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--deep-space-blue);
    margin: 0 0 4px 0;
    text-align: center;
}

.mentor-card-title {
    font-size: 13px;
    color: var(--dark-gray);
    margin: 0 0 10px 0;
    line-height: 1.4;
    text-align: center;
}

.mentor-card-intro {
    font-size: 13px;
    color: var(--dark-gray);
    line-height: 1.6;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid #e4edf8;
}

/* ========== 组队列表 ========== */
.team-list-block {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e4edf8;
}

.team-list-title {
    font-size: 16px;
    color: var(--deep-space-blue);
    margin: 0 0 8px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--starlight-gold);
}

.team-list-lead {
    font-size: 14px;
    color: var(--dark-gray);
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.team-list-table {
    border: 1px solid #e4edf8;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fbff 0%, #f3f8ff 100%);
}

.team-list-head {
    display: grid;
    grid-template-columns: 1fr 0.9fr 0.9fr 1fr 100px;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #e8f1fc 0%, #dce8f6 100%);
    font-size: 13px;
    font-weight: 600;
    color: var(--deep-space-blue);
}

.team-list-row {
    display: grid;
    grid-template-columns: 1fr 0.9fr 0.9fr 1fr 100px;
    gap: 12px;
    padding: 14px 16px;
    font-size: 14px;
    color: var(--dark-gray);
    align-items: center;
    border-top: 1px solid #e4edf8;
}

.team-col-name {
    font-weight: 600;
    color: var(--deep-space-blue);
}

.team-name-trigger {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: var(--deep-space-blue);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.team-name-trigger:hover {
    color: #2a5ab0;
}

.team-col-joinable-yes {
    color: #0d6b0d;
    font-weight: 500;
}

.team-col-joinable-no {
    color: var(--dark-gray);
}

.btn-join-team {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--deep-space-blue);
    background: var(--starlight-gold);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-join-team:hover {
    background: #ffca2b;
}

.team-join-disabled {
    font-size: 13px;
    color: var(--dark-gray);
}

.team-list-more-wrap {
    text-align: center;
    margin-top: 16px;
}

.btn-team-list-more {
    display: inline-block;
    padding: 10px 28px;
    font-size: 14px;
    color: var(--deep-space-blue);
    background: #fff;
    border: 1px solid #c7d9fa;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-team-list-more:hover {
    background: #f0f5fc;
    border-color: #a6c8ff;
}

.team-list-empty {
    font-size: 14px;
    color: var(--dark-gray);
    text-align: center;
    padding: 24px 16px;
    margin: 0;
    background: linear-gradient(135deg, #f8fbff 0%, #f3f8ff 100%);
    border: 1px solid #e4edf8;
    border-radius: 12px;
}

/* ========== 队伍详情模态框 ========== */
.team-detail-modal {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.team-detail-modal-hidden {
    display: none;
}

.team-detail-modal-overlay {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 36, 99, 0.4);
}

.team-detail-modal-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(10, 36, 99, 0.2);
    padding: 24px 24px 20px;
}

.team-detail-modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f5fc;
    color: var(--deep-space-blue);
    font-size: 22px;
    line-height: 1;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease;
}

.team-detail-modal-close:hover {
    background: #e4edf8;
}

.team-detail-modal-title {
    font-size: 18px;
    color: var(--deep-space-blue);
    margin: 0 32px 12px 0;
    padding-right: 8px;
}

.team-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    font-size: 13px;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.team-detail-section {
    margin-bottom: 18px;
}

.team-detail-section h4 {
    font-size: 13px;
    color: #5b7fb8;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.team-detail-section p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--dark-gray);
    margin: 0;
}

.team-detail-count strong {
    color: var(--deep-space-blue);
}

.team-detail-req-list {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--dark-gray);
}

.team-detail-no-req {
    font-size: 14px;
    color: var(--dark-gray);
    margin: 0;
}

.team-detail-modal-actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e4edf8;
}

.btn-join-team-modal {
    padding: 10px 24px;
    font-size: 14px;
}

.team-detail-full-tip {
    font-size: 14px;
    color: var(--dark-gray);
}

@media (max-width: 768px) {
    .team-list-head,
    .team-list-row {
        grid-template-columns: minmax(80px, 1fr) minmax(60px, 0.8fr) minmax(70px, 0.8fr) minmax(70px, 0.9fr) minmax(72px, auto);
        gap: 8px;
        padding: 10px 12px;
        font-size: 13px;
    }
}


@media (max-width: 900px) {
    .mentor-categories {
        grid-template-columns: 1fr;
    }
}

.challenge-detail-cta {
    text-align: center;
    margin-top: 28px;
    margin-bottom: 24px;
}

.challenge-detail-cta .btn-join-large {
    min-width: 180px;
    padding: 12px 28px;
    font-size: 15px;
}

@media (max-width: 1024px) {
    .output-grid-three {
        grid-template-columns: 1fr;
    }
}
