body.works-detail-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: linear-gradient(180deg, #f0f7fb 0%, #f5f5f5 280px, #f5f5f5 100%);
}

.works-detail-main {
	flex: 1;
	padding: 32px 0 48px;
}

.works-detail-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(35, 166, 213, 0.08);
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.works-detail-header {
	padding: 28px 32px 0;
}

.works-detail-title {
	font-size: 26px;
	font-weight: 600;
	color: #2c3e50;
	margin: 0 0 12px;
	line-height: 1.4;
}

.works-detail-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 8px;
}

.works-detail-cover {
	margin-bottom: 16px;
	border-radius: 12px;
	overflow: hidden;
	background: #eef1f4;
}

.works-detail-cover img {
	display: block;
	width: 100%;
	max-height: 320px;
	object-fit: cover;
}

.works-detail-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
}

.works-detail-badge.card {
	background: rgba(35, 166, 213, 0.12);
	color: #1d8eb8;
}

.works-detail-badge.image {
	background: rgba(231, 60, 126, 0.1);
	color: #c7336f;
}

.works-detail-badge.content {
	background: rgba(40, 167, 69, 0.1);
	color: #218838;
}

.works-detail-body {
	padding: 24px 32px 32px;
}

.works-detail-content {
	background: #fafbfc;
	border: 1px solid #eef1f4;
	border-radius: 12px;
	padding: 24px;
	min-height: 120px;
	line-height: 1.8;
	color: #444;
}

.works-detail-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
	margin: 0 auto;
}

.works-sidebar {
	position: sticky;
	top: 88px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.works-merchant-panel {
	background: #fff;
	border: 1px solid rgba(35, 166, 213, 0.12);
	border-radius: 14px;
	padding: 20px;
}

.works-merchant-header {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 16px;
}

.works-merchant-avatar {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, #23A6D5, #E73C7E);
	color: #fff;
	font-size: 20px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	text-transform: uppercase;
	overflow: hidden;
}

.works-merchant-avatar.has-image {
	background: #f0f2f5;
}

.works-merchant-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

.works-merchant-avatar span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.works-merchant-name {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 600;
	color: #2c3e50;
}

.works-merchant-name a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.works-merchant-name a:hover {
	color: #23A6D5;
	text-decoration: none;
}

.works-merchant-subtitle {
	margin: 0;
	font-size: 12px;
	color: #999;
	line-height: 1.5;
}

.works-merchant-contact {
	list-style: none;
	margin: 0;
	padding: 0;
}

.works-merchant-contact li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	font-size: 13px;
	color: #666;
	border-top: 1px solid #f0f0f0;
}

.works-merchant-contact li:first-child {
	border-top: none;
	padding-top: 0;
}

.works-merchant-contact li i {
	width: 16px;
	text-align: center;
	color: #23A6D5;
}

.works-merchant-contact li span {
	min-width: 36px;
	color: #999;
}

.works-merchant-contact li strong {
	font-weight: 500;
	color: #333;
	word-break: break-all;
}

.works-merchant-ticket {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #f0f0f0;
}

.works-merchant-ticket .btn {
	width: 100%;
	border-radius: 8px;
}

.works-pay-panel {
	background: linear-gradient(160deg, rgba(35, 166, 213, 0.06), rgba(231, 60, 126, 0.04));
	border: 1px solid rgba(35, 166, 213, 0.15);
	border-radius: 14px;
	padding: 24px;
}

.works-pay-panel h4 {
	font-size: 15px;
	color: #666;
	margin: 0 0 8px;
	font-weight: 500;
}

.works-detail-price {
	color: #e4393c;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 16px;
}

.works-detail-price small {
	font-size: 18px;
	font-weight: 600;
	margin-right: 2px;
}

.works-stock-tip {
	font-size: 14px;
	color: #666;
	margin-bottom: 20px;
	padding: 10px 14px;
	background: #fff;
	border-radius: 8px;
	border: 1px dashed #d0e8f2;
}

.works-stock-tip strong {
	color: #23A6D5;
}

.works-no-stock {
	background: #fff8e6;
	border: 1px solid #ffe0a3;
	color: #856404;
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 14px;
	margin-bottom: 16px;
}

.works-no-payment {
	background: #f0f7ff;
	border: 1px solid #c5d9f5;
	color: #4a6fa5;
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 14px;
	margin-bottom: 16px;
}

.works-email-panel {
	margin-bottom: 16px;
}

.works-email-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #444;
	margin-bottom: 8px;
}

.works-email-label i {
	color: #23A6D5;
	margin-right: 4px;
}

.works-email-tip {
	margin: 8px 0 0;
	font-size: 12px;
	color: #888;
	line-height: 1.5;
}

