/* wpay.css - 商品订购页面样式 */

/* ===== 基础样式 ===== */
body {
    background: #f7f7f7;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* ===== 主容器样式 ===== */
.center_info {
    width: 360px;
    text-align: center;
    padding: 30px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.center_info:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ===== 商品信息样式 ===== */
.goods-thumb-wrap {
    text-align: center;
    margin-bottom: 18px;
}

.goods-thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    border: 2px solid #e0e0e0;
    background: #fff;
}

.goods-title {
    font-size: 20px;
    font-weight: bold;
    color: #222;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.3;
    word-break: break-all;
}

/* ===== 步骤提示样式 ===== */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
}

/* ===== 复制按钮样式 ===== */
.copy-btn {
    display: inline-flex;
    align-items: center;
    background: #f1f3f4;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #d4edda;
    color: #155724;
}

.copy-btn i {
    margin-right: 6px;
    font-size: 18px;
}

/* ===== 二维码样式 ===== */
.qr-code {
    margin-top: 18px;
}

.qr-code img {
    width: 220px;
    height: 220px;
    border: 3px solid #28a745;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    background: #fff;
}

/* ===== 客服链接样式 ===== */
.help-link {
    margin-top: 18px;
    color: #888;
    font-size: 13px;
}

.help-link a {
    color: #28a745;
    text-decoration: none;
}

.help-link a:hover {
    text-decoration: underline;
}

/* ===== 页脚样式 ===== */
.footer {
    background: #222;
    color: #fff;
    padding: 15px;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 14px;
    height: 50px;
    line-height: 20px;
}

.footer a {
    color: #28a745;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .center_info {
        width: 90%;
        padding: 20px;
    }
    
    .qr-code img {
        width: 200px;
        height: 200px;
    }
    
    body {
        padding-bottom: 70px;
    }
}

@media (max-width: 600px) {
    .goods-thumb {
        width: 80px;
        height: 80px;
    }
    
    .qr-code img {
        width: 140px;
        height: 140px;
    }
}

/* ===== 图标样式 ===== */
.step-icon {
    margin-right: 6px;
}

.step-icon.gift {
    color: #ffc107;
}

.step-icon.money {
    color: #28a745;
}

.step-icon.address {
    color: #17a2b8;
}

.step-icon.edit {
    color: #007bff;
}

.step-icon.qrcode {
    color: #28a745;
}

.step-icon.help {
    color: #28a745;
    margin-right: 4px;
}

/* ===== 动画效果 ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.center_info {
    animation: fadeIn 0.5s ease-out;
}

/* ===== 工具提示样式 ===== */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
