/* WeUI 自定义美化样式 - 最小化修改，保持默认样式 */

/* 防止页面出现水平滚动条 */
body {
    overflow-x: hidden;
    max-width: 100vw;
}

.page {
    overflow-x: hidden;
    max-width: 100%;
}

/* 仅保留必要的页面底部空白，避免按钮遮挡内容 */
.page__bd {
    padding-bottom: 90px;
    overflow-x: hidden;
}

/* 保留页面标题样式 */
.page__hd {
    padding: 20px 20px 15px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page__title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.4;
}

/* 保留按钮区域固定布局 */
.weui-btn-area {
    margin: 0;
    padding: 20px 15px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
    z-index: 100;
    max-width: 100%;
    box-sizing: border-box;
}

.weui-btn-area .weui-btn {
    flex: 1;
    margin: 0;
}

.weui-btn_primary {
    background: #9b7cbf;
    border: none;
}

/* 修正输入框高度问题 */
.weui-input {
    height: 1.41176471em;
    min-height: 1.41176471em;
    line-height: 1.41176471;
}

/* 修正 label 换行时的对齐问题 */
.weui-cell__hd {
    align-self: flex-start;
    padding-top: 0.34em;
}

/* textarea 单元格的 label 顶部对齐 */
.weui-cell:has(.weui-textarea) .weui-cell__hd {
    padding-top: 0.68em;
}

/* select 单元格的 label 垂直居中 */
.weui-cell_select .weui-cell__hd {
    align-self: center;
    padding-top: 0;
}

/* 增大错误提示弹窗 */
.weui-toast {
    min-width: 250px;
    max-width: 80%;
    padding: 25px 20px;
    min-height: auto;
}

.weui-toast__content {
    font-size: 17px;
    margin-top: 10px;
    line-height: 1.6;
    word-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}

.weui-icon_toast {
    font-size: 60px;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.weui-icon-warn:before {
    font-size: 60px;
}
