/* _content/TokenPay/Views/Shared/_Layout.cshtml.rz.scp.css */

/* 重置浏览器默认外边距和高度 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* 整体背景色与居中布局 */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f0f2f5;
}

/* 页面容器的居中包装器 */
.pay-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 页面容器样式 */
.pay-container {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    max-width: 500px; /* 调整容器最大宽度 */
    width: 100%;
    box-sizing: border-box; /* 包含内边距和边框在内 */
}

/* Logo 样式 */
.logo {
    width: 40px; /* 确保 1:1 尺寸 */
    height: 40px; /* 确保 1:1 尺寸 */
    object-fit: cover; /* 保持图像比例 */
}

/* 页面标题样式 */
.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    line-height: 40px; /* 与 Logo 高度一致 */
    margin: 0; /* 去除默认外边距 */
}

/* 支付金额样式 */
.amount-color {
    color: #19a27a !important;
    font-weight: bold; /* 加粗 */
}

/* 收款地址输入框组 */
.address-group {
    display: flex;
    width: 100%;
    flex-wrap: nowrap; /* 防止换行 */
}

.address-group input.address-input {
    border-radius: 0.25rem 0 0 0.25rem;
    font-size: 1rem;
    padding: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto; /* 允许输入框扩展 */
    min-width: 0; /* 允许输入框缩小 */
}

.address-group .copy-btn {
    border-radius: 0 0.25rem 0.25rem 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    flex: 0 0 auto; /* 固定按钮大小 */
}

/* 边框框样式 */
.bordered-box {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    background-color: #fafafa;
}

/* 区块链和币种信息 */
.label-title {
    color: #000;
    font-weight: bold;
}

.label-content {
    /* 保持原有的 text-danger 类定义 */
}

/* 剩余时间、二维码、订单编号和过期时间的灰色框 */
.gray-box {
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 20px;
    background-color: #f9f9f9;
}

/* 剩余时间样式 */
.time {
    font-family: Consolas, Menlo, Courier, monospace;
    font-size: 1.2rem;
}

/* 二维码图片样式 */
.qr-code {
    width: 200px;
    height: 200px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    object-fit: contain; /* 保持图像比例 */
}

/* 客服图标样式 */
.customer-service {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: #000; /* 改为黑色 */
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s, transform 0.3s;
    z-index: 1000;
}

.customer-service:hover {
    background-color: #1b6ec2; /* 主题蓝色 */
    transform: scale(1.1);
}

.customer-service .bi {
    font-size: 1.75rem;
}

/* 响应式调整 */
@media (max-width: 576px) {
    /* 使容器铺满整个页面 */
    .pay-container {
        padding: 20px;
        max-width: 100%; /* 取消最大宽度限制 */
        border-radius: 0; /* 可选：取消圆角以适应全屏 */
        box-shadow: none; /* 可选：移除阴影以更好地适应全屏 */
    }

    /* 调整Logo和标题 */
    .logo {
        width: 40px;
        height: 40px;
    }

    .page-title {
        font-size: 2rem;
        line-height: 40px; /* 确保与 Logo 高度一致 */
        margin-left: 10px; /* 调整间距以适应垂直布局 */
    }

    /* 收款地址输入框组垂直排列 */
    .address-group {
        flex-direction: column;
        align-items: stretch;
    }

    .address-group input.address-input,
    .address-group .copy-btn {
        width: 100%;
        border-radius: 0.25rem;
        margin-bottom: 10px;
    }

    .address-group .copy-btn {
        flex: none; /* 不保持宽度 */
    }

    /* 二维码尺寸调整 */
    .qr-code {
        width: 150px;
        height: 150px;
    }

    /* 客服图标尺寸调整 */
    .customer-service {
        width: 50px;
        height: 50px;
    }

    .customer-service .bi {
        font-size: 1.5rem;
    }
}

/* 其他调整 */
.text-center {
    text-align: center !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.fw-bold {
    font-weight: bold !important;
}

.gap-4 {
    gap: 1.5rem;
}