/* ============================================================
   04-schedule.css —— 排班结果展示
   ============================================================ */

.schedule-grid { display: flex; flex-direction: column; gap: 20px; }

.room-row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.room-row .room-box { flex: 0 0 calc(33.333% - 14px); max-width: calc(33.333% - 14px); min-width: 220px; }

.room-row-bottom { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.room-row-bottom .room-box { flex: 0 0 calc(33.333% - 14px); max-width: calc(33.333% - 14px); min-width: 220px; }

.room-box {
    background: #fafafa;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    position: relative;
}
.room-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}
.room-box-header .product-tag {
    font-size: 0.7rem;
    background: #e0f0ea;
    padding: 2px 10px;
    border-radius: 30px;
    font-weight: normal;
    color: #2a5a4a;
}

.recommend-area {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-bottom: 16px;
    justify-content: space-between;
}
.recommend-item {
    flex: 0 0 calc(33.333% - 10px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 8px;
    background: #fcfcfc;
    min-height: 200px;
    justify-content: flex-start;
    gap: 4px;
}
.recommend-item .agent-img {
    width: 100%;
    aspect-ratio: 456 / 564;
    object-fit: cover;
    background: #eee;
    border-radius: 4px;
    max-height: 120px;
    flex-shrink: 0;
}
.recommend-item .agent-name {
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 2px;
    min-height: 1.4em;
    line-height: 1.4;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.recommend-item .trait-summary {
    font-size: 0.7rem;
    color: #555;
    text-align: center;
    min-height: 2.8em;
    line-height: 1.4;
    width: 100%;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.recommend-item .empty-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #bbb;
    font-size: 0.8rem;
    min-height: 180px;
}

.reserve-area {
    border-top: 1px solid #ccc;
    padding-top: 12px;
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.reserve-item {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    border-radius: 30px;
    padding: 4px 12px 4px 4px;
    border: 1px solid #ddd;
    gap: 6px;
}
.reserve-item .mini-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #eaeaea;
    border: 1px solid #ccc;
}
.reserve-item .reserve-trait { font-size: 0.7rem; color: #333; }
.round-label {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 4px;
    text-align: center;
    font-weight: 600;
}

.global-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 20px;
    color: #856404;
    font-weight: 500;
    text-align: center;
}
/* ★ 轮次标签旁的推荐时段徽章 */
.round-timing-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: ui-monospace, monospace;
    color: #2a5a4a;
    background: #e0f0ea;
    border: 1px solid #93c8b1;
    border-radius: 10px;
    line-height: 1.5;
    vertical-align: middle;
}
.round-label.round2 .round-timing-badge {
    color: #8a5e00;
    background: #fff3cd;
    border-color: #f0d98a;
}
.room-mode-select:focus {
    outline: none;
    border-color: #3f7e6b;
}
/* ============================================================
   ★ 轮次一 / 轮次二 显示框分色（与「时间段推荐」时间轴一致）
   时间轴配色：
     一轮 = 绿  #93c8b1 / 文字 #2a5a4a / 背景 #e0f0ea
     二轮 = 黄  #f0d98a / 文字 #8a5e00 / 背景 #fff3cd
   ============================================================ */

/* ---------- 轮次一容器：左侧绿条 + 浅绿背景 ---------- */
.room-box > div:nth-of-type(2):has(> .round-label) {
    border-left: 4px solid #93c8b1;
    padding-left: 10px;
}
.room-box > div:nth-of-type(2):has(> .round-label) > .round-label {
    color: #2a5a4a;
}
.room-box > div:nth-of-type(2):has(> .round-label) > .recommend-area {
    background: linear-gradient(180deg, #f4fbf8, #eaf6f0);
    border: 1px solid #cde9dd;
    border-radius: 10px;
    padding: 10px;
}

/* ---------- 轮次二容器：左侧黄条 + 浅黄背景 ---------- */
.room-box > div:nth-of-type(3):has(> .round-label) {
    border-left: 4px solid #f0d98a;
    padding-left: 10px;
}
.room-box > div:nth-of-type(3):has(> .round-label) > .round-label {
    color: #8a5e00;
}
.room-box > div:nth-of-type(3):has(> .round-label) > .recommend-area {
    background: linear-gradient(180deg, #fffdf2, #fff7dd);
    border: 1px solid #f4e3b3;
    border-radius: 10px;
    padding: 10px;
}

/* ---------- 二轮内的时段徽章也换成黄色 ---------- */
.room-box > div:nth-of-type(3):has(> .round-label) .round-timing-badge {
    color: #8a5e00;
    background: #fff3cd;
    border-color: #f0d98a;
}

/* ---------- 单轮舱室（无二轮）：仍走绿色一套 ---------- */
.room-box > div:nth-of-type(2):has(> .round-label) .round-timing-badge {
    color: #2a5a4a;
    background: #e0f0ea;
    border-color: #93c8b1;
}