/* ============================================================
   zf-ui.css — 清新绿轻快风设计系统（V2 全新 UI）
   引入顺序：页面最后一个 <link>；不依赖 weui.css。
   少数 weui-* 类为 js/common.js、js/wList.js 的 DOM 钩子，
   在本文件中重新定义样式（见第 19 节「JS 钩子兼容层」）。
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
	--zf-brand: #12B76A;
	--zf-brand-deep: #0E9153;
	--zf-soft: #E9F7EF;
	--zf-ink: #333;
	--zf-ink-2: #66796F;
	--zf-ink-3: #333;
	--zf-bg: #EEF3F0;
	--zf-card: #FFFFFF;
	--zf-line: #F2F6F3;
	--zf-amber-bg: #FFF3E4;
	--zf-amber: #f0ae0ed6;
	--zf-red-bg: #FDECEC;
	--zf-red: #E5484D;
	--zf-blue-bg: #E8F1FF;
	--zf-blue: #2B5FD9;
	--zf-pink-bg: #FDF0F3;
	--zf-pink: #D23B5B;
	--zf-radius: 20px;
	--zf-radius-inner: 16px;
	--zf-radius-btn: 24px;
	--zf-radius-field: 14px;
	--zf-shadow: 0 1px 2px rgba(20, 61, 43, 0.04), 0 6px 16px rgba(20, 61, 43, 0.07);
	--zf-shadow-btn: 0 4px 10px rgba(18, 183, 106, 0.35);
}

/* ---------- 2. 基础 ---------- */
html, body {
	margin: 0;
	padding: 0;
}
body {
	background: var(--zf-bg);
	color: var(--zf-ink);
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
	font-size: 14px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}
a {
	color: inherit;
	text-decoration: none;
}

/* ---------- 3. 页面骨架 ---------- */
.zf-page {
	padding: 12px 10px 24px;
}
.zf-title {
	font-size: 18px;
	font-weight: 800;
	color: var(--zf-ink);
	padding: 8px 0 4px;
}
.zf-sub {
	font-size: 14px;
	color: var(--zf-ink-3);
	margin: 2px 0 10px;
}
.zf-cells__title {
	font-size: 14px;
	color: var(--zf-ink-3);
	padding: 14px 4px 8px;
}
.zf-footer {
	text-align: center;
	font-size: 14px;
	color: var(--zf-ink-3);
	padding: 28px 0 16px;
}

/* ---------- 3.5 顶部导航栏（左返回箭 + 中标题 + 右低频操作图标） ---------- */
.zf-navbar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 48px;
	margin-bottom: 4px;
}
.zf-navbar__title {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	font-size: 17px;
	font-weight: 700;
	color: var(--zf-ink);
}
.zf-navbar__back,
.zf-navbar__action {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	color: var(--zf-ink);
}
.zf-navbar__back {
	justify-content: flex-start;
}
.zf-navbar__back:active,
.zf-navbar__action:active {
	background: var(--zf-soft);
}
.zf-navbar__back svg,
.zf-navbar__action svg {
	width: 22px;
	height: 22px;
	display: block;
}
.zf-navbar__actions {
	display: flex;
	align-items: center;
	margin-left: auto;
}

