/* 商家后台样式（深色，与纪念平台同系） */
.mc-layout { display: flex; min-height: 100vh; }
.mc-side { width: 190px; flex-shrink: 0; background: #1c1c22; border-right: 1px solid #33333d; display: flex; flex-direction: column; padding: 20px 0; }
.mc-brand { color: #c9a86a; font-size: 16px; letter-spacing: 2px; padding: 0 18px 20px; line-height: 1.6; }
.mc-brand span { display: block; font-size: 12px; color: #8d877a; letter-spacing: 4px; }
.mc-nav { flex: 1; }
.mc-nav a { display: block; padding: 12px 22px; color: #a09a8c; font-size: 14px; border-left: 3px solid transparent; }
.mc-nav a:hover { color: #ece7db; background: rgba(255,255,255,.03); }
.mc-nav a.on { color: #c9a86a; border-left-color: #c9a86a; background: rgba(201,168,106,.08); }
.mc-side-foot { padding: 14px 18px; font-size: 12px; color: #6d685e; line-height: 1.8; border-top: 1px solid #33333d; }
.mc-side-foot a { color: #a09a8c; text-decoration: underline; }
.mc-main { flex: 1; padding: 24px 28px; min-width: 0; }
.mc-title { font-size: 18px; letter-spacing: 2px; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.mc-title small { font-size: 12px; color: #a09a8c; letter-spacing: 0; }

/* 卡片 */
.mc-card { background: #212128; border: 1px solid #3a3a45; border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; }
.mc-card h3 { font-size: 15px; color: #c9a86a; letter-spacing: 2px; margin-bottom: 14px; }

/* 统计 */
.mc-stat { display: flex; gap: 14px; flex-wrap: wrap; }
.mc-stat-item { flex: 1; min-width: 110px; background: #2a2a33; border: 1px solid #3a3a45; border-radius: 8px; padding: 16px; text-align: center; }
.mc-stat-num { font-size: 26px; color: #c9a86a; }
.mc-stat-label { font-size: 12px; color: #a09a8c; margin-top: 6px; letter-spacing: 1px; }

/* 表单行 */
.mc-row { display: flex; align-items: center; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.mc-row label { width: 90px; font-size: 14px; color: #a09a8c; flex-shrink: 0; }
.mc-input, .mc-select, .mc-textarea {
	background: #2a2a33; border: 1px solid #3a3a45; border-radius: 6px; color: #ece7db;
	font-size: 14px; padding: 9px 12px; outline: none; font-family: inherit;
}
.mc-input:focus, .mc-select:focus, .mc-textarea:focus { border-color: #9a8154; }
.mc-textarea { width: 100%; min-height: 160px; line-height: 1.9; resize: vertical; }
.mc-select { color-scheme: dark; }

/* 按钮 */
.mc-btn {
	background: linear-gradient(135deg, #c9a86a, #a8854e); color: #1c1710; border: none;
	border-radius: 6px; padding: 9px 20px; font-size: 14px; cursor: pointer; letter-spacing: 2px;
}
.mc-btn:hover { opacity: .9; }
.mc-btn-ghost { background: transparent; border: 1px solid #9a8154; color: #c9a86a; }
.mc-btn-danger { background: transparent; border: 1px solid #b0574f; color: #b0574f; }
.mc-btn-sm { padding: 5px 12px; font-size: 13px; letter-spacing: 0; }

/* 表格 */
.mc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mc-table th, .mc-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid #33333d; }
.mc-table th { color: #a09a8c; font-weight: normal; font-size: 13px; }
.mc-table td { color: #ece7db; }
.mc-table tbody tr:hover { background: rgba(255,255,255,.02); }
.mc-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; border: 1px solid; }
.mc-badge.s0 { color: #d8b25c; border-color: #6b5a2c; }
.mc-badge.s1 { color: #7fb07a; border-color: #3f5c3c; }
.mc-badge.s2 { color: #b0574f; border-color: #5c302c; }
.mc-badge.s9 { color: #8d877a; border-color: #3a3a45; }
.mc-empty { text-align: center; padding: 40px; color: #6d685e; font-size: 14px; }

/* 链接框 */
.mc-link-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #2a2a33; border: 1px dashed #9a8154; border-radius: 8px; padding: 14px; }
.mc-link-val { flex: 1; min-width: 220px; color: #c9a86a; font-size: 14px; word-break: break-all; font-family: monospace; }
.mc-qr-box { text-align: center; }
.mc-qr-box img { width: 200px; height: 200px; background: #fff; border-radius: 8px; padding: 6px; }
.mc-flex { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.mc-col { flex: 1; min-width: 260px; }

/* 详情页 */
.mc-preview { background: #17171c; border: 1px solid #3a3a45; border-radius: 10px; padding: 20px; text-align: center; }
.mc-preview h2 { font-size: 24px; letter-spacing: 8px; margin-bottom: 8px; }
.mc-preview .mc-pv-dates { color: #a09a8c; font-size: 13px; }
.mc-preview img { max-width: 100%; border-radius: 6px; margin: 8px 4px; height: 140px; object-fit: cover; }
.mc-preview video { width: 100%; border-radius: 6px; margin-top: 10px; }
.mc-preview p { font-size: 14px; line-height: 1.9; text-align: left; color: #ece7db; }
.mc-sec-title { color: #c9a86a; font-size: 13px; letter-spacing: 2px; margin: 14px 0 6px; text-align: left; }
.mc-photo-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.mc-dyn-row { display: flex; gap: 8px; margin-bottom: 8px; width: 100%; }
.mc-dyn-row .mc-input { flex: 1; }
.mc-pager { margin-top: 16px; text-align: center; font-size: 13px; color: #a09a8c; }
.mc-pager a { color: #c9a86a; margin: 0 6px; }

/* 表格横向滚动容器（中屏兜底，移动端改为卡片流） */
.mc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }

/* 列表表格：保证操作列一排放得下所有按钮，放不下时横向滚动而不是折行 */
.mc-table.mc-table-list { min-width: 920px; }
.mc-td-act { white-space: nowrap; }
.mc-side-foot .mc-co { display: block; }

/* 上传控件 */
.mc-photo-item { position: relative; width: 80px; height: 80px; flex-shrink: 0; }
.mc-photo-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; display: block; }
.mc-photo-item .mc-del {
	position: absolute; top: 0; right: 0; width: 18px; height: 18px; line-height: 16px; text-align: center;
	background: rgba(0,0,0,.6); color: #fff; border: none; font-size: 12px; cursor: pointer; padding: 0;
}
.mc-photo-item .mc-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,.5); }
.mc-photo-item .mc-prog i { display: block; height: 100%; width: 0; background: #c9a86a; transition: width .2s; }
.mc-up-box {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	min-height: 80px; padding: 12px; text-align: center; cursor: pointer;
	background: #2a2a33; border: 1px dashed #9a8154; border-radius: 8px; color: #a09a8c; font-size: 12px;
}
.mc-up-box:hover { border-color: #c9a86a; color: #c9a86a; }
.mc-up-box.disabled { opacity: .5; cursor: not-allowed; }
.mc-up-box .mc-up-icon { font-size: 20px; color: #c9a86a; line-height: 1; }
.mc-prog { height: 6px; background: #2a2a33; border-radius: 3px; overflow: hidden; margin-top: 8px; }
.mc-prog i { display: block; height: 100%; width: 0; background: #c9a86a; transition: width .2s; }
.mc-up-tip { font-size: 12px; margin-top: 6px; }
.mc-up-tip.err { color: #b0574f; }
.mc-up-tip.ok { color: #7fb07a; }
.mc-vpre video { width: 100%; max-width: 360px; border-radius: 6px; margin-top: 8px; background: #000; }

/* 登录页 */
.mc-login { max-width: 360px; margin: 12vh auto; background: #212128; border: 1px solid #3a3a45; border-radius: 12px; padding: 32px 28px; }
.mc-login h1 { text-align: center; font-size: 19px; letter-spacing: 4px; color: #ece7db; margin-bottom: 6px; }
.mc-login .mc-sub { text-align: center; font-size: 12px; color: #8d877a; margin-bottom: 24px; letter-spacing: 2px; }
.mc-login .mc-input { width: 100%; margin-bottom: 14px; }
.mc-login .mc-btn { width: 100%; }
.mc-err { color: #b0574f; font-size: 13px; text-align: center; margin-bottom: 12px; min-height: 18px; }

/* 分页（ThinkPHP Bootstrap 分页器：<ul class="pagination">） */
.mc-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.mc-pager li { display: inline-block; }
.mc-pager li > a, .mc-pager li > span {
	display: block; min-width: 32px; padding: 6px 10px; text-align: center; font-size: 13px;
	border: 1px solid #3a3a45; border-radius: 6px; color: #c9a86a; text-decoration: none; background: #24242c;
}
.mc-pager li.active > span { background: #c9a86a; border-color: #c9a86a; color: #1c1710; }
.mc-pager li.disabled > span { color: #6d685e; }

/* ===== 平板：收紧留白 ===== */
@media (max-width: 1100px) {
	.mc-main { padding: 18px 16px; }
	.mc-side { width: 160px; }
}

/* ===== 移动端 ===== */
@media (max-width: 768px) {
	/* 侧栏 → 顶部导航条 */
	.mc-layout { flex-direction: column; }
	.mc-side {
		width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px;
		padding: 10px 12px; position: sticky; top: 0; z-index: 30; background: #1c1c22;
		border-right: none; border-bottom: 1px solid #33333d;
	}
	.mc-brand { padding: 0; font-size: 14px; letter-spacing: 0; white-space: nowrap; }
	.mc-brand span { display: none; }
	.mc-nav { flex: 1; display: flex; flex-wrap: wrap; gap: 2px; justify-content: flex-end; min-width: 0; }
	.mc-nav a {
		padding: 6px 9px; font-size: 13px; border-left: none;
		border-bottom: 2px solid transparent; border-radius: 4px;
	}
	.mc-nav a.on { border-bottom-color: #c9a86a; }
	/* 退出登录必须保留（原来被 display:none 整块隐藏了） */
	.mc-side-foot { padding: 0; margin-left: 2px; border-top: none; }
	.mc-side-foot .mc-co { display: none; }
	.mc-side-foot a {
		display: inline-block; padding: 6px 9px; font-size: 12px; color: #a09a8c;
		border: 1px solid #3a3a45; border-radius: 4px; text-decoration: none; white-space: nowrap;
	}

	.mc-main { padding: 14px 12px 40px; }
	.mc-title { font-size: 16px; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
	.mc-title small { width: 100%; }
	.mc-title span { margin-left: 0 !important; width: 100%; }
	.mc-title span .mc-btn { display: inline-block; margin: 0 8px 4px 0; }
	.mc-card { padding: 14px 12px; border-radius: 8px; margin-bottom: 12px; }

	/* 表单：标签独占一行，控件满宽 */
	.mc-row { flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
	.mc-row > label { width: 100% !important; font-size: 13px; }
	.mc-row > .mc-input, .mc-row > .mc-select { width: 100%; flex: 1 1 100%; }
	.mc-dyn-row .mc-input { min-width: 0; }
	.mc-textarea { min-height: 130px; }

	/* 统计：三列自适应 */
	.mc-stat { gap: 8px; }
	.mc-stat-item { flex: 1 1 calc(33.33% - 8px); min-width: 0; padding: 12px 6px; }
	.mc-stat-num { font-size: 21px; }
	.mc-stat-label { font-size: 11px; }

	/* 列表表格 → 卡片流 */
	.mc-table-wrap { overflow: visible; margin: 0; padding: 0; }
	.mc-table.mc-table-list, .mc-table.mc-table-list tbody,
	.mc-table.mc-table-list tr, .mc-table.mc-table-list td { display: block; width: 100%; min-width: 0; }
	.mc-table.mc-table-list td.mc-td-act { white-space: normal; }
	.mc-table.mc-table-list thead { display: none; }
	.mc-table.mc-table-list tr {
		background: #24242c; border: 1px solid #3a3a45; border-radius: 8px;
		margin-bottom: 10px; padding: 8px 0;
	}
	.mc-table.mc-table-list td {
		display: block; border-bottom: none; padding: 5px 14px;
		font-size: 13px; line-height: 1.7; word-break: break-all;
	}
	.mc-table.mc-table-list td::before {
		content: attr(data-label); display: inline-block; min-width: 60px; margin-right: 10px;
		color: #8d877a; font-size: 12px;
	}
	.mc-table.mc-table-list td.mc-empty { text-align: center; padding: 30px; }
	.mc-table.mc-table-list td.mc-empty::before { content: none; }
	.mc-table.mc-table-list td.mc-td-act { padding-top: 4px; padding-bottom: 10px; }
	.mc-table td .mc-btn { display: inline-block; margin: 4px 6px 0 0; }

	/* 详情表格 → 上下两行堆叠 */
	.mc-table.mc-table-detail th, .mc-table.mc-table-detail td { display: block; width: 100%; }
	.mc-table.mc-table-detail th {
		border-bottom: none; padding: 10px 14px 2px; font-size: 12px; width: auto !important;
	}
	.mc-table.mc-table-detail td {
		border-bottom: 1px solid #33333d; padding: 0 14px 10px; word-break: break-all;
	}
	.mc-table.mc-table-detail tr:last-child td { border-bottom: none; }

	/* 其它 */
	.mc-link-box { padding: 12px; }
	.mc-link-val { min-width: 0; font-size: 13px; }
	.mc-qr-box img { width: 160px; height: 160px; }
	.mc-flex { gap: 12px; flex-direction: column; align-items: stretch; }
	.mc-col { min-width: 0; width: 100%; }
	.mc-up-box { min-height: 74px; }
	.mc-vpre video { max-width: 100%; }
	.mc-preview { padding: 14px; }
	.mc-preview h2 { font-size: 21px; letter-spacing: 6px; }
	.mc-pager li > a, .mc-pager li > span { min-width: 34px; padding: 8px 10px; }
	.mc-login { max-width: none; margin: 8vh 16px; padding: 24px 18px; }
}

@media (max-width: 380px) {
	.mc-stat-item { flex: 1 1 calc(50% - 8px); }
	.mc-brand { font-size: 13px; }
	.mc-nav a { padding: 6px 8px; font-size: 12px; }
}
