/* ===== 历练页面 ===== */
/* 设计理念：古卷丹青 —— 宣纸为底，泥金为饰 */

#page-battle-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: linear-gradient(180deg, var(--ink), var(--ink-surface));
}

/* 头部 */
.bf-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: color-mix(in srgb, var(--ink) 50%, transparent);
    border-bottom: 1px solid var(--ink-border);
    flex-shrink: 0;
    flex-wrap: wrap;
}
.bf-title {
    color: var(--gold-foil);
    font-size: 16px;
    font-weight: 600;
    margin-right: 10px;
}
.bf-subtitle {
    color: var(--paper-muted);
    font-size: 12px;
    flex-basis: 100%;
    margin-top: 2px;
    padding-left: 60px;
}

/* 内容滚动区 */
#bf-content {
    padding: 10px 8px 10px 12px;
}
#page-battle-field .pill-layout {
    min-height: 0;
    flex: 1;
}

/* 境界分组标题 */
.bf-group-title {
    color: var(--gold-foil);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 4px 8px;
    border-bottom: 1px solid var(--gold-foil-dim);
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bf-group-title .bf-group-status {
    font-size: 11px;
    color: var(--paper-muted);
    font-weight: 400;
}

/* 单个野怪 */
.bf-monster-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    margin: 4px 0;
    border-radius: 8px;
    background: color-mix(in srgb, var(--gold-foil) 3%, transparent);
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.15s;
}
.bf-monster-item:active {
    background: var(--ink-border);
    border-color: var(--gold-foil-dim);
}
.bf-monster-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}
.bf-monster-item.locked .bf-monster-name { color: var(--paper-muted); }
.bf-monster-item.is-boss {
    background: color-mix(in srgb, var(--vermillion) 6%, transparent);
    border-color: var(--vermillion-glow);
}
.bf-monster-item.is-boss .bf-monster-name::after {
    content: ' boss';
    color: var(--vermillion);
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
}
.bf-monster-info {
    flex: 1;
    min-width: 0;
}
.bf-monster-name {
    font-size: 14px;
    color: var(--gold-foil-light);
    font-weight: 500;
}
.bf-monster-lv {
    font-size: 11px;
    color: var(--paper-muted);
    margin-top: 2px;
}
.bf-monster-lv span { margin-right: 8px; }
.bf-monster-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.bf-monster-btn {
    padding: 5px 12px;
    border: none;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: var(--gold-foil);
    color: var(--ink);
}
.bf-monster-btn.auto-btn {
    background: var(--jade-glow);
    color: var(--jade);
    border: 1px solid var(--jade-glow);
}
.bf-monster-btn.elite-btn {
    background: var(--vermillion-glow);
    color: var(--vermillion);
    border: 1px solid var(--vermillion-glow);
}
.bf-monster-btn:active { transform: scale(0.95); }

/* ===== 历练地点列表项 ===== */
.bf-location-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 12px;
    margin: 5px 0;
    border-radius: 8px;
    background: color-mix(in srgb, var(--gold-foil) 3%, transparent);
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.15s;
}
.bf-location-item:active {
    background: var(--ink-border);
    border-color: var(--gold-foil-dim);
}
.bf-location-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}
.bf-location-item.is-boss {
    background: color-mix(in srgb, var(--vermillion) 6%, transparent);
    border-color: var(--vermillion-glow);
}
.bf-location-item.is-elite {
    background: linear-gradient(135deg, color-mix(in srgb, var(--gold-foil) 8%, transparent), color-mix(in srgb, var(--gold-foil) 4%, transparent));
    border-color: color-mix(in srgb, var(--gold-foil) 30%, transparent);
}
.bf-location-item.is-elite .bf-location-name {
    color: var(--gold-foil-light);
}
.bf-location-item.is-elite.cleared {
    opacity: 0.7;
}
.bf-location-item.is-elite-locked {
    opacity: 0.4;
    cursor: not-allowed;
}
.bf-location-info {
    flex: 1;
    min-width: 0;
}
.bf-location-name {
    font-size: 14px;
    color: var(--gold-foil-light);
    font-weight: 600;
}
.bf-boss-tag {
    display: inline-block;
    color: var(--vermillion);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 5px;
    border: 1px solid var(--vermillion-glow);
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}
.bf-location-status {
    flex-shrink: 0;
    font-size: 17px;
    color: var(--jade);
    margin-left: 8px;
}
.bf-location-item.locked .bf-location-status { color: var(--paper-muted); }

/* 关卡下妖兽名字（全部显示，与材料同色、无符号无背景） */
.bf-loc-mon-name {
    display: inline-block;
    font-size: 12px;
    color: var(--gold-foil-light);
    cursor: pointer;
    margin: 2px 8px 0 0;
    white-space: nowrap;
    vertical-align: middle;
}
.bf-loc-mon-name:hover {
    color: var(--gold-foil);
}
.bf-loc-monsters {
    margin-top: 1px;
}
/* 详情弹窗妖兽名字（与材料同色、无符号无背景；当前挑战对象加粗区分） */
.bf-detail-mon {
    font-size: 13px;
    color: var(--gold-foil-light);
    cursor: pointer;
    margin-right: 4px;
}
.bf-detail-mon:hover {
    color: var(--gold-foil);
}
.bf-detail-mon.current {
    color: var(--gold-foil-light);
    font-weight: 700;
    cursor: default;
}

/* 状态标记 */
.bf-location-mark {
    flex-shrink: 0;
    font-size: 16px;
    margin-left: 8px;
    color: var(--jade);
}
.bf-location-item.locked .bf-location-mark {
    color: var(--paper-muted);
    opacity: 0.6;
}

/* ===== 历练详情弹窗 ===== */
.bf-detail-title {
    text-align: center;
    color: var(--gold-foil);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}
.bf-detail-realm {
    text-align: center;
    color: var(--paper-muted);
    font-size: 13px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gold-foil-dim);
}
.bf-detail-section {
    line-height: 1.9;
}
.bf-detail-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4px;
}
.bf-detail-label {
    flex-shrink: 0;
    width: 42px;
    color: var(--paper-muted);
    font-size: 13px;
}
.bf-detail-val {
    flex: 1;
    color: var(--gold-foil-light);
    font-size: 13px;
}

/* 批量战斗说明 */
.bf-detail-batch-info {
    margin-top: 10px;
    padding: 8px 10px;
    background: var(--gold-foil-dim);
    border: 1px solid var(--gold-foil-dim);
    border-radius: 6px;
    font-size: 12px;
    color: var(--paper-muted);
    line-height: 1.8;
}

/* 底部状态栏 */
.bf-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: color-mix(in srgb, var(--ink) 55%, transparent);
    border-top: 1px solid var(--ink-border);
    flex-shrink: 0;
}
.bf-status {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--paper-muted);
}
.bf-status b { color: var(--paper-secondary); font-weight: 600; }

.btn-bf-auto {
    padding: 7px 18px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--jade), var(--jade));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s;
}
.btn-bf-auto.active {
    background: linear-gradient(135deg, var(--vermillion), var(--vermillion));
}
.btn-bf-auto:active { transform: scale(0.95); }
.btn-bf-auto:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}