/* ---------- 4. 按钮 ---------- */
.zf-btn {
	display: block;
	text-align: center;
	border-radius: var(--zf-radius-btn);
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 700;
	border: none;
	box-sizing: border-box;
	cursor: pointer;
}
.zf-btn--block {
	display: block;
	width: 100%;
}
.zf-btn--primary {
	background: linear-gradient(135deg, var(--zf-brand), var(--zf-brand-deep));
	color: #fff;
	box-shadow: var(--zf-shadow-btn);
}
.zf-btn--primary:active {
	opacity: 0.88;
}
.zf-btn--default {
	background: var(--zf-card);
	color: var(--zf-brand-deep);
	border: 1px solid var(--zf-brand);
}
.zf-btn--default:active {
	background: var(--zf-soft);
}
.zf-btn--warn {
	background: linear-gradient(135deg, #F15E5E, #E5484D);
	color: #fff;
	box-shadow: 0 4px 10px rgba(229, 72, 77, 0.3);
}
.zf-btn--warn:active {
	opacity: 0.88;
}
.zf-btn-area {
	margin: 24px 0 12px;
}
.zf-btn-area .zf-btn + .zf-btn {
	margin-top: 12px;
}

/* ---------- 5. 卡片 ---------- */
.zf-card {
	background: var(--zf-card);
	border-radius: var(--zf-radius-inner);
	box-shadow: var(--zf-shadow);
	padding: 4px 14px;
	margin-bottom: 8px;
}

/* ---------- 6. 菜单行 ---------- */
/* 注意：display:flex 是 Zepto .show() 在锚点 cell 上的依赖，勿删 */
.zf-cell {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 2px;
	border-bottom: 1px solid var(--zf-line);
}
.zf-cell:active {
	background: var(--zf-soft);
}
.zf-cell:last-child {
	border-bottom: none;
}
.zf-cell__bd {
	flex: 1;
	min-width: 0;
}
.zf-cell__title {
	font-size: 14px;
	font-weight: 600;
	color: var(--zf-ink);
}
.zf-cell__ft {
	font-size: 14px;
	color: var(--zf-ink-3);
}
.zf-cell__arrow {
	font-size: 16px;
	color: #C3CFC8;
}

/* ---------- 7. 图标底 ---------- */
/* 芯片 color 供内联 SVG 以 currentColor 继承，实现统一 2D 扁平线性图标（24 网格 / 2px 圆头描边） */
.zf-icon {
	width: 32px;
	height: 32px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	flex-shrink: 0;
}
.zf-icon svg {
	width: 18px;
	height: 18px;
	display: block;
}
.zf-icon--green { background: var(--zf-soft); color: var(--zf-brand-deep); }
.zf-icon--amber { background: var(--zf-amber-bg); color: var(--zf-amber); }
.zf-icon--blue { background: var(--zf-blue-bg); color: var(--zf-blue); }
.zf-icon--pink { background: var(--zf-pink-bg); color: var(--zf-pink); }

/* ---------- 8. 状态胶囊 ---------- */
.zf-tag {
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	border-radius: 20px;
	padding: 2px 10px;
	line-height: 1.6;
}
.zf-tag--amber { background: var(--zf-amber-bg); color: var(--zf-amber); }
.zf-tag--green { background: var(--zf-soft); color: var(--zf-brand-deep); }
.zf-tag--red { background: var(--zf-red-bg); color: var(--zf-red); }
.zf-tag--blue { background: var(--zf-blue-bg); color: var(--zf-blue); }
.zf-tag--glass { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* ---------- 9. 渐变金额大卡 ---------- */
.zf-hero {
	background: linear-gradient(135deg, var(--zf-brand), var(--zf-brand-deep));
	border-radius: var(--zf-radius);
	padding: 16px;
	color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: var(--zf-shadow-btn);
	margin-bottom: 14px;
}
.zf-hero__label {
	font-size: 14px;
	opacity: 0.85;
}
.zf-hero__amount {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.5px;
	margin-top: 2px;
	font-variant-numeric: tabular-nums;
}
.zf-hero__btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #fff;
	color: var(--zf-brand-deep);
	border-radius: 999px;
	padding: 9px 16px;
	font-size: 14px;
	font-weight: 700;
	flex-shrink: 0;
	white-space: nowrap;
}
.zf-hero__btn:active {
	transform: scale(0.95);
}
/* 核心转化入口（去缴费）：放大 + 投影浮起 + 右向箭头 + 呼吸微脉冲 */
.zf-hero__btn--cta {
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 800;
	box-shadow: 0 6px 18px rgba(8, 84, 48, 0.32);
	-webkit-animation: zf-cta-pulse 2.4s ease-in-out infinite;
	animation: zf-cta-pulse 2.4s ease-in-out infinite;
}
.zf-hero__btn--cta svg {
	width: 15px;
	height: 15px;
	display: block;
}
.zf-hero__btn--cta:active {
	transform: scale(0.95);
}
@-webkit-keyframes zf-cta-pulse {
	0%, 100% { -webkit-transform: scale(1); transform: scale(1); }
	50% { -webkit-transform: scale(1.05); transform: scale(1.05); }
}
@keyframes zf-cta-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
	.zf-hero__btn--cta {
		-webkit-animation: none;
		animation: none;
	}
}

