/* Tianmeng Discuz X5 page patch */
:root{--tm-bg:#f8f2fa;--tm-card:#fff;--tm-soft:#fff7fb;--tm-mint:#effffb;--tm-line:rgba(202,177,198,.5);--tm-text:#4c3d50;--tm-muted:#817185;--tm-primary:#c690bd;--tm-deep:#9e6a99;--tm-danger:#d77f91;--tm-shadow:0 16px 38px rgba(149,94,140,.13)}
.tmpage,.tmpage *{box-sizing:border-box}.tmpage{width:min(1180px,calc(100vw - 32px));margin:18px auto 36px;color:var(--tm-text)}.tmpage a{color:inherit;text-decoration:none}.tmhero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;margin-bottom:14px;padding:22px;border:1px solid var(--tm-line);border-radius:24px;background:radial-gradient(circle at 8% 0,rgba(198,144,189,.22),transparent 34%),radial-gradient(circle at 92% 12%,rgba(169,221,210,.35),transparent 30%),linear-gradient(135deg,#fff,#fff7fb 62%,#effffb);box-shadow:var(--tm-shadow);overflow:hidden}.tmhero-main{display:flex;align-items:center;gap:14px;min-width:0}.tmhero-icon{display:grid;place-items:center;flex:0 0 64px;width:64px;height:64px;overflow:hidden;border-radius:22px;background:rgba(255,255,255,.72);box-shadow:inset 0 0 0 1px rgba(255,255,255,.8),0 10px 24px rgba(198,144,189,.18)}.tmhero-icon img,.tmhero-icon a img,.tmhero-icon svg{display:block;max-width:48px!important;max-height:48px!important;object-fit:contain;border-radius:16px}.tmhero h1{margin:0;font-size:30px;line-height:1.18;font-weight:900;letter-spacing:0}.tmhero p{margin:8px 0 0;color:var(--tm-muted);font-size:14px;line-height:1.65}.tmactions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.tmbtn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 15px;border:1px solid rgba(198,144,189,.45);border-radius:999px;background:#fff;color:var(--tm-deep)!important;font-weight:900;text-decoration:none!important;white-space:nowrap}.tmbtn.primary{border-color:transparent;background:var(--tm-primary);color:#fff!important;box-shadow:0 10px 20px rgba(198,144,189,.24)}.tmtabs{display:flex;gap:8px;margin:0 0 12px;padding:0;overflow:auto;scrollbar-width:none}.tmtabs::-webkit-scrollbar{display:none}.tmtabs li{flex:0 0 auto;list-style:none}.tmtabs a,.tmtabs span{display:inline-flex;align-items:center;min-height:36px;padding:0 13px;border:1px solid var(--tm-line);border-radius:999px;background:#fff;color:var(--tm-muted);font-weight:900}.tmtabs .a a,.tmtabs .mon a,.tmtabs a.active{background:#fff0f7;color:var(--tm-deep);border-color:rgba(198,144,189,.65)}.tmpanel{margin-bottom:14px;border:1px solid var(--tm-line);border-radius:22px;background:#fff;box-shadow:var(--tm-shadow);overflow:hidden}.tmpanel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px 12px;border-bottom:1px solid rgba(234,220,234,.78);background:linear-gradient(180deg,#fff,#fffafd)}.tmpanel-head h2{margin:0;font-size:18px;font-weight:900}.tmpanel-body{padding:14px}.tmempty{padding:28px 16px;border:1px dashed rgba(202,177,198,.7);border-radius:18px;background:#fffafd;color:var(--tm-muted);text-align:center;font-weight:800}.tmpager{margin:14px 0;text-align:center}.tmpager .pg,.tmpager .pgb{float:none!important;display:inline-flex;gap:5px;flex-wrap:wrap;justify-content:center}
.tmfd-layout{display:grid;grid-template-columns:minmax(0,1fr)280px;gap:16px;align-items:start}.tmfd-side{position:sticky;top:76px}.tmfd-side .tmpanel-body a{display:block;margin-bottom:8px;padding:10px 12px;border-radius:14px;background:var(--tm-soft);font-weight:800}.tmfd-forum-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.tmfd-forum-meta span{padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.7);color:var(--tm-muted);font-size:12px;font-weight:800}.tmthread-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.tmfilters{display:flex;gap:8px;overflow:auto;scrollbar-width:none}.tmfilters::-webkit-scrollbar{display:none}.tmfilters a,.tmfilters span{flex:0 0 auto;display:inline-flex;align-items:center;height:34px;padding:0 12px;border:1px solid var(--tm-line);border-radius:999px;background:#fff;color:var(--tm-muted);font-size:12px;font-weight:900}.tmfilters .kmon,.tmfilters .active{background:#fff0f7;color:var(--tm-deep);border-color:rgba(198,144,189,.65)}.tmthread-list{display:grid;gap:12px;margin:0;padding:0;list-style:none}.tmthread-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr)86px;gap:12px;padding:15px;border:1px solid rgba(202,177,198,.45);border-radius:20px;background:#fff;box-shadow:0 10px 26px rgba(149,94,140,.09)}.tmthread-main{min-width:0}.tmthread-title{display:flex;align-items:center;gap:7px;min-width:0;margin-bottom:8px;color:var(--tm-text);font-size:17px;font-weight:900;line-height:1.42}.tmthread-title .km_subject{overflow:hidden;text-overflow:ellipsis}.tmthread-badge,.tmthread-title .kmico{display:inline-flex;align-items:center;min-height:20px;padding:0 7px;border-radius:999px;background:#fff0f7;color:var(--tm-danger);font-size:11px;font-style:normal;font-weight:900;white-space:nowrap}.tmthread-excerpt{display:-webkit-box;overflow:hidden;color:var(--tm-muted);font-size:13px;line-height:1.6;-webkit-line-clamp:2;-webkit-box-orient:vertical}.tmthread-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:10px;max-width:520px}.tmthread-images.one{grid-template-columns:minmax(0,260px)}.tmthread-images a{position:relative;overflow:hidden;border-radius:14px;background:var(--tm-soft)}.tmthread-images img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}.tmthread-more{position:absolute;inset:auto 6px 6px auto;padding:2px 7px;border-radius:999px;background:rgba(76,61,80,.78);color:#fff;font-size:12px}.tmthread-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:11px;color:var(--tm-muted);font-size:12px}.tmthread-foot .avatar img{width:26px;height:26px;border-radius:10px}.tmthread-foot a{font-weight:800}.tmthread-stats{display:grid;align-content:center;gap:8px;text-align:right;color:var(--tm-muted);font-size:12px}.tmthread-stats strong{display:block;color:var(--tm-deep);font-size:20px;font-weight:900}.tmthread-mod{position:absolute;right:12px;top:12px}.tmthread-hidden{display:none}.tmimg-waterfall{padding:14px}.tmg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}.tmg-card{padding:14px;border:1px solid rgba(202,177,198,.45);border-radius:18px;background:#fff;box-shadow:0 10px 26px rgba(149,94,140,.09)}.tmg-card-head{display:flex;gap:12px;align-items:center}.tmg-card img{width:52px;height:52px;border-radius:18px;object-fit:cover}.tmg-card h3{margin:0;font-size:16px;font-weight:900}.tmg-card p{margin:6px 0 0;color:var(--tm-muted);font-size:12px;line-height:1.5}.tmg-card-foot{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;color:var(--tm-muted);font-size:12px}.tmfeed-list,.tmnotice-list,.tmpm-list{display:grid;gap:12px}.tmfeed-card,.tmnotice-card,.tmpm-card{display:grid;grid-template-columns:46px minmax(0,1fr);gap:12px;padding:14px;border:1px solid rgba(202,177,198,.45);border-radius:20px;background:#fff;box-shadow:0 10px 26px rgba(149,94,140,.09)}.tmfeed-avatar img,.tmnotice-avatar img,.tmpm-avatar img{width:46px!important;height:46px!important;border-radius:16px!important;object-fit:cover}.tmfeed-name,.tmnotice-name,.tmpm-name{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}.tmfeed-name strong,.tmnotice-name strong,.tmpm-name strong{font-weight:900}.tmfeed-name em,.tmnotice-name em,.tmpm-name em{color:var(--tm-muted);font-size:12px;font-style:normal;white-space:nowrap}.tmfeed-text,.tmnotice-text,.tmpm-preview{color:var(--tm-text);font-size:14px;line-height:1.65}.tmfeed-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.tmfeed-actions a{padding:6px 10px;border-radius:999px;background:var(--tm-soft);color:var(--tm-muted);font-size:12px;font-weight:800}.tmpm-badge{display:inline-flex;min-width:20px;height:20px;align-items:center;justify-content:center;border-radius:999px;background:var(--tm-danger);color:#fff;font-size:11px}.tmpm-compose{position:sticky;bottom:0;display:flex;gap:8px;padding:10px;background:rgba(248,242,250,.9);backdrop-filter:blur(12px)}.tmpm-compose input[type=text]{flex:1;min-width:0;height:42px;padding:0 14px;border:1px solid var(--tm-line);border-radius:999px;background:#fff}.tmpm-compose input[type=button]{height:42px;padding:0 16px;border:0;border-radius:999px;background:var(--tm-primary);color:#fff;font-weight:900}.tmprofile-grid{display:grid;grid-template-columns:280px minmax(0,1fr);gap:14px}.tmprofile-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}.tmprofile-stat{padding:12px;border:1px solid rgba(202,177,198,.45);border-radius:16px;background:#fff}.tmprofile-stat strong{display:block;color:var(--tm-deep);font-size:22px;font-weight:900}.tmprofile-stat span{color:var(--tm-muted);font-size:12px}.tmprofile-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}.tmprofile-links a{display:block;padding:11px 12px;border-radius:14px;background:var(--tm-soft);font-weight:900}.tmprofile-info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tmprofile-row{padding:11px 12px;border:1px solid rgba(234,220,234,.95);border-radius:15px;background:#fffbfe}.tmprofile-row b{display:block;margin-bottom:5px;color:var(--tm-muted);font-size:12px}.tmprofile-row span{display:block;overflow:hidden;font-weight:800;text-overflow:ellipsis}.tmpost-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:14px}.tmpost-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.tmpost-cols>li{height:430px;overflow:auto;border:1px solid rgba(234,220,234,.95);border-radius:18px;background:#fffbfe;list-style:none}.tmpost-cols a{display:flex;align-items:center;min-height:40px;margin:7px;padding:8px 12px;border:1px solid transparent;border-radius:14px;font-weight:900}.tmpost-cols .pbls a,.tmpost-cols a:hover{background:#fff;border-color:rgba(198,144,189,.45);color:var(--tm-deep)}.tmpost-selected{color:var(--tm-muted);font-size:13px}
@media(max-width:960px){.tmpage{width:100%;padding:0 10px;margin-top:10px;margin-bottom:88px}.tmhero{grid-template-columns:1fr;padding:15px;border-radius:20px}.tmhero-main{gap:11px}.tmhero-icon{flex-basis:52px;width:52px;height:52px;border-radius:18px}.tmhero-icon img,.tmhero-icon a img,.tmhero-icon svg{max-width:38px!important;max-height:38px!important}.tmhero h1{font-size:23px}.tmhero p{font-size:13px}.tmactions{display:grid;grid-template-columns:1fr 1fr;justify-content:stretch}.tmbtn{min-height:38px;padding:0 12px}.tmpanel{border-radius:18px;margin-bottom:10px}.tmpanel-head{padding:12px}.tmpanel-body{padding:10px}.tmfd-layout,.tmprofile-grid,.tmpost-layout{display:block}.tmfd-side{position:static}.tmthread-tools{display:grid;gap:8px}.tmthread-card{grid-template-columns:1fr;padding:12px;border-radius:17px}.tmthread-title{font-size:15px;margin-bottom:6px}.tmthread-excerpt{font-size:13px;-webkit-line-clamp:2}.tmthread-stats{display:flex;text-align:left;gap:12px}.tmthread-stats strong{display:inline;font-size:13px}.tmthread-foot{gap:6px;font-size:12px}.tmthread-images{gap:5px}.tmg-grid{grid-template-columns:1fr}.tmfeed-card,.tmnotice-card,.tmpm-card{grid-template-columns:38px minmax(0,1fr);gap:9px;padding:11px;border-radius:17px}.tmfeed-avatar img,.tmnotice-avatar img,.tmpm-avatar img{width:38px!important;height:38px!important;border-radius:13px!important}.tmfeed-name,.tmnotice-name,.tmpm-name{align-items:flex-start;flex-direction:column;gap:2px}.tmprofile-info{grid-template-columns:1fr}.tmprofile-links{grid-template-columns:repeat(2,minmax(0,1fr))}.tmpost-cols{grid-template-columns:1fr;gap:8px}.tmpost-cols>li{height:auto;max-height:30vh;border-radius:15px}.tmpost-cols a{min-height:38px;margin:6px;font-size:13px}}
.tmthread-foot .tm-stat{display:inline-flex;align-items:center;gap:3px;color:var(--tm-muted);font-size:12px;font-weight:800}.tmthread-foot .tm-stat i{color:var(--tm-deep);font-size:15px;font-style:normal}.tmthread-card{grid-template-columns:minmax(0,1fr)}.tm-moderate-bar{display:none;position:sticky;bottom:12px;z-index:5;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 0;padding:10px 12px;border:1px solid var(--tm-line);border-radius:16px;background:rgba(255,255,255,.94);box-shadow:0 14px 30px rgba(149,94,140,.16);backdrop-filter:blur(10px)}.tm-moderate-bar.is-visible{display:flex}.tm-moderate-bar strong{margin-right:auto;color:var(--tm-deep);font-size:13px}.tm-moderate-bar button{height:32px;padding:0 10px;border:1px solid var(--tm-line);border-radius:999px;background:var(--tm-soft);color:var(--tm-deep);font-size:12px;font-weight:900;cursor:pointer}.tm-moderate-bar button.danger{background:#fff0f5;color:var(--tm-danger)}.tmdo-compose-panel{margin-bottom:14px}.tmdo-compose-panel .tmpanel-head span{color:var(--tm-muted);font-size:12px}.tmdo-compose .moodfm_post{display:grid;gap:10px}.tmdo-compose .moodfm_text textarea{display:block;width:100%;min-height:92px;padding:12px 14px;border:1px solid var(--tm-line);border-radius:16px;background:#fffbfe;color:var(--tm-text);font:inherit;line-height:1.6;resize:vertical}.tmdo-compose .moodfm_text textarea:focus{outline:0;border-color:var(--tm-primary);box-shadow:0 0 0 3px rgba(198,144,189,.14)}.tmdo-compose .moodfm_f{display:flex;justify-content:flex-end}.tmdo-compose .moodfm_btn{padding:0}.tmdo-compose .tmbtn{height:36px;min-height:36px}.tmdo-upload-icon{display:block;font-size:26px;line-height:1;color:var(--tm-primary)}.tmdo-compose .specialpost{overflow:auto}.tmdo-compose .image-main{display:flex;gap:8px;flex-wrap:wrap}.tmdo-compose .image-upload{position:relative;display:grid;place-items:center;align-content:center;gap:2px;width:84px;height:84px;border:1px dashed rgba(198,144,189,.75);border-radius:14px;background:var(--tm-soft);color:var(--tm-muted);font-size:11px;text-align:center}.tmdo-compose .image-upload .file{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.tmdo-preview{position:relative;width:84px;height:84px;overflow:hidden;border-radius:14px;background:var(--tm-soft)}.tmdo-preview img{width:100%;height:100%;object-fit:cover}.tmdo-preview-remove{position:absolute;right:4px;top:4px;z-index:1;width:20px;height:20px;border:0;border-radius:50%;background:rgba(76,61,80,.75);color:#fff;line-height:20px;cursor:pointer}.tmgroup-page .tmhero form{margin:0}.tmgroup-page .tmhero button{font:inherit;cursor:pointer}.tmgroup-members{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}.tmgroup-member{padding:12px;border:1px solid rgba(202,177,198,.45);border-radius:16px;background:#fff;text-align:center}.tmgroup-member img{display:block;width:58px;height:58px;margin:0 auto 8px;border-radius:20px;object-fit:cover}.tmgroup-member strong{display:block;font-size:13px}.tmgroup-member small{display:block;margin-top:5px;color:var(--tm-muted)}.tmgroup-form{display:grid;gap:10px}.tmgroup-form label{display:grid;gap:6px;color:var(--tm-muted);font-size:12px;font-weight:800}.tmgroup-form input,.tmgroup-form select,.tmgroup-form textarea{width:100%;min-height:40px;padding:9px 12px;border:1px solid var(--tm-line);border-radius:12px;background:#fffbfe;color:var(--tm-text);font:inherit}.tmgroup-form textarea{min-height:100px;resize:vertical}
.tmnotice-page,.tmpm-page{max-width:920px}.tmpm-page>.tmhero{margin-bottom:14px}.tmpm-page .tmpm-item{display:grid}.tmsp-page .btn_exit,.tmsp-page .btn_admincp{display:none!important}.tmfd-subforums .tmg-card{display:block;color:inherit}.tmfd-subforums .tmhero-icon{width:52px;height:52px;flex-basis:52px}.tmfd-subforums .tmhero-icon img{width:38px!important;height:38px!important}.tmselect-page{max-width:1120px}.tmselect-page .tmselect-shell{display:grid;grid-template-columns:250px minmax(0,1fr);gap:14px}.tmselect-page .tmselect-help{padding:16px;border:1px solid var(--tm-line);border-radius:20px;background:#fff;box-shadow:var(--tm-shadow)}.tmselect-page .tmselect-help h2{margin:0 0 8px;font-size:17px}.tmselect-page .tmselect-help p{margin:0;color:var(--tm-muted);font-size:13px;line-height:1.65}.tmselect-page .tmselect-picker{padding:14px;border:1px solid var(--tm-line);border-radius:20px;background:#fff;box-shadow:var(--tm-shadow)}.tmselect-page .tmselect-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none}.tmselect-page .tmselect-cols>li{min-width:0;height:430px;overflow:auto;border:1px solid rgba(234,220,234,.95);border-radius:16px;background:#fffbfe;list-style:none}.tmselect-page .tmselect-cols .forum-level-title{position:sticky;top:0;z-index:1;padding:11px 12px;border-bottom:1px solid rgba(234,220,234,.95);background:#fff;color:var(--tm-deep);font-size:12px;font-weight:900}.tmselect-page .tmselect-cols p{margin:0}.tmselect-page .tmselect-cols a{display:flex;align-items:center;min-height:42px;margin:6px;padding:8px 11px;border:1px solid transparent;border-radius:12px;color:var(--tm-text);font-size:13px;font-weight:800}.tmselect-page .tmselect-cols a:hover,.tmselect-page .tmselect-cols .pbls a{border-color:rgba(198,144,189,.5);background:#fff0f7;color:var(--tm-deep)}.tmselect-page .tmselect-submit{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}.tmselect-page .tmselect-selected{min-width:0;color:var(--tm-muted);font-size:13px}.tmselect-page .tmselect-submit button{min-width:150px;height:42px;border:0;border-radius:999px;background:var(--tm-primary);color:#fff;font-weight:900}.tmselect-page .tmselect-submit button:disabled{background:#d8cad9}@media(max-width:960px){.tmselect-page .tmselect-shell{display:block}.tmselect-page .tmselect-help{display:none}.tmselect-page .tmselect-picker{padding:9px;border-radius:17px}.tmselect-page .tmselect-cols{grid-template-columns:1fr;gap:8px}.tmselect-page .tmselect-cols>li{height:auto;max-height:27vh;border-radius:14px}.tmselect-page .tmselect-cols>li:empty{display:none}.tmselect-page .tmselect-cols a{min-height:38px;margin:5px}.tmselect-page .tmselect-submit{display:grid}.tmselect-page .tmselect-submit button{width:100%}}