.works-pay-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.works-pay-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px 20px;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.works-pay-btn:hover:not(:disabled) {
	transform: translateY(-1px);
	color: #fff;
}

.works-pay-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.works-pay-btn.alipay {
	background: linear-gradient(135deg, #1677ff, #0958d9);
	box-shadow: 0 8px 20px rgba(22, 119, 255, 0.3);
}

.works-pay-btn.alipay:hover:not(:disabled) {
	box-shadow: 0 10px 24px rgba(22, 119, 255, 0.4);
}

.works-pay-btn.wechat {
	background: linear-gradient(135deg, #07c160, #06ad56);
	box-shadow: 0 8px 20px rgba(7, 193, 96, 0.3);
}

.works-pay-btn.wechat:hover:not(:disabled) {
	box-shadow: 0 10px 24px rgba(7, 193, 96, 0.4);
}

.works-detail-footer-note {
	padding: 16px 32px 24px;
	border-top: 1px solid #f0f0f0;
	font-size: 12px;
	color: #999;
}

.works-detail-footer-note code {
	background: #f5f5f5;
	padding: 2px 8px;
	border-radius: 4px;
	color: #666;
}

@media (max-width: 991.98px) {
	.works-detail-header,
	.works-detail-body {
		padding-left: 20px;
		padding-right: 20px;
	}

	.works-sidebar {
		position: static;
		margin-top: 8px;
	}

	.works-detail-title {
		font-size: 22px;
	}

	.works-detail-price {
		font-size: 30px;
	}
}

/* 商户主页 */
.merchant-home-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(35, 166, 213, 0.08);
	border: 1px solid rgba(0, 0, 0, 0.04);
	overflow: hidden;
}

.merchant-home-profile {
	margin: 0;
	border: none;
	border-radius: 0;
	border-bottom: 1px solid rgba(35, 166, 213, 0.1);
}

.merchant-home-name {
	margin: 0 0 6px;
	font-size: 24px;
	font-weight: 600;
	color: #2c3e50;
}

.merchant-home-section {
	padding: 28px 32px 36px;
}

.merchant-home-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.merchant-home-section-head h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #2c3e50;
}

.merchant-home-section-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.merchant-home-search {
	position: relative;
	display: flex;
	align-items: center;
}

.merchant-home-search > .fa-search {
	position: absolute;
	left: 10px;
	color: #aab4be;
	font-size: 13px;
	pointer-events: none;
}

.merchant-home-search-input {
	width: 200px;
	height: 34px;
	padding: 0 30px 0 30px;
	border: 1px solid #dce3e8;
	border-radius: 6px;
	font-size: 13px;
	color: #2c3e50;
	background: #fff;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.merchant-home-search-input:focus {
	border-color: #23a6d5;
	box-shadow: 0 0 0 3px rgba(35, 166, 213, 0.12);
}

.merchant-home-search-input::-webkit-search-cancel-button {
	display: none;
}

.merchant-home-search-clear {
	position: absolute;
	right: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border: none;
	border-radius: 4px;
	background: transparent;
	color: #aab4be;
	cursor: pointer;
}

.merchant-home-search-clear:hover {
	background: #f0f3f5;
	color: #657786;
}

.merchant-home-view-toggle {
	display: flex;
	gap: 4px;
	background: #f0f3f5;
	border-radius: 6px;
	padding: 3px;
}

.merchant-home-view-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: transparent;
	border: none;
	border-radius: 4px;
	color: #657786;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.merchant-home-view-btn:hover {
	background: rgba(35, 166, 213, 0.1);
	color: #23a6d5;
}

.merchant-home-view-btn.active {
	background: #fff;
	color: #23a6d5;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.merchant-home-view-btn i {
	font-size: 15px;
}

.merchant-home-count {
	font-size: 13px;
	color: #8899a6;
}

.merchant-home-empty {
	text-align: center;
	padding: 48px 16px;
	color: #aab4be;
}

.merchant-home-empty i {
	font-size: 36px;
	margin-bottom: 12px;
}

.merchant-home-empty p {
	margin: 0;
}

.merchant-home-grid {
	margin-left: -10px;
	margin-right: -10px;
}

.merchant-home-grid > [class*="col-"] {
	padding-left: 10px;
	padding-right: 10px;
	margin-bottom: 20px;
}

/* 作品视图切换 */
.merchant-home-works-list {
	display: none;
}

.merchant-home-works-list.active {
	display: block;
}

.merchant-home-works-card.active {
	display: block;
}

.merchant-home-works-table-view {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #fafbfc;
	border: 1px solid #eef1f4;
	border-radius: 8px;
	overflow: hidden;
}

