/* 好友匹配页 —— 上下滑动刷卡 */

.match-bar {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 14px auto 0;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(38, 30, 58, 0.9);
    border: 1px solid rgba(154, 184, 255, 0.4);
    border-radius: 14px;
    color: #b9adcf;
    font-size: 14px;
}

.match-bar b {
    color: #9ab8ff;
    font-size: 18px;
}

/* 刷卡区域 */
.match-deck {
    position: relative;
    z-index: 1;
    max-width: 620px;
    height: 52vh;
    min-height: 340px;
    max-height: 460px;
    margin: 16px auto 0;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#match-card-wrap {
    width: 100%;
    max-width: 460px;
    height: 100%;
    position: relative;
    display: flex;
    align-items: stretch;
}

#match-card-wrap .mw-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    text-align: left;
    transition: transform 0.35s ease, opacity 0.3s ease;
    will-change: transform, opacity;
}

#match-card-wrap .mw-card-intro {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#match-card-wrap .mw-card-foot {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0, 0, 0, 0.15);
}

.match-foot {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: 16px;
}

.match-btn {
    background: linear-gradient(135deg, #a9c4ff, #7f9ff0);
    border: none;
    border-radius: 14px;
    color: #101a30;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 13px 44px;
    cursor: pointer;
    box-shadow: 0 0 24px rgba(154, 184, 255, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.match-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(154, 184, 255, 0.6);
}

.match-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.match-msg {
    min-height: 22px;
    color: #9ab8ff;
    font-size: 14px;
    margin-bottom: 10px;
}

.match-msg.done {
    color: #e8c96a;
}

.match-msg.warn {
    color: #e07a5f;
}

.match-hint {
    color: #6f6492;
    font-size: 12px;
    margin-top: 10px;
}
