/* 恋人关系牌阵样式 */

.love-hidden {
    display: none !important;
}

/* 抽牌指引 */
#spread-intro {
    text-align: center;
    margin: 10px auto;
    color: #e8c96a;
    font-size: 15px;
    line-height: 1.8;
    user-select: none;
}

.pos-tag {
    display: inline-block;
    padding: 3px 10px;
    margin: 0 3px;
    border: 1px solid #555;
    border-radius: 12px;
    font-size: 13px;
    color: #f7f7f7;
}

.pos-1 { border-color: #4aa8ff; color: #4aa8ff; }
.pos-2 { border-color: #ff6b4a; color: #ff6b4a; }
.pos-3 { border-color: #e8c96a; color: #e8c96a; }
.pos-4 { border-color: #7ac74f; color: #7ac74f; }

/* 四张牌槽位布局 */
.pulled-love {
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    min-height: 165px;
}

.card-slot {
    visibility: hidden;
    margin: 5px;
}

/* 综合解读区 */
#reading {
    max-width: 760px;
    margin: 30px auto 40px;
    padding: 20px;
    border: 1px solid #444;
    border-radius: 12px;
    background: #262626;
    color: #f7f7f7;
    text-align: center;
}

#reading-title {
    font-size: 22px;
    font-weight: bold;
    color: #e8c96a;
    margin-bottom: 16px;
}

.reading-card {
    text-align: left;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    background: #1f1f1f;
    padding: 14px 16px;
    margin-bottom: 14px;
    line-height: 1.7;
    font-size: 14px;
}

.rc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.rc-position {
    font-weight: bold;
    font-size: 16px;
    color: #f7f7f7;
}

.rc-title {
    font-size: 18px;
    font-weight: bold;
    color: #e8c96a;
}

/* 牌面图 + 文字左右布局 */
.rc-body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 8px;
}

.rc-img {
    width: 85px;
    height: 145px;
    object-fit: contain;
    border-radius: 5px;
    border: 2px solid #444;
    cursor: pointer;
    flex-shrink: 0;
    background: #111;
}

.rc-img:hover {
    border-color: #e8c96a;
    transform: translateY(-3px);
    transition: all 0.2s;
}

.rc-text {
    flex: 1;
    min-width: 0;
}

.rc-keywords {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 6px;
}

.rc-position-text,
.rc-meaning {
    margin-top: 6px;
}

.rc-meaning b,
.rc-position-text b {
    color: #e8c96a;
}

/* 元素能量总结：占比条 */
.el-summary-title {
    font-weight: bold;
    font-size: 16px;
    color: #e8c96a;
    margin-bottom: 10px;
}

.el-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.el-name {
    width: 70px;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.el-bar-bg {
    flex: 1;
    height: 14px;
    background: #111;
    border-radius: 7px;
    overflow: hidden;
}

.el-bar-fill {
    display: block;
    height: 100%;
    border-radius: 7px;
}

.el-pct {
    width: 90px;
    text-align: right;
    font-size: 13px;
    color: #ccc;
    flex-shrink: 0;
}

.el-summary-text {
    margin-top: 12px;
    line-height: 1.8;
    font-size: 14px;
    border-top: 1px solid #3a3a3a;
    padding-top: 10px;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .rc-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .rc-text {
        text-align: left;
    }
    .el-pct {
        width: auto;
    }
}

#reading-element-balance {
    text-align: left;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    background: #1f1f1f;
    padding: 14px 16px;
    margin-bottom: 14px;
    line-height: 1.8;
    font-size: 14px;
}

#reading-analysis {
    text-align: left;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    background: #1f1f1f;
    padding: 14px 16px;
    margin-bottom: 14px;
    line-height: 1.8;
    font-size: 14px;
}

#reading-guidance {
    text-align: left;
    border: 1px solid #e8c96a55;
    border-radius: 10px;
    background: #2a2417;
    padding: 16px;
    line-height: 1.8;
    font-size: 15px;
    color: #f7f7f7;
}

#reading-guidance b {
    color: #e8c96a;
}

.guidance-item {
    margin: 8px 0;
    padding-left: 4px;
}

.guidance-pos {
    font-weight: bold;
    color: #e8c96a;
}

.guidance-divider {
    border-top: 1px solid #e8c96a44;
    margin: 12px 0;
}

.guidance-advice {
    margin-top: 6px;
    line-height: 1.9;
}

.back-home {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 24px;
    border: 2px solid #f7f7f7;
    color: #f7f7f7;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
}

.back-home:hover {
    background-color: #f7f7f7;
    color: #1f1f1f;
}

/* 付费解锁锁定层 */
.reading-lock {
    border: 1px dashed #e8c96a;
    border-radius: 12px;
    background: #2a2417;
    padding: 30px 20px;
    margin-bottom: 16px;
    text-align: center;
}

.lock-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.lock-message {
    font-size: 19px;
    font-weight: bold;
    color: #f7f7f7;
    margin-bottom: 8px;
}

.lock-desc {
    color: #bbb;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 18px;
}

#unlock-btn {
    padding: 12px 30px;
    background: #e8c96a;
    border: none;
    border-radius: 8px;
    color: #1f1f1f;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

#unlock-btn:hover {
    background: #ffdf7e;
    transform: translateY(-2px);
}

/* 支付弹窗 */
#pay-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000cc;
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pay-box {
    background: #262626;
    border: 1px solid #e8c96a;
    border-radius: 14px;
    padding: 24px 28px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    color: #f7f7f7;
}

.pay-box h3 {
    margin: 0 0 14px;
    font-size: 18px;
    color: #e8c96a;
}

.pay-qr {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    margin: 0 auto 14px;
    width: 240px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pay-qr img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.pay-qr-placeholder {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-line;
}

.pay-box p {
    color: #bbb;
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 14px;
}

#pay-confirm {
    display: block;
    width: 100%;
    padding: 11px 0;
    margin-bottom: 8px;
    background: #e8c96a;
    border: none;
    border-radius: 8px;
    color: #1f1f1f;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

#pay-confirm:hover {
    background: #ffdf7e;
}

#pay-cancel {
    display: block;
    width: 100%;
    padding: 9px 0;
    background: transparent;
    border: 1px solid #555;
    border-radius: 8px;
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
}

#pay-cancel:hover {
    border-color: #f7f7f7;
    color: #f7f7f7;
}

/* 收款码：允许长按识别（微信长按弹出"识别图中二维码"） */
#pay-qr-img {
    -webkit-touch-callout: default;
    -webkit-user-select: all;
    user-select: all;
    touch-action: manipulation;
    pointer-events: auto;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .pulled-love {
        gap: 4px;
    }
    #reading {
        padding: 12px;
    }
    .reading-card {
        padding: 12px;
    }
}