.merchant-home-works-table-view thead th {
	background: #f5f8fa;
	color: #657786;
	font-size: 13px;
	font-weight: 600;
	text-align: left;
	padding: 12px 16px;
	border-bottom: 2px solid #eef1f4;
}

.merchant-home-works-table-view thead th.text-center {
	text-align: center;
}

.merchant-home-works-table-view tbody tr {
	transition: background 0.15s ease;
}

.merchant-home-works-table-view tbody tr:hover {
	background: rgba(35, 166, 213, 0.04);
}

.merchant-home-works-table-view tbody td {
	padding: 14px 16px;
	border-bottom: 1px solid #eef1f4;
	font-size: 14px;
	color: #2c3e50;
}

.merchant-home-works-table-view tbody td.text-center {
	text-align: center;
	color: #657786;
}

.merchant-home-works-table-view tbody tr:last-child td {
	border-bottom: none;
}

.merchant-home-works-table-title {
	color: #2c3e50;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.15s ease;
}

.merchant-home-works-table-title:hover {
	color: #23a6d5;
	text-decoration: none;
}

.merchant-works-table-price {
	font-weight: 600;
	color: #e73c7e !important;
}

.merchant-works-item {
	display: block;
	height: 100%;
	padding: 0;
	background: #fafbfc;
	border: 1px solid #eef1f4;
	border-radius: 12px;
	text-decoration: none;
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.merchant-works-cover {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, rgba(35, 166, 213, 0.08), rgba(231, 60, 126, 0.08));
	overflow: hidden;
}

.merchant-works-cover img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.merchant-works-cover.is-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(35, 166, 213, 0.45);
	font-size: 32px;
}

.merchant-works-cover.is-placeholder span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.merchant-works-item-body {
	padding: 16px 18px 18px;
}

.merchant-works-item:hover {
	text-decoration: none;
	transform: translateY(-2px);
	border-color: rgba(35, 166, 213, 0.25);
	box-shadow: 0 8px 24px rgba(35, 166, 213, 0.12);
}

.merchant-works-item-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}

.merchant-works-item-head h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #2c3e50;
	line-height: 1.5;
	flex: 1;
}

.merchant-works-item-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.merchant-works-price {
	font-size: 20px;
	font-weight: 700;
	color: #e73c7e;
}

@media (max-width: 767.98px) {
	.merchant-home-section {
		padding: 20px 16px 28px;
	}

	.merchant-home-name {
		font-size: 20px;
	}

	.merchant-home-grid {
		margin-left: -8px;
		margin-right: -8px;
	}

	.merchant-home-grid > [class*="col-"] {
		padding-left: 8px;
		padding-right: 8px;
		margin-bottom: 14px;
	}

	.merchant-home-section-actions {
		width: 100%;
	}

	.merchant-home-search {
		flex: 1 1 100%;
		order: -1;
	}

	.merchant-home-search-input {
		width: 100%;
		min-width: 0;
	}

	.merchant-works-cover {
		aspect-ratio: 2 / 1;
	}

	.merchant-works-cover.is-placeholder {
		font-size: 28px;
	}

	.merchant-works-item-body {
		padding: 14px 14px 16px;
	}

	.merchant-works-item-head h3 {
		font-size: 15px;
	}

	.merchant-works-price {
		font-size: 18px;
	}
}

@media (min-width: 992px) {
	.merchant-works-cover {
		aspect-ratio: 4 / 3;
	}
}

/* Tab 切换 */
.merchant-home-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid #eef1f4;
	padding: 0 32px;
	background: #fafbfc;
}

.merchant-home-tab {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 16px 24px;
	background: none;
	border: none;
	font-size: 15px;
	font-weight: 500;
	color: #657786;
	cursor: pointer;
	transition: color 0.2s ease;
}

.merchant-home-tab i {
	font-size: 16px;
}

.merchant-home-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	background: #e1e8ed;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 600;
	color: #657786;
	transition: background 0.2s ease, color 0.2s ease;
}

.merchant-home-tab:hover {
	color: #23a6d5;
}

.merchant-home-tab:hover .merchant-home-tab-count {
	background: rgba(35, 166, 213, 0.15);
	color: #23a6d5;
}

.merchant-home-tab.active {
	color: #23a6d5;
}

.merchant-home-tab.active::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 3px;
	background: #23a6d5;
	border-radius: 3px 3px 0 0;
}

.merchant-home-tab.active .merchant-home-tab-count {
	background: #23a6d5;
	color: #fff;
}

.merchant-home-tab-content {
	display: none;
}

.merchant-home-tab-content.active {
	display: block;
}

/* 博客列表 */
.merchant-home-blog-list {
	display: none;
}

