* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f6f8; color: #1a1a1a; line-height: 1.5; font-size: 15px; }
.wrap { max-width: 480px; margin: 0 auto; min-height: 100vh; padding: 20px 16px 40px; }
.card { background: #fff; border-radius: 14px; padding: 22px 20px; box-shadow: 0 2px 12px rgba(0,0,0,.05); margin-bottom: 16px; }
h1 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
h2 { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.sub { color: #888; font-size: 13px; margin-bottom: 22px; }
label { display: block; font-size: 13px; color: #555; margin: 16px 0 6px; font-weight: 500; }
input[type=text], input[type=number] { width: 100%; height: 46px; border: 1px solid #dcdfe6; border-radius: 9px; padding: 0 13px; font-size: 15px; outline: none; background: #fff; }
input:focus { border-color: #07c160; }
.btn { display: block; width: 100%; height: 48px; border: none; border-radius: 9px; font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 22px; }
.btn-primary { background: #07c160; color: #fff; }
.btn-primary:disabled { background: #a8dcc0; cursor: default; }
.btn-ghost { background: #f0f0f0; color: #333; margin-top: 10px; }
.linkbox { background: #f7f8fa; border: 1px dashed #c8c9cc; border-radius: 9px; padding: 12px; word-break: break-all; font-size: 13px; color: #333; margin-top: 10px; display: none; }
.linkbox.show { display: block; }
.hint { font-size: 12px; color: #999; margin-top: 8px; }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.st-unpaid { background: #fff3e0; color: #e65100; }
.st-paid { background: #e8f8ee; color: #0a8f43; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 6px; border-bottom: 1px solid #f0f0f0; }
th { color: #888; font-weight: 500; font-size: 12px; }
.amt { font-size: 34px; font-weight: 700; color: #1a1a1a; }
.amt small { font-size: 18px; }
.info-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f5f5f5; font-size: 14px; }
.info-row .k { color: #888; }
.pay-methods { margin-top: 8px; }
.method { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #e5e5e5; border-radius: 10px; margin-top: 10px; cursor: pointer; }
.method.sel { border-color: #07c160; background: #f3fbf6; }
.method .ico { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; font-weight: 700; }
.ico-wx { background: #07c160; }
.ico-ali { background: #1677ff; }
.method.disabled { opacity: .45; cursor: not-allowed; }
.msg { padding: 12px 14px; border-radius: 9px; font-size: 14px; margin-top: 14px; display: none; }
.msg.show { display: block; }
.msg-ok { background: #e8f8ee; color: #0a8f43; }
.msg-err { background: #fdecec; color: #c62828; }
.msg-warn { background: #fff8e1; color: #8a6d00; }
.center { text-align: center; }
.spin { display: inline-block; width: 18px; height: 18px; border: 2px solid #ddd; border-top-color: #07c160; border-radius: 50%; animation: r .8s linear infinite; vertical-align: middle; }
@keyframes r { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); background: rgba(0,0,0,.8); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; z-index: 99; }
