@charset "utf-8";
/*==============================================================================
  出生地省市两级选择器（站内公共组件）        css/place-picker.css
------------------------------------------------------------------------------
  2026-12-03 从 cha/zhentaiyang.asp 的内联样式剥离出来，成为全站公共件。
  配套：
    服务端渲染  inc/inc_place.asp   PlaceField() / PlaceSheet()
    前端交互    js/place-picker.js
  用法见 inc/inc_place.asp 顶部注释，三行即可接入：
    <link href="<%=SiteMeteUrl%>/css/place-picker.css" rel="stylesheet" />
    <%=PlaceField("xx", "city", p)%>        ← 表单内
    <%=PlaceSheet("xx", p)%>                ← 页面底部
    <script src="<%=SiteMeteUrl%>/js/place-picker.js"></script>

  🔴 类名一律 pk- 前缀（站内无同名），不要改成 .pk / .sel 这类短名 ——
     .inform .select / .mc-sel 都是全站控件名，撞了会波及全站表单。
  🔴 弹层是 position:fixed + z-index:9000，开关时由 JS 锁 html 的 overflow；
     sheet 用 max-height 而不是固定高，省市少的时候整块自动收短。
  🔴 底部留 safe-area，否则 iPhone 上最后一个城市贴在 Home 指示条上。
==============================================================================*/

/* ---------- 触发框：长得跟 .mc-sel 一样，点击开弹层 ----------
   默认口径 = 新表单（.mc-*）：44px 高 / 16px 字 / #d0ad9a 边框 / 6px 圆角。
   老式 .inform 表单（34px / 14px / 2px 圆角）由调用页局部覆盖，见文件末尾示例。 */
.pk-field{position:relative;display:block;box-sizing:border-box;width:100%;height:44px;padding:0 30px 0 12px;
	line-height:42px;font-size:16px;color:#3f3628;background:#fff;border:1px solid #d0ad9a;border-radius:6px;
	overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:pointer;-webkit-tap-highlight-color:transparent;}
.pk-field em{font-style:normal;color:#b0b0b0;}
.pk-field.on em{color:#3f3628;}
.pk-field:focus{outline:none;border-color:#ff8a11;}
.pk-field::after{content:"";position:absolute;right:12px;top:17px;width:7px;height:7px;
	border-right:1.5px solid #9a9a9a;border-bottom:1.5px solid #9a9a9a;transform:rotate(45deg);}

/* ---------- 弹层 ---------- */
.pk{position:fixed;left:0;top:0;width:100%;height:100%;z-index:9000;display:none;}
.pk-mask{position:absolute;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.42);}
.pk-sheet{position:absolute;left:0;bottom:0;width:100%;max-height:74vh;background:#fffdf9;
	border-radius:14px 14px 0 0;overflow:hidden;box-shadow:0 -4px 18px rgba(0,0,0,.16);
	padding-bottom:env(safe-area-inset-bottom);}
.pk-hd{position:relative;height:46px;line-height:46px;padding:0 44px 0 12px;border-bottom:1px solid #f4e9d8;}
.pk-tab{display:inline-block;height:28px;line-height:28px;padding:0 14px;margin:9px 7px 0 0;
	font-size:14px;color:#8a7f72;background:#f7efe0;border-radius:14px;cursor:pointer;}
.pk-tab.on{color:#fff;background:#ff7a18;font-weight:600;}
.pk-x{position:absolute;right:0;top:0;width:44px;height:46px;line-height:44px;text-align:center;
	font-size:22px;color:#b0a293;text-decoration:none;}
.pk-cur{height:26px;line-height:26px;padding:0 12px;box-sizing:border-box;font-size:12px;color:#9a8b78;
	background:#fbf4ea;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.pk-cur b{color:#c85a2b;font-weight:600;}
.pk-body{max-height:-webkit-calc(74vh - 72px);max-height:calc(74vh - 72px);overflow-y:auto;
	-webkit-overflow-scrolling:touch;padding:9px 10px 18px;box-sizing:border-box;}
.pk-pane{overflow:hidden;}
.pk-i{float:left;width:20%;padding:0 3px;margin:0 0 6px;box-sizing:border-box;}
.pk-i em{display:block;box-sizing:border-box;height:34px;line-height:32px;text-align:center;
	font-style:normal;font-size:14px;color:#5a4b3a;background:#fff;border:1px solid #efe2cd;border-radius:8px;
	overflow:hidden;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;}
.pk-i.cur em,.pk-i.on em{color:#c85a2b;background:#fdf2e2;border-color:#e0b286;font-weight:600;}
.pk-cities{display:none;overflow:hidden;}
.pk-cities.on{display:block;}
.pk-cities .pk-i{width:33.3333%;}

@media (max-width:329px){
	.pk-i{width:25%;}
	.pk-i em{height:32px;line-height:30px;font-size:13px;}
}
@media (min-width:640px){
	.pk-mask{background:rgba(0,0,0,.36);}
	.pk-sheet{left:50%;top:50%;bottom:auto;width:100%;max-width:560px;max-height:80vh;border-radius:14px;
		-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);box-shadow:0 12px 44px rgba(0,0,0,.26);}
	.pk-body{max-height:-webkit-calc(80vh - 72px);max-height:calc(80vh - 72px);}
}

/* ---------- 老式 .inform 表单里的尺寸（34px / 14px / 2px 圆角）----------
   站内 .select 就是这套：34px 高、14px 字、#d0ad9a 边、2px 圆角。
   调用页加一个作用域类即可，例如 bazi/qizheng.asp：
     .qz-form .pk-field{height:34px;line-height:32px;font-size:14px;border-radius:2px;padding:0 26px 0 6px;}
     .qz-form .pk-field::after{right:9px;top:13px;width:6px;height:6px;}
*/
