/* 活动详情页样式 - 凡智·任务课堂 */
.activity-detail-page .content-sections .container.container-wide {
    max-width: 1140px;
}

.activity-detail-hero {
    position: relative;
    overflow: hidden;
    text-align: left;
}

.activity-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.12), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(255, 215, 0, 0.16), transparent 35%);
    pointer-events: none;
}

.activity-detail-hero .container {
    position: relative;
    z-index: 1;
    width: min(1140px, 100%);
    margin: 0 auto;
    padding: 0 24px;
}

.activity-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: center;
}

.activity-detail-hero .hero-main,
.activity-detail-hero .hero-visual {
    min-width: 0;
}

.activity-detail-hero .hero-main h1 {
    margin-bottom: 12px;
    line-height: 1.28;
}

.activity-detail-hero .hero-main p {
    margin-left: 0;
    margin-right: 0;
    max-width: 680px;
}

.back-link {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: #fff;
}

.activity-detail-hero .hero-chips {
    margin-top: 18px;
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.activity-detail-hero .hero-chip {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 12px;
}

.activity-apply-btn,
.activity-contact-btn {
    display: inline-block;
    min-width: 130px;
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.activity-apply-btn {
    background: var(--starlight-gold);
    color: var(--deep-space-blue);
    border: 1px solid var(--starlight-gold);
    font-weight: 600;
}

.activity-apply-btn:hover {
    background: #ffca2b;
}

.activity-contact-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    cursor: pointer;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.activity-contact-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.activity-apply-btn-large {
    min-width: 200px;
    padding: 14px 28px;
    font-size: 16px;
}

.activity-detail-hero .hero-visual {
    position: relative;
}

.activity-detail-hero .hero-cover {
    position: relative;
    height: 248px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: 0 14px 30px rgba(7, 28, 77, 0.42);
    background-size: cover;
    background-position: center;
}

.activity-detail-hero .hero-cover-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(7, 28, 77, 0.76) 100%);
}

.activity-detail-hero .hero-provider-label {
    margin: 0 0 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
}