.merchant-home-blog-list.active {
	display: block;
}

.merchant-home-blog-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.merchant-home-blog-list.active.merchant-home-blog-card {
	display: flex;
}

.merchant-home-blog-item {
	border: 1px solid #eef1f4;
	border-radius: 12px;
	overflow: hidden;
	background: #fafbfc;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.merchant-home-blog-item:hover {
	transform: translateY(-2px);
	border-color: rgba(35, 166, 213, 0.25);
	box-shadow: 0 8px 24px rgba(35, 166, 213, 0.12);
}

.merchant-home-blog-link {
	display: flex;
	gap: 16px;
	padding: 16px;
	text-decoration: none;
	color: inherit;
}

.merchant-home-blog-link:hover {
	text-decoration: none;
}

.merchant-home-blog-cover {
	flex-shrink: 0;
	width: 160px;
	height: 120px;
	border-radius: 8px;
	overflow: hidden;
	background: linear-gradient(135deg, rgba(35, 166, 213, 0.08), rgba(231, 60, 126, 0.08));
}

.merchant-home-blog-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.merchant-home-blog-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.merchant-home-blog-title {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	color: #2c3e50;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.merchant-home-blog-summary {
	margin: 0;
	font-size: 14px;
	color: #657786;
	line-height: 1.6;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.merchant-home-blog-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 13px;
	color: #8899a6;
	margin-top: auto;
}

.merchant-home-blog-meta span {
	display: flex;
	align-items: center;
	gap: 4px;
}

.merchant-home-blog-meta i {
	font-size: 14px;
}

.merchant-home-blog-date {
	margin-left: auto;
}

/* 表格视图 */
.merchant-home-blog-table-view {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #fafbfc;
	border: 1px solid #eef1f4;
	border-radius: 8px;
	overflow: hidden;
}

.merchant-home-blog-table-view thead th {
	background: #f5f8fa;
	color: #657786;
	font-size: 13px;
	font-weight: 600;
	text-align: left;
	padding: 12px 16px;
	border-bottom: 2px solid #eef1f4;
}

.merchant-home-blog-table-view thead th.text-center {
	text-align: center;
}

.merchant-home-blog-table-view tbody tr {
	transition: background 0.15s ease;
}

.merchant-home-blog-table-view tbody tr:hover {
	background: rgba(35, 166, 213, 0.04);
}

.merchant-home-blog-table-view tbody td {
	padding: 14px 16px;
	border-bottom: 1px solid #eef1f4;
	font-size: 14px;
	color: #2c3e50;
}

.merchant-home-blog-table-view tbody td.text-center {
	text-align: center;
	color: #657786;
}

.merchant-home-blog-table-view tbody tr:last-child td {
	border-bottom: none;
}

.merchant-home-blog-table-title {
	color: #2c3e50;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.15s ease;
}

.merchant-home-blog-table-title:hover {
	color: #23a6d5;
	text-decoration: none;
}

@media (max-width: 767.98px) {
	.merchant-home-tabs {
		padding: 0 16px;
	}

	.merchant-home-tab {
		padding: 14px 16px;
		font-size: 14px;
	}

	.merchant-home-tab i {
		font-size: 15px;
	}

	.merchant-home-view-toggle {
		display: none;
	}

	.merchant-home-works-table-view,
	.merchant-home-blog-table-view {
		font-size: 13px;
	}

	.merchant-home-works-table-view thead th,
	.merchant-home-blog-table-view thead th {
		padding: 10px 12px;
		font-size: 12px;
	}

	.merchant-home-works-table-view tbody td,
	.merchant-home-blog-table-view tbody td {
		padding: 12px;
		font-size: 13px;
	}

	/* 作品表格：移动端隐藏类型列 */
	.merchant-home-works-table-view thead th:nth-child(2),
	.merchant-home-works-table-view tbody td:nth-child(2) {
		display: none;
	}

	/* 博客表格：移动端隐藏阅读和点赞列 */
	.merchant-home-blog-table-view thead th:nth-child(2),
	.merchant-home-blog-table-view thead th:nth-child(3),
	.merchant-home-blog-table-view tbody td:nth-child(2),
	.merchant-home-blog-table-view tbody td:nth-child(3) {
		display: none;
	}

	.merchant-home-blog-link {
		flex-direction: column;
		padding: 12px;
		gap: 12px;
	}

	.merchant-home-blog-cover {
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
	}

	.merchant-home-blog-title {
		font-size: 16px;
	}

	.merchant-home-blog-summary {
		font-size: 13px;
		-webkit-line-clamp: 3;
	}

	.merchant-home-blog-meta {
		font-size: 12px;
		gap: 12px;
	}
}