/* ---------- 10. 品牌头（登录/绑定） ---------- */
.zf-brand-head {
	background: linear-gradient(160deg, var(--zf-brand) 0%, var(--zf-brand-deep) 100%);
	padding: 60px 24px 56px;
	text-align: center;
	color: #fff;
}
.zf-brand-head__logo {
	width: 56px;
	height: 56px;
	margin: 0 auto;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.22);
	font-size: 28px;
	line-height: 56px;
}
.zf-brand-head__logo img {
	width: 100%;
	height: 100%;
	display: block;
	border-radius: inherit;
	object-fit: cover;
}
.zf-brand-head__name {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 2px;
	margin-top: 10px;
}
.zf-brand-head__slogan {
	font-size: 14px;
	opacity: 0.8;
	margin-top: 4px;
}

/* ---------- 11. 表单 ---------- */
.zf-login-card {
	margin: -32px 10px 0;
	background: var(--zf-card);
	border-radius: 18px;
	padding: 18px 16px;
	box-shadow: 0 4px 14px rgba(20, 61, 43, 0.07);
	position: relative;
}
.zf-field {
	background: #F3F7F5;
	border-radius: var(--zf-radius-field);
	padding: 10px 14px;
}
.zf-field + .zf-field {
	margin-top: 12px;
}
.zf-field__label {
	display: block;
	font-size: 14px;
	color: var(--zf-ink-3);
	margin-bottom: 2px;
}
.zf-field__input {
	width: 100%;
	border: none;
	outline: none;
	background: transparent;
	font-size: 16px;
	color: var(--zf-ink);
	font-weight: 600;
	box-sizing: border-box;
	padding: 0;
	-webkit-appearance: none;
}
.zf-field__input::placeholder {
	color: #B5C2BA;
	font-weight: 400;
}
.zf-field--vcode {
	position: relative;
	padding-right: 96px;
}
.zf-vcode-btn {
	-webkit-appearance: none;
	position: absolute;
	right: 8px;
	bottom: 10px;
	transform: none;
	border: none;
	background: var(--zf-soft);
	color: var(--zf-brand-deep);
	font-size: 14px;
	font-weight: 700;
	border-radius: 12px;
	padding: 7px 10px;
}
.zf-vcode-btn:active {
	opacity: 0.8;
}

/* ---------- 12. 搜索框 ---------- */
.zf-search {
	position: relative;
	display: flex;
	align-items: center;
	padding: 12px 10px;
	gap: 10px;
}
.zf-search__form {
	flex: 1;
	position: relative;
	background: var(--zf-card);
	border-radius: var(--zf-radius-field);
	height: 38px;
	display: flex;
	align-items: center;
	padding: 0 12px;
	box-shadow: var(--zf-shadow);
	box-sizing: border-box;
}
.zf-search__icon {
	font-size: 14px;
	font-style: normal;
	margin-right: 6px;
	color: var(--zf-ink-3);
}
.zf-search__input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-size: 14px;
	color: var(--zf-ink);
	-webkit-appearance: none;
}
/* 提示层：置于表单内绝对定位覆盖输入区，未聚焦时可见；可点击（wList 在 #searchText 绑定 click 激活搜索态）。
   必须不透明（同表单底色），盖住底层 input 的 placeholder 与放大镜，避免出现两个搜索图标 */
.zf-search__text {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 38px;
	line-height: 38px;
	text-align: center;
	color: var(--zf-ink-3);
	font-size: 14px;
	background: var(--zf-card);
	border-radius: var(--zf-radius-field);
	display: none;
}
.zf-search:not(.weui-search-bar_focusing) .zf-search__text {
	display: block;
}

