/* 报名日历 / 截止雷达 视觉样式 | 2026-11-05 */

/* ---------- 顶部面包屑与导航条 ---------- */
.detail-banner {
    background: #ffffff;
    border-bottom: 1px solid var(--c-border);
    padding: 12px 0;
}

.detail-banner .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.detail-banner .breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color .15s ease;
}

.detail-banner .breadcrumb a:hover {
    color: var(--c-primary);
}

.detail-banner .breadcrumb .current {
    color: #0f172a;
    font-weight: 600;
}

/* ---------- 日历主容器布局 ---------- */
.calendar-main {
    padding: 24px 0 56px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---------- 英雄卡片 Header ---------- */
.calendar-hero {
    background: #ffffff;
    border: 1px solid #dbe3ed;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.calendar-hero-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.calendar-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #1e40af;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
}

.calendar-badge svg {
    color: #2563eb;
}

.calendar-hero h1 {
    margin: 10px 0 6px;
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    letter-spacing: -.4px;
}

.calendar-range {
    margin: 0;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
}

.calendar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.calendar-actions .btn {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    border-radius: 8px;
    line-height: 34px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: all .2s ease;
}

.calendar-actions .btn-primary {
    background: linear-gradient(135deg, #2b6ef1 0%, #1e54c7 100%);
    box-shadow: 0 2px 8px rgba(43, 110, 241, 0.25);
    border: none;
    color: #ffffff;
}

.calendar-actions .btn-primary:hover {
    background: linear-gradient(135deg, #3b7af5 0%, #235cd6 100%);
    box-shadow: 0 4px 12px rgba(43, 110, 241, 0.35);
}

.calendar-actions .btn-secondary {
    background: #ffffff;
    border: 1px solid #c9d9fb;
    color: var(--c-primary-dark);
}

.calendar-actions .btn-secondary:hover {
    background: #f0f6ff;
    border-color: #93c5fd;
    color: #1e40af;
}

.calendar-actions .btn-mine {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.calendar-actions .btn-mine:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e54c7;
}

.calendar-actions .btn-mine.is-active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    border-color: #047857;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

/* 城市快速切换条 */
.calendar-city-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.calendar-city-bar .city-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    flex-shrink: 0;
}

.calendar-cities {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.calendar-cities .chip {
    font-size: 12px;
    font-weight: 500;
    padding: 3.5px 11px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    text-decoration: none;
    transition: all .15s ease;
}

.calendar-cities .chip:hover {
    background: #eef4ff;
    border-color: #bfdbfe;
    color: #1e54c7;
}

.calendar-cities .chip.is-active {
    background: #2b6ef1;
    border-color: #2b6ef1;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(43, 110, 241, 0.25);
}

/* ---------- 4 维核心雷达看板 KPI Grid ---------- */
.calendar-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.calendar-kpi-item {
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.calendar-kpi-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.calendar-kpi-item.is-urgent {
    background: linear-gradient(175deg, #fffbf9 0%, #ffffff 100%);
    border-color: #fecaca;
}

.calendar-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.calendar-kpi-icon.is-red {
    background: #fef2f2;
    color: #dc2626;
}

.calendar-kpi-icon.is-amber {
    background: #fffbeb;
    color: #d97706;
}

.calendar-kpi-icon.is-blue {
    background: #eff6ff;
    color: #2563eb;
}

.calendar-kpi-icon.is-green {
    background: #ecfdf5;
    color: #059669;
}

.kpi-info {
    min-width: 0;
    flex: 1;
}

.kpi-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    color: #0f172a;
    font-feature-settings: "tnum";
}

.calendar-kpi-item.is-urgent .kpi-value {
    color: #dc2626;
}

.kpi-value small {
    font-size: 12px;
    font-weight: 500;
    margin-left: 3px;
    color: #64748b;
}

.kpi-label {
    margin-top: 3px;
    font-size: 12.5px;
    color: #64748b;
}

/* 专属条件匹配通知条 */
.calendar-mine-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    color: #065f46;
    font-size: 13px;
}

.calendar-mine-banner .btn-link {
    background: none;
    border: none;
    color: #047857;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

/* ---------- 快捷分类筛选栏 Filter Bar ---------- */
.calendar-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 12px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.02);
}

.calendar-filter-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
}

.calendar-tab-btn {
    border: none;
    outline: none;
    background: transparent;
    padding: 5px 13px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all .15s ease;
}

.calendar-tab-btn:hover {
    color: #0f172a;
}

.calendar-tab-btn.is-active {
    background: #ffffff;
    color: #1e40af;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.calendar-tab-btn.is-active.is-end {
    color: #dc2626;
}

.calendar-tab-btn.is-active.is-start {
    color: #2563eb;
}

.calendar-filter-tip {
    font-size: 12.5px;
    color: #94a3b8;
}

/* ---------- 日程时间轴 Timeline Cards ---------- */
.calendar-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calendar-day-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.calendar-day-card.is-today {
    border-color: #fca5a5;
    box-shadow: 0 4px 18px rgba(220, 38, 38, 0.08);
}

.calendar-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f6;
}