.activity-detail-hero .hero-provider-value {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.detail-card-registration {
    background: linear-gradient(148deg, #fafcff 0%, #f0f6ff 50%, #e8f2fc 100%);
    border: 1px solid rgba(62, 146, 204, 0.25);
    box-shadow: 0 4px 24px rgba(10, 36, 99, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.detail-card-registration h2 {
    margin-bottom: 18px;
}

/* 时间安排：独立区块 */
.registration-time-wrap {
    margin-bottom: 20px;
}

.registration-time-title {
    font-size: 14px;
    color: var(--light-blue);
    font-weight: 600;
    margin: 0 0 10px;
    letter-spacing: 0.03em;
}

.registration-time-block {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e8f4fc 100%);
    border-radius: 12px;
    border-left: 4px solid var(--light-blue);
}

.registration-time-block .time-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
}

.registration-time-block .time-label {
    font-size: 12px;
    color: var(--light-blue);
    font-weight: 600;
}

.registration-time-block .time-value {
    font-size: 15px;
    color: #1a4a7a;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.registration-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.reg-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(228, 237, 248, 0.9);
    box-shadow: 0 2px 8px rgba(10, 36, 99, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.reg-item:hover {
    box-shadow: 0 4px 14px rgba(10, 36, 99, 0.08);
    border-color: rgba(62, 146, 204, 0.2);
}

/* 费用类型：突出显示 */
.reg-item--fee {
    background: linear-gradient(135deg, #fffbf5 0%, #fff8eb 100%);
    border: 1px solid rgba(196, 90, 17, 0.2);
}

.reg-item--fee .reg-value-fee {
    color: #c45a11;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.reg-label {
    font-size: 12px;
    color: #5b7fb8;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.reg-value {
    font-size: 14px;
    color: #1e3a5f;
    font-weight: 600;
    line-height: 1.5;
}

/* 关联专业：颜色标签 */
.registration-majors-wrap {
    margin-top: 18px;
}

.registration-majors-label {
    display: block;
    font-size: 12px;
    color: #5b7fb8;
    font-weight: 500;
    margin-bottom: 10px;
}

.registration-majors-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.major-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.major-tag.tag-blue {
    background: linear-gradient(135deg, #3E92CC 0%, #2a7ab8 100%);
}

.major-tag.tag-cyan {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

.major-tag.tag-teal {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

.major-tag.tag-indigo {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.major-tag.tag-violet {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.registration-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(62, 146, 204, 0.15);
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.registration-actions .activity-apply-btn {
    background: linear-gradient(135deg, var(--starlight-gold) 0%, #ffdf4d 100%);
    color: var(--deep-space-blue);
    border: 1px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.registration-actions .activity-apply-btn:hover {
    background: linear-gradient(135deg, #ffdf4d 0%, var(--starlight-gold) 100%);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.registration-actions .activity-contact-btn {
    background: #fff;
    color: var(--deep-space-blue);
    border: 1px solid rgba(62, 146, 204, 0.35);
}

.registration-actions .activity-contact-btn:hover {
    background: linear-gradient(135deg, #f8fcff 0%, #f0f7ff 100%);
    border-color: var(--light-blue);
}

/* 在线客服弹窗 */
.chat-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.chat-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.chat-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 36, 99, 0.4);
    backdrop-filter: blur(4px);
}

.chat-modal-panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 85vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(10, 36, 99, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--deep-space-blue) 0%, var(--light-blue) 100%);
    color: #fff;
}

.chat-modal-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.chat-modal-close {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-modal-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    max-height: 360px;
}

.chat-msg {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.chat-msg-user {
    flex-direction: row-reverse;
}

.chat-msg-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.chat-msg-service .chat-msg-avatar {
    background: linear-gradient(135deg, var(--light-blue) 0%, #2a7ab8 100%);
    color: #fff;
}

.chat-msg-user .chat-msg-avatar {
    background: linear-gradient(135deg, var(--starlight-gold) 0%, #e6b800 100%);
    color: var(--deep-space-blue);
}

.chat-msg-content {
    max-width: 75%;
}

.chat-msg-content p {
    margin: 0;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.6;
    border-radius: 12px;
}

.chat-msg-service .chat-msg-content p {
    background: #f0f6ff;
    color: #1e3a5f;
    border-bottom-left-radius: 4px;
}

.chat-msg-user .chat-msg-content p {
    background: linear-gradient(135deg, var(--starlight-gold) 0%, #ffdf4d 100%);
    color: var(--deep-space-blue);
    border-bottom-right-radius: 4px;
}

.chat-input-wrap {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e4edf8;
    background: #fafcff;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e4edf8;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    outline: none;
    border-color: var(--light-blue);
}

.chat-send-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--light-blue) 0%, #2a7ab8 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.chat-send-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.activity-intro {
    line-height: 1.8;
    color: var(--dark-gray);
}

.highlight-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.highlight-list li {
    position: relative;
    padding: 12px 12px 12px 40px;
    margin-bottom: 10px;
    border: 1px solid #e4edf8;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff 0%, #f3f8ff 100%);
    color: #2b3f6f;
    font-size: 14px;
    line-height: 1.6;
}

.highlight-list li::before {
    content: "★";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--starlight-gold);
    font-size: 16px;
}

.schedule-timeline {
    display: grid;
    gap: 12px;
}

.schedule-timeline .timeline-item {
    border-left: 3px solid var(--light-blue);
    padding: 12px 0 12px 16px;
    background: linear-gradient(135deg, #f8fbff 0%, #f3f8ff 100%);
    border-radius: 10px;
    border: 1px solid #e4edf8;
}

.schedule-timeline .timeline-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--deep-space-blue);
}

.schedule-timeline .timeline-desc {
    font-size: 13px;
    color: var(--dark-gray);
    margin-top: 4px;
}

.outcomes-lead {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--dark-gray);
    line-height: 1.7;
}

.outcomes-list {
    margin: 0 0 16px;
    padding-left: 24px;
}

.outcomes-list li {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--dark-gray);
    line-height: 1.6;
}

.outcomes-note {
    background: linear-gradient(135deg, #f8fbff 0%, #f3f8ff 100%);
    border: 1px solid #e4edf8;
    border-radius: 12px;
    padding: 16px;
}

.outcomes-samples {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e4edf8;
}

.outcome-sample-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e4edf8;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(10, 36, 99, 0.04);
}

.outcome-sample-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--deep-space-blue);
}

.outcome-sample-desc {
    font-size: 12px;
    color: #5b7fb8;
}

.outcome-sample-img-wrap {
    flex: 1;
    height: 260px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e4edf8;
    background: #f8fbff;
}

.outcome-sample-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.outcomes-note p {
    margin: 0;
    font-size: 14px;
    color: #2b3f6f;
    line-height: 1.7;
}

.detail-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #ebeff5;
    box-shadow: 0 6px 18px rgba(10, 36, 99, 0.06);
    padding: 22px;
    margin-bottom: 18px;
}

.detail-card h2 {
    color: var(--deep-space-blue);
    font-size: 20px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--starlight-gold);
}

.faq-item {
    border: 1px solid #e7edf6;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
}

.faq-question {
    width: 100%;
    text-align: left;
    border: none;
    background: #fff;
    color: var(--deep-space-blue);
    padding: 13px 40px 13px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #5f7394;
    font-size: 20px;
}

.faq-item.open .faq-question::after {
    content: "−";
}

.faq-answer {
    display: none;
    background: #f9fbfe;
    color: var(--dark-gray);
    padding: 0 14px 12px;
    font-size: 14px;
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    display: block;
}

.footer-compact {
    padding: 24px 0;
}

.footer-compact .copyright {
    margin: 0;
    font-size: 13px;
    color: #6b7a8f;
}

@media (max-width: 1024px) {
    .activity-hero-layout {
        grid-template-columns: 1fr;
    }

    .activity-detail-hero .hero-cover {
        max-width: 680px;
        width: 100%;
        margin: 0 auto;
    }

    .activity-detail-hero .hero-main h1,
    .activity-detail-hero .hero-main p,
    .activity-detail-hero .hero-chips {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .activity-detail-hero .hero-cover {
        height: 210px;
    }

    .registration-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .registration-info-grid {
        grid-template-columns: 1fr;
    }

    .activity-detail-hero .hero-cover {
        height: 188px;
    }

    .registration-actions {
        flex-direction: column;
    }

    .registration-actions .activity-apply-btn,
    .registration-actions .activity-contact-btn {
        width: 100%;
    }

    .outcomes-samples {
        grid-template-columns: 1fr;
    }
}
