﻿/* ============================================================
   MyShopSite 支付扫码与结果页样式
   文件：Content/site.pay.css
   职责：
     1. 扫码支付页（/Pay/QrScan）专用样式
     2. 支付结果页（/Pay/Result）专用样式
   说明：
     所有支付页面的样式统一在此文件维护，视图不允许内联 <style>。
   ============================================================ */

/* ==================== 1. 扫码支付页（QrScan） ==================== */

/* 外层容器 */
.qr-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    text-align: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ★ 头部：左 Logo + 右两行（上下居中对齐，整体左右居中） */
.qr-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 14px;
}

/* ★ 支付方式图标（左）：方形 SVG，无外圆无边框，58px */
.qr-channel-logo {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .qr-channel-logo svg {
        width: 100%;
        height: 100%;
        display: block;
    }

/* ★ 支付方式配色（供 SVG currentColor 使用） */
.qr-channel-alipay .qr-channel-logo {
    color: #1677ff;
}

.qr-channel-wechat .qr-channel-logo {
    color: #07c160;
}

/* ★ 右侧信息区（两行文字，左对齐） */
.qr-header-info {
    text-align: left;
}

/* 标题（灰字 20px） */
.qr-title {
    font-size: 20px;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

/* 支付金额（红字 28px 粗体） */
.qr-amount {
    font-size: 28px;
    color: #d9534f;
    font-weight: bold;
    margin: 0;
    line-height: 1.1;
}

/* ★ 赠金提示（独立一行，居中） */
.qr-gift {
    color: #5cb85c;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

/* 二维码外层框 */
.qr-code-box {
    display: inline-block;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fafafa;
}

/* 状态文字 */
.status-text {
    margin: 15px 0;
    color: #666;
}

/* 超时提示面板 */
.timeout-panel {
    display: none;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
}

/* 按钮组容器（扫码页专用，避免与 Bootstrap 冲突） */
.qr-btn-group {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

    .qr-btn-group .btn {
        min-width: 120px;
    }

/* 底部提示文字 */
.tip-text {
    font-size: 13px;
    color: #999;
    margin-top: 20px;
}

/* ==================== 2. 支付结果页（Result） ==================== */

/* 外层容器 */
.result-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    text-align: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 结果图标 */
.result-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

/* 结果状态文字 */
.result-status {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

/* 详情信息 */
.result-detail {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin: 15px 0;
}

/* 支付金额 */
.result-amount {
    font-size: 30px;
    color: #d9534f;
    font-weight: bold;
    margin: 10px 0;
}

/* 赠金提示 */
.result-gift {
    color: #5cb85c;
    font-size: 16px;
    margin-bottom: 20px;
}

/* 按钮组容器（结果页专用，避免与 Bootstrap 冲突） */
.result-btn-group {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* 等待面板（默认隐藏，需要时通过 JS 显示） */
.waiting-panel {
    display: none;
}
