@media (max-width: 991.98px) {
	:root {
		--tt-m-bg: #f7f3f5;
		--tt-m-card: #ffffff;
		--tt-m-line: #f0e1e8;
		--tt-m-text: #30262b;
		--tt-m-muted: #9a828d;
		--tt-m-pink: #e96486;
		--tt-m-deep: #c24463;
		--tt-m-radius: 16px;
	}
	html, body {
		background: var(--tt-m-bg);
		color: var(--tt-m-text);
		font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
		-webkit-text-size-adjust: 100%;
	}
	body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
	#body { padding-top: 10px; }
	#body .container { padding-left: 12px; padding-right: 12px; max-width: 100%; }
	#body .row { margin-left: -6px; margin-right: -6px; }
	#body [class*="col-"] { padding-left: 6px; padding-right: 6px; }

	/* 卡片 / 通用文字 */
	.card {
		border: 1px solid var(--tt-m-line);
		border-radius: var(--tt-m-radius);
		background: var(--tt-m-card);
		box-shadow: 0 5px 18px rgba(150, 80, 105, .06);
		margin-bottom: 12px;
		overflow: hidden;
	}
	.card-header {
		padding: 12px 14px;
		background: #fff;
		border-bottom: 1px solid var(--tt-m-line);
		font-size: 14px;
		font-weight: 700;
		color: var(--tt-m-text);
	}
	.card-body { padding: 13px 14px; }
	.card-footer { background: #fffafc; border-top: 1px solid var(--tt-m-line); }
	.text-muted, .text-grey { color: var(--tt-m-muted) !important; }
	.small { font-size: 12.5px; }
	.line-height-2, .line-height-3 { line-height: 1.75; }

	/* 按钮 / 表单 */
	.btn { border-radius: 12px; font-size: 14px; }
	.btn-primary {
		border: 0;
		background: linear-gradient(135deg, var(--tt-m-pink), var(--tt-m-deep));
		box-shadow: 0 5px 14px rgba(226, 100, 134, .22);
	}
	.btn-secondary { background: #f4e9ee; border-color: #f0dae4; color: #8d6474; }
	.btn-block { min-height: 44px; line-height: 1.8; font-weight: 600; }
	.form-control, .custom-select {
		min-height: 44px;
		border: 1px solid #ead6e0;
		border-radius: 12px;
		background: #fff;
		font-size: 16px;
		color: var(--tt-m-text);
	}
	.form-control:focus, .custom-select:focus {
		border-color: #e9a8bd;
		box-shadow: 0 0 0 3px rgba(233, 100, 134, .12);
	}
	textarea.form-control { min-height: 180px; line-height: 1.7; }
	.custom-select { height: 44px; }

	/* 首页轮播 / 广告长图 */
	.carousel, .carousel-inner, .carousel-item, .tt-adlong {
		border-radius: var(--tt-m-radius);
		overflow: hidden;
	}
	.carousel { margin-bottom: 12px; background: #1b1820; }
	.carousel-item img { width: 100%; height: auto; display: block; }
	.tt-adlong-img, .tt-adlong { margin-bottom: 12px; }

	/* 帖子列表 */
	.card-threadlist { overflow: hidden; }
	.card-threadlist .card-header { padding: 10px 12px; }
	.card-threadlist .card-header .nav-tabs { border: 0; }
	.card-threadlist .card-header .nav-link {
		padding: 6px 12px; border: 0; border-radius: 10px;
		color: var(--tt-m-muted); font-size: 13px;
	}
	.card-threadlist .card-header .nav-link.active {
		background: #fff0f5; color: var(--tt-m-deep); font-weight: 700;
	}
	.threadlist { padding: 0; }
	.thread {
		display: flex; align-items: flex-start; gap: 10px;
		padding: 13px 13px 12px; margin: 0;
		border-bottom: 1px solid #f8edf2;
		background: #fff;
	}
	.thread:last-child { border-bottom: 0; }
	.thread .avatar-3 {
		width: 38px; height: 38px; border-radius: 50%;
		object-fit: cover; border: 1px solid #f1dbe5; flex: 0 0 38px;
	}
	.thread .media-body { min-width: 0; width: 100%; }
	.thread .subject { line-height: 1.5; }
	.thread .subject a {
		display: block; font-size: 15px; font-weight: 650;
		color: var(--tt-m-text); text-decoration: none;
		overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	}
	.thread .subject a:active { color: var(--tt-m-deep); }
	.thread .subject .icon { opacity: .7; }
	.thread .mt-1 { margin-top: 5px !important; }
	.thread .date, .thread .username { font-size: 11.5px; }
	.thread .hidden-sm { display: inline !important; }
	.thread .icon-comment-o { color: var(--tt-m-muted); }
	.thread .text-muted small { font-size: 12px; }

	/* 侧栏：手机端接在内容下方 */
	.aside { width: 100%; margin-top: 14px; }
	.aside > .btn-block { display: none !important; }
	.aside .card, .aside .tt-rank-card, .aside .tt-sidead, .aside .tt-sign-card {
		border-radius: var(--tt-m-radius);
		margin-top: 12px;
	}
	.aside .tt-sidead { margin-left: 0; margin-right: 0; }

	/* 版块 / 帖子详情 */
	.tt-forum-cover { max-height: 160px; }
	.thread .message, .message { font-size: 15px; line-height: 1.82; }
	.postlist .media, .postlist .post { padding: 14px; }
	.postlist .avatar-5 { width: 42px; height: 42px; }

	/* 分页 / 提示 */
	.pagination { gap: 4px; margin: 10px 0 4px; }
	.pagination .page-link {
		min-width: 34px; height: 34px; line-height: 32px; padding: 0 8px;
		border-radius: 10px !important; border-color: #efdce6; color: #a5687d;
	}
	.pagination .page-item.active .page-link {
		background: var(--tt-m-deep); border-color: var(--tt-m-deep); color: #fff;
	}
	.alert { border-radius: 12px; font-size: 13px; }

	/* 弹窗 / 下拉 */
	.modal-dialog { margin: 12px auto; max-width: calc(100% - 24px); }
	.modal-content { border: 0; border-radius: 18px; overflow: hidden; }
	.modal-header, .modal-footer { padding: 13px 16px; border-color: #f3e5ec; }
	.dropdown-menu { border-radius: 14px; border-color: #efdce6; box-shadow: 0 12px 30px rgba(100,50,70,.16); }

	/* 页脚 */
	footer, .footer { padding-bottom: 18px; }
	.footer, footer .container { font-size: 12px; color: var(--tt-m-muted); }

	/* 管理工具：窄屏表单换行，避免撑宽页面 */
	.ba-row { flex-wrap: wrap; gap: 7px; }
	.ba-row label { flex: 0 0 64px; width: 64px; font-size: 12px; }
	.ba-row .form-control, .ba-row .custom-select { flex: 1 1 140px; min-width: 0; max-width: 100% !important; }
	.ba-delrow { flex-wrap: wrap; }
	.ba-delrow .form-control { flex: 1 1 100%; min-width: 0; max-width: 100%; }
	.ba-delrow .ba-btn { margin-left: auto; }
	.ba-app-form .form-control { flex: 1 1 100%; max-width: 100% !important; }
	.ba-btn { padding: 9px 18px; font-size: 12.5px; }
	.ba-words-details summary { font-size: 13px; }

	/* 通用可点击区域 */
	a { -webkit-tap-highlight-color: transparent; }
}
