﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 16px;
}

/* 主容器 - 支付宝卡片风格 */
.alipay-cashier {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

/* 头部 */
.header {
    padding: 28px 24px 12px;
    border-bottom: 1px solid #f0f2f5;
}

    .header h1 {
        font-size: 28px;
        font-weight: 600;
        color: #1677ff;
        letter-spacing: -0.3px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .header h1::before {
            content: "💰";
            font-size: 28px;
        }

    .header .sub {
        font-size: 13px;
        color: #6b7280;
        margin-top: 6px;
    }

/* 内容区 */
.content {
    padding: 12px 20px 20px;
}

/* 收款方卡片 - 浅色背景 */
.payee-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 28px;
    transition: all 0.2s;
}

.payee-label {
    font-size: 13px;
    font-weight: 500;
    color: #5b6e8c;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.payee-input-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 16px;
    padding: 4px 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

    .payee-input-wrap:focus-within {
        border-color: #1677ff;
        box-shadow: 0 0 0 2px rgba(22,119,255,0.1);
    }

.payee-input {
    width: 100%;
    border: none;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 0;
    background: transparent;
    outline: none;
    color: #1f2d3d;
}

    .payee-input::placeholder {
        color: #a0abb9;
        font-weight: normal;
    }

.edit-icon {
    color: #8e9aaf;
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
}

/* 金额区域 - 大号输入 */
.amount-section {
    text-align: center;
    margin: 12px 0 24px;
}

.amount-label {
    font-size: 14px;
    font-weight: 500;
    color: #5b6e8c;
    margin-bottom: 12px;
}

.amount-input-area {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    border-bottom: 2px solid #e2e8f0;
    padding: 8px 8px 12px;
}

.currency-symbol {
    font-size: 34px;
    font-weight: 600;
    color: #1f2d3d;
}

.amount-input {
    font-size: 52px;
    font-weight: 600;
    border: none;
    width: 230px;
    text-align: center;
    outline: none;
    background: transparent;
    font-family: inherit;
    color: #1f2d3d;
    padding: 0;
}

    .amount-input::placeholder {
        font-size: 42px;
        font-weight: 500;
        color: #cbd5e1;
    }

/* 方式列表 */
.pay-methods-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2d3d;
    margin: 20px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.methods-list {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eef2f6;
}

.method-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 0.5px solid #eff3f8;
}

    .method-item:last-child {
        border-bottom: none;
    }

    .method-item:active {
        background: #f8fafc;
    }

.method-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.method-icon {
    font-size: 28px;
    width: 36px;
    text-align: center;
}

.method-name {
    font-size: 16px;
    font-weight: 500;
    color: #1f2d3d;
}

.radio-indicator {
    width: 20px;
    height: 20px;
    border-radius: 20px;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    transition: all 0.1s;
}

    .radio-indicator.selected {
        background: #1677ff;
        border-color: #1677ff;
        position: relative;
    }

        .radio-indicator.selected::after {
            content: "✓";
            color: white;
            font-size: 12px;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

/* 底部按钮居中 */
.footer {
    padding: 16px 24px 32px;
    display: flex;
    justify-content: center;
}

.pay-btn {
    background: #1677ff;
    border: none;
    padding: 16px 48px;
    border-radius: 48px;
    color: white;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(22,119,255,0.25);
}

    .pay-btn:active {
        transform: scale(0.97);
        background: #0e5fd9;
    }

/* 安全提示 */
.secure-note {
    text-align: center;
    font-size: 11px;
    color: #8e9aaf;
    padding: 12px 24px 24px;
    display: flex;
    justify-content: center;
    gap: 24px;
    border-top: 1px solid #eff3f8;
    background: #ffffff;
}

/* Toast 轻提示 */
#toastMsg {
    position: fixed;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    color: white;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    z-index: 200;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    white-space: nowrap;
    font-family: inherit;
}

.toast-show {
    opacity: 1 !important;
    transform: translateX(-50%) scale(1) !important;
}

media (max-width: 480px) {
    .alipay-cashier {
        border-radius: 28px;
    }

    .amount-input {
        width: 170px;
        font-size: 44px;
    }

    .currency-symbol {
        font-size: 28px;
    }

    .pay-btn {
        padding: 14px 36px;
        font-size: 17px;
    }
}