/* ---------- 13. 列表账单卡 ---------- */
.zf-bill-card {
	display: block;
	background: var(--zf-card);
	border-radius: var(--zf-radius-inner);
	box-shadow: var(--zf-shadow);
	padding: 14px;
	margin: 0 10px 12px;
}
.zf-bill-card__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
}
.zf-bill-card__titlewrap {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.zf-bill-card__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--zf-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.zf-bill-card__sub {
	font-size: 14px;
	color: var(--zf-ink-3);
	margin-top: 3px;
}
.zf-bill-card__amtwrap {
	text-align: right;
	flex-shrink: 0;
}
.zf-amount {
	font-size: 16px;
	font-weight: 800;
	color: var(--zf-ink);
	font-variant-numeric: tabular-nums;
}
.zf-bill-card__foot {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed #EEF3F0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	color: var(--zf-ink-3);
}
.zf-bill-card__overdue {
	color: var(--zf-red);
	font-weight: 700;
}
.zf-bill-card__link {
	color: var(--zf-brand);
	font-weight: 700;
}

/* ---------- 14. 明细行 ---------- */
.zf-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 11px 0;
	border-bottom: 1px solid var(--zf-line);
	font-size: 14px;
}
.zf-row:last-child {
	border-bottom: none;
}
.zf-row__k {
	color: var(--zf-ink-3);
	font-size: 14px;
	flex-shrink: 0;
	margin-right: 12px;
}
.zf-row__v {
	color: var(--zf-ink);
	font-weight: 500;
	text-align: right;
	word-break: break-all;
}

/* ---------- 15. 空态 / 加载更多 ---------- */
.zf-empty {
	text-align: center;
	padding: 48px 0;
	color: var(--zf-ink-3);
}
.zf-empty svg {
	width: 72px;
	height: 72px;
	margin-bottom: 10px;
	opacity: 0.5;
}
.zf-empty p {
	margin: 0;
	font-size: 14px;
}

/* ---------- 16. 反馈：遮罩 / 弹窗 / toast / loading ---------- */
.zf-mask {
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background: rgba(20, 61, 43, 0.45);
	z-index: 9998;
}
.zf-mask--transparent {
	background: transparent;
}
.zf-dialog {
	position: fixed;
	left: 50%;
	top: 45%;
	transform: translate(-50%, -50%);
	width: 81%;
	max-width: 320px;
	background: var(--zf-card);
	border-radius: 18px;
	z-index: 9999;
	overflow: hidden;
	text-align: center;
}
.zf-dialog__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--zf-bg);
	color: var(--zf-ink-2);
	font-size: 14px;
	line-height: 1;
	z-index: 1;
}
.zf-dialog__close:active {
	background: var(--zf-line);
}
.zf-dialog__bd {
	padding: 26px 20px;
	font-size: 15px;
	color: var(--zf-ink);
	line-height: 1.6;
}
.zf-dialog__ft {
	display: flex;
	border-top: 1px solid var(--zf-line);
}
.zf-dialog__btn {
	flex: 1;
	text-align: center;
	padding: 14px 0;
	font-size: 15px;
	color: var(--zf-ink-2);
}
.zf-dialog__btn--primary {
	color: var(--zf-brand-deep);
	font-weight: 700;
}
.zf-dialog__btn:active {
	background: var(--zf-bg);
}
.zf-toast {
	position: fixed;
	left: 50%;
	top: 45%;
	transform: translate(-50%, -50%);
	background: rgba(20, 40, 30, 0.88);
	border-radius: 14px;
	padding: 18px 24px;
	z-index: 9999;
	text-align: center;
	min-width: 100px;
}
.zf-toast .zf-toast__content,
.zf-toast .weui-toast__content {
	color: #fff;
	font-size: 14px;
	margin: 8px 0 0;
}
.zf-toast__icon {
	display: inline-block;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--zf-brand);
	position: relative;
}
.zf-toast__icon::after {
	content: "";
	position: absolute;
	left: 12px;
	top: 10px;
	width: 10px;
	height: 17px;
	border: solid #fff;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(42deg);
}
.zf-spinner {
	display: inline-block;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 3.5px solid rgba(255, 255, 255, 0.25);
	border-top-color: #fff;
	-webkit-animation: zf-spin 0.9s linear infinite;
	animation: zf-spin 0.9s linear infinite;
}
@-webkit-keyframes zf-spin {
	to { -webkit-transform: rotate(360deg); }
}
@keyframes zf-spin {
	to { transform: rotate(360deg); }
}

