/* ===== 方案快照（版本历史） ===== */
.snap-body {
    padding: 16px 20px;
}

/* 方案选择条 */
.plan-select-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #ebeef5;
}
.plan-select-bar label {
    color: #606266;
    font-size: 13px;
    white-space: nowrap;
}
.plan-select-bar select {
    height: 32px;
    min-width: 220px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 13px;
    color: #333;
    outline: none;
}
.plan-select-bar select:focus {
    border-color: #3a7bd5;
}
.plan-select-bar .plan-meta {
    color: #909399;
    font-size: 13px;
}

.snap-btn {
    height: 32px;
    padding: 0 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.snap-btn.primary { background: #3a7bd5; color: #fff; }
.snap-btn.primary:hover { opacity: 0.88; }
.snap-btn.danger { background: #f56c6c; color: #fff; }
.snap-btn.danger:hover { opacity: 0.88; }
.snap-btn.ghost { background: #fff; color: #606266; border: 1px solid #dcdfe6; }
.snap-btn.ghost:hover { color: #3a7bd5; border-color: #3a7bd5; }
.snap-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 对比工具条 */
.compare-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #606266;
    font-size: 13px;
}
.compare-bar b { color: #3a7bd5; }

/* 快照列表 */
.snap-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}
.snap-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #ebeef5;
    border-radius: 4px;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.snap-card:hover {
    border-color: #c6d8f0;
    box-shadow: 0 2px 8px rgba(59, 125, 213, 0.1);
}
.snap-card.latest {
    border-color: #3a7bd5;
    background: #f0f7ff;
}
.snap-check {
    flex-shrink: 0;
}
.snap-no {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ecf5ff;
    color: #3a7bd5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}
.snap-info {
    flex: 1;
    min-width: 0;
}
.snap-info .snap-title {
    font-size: 14px;
    font-weight: 600;
    color: #303133;
}
.snap-info .snap-meta {
    margin-top: 4px;
    color: #909399;
    font-size: 12px;
}
.snap-info .snap-meta b {
    color: #606266;
    margin: 0 2px;
}
.snap-remark {
    color: #606266;
    font-size: 12px;
    margin-top: 4px;
}
.latest-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 3px;
    background: #3a7bd5;
    color: #fff;
    font-size: 11px;
    font-weight: 400;
}
.snap-ops {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
}

/* 志愿树 */
.wish-tree {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wish-tree .wt-school {
    border: 1px solid #ebeef5;
    border-radius: 4px;
    overflow: hidden;
}
.wish-tree .wt-school-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f5f7fa;
    font-weight: 600;
    color: #303133;
    font-size: 13px;
}
.wish-tree .wt-school-head .wt-order {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    background: #3a7bd5;
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 400;
}
.wish-tree .wt-majors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
}
.wish-tree .wt-major {
    padding: 3px 10px;
    background: #ecf5ff;
    color: #3a7bd5;
    border-radius: 3px;
    font-size: 12px;
}
.wish-tree .wt-empty {
    padding: 10px 14px;
    color: #c0c4cc;
    font-size: 12px;
}

/* 对比视图：增删高亮 */
.diff-add { background: #f0f9eb !important; color: #67c23a !important; border-color: #c2e7b0 !important; }
.diff-del { background: #fef0f0 !important; color: #f56c6c !important; border-color: #fbc4c4 !important; text-decoration: line-through; }
.diff-legend {
    display: flex;
    gap: 16px;
    padding: 8px 0;
    font-size: 12px;
    color: #606266;
}
.diff-legend .lg {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.diff-legend .swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

/* 弹窗 */
.snap-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}
.snap-modal {
    background: #fff;
    border-radius: 6px;
    width: 760px;
    max-width: 92%;
    max-height: 84vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.snap-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #ebeef5;
}
.snap-modal-title {
    font-size: 15px;
    font-weight: 600;
    color: #303133;
}
.snap-modal-close {
    cursor: pointer;
    color: #909399;
    font-size: 18px;
    line-height: 1;
}
.snap-modal-close:hover { color: #f56c6c; }
.snap-modal-body {
    padding: 16px 18px;
    overflow: auto;
}
.snap-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 18px;
    border-top: 1px solid #ebeef5;
}

/* 状态 / 提示 */
.state-box {
    padding: 60px 20px;
    text-align: center;
    color: #909399;
    font-size: 14px;
}
.state-box .state-icon {
    font-size: 44px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.6;
}
.state-box.warn { color: #e6a23c; }

.snap-toast {
    position: fixed;
    top: 76px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
    background: rgba(48, 49, 51, 0.92);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 80%;
    word-break: break-all;
}
.snap-toast.error { background: #f56c6c; }
.snap-toast.success { background: #67c23a; }
