/* 设置页面背景 */
body { 
    background-color: #f7f7f7;
    padding-bottom: env(safe-area-inset-bottom); /* 适配 iPhone X 及以上 */
}

/* 间距 & 外边距 */
.dwo-mt10 { margin-top: 10px; }
.dowebok { padding: 8px; }

/* 网格容器，使用 Grid 让每行显示 4 个 */
.weui-grids {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4列布局 */
    gap: 10px; /* 设置间距 */
    margin-bottom: -1px;
}
.weui-grids:before { border-top: 0; }
.weui-grids:after { border-left: 0; }

/* 网格单元格样式 */
.weui-grid {
    width: 100%; /* 自动填充父容器 */
    text-align: center;
    padding: 10px 0;
}
.weui-grid:nth-child(4n):before { /* 每4个一行去掉右侧边框 */
    border-right: 0;
}

/* 更多按钮 */
.weui-grid-more { display: none; }
.has-more { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.has-more.show-more .weui-grid-more { display: block; }

/* 更多内容 */
.grids-more { 
    position: relative; 
    height: 50px; 
    line-height: 50px; 
    border-radius: 10px; 
    text-align: center; 
    font-size: 14px; 
    color: #5b6a91; 
    background-color: #fff; 
}
.grids-more:before { 
    content: ""; 
    position: absolute; 
    left: 0; 
    right: 0; 
    top: -1px; 
    height: 1px; 
    border-top: 1px solid #d9d9d9; 
    transform: scaleY(.5); 
    transform-origin: 0 100%;
}
.grids-more span { display: inline-block; vertical-align: middle; }
.grids-more span:after { 
    content: ""; 
    display: inline-block; 
    width: 16px; 
    height: 16px; 
    margin-left: 5px; 
    background: url(images/arrow.png) no-repeat 0 / 16px 16px; 
    vertical-align: text-top;
}
.grids-more .show:after { transform: rotate(180deg); }

/* 标题 */
.grids-title { 
    box-sizing: border-box; 
    position: relative; 
    height: 50px; 
    padding: 0 15px; 
    line-height: 50px;
}
.grids-title:after { 
    content: ""; 
    position: absolute; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    height: 1px; 
    border-top: 1px solid #d9d9d9; 
    transform: scaleY(.5); 
    transform-origin: 0 100%;
}
.grids-title h2 { 
    font-size: 16px; 
    font-weight: 400; 
    color: #706f75;
}

/* 支付模块 */
.pay { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; /* 确保垂直居中 */
    height: 150px; 
    border-radius: 10px; 
    background-color: #3db271; 
    padding: 20px; /* 增加内边距，避免挤压 */
    overflow: visible; /* 允许溢出，防止图标被裁剪 */
}

/* 按钮样式 */
.pay-qrcode, .pay-wallet { 
    flex: 1; 
    display: flex; 
    flex-direction: column;
    align-items: center; /* 居中 */
    justify-content: center;
    color: #fff;
}

/* 调整图标大小，确保完整显示 */
.pay-qrcode i, .pay-wallet i { 
    display: inline-block; 
    width: 50px;  /* 增加大小 */
    height: 50px; 
    background-size: cover; /* 填充整个区域 */
    background-repeat: no-repeat;
    background-position: center; /* 确保居中 */
}

/* 分别设置不同的图标 */
.pay-qrcode i { background-image: url('images/qrcode.png'); }
.pay-wallet i { background-image: url('images/wallet.png'); }

/* 文字样式 */
.pay-qrcode p, .pay-wallet p { 
    font-size: 16px;
    font-weight: bold;
    margin-top: 8px;
}