/* ---------- 17. 结果页（支付成功） ---------- */
.zf-result {
	text-align: center;
	padding: 72px 32px 24px;
}
.zf-result__icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--zf-brand), var(--zf-brand-deep));
	position: relative;
	box-shadow: var(--zf-shadow-btn);
}
.zf-result__icon::after {
	content: "";
	position: absolute;
	left: 24px;
	top: 21px;
	width: 20px;
	height: 33px;
	border: solid #fff;
	border-width: 0 4px 4px 0;
	transform: rotate(42deg);
}
.zf-result__title {
	font-size: 19px;
	font-weight: 800;
	color: var(--zf-ink);
	margin: 0 0 28px;
}

/* ---------- 18. 个人中心（通栏式 · 参考设计稿） ---------- */
/* 通栏页容器：去掉页面默认左右留白，各区块自行控制内边距 */
.zf-profile-page {
	padding: 0 0 24px;
}
/* 页头：通栏浅色带 + 大标题在上 + 头像/姓名在下 */
.zf-profile__hd {
	display: block;
	background: #EDF1EF;
	padding: 30px 22px 22px;
}
.zf-profile__title {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.3px;
	color: var(--zf-ink);
}
.zf-profile__user {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
}
.zf-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: linear-gradient(135deg, #2ECC71, #12A35A);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0;
	background-size: cover;
	background-position: center;
}
.zf-avatar svg {
	width: 24px;
	height: 24px;
	display: block;
}
.zf-profile__name {
	font-size: 19px;
	font-weight: 800;
	color: var(--zf-ink);
}
/* 页头姓名 + 手机号纵向列 */
.zf-profile__meta {
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
}
.zf-profile__mobile {
	font-size: 14px;
	font-weight: 400;
	color: var(--zf-ink-3);
	letter-spacing: 0.5px;
}
/* 待缴金额大卡：内嵌圆角深绿 + 更高内边距 */
.zf-profile-hero {
	background: linear-gradient(135deg, #2F9E5F, #1E7A46);
	margin: 0 10px 18px;
	padding: 24px 20px;
	box-shadow: 0 8px 24px rgba(30, 122, 70, 0.28);
}
/* 菜单白卡：内嵌圆角 + 行间细线（去掉「账单/服务」分组标题，行更高更饱满） */
.zf-profile-menu {
	background: var(--zf-card);
	border-radius: var(--zf-radius);
	box-shadow: var(--zf-shadow);
	margin: 0 10px 16px;
	overflow: hidden;
}
.zf-profile-cell {
	padding: 18px 16px;
	border-bottom: 1px solid var(--zf-line);
}
.zf-profile-cell:last-child {
	border-bottom: none;
}
.zf-profile-menu .zf-icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
}
.zf-profile-menu .zf-icon svg {
	width: 22px;
	height: 22px;
}
/* 菜单字段：标题 16px（比全局 14px 更醒目） */
.zf-profile-menu .zf-cell__title {
	font-size: 16px;
}
/* 行尾组合（角标 + 箭头） */
.zf-profile-ft {
	display: flex;
	align-items: center;
	gap: 8px;
}
/* 红色数字角标（待交/待收房租数量） */
.zf-badge {
	display: inline-block;
	min-width: 20px;
	height: 20px;
	line-height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: #F04A43;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	box-sizing: border-box;
}

/* ---------- 19. JS 钩子兼容层（weui-* 由 common.js/wList.js 操作，仅样式重定义） ---------- */
.weui-loadmore {
	text-align: center;
	padding: 6px 0 18px;
}
.weui-loadmore__tips {
	display: inline-block;
	font-size: 14px;
	color: var(--zf-ink-3);
	background: var(--zf-card);
	border-radius: 16px;
	padding: 8px 22px;
	box-shadow: var(--zf-shadow);
}
.weui-loadmore__tips:empty {
	display: none;
}

/* ---------- 20. 支付方式选中态 ---------- */
.zf-pay-checked {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--zf-brand);
	border: 3px solid var(--zf-soft);
	box-sizing: border-box;
	flex-shrink: 0;
}

/* ---------- 21. 行值强调（金额/数值） ---------- */
.zf-row__v--amount {
	font-size: 16px;
	font-weight: 800;
	color: var(--zf-ink);
}
