@charset "utf-8";
/* 第四产权 小程序页面还原 · 共用样式
   宽度自适应、居中，上限 --app-max；尺寸按截图的 1/3.36 换算
   （截图为 1260px 宽的 3.36 倍图，故设计基准宽度为 375px）。
   无构建工具、无第三方依赖。PWA 需经 http(s) 服务访问，file:// 下 SW 不会注册。 */

:root {
	/* 画面宽度上限。想调整整体宽度只改这一行；
	   切图原始宽度 1260px，超过 640px 后小图标会开始发虚。 */
	--app-max:      480px;
	--brand:        #b23a2c;   /* 顶栏红（取自截图 rgb(178,58,44)） */
	--active:       #d5303a;   /* 强调红：底部导航选中、数字角标 */
	--page:         #f2f2f5;   /* 页面底色 */
	--card:         #ffffff;
	--line:         #ececec;
	--text:         #1f1f1f;
	--text-2:       #666666;
	--text-3:       #999999;
	--link:         #3a8ee6;
	--ok:           #07c160;
	--nav-h:        52px;   /* 原图 176/3.36 */
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
	margin: 0;
	padding: 0;
	background: #d7d7dc;                      /* 手机画面两侧的留白 */
	font: 14px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC",
	      "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { display: block; border: 0; }
ul, li { margin: 0; padding: 0; list-style: none; }

/* ---------- 手机画面 ---------- */
.phone {
	width: 100%;
	max-width: var(--app-max);
	min-height: 100vh;
	min-height: 100dvh;                       /* 移动端地址栏收起时不跳动 */
	margin: 0 auto;
	background: var(--page);
	position: relative;
	/* 底栏高度 + iPhone 底部横条（全屏/独立窗口下 env() 才非 0） */
	padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
	overflow: hidden;
}
.phone.no-nav { padding-bottom: env(safe-area-inset-bottom); }
.phone.white  { background: #fff; }   /* 开票信息页整屏白底 */

/* ---------- 顶部红色标题栏 ---------- */
.appbar {
	background: var(--brand);
	color: #fff;
	/* 全屏模式下内容会顶到状态栏下面，用 env() 把红栏撑到刘海区 */
	padding: env(safe-area-inset-top) 12px 0;
	position: relative;
}
.appbar-row {
	height: 51px;              /* 原图 (291-118)/3.36 */
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.appbar-title { font-size: 17px; font-weight: 500; letter-spacing: .5px; }
.appbar-back {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	color: #fff;
}
/* 微信右上角胶囊按钮 */
.capsule {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 76px;
	height: 28px;
	border-radius: 14px;
	background: rgba(0, 0, 0, .16);
	border: .5px solid rgba(255, 255, 255, .28);
	display: flex;
	align-items: center;
}
.capsule i {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-style: normal;
}
.capsule i + i { border-left: .5px solid rgba(255, 255, 255, .28); }

/* 顶栏里的搜索框 */
/* 红栏总高 = 51(标题行) + 10 + 34(搜索框) + 10 = 105px，与原图 354/3.36 一致 */
.appbar-search { padding: 10px 0; }
.appbar-search input {
	width: 100%;
	height: 34px;
	border: 0;
	border-radius: 17px;
	background: #fff;
	padding: 0 12px 0 34px;
	font-size: 13px;
	color: var(--text);
	outline: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 11px center;
	background-size: 15px 15px;
}
.appbar-search input::placeholder { color: #b5b5b5; }

/* ---------- 通用块 ---------- */
.card { background: var(--card); }
.gap-sm { height: 4px;  background: var(--page); }
.gap    { height: 9px;  background: var(--page); }
.gap-lg { height: 15px; background: var(--page); }
.muted { color: var(--text-3); }
.link { color: var(--link); }

/* 灰底分节标题：原图 34.8px */
.sec-title {
	font-size: 15px;
	line-height: 15px;
	font-weight: 600;
	padding: 9px 14px 11px;
	background: var(--page);
}

/* ---------- 首页 ---------- */
/* 轮播图（切图里已含底部的圆点指示器，不再另加）
   用切图原始比例 1260:618 代替固定 184px：375 宽时正好还是 184px，
   变宽后等比长高，不会像固定高度那样多裁掉上下。 */
.banner img {
	width: 100%;
	aspect-ratio: 1260 / 618;
	height: auto;
	object-fit: cover;
	display: block;
}

/* 品类宫格：原图白卡 289.3~468.8 共 179.5px，图标 145/3.36≈43px。
   span 必须 display:block，否则行内框会被 .cats a 的 1.5 行高撑高 9px/行。 */
.cats {
	background: var(--card);
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	row-gap: 32px;
	padding: 16px 6px;
}
.cats a { text-align: center; color: var(--text); }
.cats img { width: 43px; height: 43px; margin: 0 auto 3px; }
/* 字号 11px 对齐原图字宽，行高固定 12px 保持整块高度不变 */
.cats span { display: block; font-size: 11px; line-height: 12px; }

/* 最新挂牌：白卡 472.9~500.0 共 27px，与上下各隔 4px 灰缝 */
.newline {
	background: var(--card);
	display: flex;
	align-items: center;
	gap: 8px;
	height: 27px;
	padding: 0 14px;
	margin-top: 4px;
}
.newline img { width: 25px; height: 21px; flex: none; }
.newline b { color: var(--active); font-size: 13px; flex: none; }
.newline p {
	margin: 0;
	font-size: 12px;
	color: var(--text-2);
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* 三大资产入口：白卡 503.9~625.6 共 121.7px */
.pillars {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	background: var(--card);
	margin-top: 4px;
}
.pillars a {
	padding: 15px 10px 23px;
	text-align: left;
}
.pillars a + a { border-left: 1px solid var(--line); }
.pillars h3 { margin: 0 0 2px; font-size: 17px; line-height: 1; font-weight: 700; }
.pillars p { margin: 0 0 5px; font-size: 11px; line-height: 1; color: var(--text-3); }
.pillars img { width: 49px; height: 49px; margin: 0 auto; object-fit: contain; }

/* 服务卡片横滑：卡片高 86px，上方 14px 灰缝 */
.services {
	display: flex;
	gap: 8px;
	padding: 14px 0 4px 10px;
	overflow-x: auto;
	background: var(--page);
	scrollbar-width: none;
}
.services::-webkit-scrollbar { display: none; }
.services img { height: 86px; border-radius: 8px; flex: none; }

/* ---------- 我的 ----------
   白卡高度按原图：账号 98.8 / 标题 25.9 / 状态行 72.3 / 功能行 73.5 */
.profile {
	background: var(--card);
	display: flex;
	align-items: center;
	gap: 19px;
	padding: 15px 16px 15px 33px;
}
.profile .avatar {
	width: 68px; height: 68px;
	border-radius: 50%;
	border: 1px solid var(--line);
	flex: none;
}
.profile .phone-no { font-size: 16px; line-height: 1; font-weight: 700; letter-spacing: .5px; }
.profile .meta { margin-top: 2px; font-size: 13px; line-height: 13px; color: var(--text-3); }
.profile .meta .link { margin-left: 18px; }

.block-title {
	padding: 3px 14px 8px;
	font-size: 13px;
	line-height: 14px;
	background: var(--card);
	border-bottom: 1px solid var(--line);
}

.status-row {
	background: var(--card);
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	padding: 6px 4px 22px;
}
.status-row a { text-align: center; }
.status-row img { width: 39px; height: 30px; margin: 0 auto; object-fit: contain; }
.status-row span { display: block; font-size: 13px; line-height: 14px; }

.fn-grid {
	background: var(--card);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}
.fn-grid a {
	padding: 11px 0 16px;
	text-align: center;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.fn-grid a:nth-child(3n) { border-right: 0; }
.fn-grid img { width: 24px; height: 24px; margin: 0 auto 8px; }
.fn-grid span { display: block; font-size: 13px; line-height: 14px; }
.fn-grid .filler { background: var(--page); border: 0; }

/* ---------- 我参与的项目 ---------- */
.tabs {
	background: var(--card);
	display: flex;
	align-items: center;
	padding: 0 4px;
	overflow-x: auto;
	scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
	flex: none;
	border: 0;
	background: none;
	font: inherit;
	font-size: 14px;
	line-height: 14px;
	color: var(--text-2);
	padding: 15px 9px 12px;
	position: relative;
	cursor: pointer;
	white-space: nowrap;
}
.tabs button.on { color: var(--active); font-weight: 600; }
.tabs button.on::after {
	content: "";
	position: absolute;
	left: 9px; right: 9px; bottom: 0;
	height: 2px;
	background: var(--active);
	border-radius: 1px;
}

.searchbar {
	background: var(--card);
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 14px 9px;
}
.searchbar input {
	flex: 1;
	height: 32px;
	border: 0;
	border-radius: 16px;
	background: #f4f4f6;
	padding: 0 14px;
	font-size: 13px;
	outline: none;
}
.searchbar input::placeholder { color: #b5b5b5; }
.searchbar em { font-style: normal; font-size: 15px; color: var(--text); }

/* 项目卡：原图 proj-main 90.2 / 状态行 29.2 / 查看详情 34.2，卡间灰缝 11px */
.proj { background: var(--card); margin-top: 11px; }
.proj-main { display: flex; gap: 11px; padding: 19px 14px 12px 11px; }
.proj-main img {
	width: 79px; height: 59px;
	object-fit: cover;
	border-radius: 3px;
	flex: none;
}
.proj-main h4 {
	margin: 0 0 13px;
	font-size: 15px;
	font-weight: 500;
	line-height: 16.7px;
}
.proj-main p { margin: 0; font-size: 11px; line-height: 11px; color: var(--text-3); }
.proj-state {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 29px;
	padding: 0 14px;
	font-size: 13px;
	color: var(--text-2);
	border-top: 1px solid var(--line);
}
.proj-more {
	display: block;
	text-align: center;
	height: 34px;
	line-height: 34px;
	font-size: 14px;
	color: var(--link);
	border-top: 1px solid var(--line);
}

/* ---------- 资料审核 ---------- */
/* 资料审核：原图每条 97px，组标题 21px，组间灰缝 4px */
.doc-group-title {
	background: var(--card);
	height: 21px;
	padding: 0 14px;
	font-size: 14px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 14px;
}
.doc-group-title .link { font-size: 13px; font-weight: 400; }

.doc {
	background: var(--card);
	display: flex;
	align-items: center;
	height: 97px;
	padding: 0 14px;
	border-bottom: 1px solid var(--line);
}
.doc-thumb { width: 61px; flex: none; text-align: center; }
.doc-thumb img {
	width: 61px;
	height: auto;
	max-height: 52px;
	object-fit: contain;
	margin: 0 auto;
}
.doc-thumb span { display: block; margin-top: 6px; font-size: 12px; line-height: 12px; color: var(--text-2); }
.doc-name {
	flex: 1;
	padding: 0 16px;
	font-size: 13px;
	color: var(--text-2);
	border-right: 1px dashed #d5d5d5;
	line-height: 1.4;
}
.doc-state {
	width: 128px;
	flex: none;
	display: flex;
	align-items: center;
	gap: 8px;
	padding-left: 16px;
	font-size: 13px;
}

.check {
	width: 20px; height: 20px;
	flex: none;
	border-radius: 50%;
	background: var(--ok);
	display: flex;
	align-items: center;
	justify-content: center;
}

.kv {
	background: var(--card);
	display: flex;
	align-items: center;
	height: 50px;
	padding: 0 14px;
	font-size: 14px;
}
.kv-gray { background: var(--page); }

/* ---------- 保证金明细 ----------
   原图：头部卡 96.1 / 总览每行 79.2 / 流水卡 98.5。
   项目标题 13px 才能与原图一样排成一行，放大就会折行。 */
.deposit-head { background: var(--card); padding: 18px 14px 1px; }
.deposit-head h3 { margin: 0 0 2px; font-size: 13px; line-height: 13px; font-weight: 600; }
.deposit-head p { margin: 0; font-size: 11px; line-height: 20.7px; color: var(--text-3); }

.sum-grid {
	background: var(--card);
	display: grid;
	grid-template-columns: 1fr 1fr;
}
.sum-grid div {
	padding: 24px 14px 27px;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.sum-grid div:nth-child(2n) { border-right: 0; }
.sum-grid dt { font-size: 12px; line-height: 12px; color: var(--text-2); margin: 0 0 2px; }
.sum-grid dd { margin: 0; font-size: 14px; line-height: 14px; font-weight: 700; }
.sum-grid dd .link { font-size: 11px; font-weight: 400; margin-left: 10px; }
.red   { color: #e60012; }
.green { color: var(--ok); }

.flow { background: var(--card); display: flex; gap: 12px; padding: 9px 14px; }
.flow .check { width: 22px; height: 22px; margin-top: 1px; }
.flow h4 { margin: 0 0 6px; font-size: 12px; line-height: 18px; font-weight: 400; }
.flow h4 b { font-size: 17px; margin-left: 6px; }
.flow p { margin: 0; font-size: 11px; line-height: 18.8px; color: var(--text-3); }

/* ---------- 开票信息 ----------
   原图 9 行等距排列，行距 27.1px，按钮距最后一行 124px */
.invoice { background: var(--card); padding: 13px 14px 0; }
.invoice p { margin: 0; font-size: 14px; line-height: 27.1px; }
.invoice b { font-weight: 700; }
.btn-primary {
	display: block;
	margin: 124px 9px 0;
	height: 40px;
	line-height: 40px;
	text-align: center;
	background: #1aad19;
	color: #fff;
	font-size: 15px;
	border-radius: 4px;
}

/* ---------- 底部导航（图标为内联 SVG，颜色继承 currentColor） ---------- */
.tabbar {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: var(--app-max);
	/* 底部横条区域填白，图标仍保持 --nav-h 的可点高度 */
	height: calc(var(--nav-h) + env(safe-area-inset-bottom));
	padding-bottom: env(safe-area-inset-bottom);
	background: #fff;
	border-top: 1px solid var(--line);
	display: flex;
}
.tabbar a {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	color: #6b6b6b;              /* SVG 用 currentColor，改这里即整体变色 */
	font-size: 12px;
	line-height: 1;
}
.tabbar a.on { color: var(--active); }
.tabbar svg { width: 25px; height: 25px; display: block; }