.calendar-day-card.is-today .calendar-day-head {
    background: linear-gradient(90deg, #fff1f2 0%, #fff7ed 100%);
    border-bottom-color: #fecdd3;
}

.calendar-day-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.calendar-day-date {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.calendar-day-tag {
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1.3;
}

.calendar-day-tag.is-today {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.calendar-day-tag.is-tomorrow {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.calendar-day-tag.is-urgent {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
}

.calendar-day-tag.is-future {
    background: #eef2f6;
    color: #475569;
}

.calendar-day-tag.is-past {
    background: #f1f5f9;
    color: #94a3b8;
}

.calendar-day-stat {
    font-size: 12.5px;
    color: #64748b;
}

/* 节点事件列表 */
.calendar-event-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.calendar-event-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background .18s ease;
}

.calendar-event-item:last-child {
    border-bottom: none;
}

.calendar-event-item:hover {
    background: #fafcff;
}

.calendar-event-item.is-end {
    border-left: 3.5px solid #ef4444;
}

.calendar-event-item.is-start {
    border-left: 3.5px solid #2563eb;
}

.event-kind-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.event-kind-badge.is-end {
    background: #fee2e2;
    color: #dc2626;
}

.event-kind-badge.is-start {
    background: #eff6ff;
    color: #2563eb;
}

.calendar-event-body {
    flex: 1;
    min-width: 0;
}

.calendar-event-title {
    display: block;
    font-size: 15.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.5;
    text-decoration: none;
    transition: color .15s ease;
}

.calendar-event-title:hover {
    color: #2563eb;
}

.calendar-event-meta {
    display: flex;
    align-items: center;
    gap: 8px 12px;
    margin-top: 6px;
    flex-wrap: wrap;
    font-size: 12.5px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
}

.meta-pill.is-pos {
    background: #f1f5f9;
    padding: 1.5px 7px;
    border-radius: 4px;
    color: #334155;
    font-weight: 500;
}

.meta-pill.is-head {
    background: #faf5ff;
    border: 1px solid #f3e8ff;
    padding: 1.5px 7px;
    border-radius: 4px;
    color: #7e22ce;
    font-weight: 500;
}

.calendar-event-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.calendar-event-actions .btn-sm {
    height: 30px;
    line-height: 28px;
    padding: 0 12px;
    font-size: 12.5px;
    border-radius: 6px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
}

.calendar-event-actions .btn-primary {
    background: linear-gradient(135deg, #2b6ef1 0%, #1e54c7 100%);
    border: none;
    color: #ffffff;
}

.calendar-event-actions .btn-primary:hover {
    background: linear-gradient(135deg, #3b7af5 0%, #235cd6 100%);
    box-shadow: 0 3px 8px rgba(43, 110, 241, 0.3);
}

.calendar-event-actions .btn-secondary {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.calendar-event-actions .btn-secondary:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
}

/* 空状态卡片 */
.calendar-empty {
    padding: 48px 24px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02);
}

.calendar-empty-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.calendar-empty h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.calendar-empty p {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 16px;
}

/* 官方备考说明与提示 */
.calendar-tips-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 22px;
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
}

.calendar-tips-card strong {
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.calendar-tips-card p {
    margin: 3px 0 0;
}

/* 骨架加载中 */
.calendar-loading-card {
    padding: 50px 24px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* ---------- 响应式断点适配 ---------- */
@media (max-width: 991px) {
    .calendar-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .calendar-event-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 640px) {
    .calendar-hero {
        padding: 18px 16px;
    }

    .calendar-hero h1 {
        font-size: 21px;
    }

    .calendar-kpi-grid {
        grid-template-columns: 1fr;
    }

    .calendar-event-actions {
        flex-direction: column;
        width: 100%;
    }

    .calendar-event-actions .btn-sm {
        width: 100%;
        justify-content: center;
    }

    .calendar-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .calendar-filter-tabs {
        width: 100%;
        justify-content: space-between;
    }

    .calendar-tab-btn {
        flex: 1;
        text-align: center;
        padding: 6px 0;
    }
}
