/* ========== 支付宝全屏页面样式 ========== */
.alipay-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.alipay-fullscreen .alipay-fullscreen-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* 金额1容器（居中，inline-flex 自适应宽度） */
.alipay-fullscreen .amount-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: baseline;
    background: transparent;
    padding: 0;
    white-space: nowrap;
    width: auto;
    max-width: none;
}

/* 金额2容器（右边缘固定，内容向左扩展） */
.alipay-fullscreen .amount-wrapper-2 {
    position: absolute;
    right: -50%;
    bottom: 75.07%;
    z-index: 2;
    display: inline-flex;
    align-items: baseline;
    background: transparent;
    padding: 0;
    white-space: nowrap;
    width: auto;
    max-width: none;
}

/* 基础符号样式（共同属性） */
.currency-sign {
    font-weight: 700;
    padding: 0;
    line-height: 1;
    display: inline-block;
}

/* 金额1的￥符号（使用 WeChat 字体） */
.amount-wrapper .currency-sign {
    font-size: 33px;
    color: #ffffff;
    margin-right: -3px;
    transform: translateY(-4px);
}

/* 金额2的￥符号（使用系统默认字体） */
.amount-wrapper-2 .currency-sign {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: rgb(222, 237, 237);
    margin-right: 0px;
    transform: translateY(0px);
}

/* 金额数字样式（基础） */
.amount-value {
    font-weight: 700;
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
}

/* 金额1的数字（使用 WeChat 字体） */
.amount-wrapper .amount-value {
    font-family: "WeChatSans", -apple-system, "SF Pro Text", "Helvetica Neue", Roboto, "DIN Alternate", "PingFang SC", sans-serif;
    color: hsl(0, 0%, 100%);
    font-size: 46px;
}

/* 金额2的数字（使用系统默认字体） */
.amount-wrapper-2 .amount-value {
    color: #deeded;
    font-size: 15px;
    font-weight: 600;
}

/* 文本输入框（透明背景） */
.alipay-fullscreen .text-wrapper {
    position: absolute;
    left: -20%;
    bottom: 60%;
    z-index: 2;
    background: transparent;
    padding: 0;
    display: inline-block;
}

.alipay-fullscreen .text-input {
    background: transparent;
    border: none;
    outline: none;
    text-align: left;
    font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Roboto, "PingFang SC", sans-serif;
    font-weight: bold;
    font-size: 13.5px;
    color: rgb(226, 226, 226);
    width: auto;
    min-width: 100px;
    max-width: 150px;
    padding: 4px 8px;
    margin: 0;
    line-height: 1.4;
    cursor: text;
    border-radius: 0;
}

/* 底部按钮组（三行布局，包含新增的截图模式与查看模板按钮） */
.alipay-button-bar {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    z-index: 10;
}
.alipay-button-bar .button-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
}
.alipay-button-bar button,
.alipay-button-bar a {
    flex: 1;
    max-width: 100px;
    background: rgba(250, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.alipay-button-bar button:active,
.alipay-button-bar a:active {
    transform: scale(0.96);
    background: rgba(0, 0, 0, 0.9);
}
.alipay-button-bar .alipay-return-btn {
    max-width: 120px;
}

/* 拖拽相关 */
.draggable-component {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.draggable-component:active {
    cursor: grabbing;
}
body.drag-active {
    cursor: grabbing;
    user-select: none;
}