/* Shared mobile shell for WeChat H5 user and management entrances. */
html{-webkit-text-size-adjust:100%}
button,a,input,select,textarea{touch-action:manipulation}
.crm input,.crm select,.crm textarea{font-size:16px;min-height:44px}
.crm input[type=checkbox],.access .access-check input{width:20px;min-width:20px;height:20px;min-height:20px;margin:0;flex:0 0 20px}
.access .access-check{line-height:1.5;font-size:14px;gap:10px}
.crm-btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:14px}
.crm-error:empty{display:none}
.small-help{font-size:13px;color:#687a91;line-height:1.7;margin-top:12px}
.link-button{border:0;width:100%;background:none;color:#1764e8;margin:12px 0 0}
.crm{padding:20px 16px 28px}
.crm h1{font-size:25px;letter-spacing:0}
.crm-tabs{grid-auto-columns:1fr;grid-auto-flow:column;grid-template-columns:none}
.crm-tabs button{font-size:14px;min-height:44px}
.access h2{font-size:18px;margin:24px 0 10px}
details>summary{font-weight:650;cursor:pointer;min-height:28px}
.portal-card{display:block;margin:12px 0}
.portal-card h3{font-size:17px;display:flex;justify-content:space-between;gap:10px}
.portal-card h3 span{color:#1764e8;font-size:22px}
.portal-card p{font-size:13px;color:#6c7f99}
.portal-manage .tabs{background:#eff4fa}
.portal-manage .top{background:linear-gradient(135deg,#24466c,#152d49)}
.portal-manage .crm-logo{color:#3a607f}
.tabs button:focus-visible{outline:2px solid #1764e8;outline-offset:-3px}
body.crm-active{padding-bottom:calc(74px + env(safe-area-inset-bottom))}
body.crm-active .tabs{display:flex}
.sheet{overscroll-behavior:contain;max-height:90vh;max-height:90dvh}
.poster-wrap img{-webkit-touch-callout:default;user-select:auto;-webkit-user-select:auto}
body.keyboard-open .tabs{visibility:hidden}
@media(min-width:600px){body.crm-active{padding-bottom:0}body.crm-active #app{padding-bottom:74px}}
@media(max-width:360px){.crm{padding:16px 12px}.crm h1{font-size:23px}.crm-filter{grid-template-columns:1fr}.crm-actions .crm-btn{flex-grow:1}}
.activity-showcase{background:#edf4ff;border:1px solid #dce8fb;padding:18px;border-radius:18px;margin-bottom:24px}
.activity-showcase>h2{font-size:19px}.activity-showcase>p{font-size:14px;color:#62758a;margin:6px 0 16px}
.activity-feature{display:block;background:white;border-radius:12px;overflow:hidden;margin:12px 0}.activity-feature img{width:100%;height:190px;object-fit:cover;display:block}.activity-feature>div{padding:14px}.activity-feature h3{font-size:17px}.activity-feature p{font-size:14px;color:#62758a;margin-top:6px}
.import-table{max-height:360px;overflow:auto;margin-top:16px}.import-table table{width:100%;border-collapse:collapse}.import-table th,.import-table td{text-align:left;padding:12px;border-bottom:1px solid #dce5f1;font-size:14px}
@media(min-width:900px){
 html:has(body.portal-manage){display:block;overflow:auto;height:auto;background:#f3f6fb}
 body.portal-manage{width:100%;max-width:none;height:auto;min-height:100dvh;border:0;border-radius:0;box-shadow:none;transform:none;overflow:visible;margin:0;padding:0 0 0 210px}
 body.portal-manage #app{height:auto;min-height:100dvh;overflow:visible;padding:28px 36px!important;max-width:1440px;margin:auto}
 body.portal-manage .tabs{position:fixed;left:0;right:auto;top:0;bottom:0;width:210px;padding:30px 15px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:10px;border-right:1px solid #dce5f1;background:#17324f}
 body.portal-manage .tabs:before{content:'协会管理平台';color:white;font-weight:700;font-size:21px;padding:15px 10px 35px}
 body.portal-manage .tabs button{flex:none;min-height:52px;flex-direction:row;justify-content:flex-start;gap:12px;padding:14px;color:#c4d4e8;font-size:16px}
 body.portal-manage .tabs button.on{background:#29517f;color:white;border-radius:10px}
 body.portal-manage .crm{padding:16px 8px;max-width:none}body.portal-manage .crm h1{font-size:30px}
 body.portal-manage .portal-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:25px}
 body.portal-manage .portal-card{margin:0;min-height:145px}.portal-manage .crm-grid{grid-template-columns:repeat(4,1fr)}
 body.portal-manage .crm-tabs{max-width:680px}body.portal-manage .crm-filter{grid-template-columns:repeat(4,1fr)}
 body.portal-manage .sheet{max-width:760px;width:100%;max-height:90dvh;border-radius:20px;margin:5dvh auto}.portal-manage .mask{align-items:center}
 body.portal-manage .crm-card{padding:22px}.portal-manage .crm-line{font-size:15px}
 body.portal-manage #account-login{max-width:520px}.portal-manage .top{border-radius:18px}.portal-manage .wrap{padding:24px 0}
}
@media(min-width:900px){
 body.portal-manage #app{padding:14px 24px!important}
 body.portal-manage .crm{padding:8px 0}
 body.crm-active .crm-top{min-height:28px}body.crm-active .crm-top .crm-btn{min-height:30px;padding:4px 10px}
 body.crm-active .crm h1{font-size:24px;margin:2px 0 8px}body.crm-active .crm-sub{display:none}
 body.crm-active .crm-tabs{margin:6px 0 12px}body.crm-active .crm-tabs button{min-height:34px;padding:6px}
 body.crm-active .crm-actions{margin-top:8px}body.crm-active .crm-btn{min-height:32px;padding:6px 10px;font-size:13px}
 body.crm-active .crm input,body.crm-active .crm select{min-height:34px;font-size:13px;padding:7px 9px}
 #crm-search{display:grid;grid-template-columns:minmax(160px,2fr) repeat(4,minmax(100px,1fr));gap:8px;align-items:center}
 #crm-search>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 #crm-search .crm-search{margin:0}#crm-search .crm-filter{display:contents}#crm-search .crm-actions{grid-column:1/-1;margin:0}
 body.crm-active .crm-listbar{margin:8px 0}.crm-table td{padding:8px 10px}.crm-table th{padding:9px 10px}
 body.crm-active .crm-card{margin:8px 0}.crm-demo{padding:7px 10px;margin-bottom:8px}
}

.work-group{margin:22px 0}.work-group h2,.collection-page h2{font-size:18px;color:#203954;margin:0 0 12px}
.work-group>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));border:1px solid #dce5ee;background:#fff;border-radius:14px;overflow:hidden}
.work-group a{padding:15px 18px;display:grid;gap:6px;text-decoration:none;color:#234667;border-bottom:1px solid #edf1f6}.work-group a:hover,.work-group a:focus-visible{background:#f1f6ff}
.work-group small,.collection-page>p,.collection-page aside p{color:#536981;line-height:1.6}.permission-group{margin:14px 0;border:1px solid #dae4ef;background:white;border-radius:12px;padding:13px 16px}
.permission-group summary,.action-menu summary,.event-more summary{padding:6px 0;color:#31577b;cursor:pointer}
.action-menu,.event-more{position:relative}.action-menu>div,.event-more>div{background:white;border:1px solid #dbe5f0;display:flex;gap:5px;padding:8px;border-radius:9px;flex-wrap:wrap}
.collection-page{max-width:1080px;margin:0 auto}.collection-page .back-link{color:#325e88;text-decoration:none;font-size:14px}
.collection-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr);gap:20px;align-items:start;margin:20px 0}
.collection-layout>section,.collection-layout aside,.collection-page footer{background:white;border:1px solid #dae3ed;border-radius:14px;padding:20px}
.collection-layout aside{position:sticky;top:20px}.collection-layout aside select{width:100%;margin-top:6px}.collection-layout aside p{font-size:13px}
.collection-page [data-preview]{display:flex;flex-wrap:wrap;gap:6px}.collection-page [data-preview] span{border-radius:6px;background:#edf3fa;color:#315678;padding:5px 8px;font-size:13px;overflow-wrap:anywhere}
.field-group h3{margin:20px 0 4px;padding-bottom:8px;border-bottom:1px solid #e6edf4;color:#45637f;font-size:14px}
.setting-row{display:flex;align-items:center;gap:10px;margin:8px 0}.setting-row.off{background:#f6f8fa}.setting-row input[type=text]{width:0;flex:1;margin:0}.setting-row .setting-toggle{display:flex;align-items:center;gap:6px;min-height:40px;color:#33557b;margin:0}
.collection-page footer{display:flex;align-items:center;justify-content:space-between;gap:14px}.collection-page footer small{display:block;color:#62768c;margin-top:5px}.collection-page footer button{flex-shrink:0}.collection-page footer button:disabled{opacity:.55}
@media(max-width:720px){.collection-layout{grid-template-columns:1fr;gap:12px}.collection-layout aside{position:static}.collection-layout>section,.collection-layout aside,.collection-page footer{padding:14px}.work-group>div{grid-template-columns:1fr 1fr}.work-group a{padding:12px}.crm-listbar{gap:6px;flex-wrap:wrap}}

.collection-page [data-preview]{display:block}.preview-line{padding:9px 0;border-bottom:1px solid #e4ebf1;display:grid;gap:4px;color:#294865;font-size:13px}
.collection-page .preview-line span{display:block;font-size:13px;background:transparent;color:#657789;padding:0}.collection-page .preview-line .sample-input{border:1px solid #dbe5ee;padding:6px 9px;background:#f8fafc}.collection-page [data-preview] details{margin-top:10px;font-size:13px}
