:root {
	--ct-primary: #ff5f00;
	--ct-primary-soft: rgba(255, 95, 0, 0.12);
	--ct-bg: #f2f3f6;
	--ct-card: #ffffff;
	--ct-text: #333333;
	--ct-muted: #999999;
	--ct-line: #ececec;
	--ct-radius: 10px;
	--ct-header-h: 82px;
	--ct-bottom-ads-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	background: var(--ct-bg);
	color: var(--ct-text);
	font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
	-webkit-tap-highlight-color: transparent;
}

body {
	padding-bottom: var(--ct-bottom-ads-h);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

.ct-body {
	padding-bottom: 10px;
}

/* 顶部导航 - 类似 mojia 固定头 + 横向分类 */
.ct-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--ct-card);
	box-shadow: 0 1px 0 var(--ct-line);
}

.ct-header__bar {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 48px;
	padding: 0 12px;
}

.ct-logo {
	flex-shrink: 0;
	max-width: 38%;
	font-size: 18px;
	font-weight: 700;
	color: var(--ct-primary);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ct-search {
	display: flex;
	align-items: center;
	flex: 0 0 40%;
	width: 40%;
	min-width: 0;
	margin-left: auto;
	height: 34px;
	padding: 0 4px 0 12px;
	border-radius: 999px;
	background: var(--ct-bg);
	border: 1px solid transparent;
}

.ct-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	outline: none;
	font-size: 13px;
}

.ct-search button {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 50%;
	background: var(--ct-primary);
	color: #fff;
	font-size: 16px;
	cursor: pointer;
}

.ct-nav-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	border-top: 1px solid var(--ct-line);
}

.ct-nav-scroll::-webkit-scrollbar { display: none; }

.ct-nav-scroll__inner {
	display: flex;
	gap: 6px;
	padding: 6px 12px;
	white-space: nowrap;
}

.ct-nav-scroll__item {
	display: inline-block;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 12px;
	line-height: 1.2;
	color: var(--ct-muted);
}

.ct-nav-scroll__item.is-active,
.ct-nav-scroll__item:hover {
	background: var(--ct-primary-soft);
	color: var(--ct-primary);
}

/* 导航下文字广告：一行 4 个（25%），超出自动换行 */
.ct-text-ads {
	display: flex;
	flex-wrap: wrap;
	padding: 6px 8px 8px;
	border-top: 1px solid var(--ct-line);
	background: var(--ct-card);
}

.ct-text-ads__cell {
	width: 25%;
	box-sizing: border-box;
	padding: 3px 4px;
}

.ct-text-ads__cell a {
	display: block;
	padding: 5px 6px;
	border-radius: 999px;
	background: var(--ct-primary-soft);
	color: var(--ct-primary);
	font-size: 12px;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ct-text-ads--bottom {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	margin: 0;
	border: 0;
	border-radius: 0;
	border-top: 1px solid var(--ct-line);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}

/* 页面容器 */
.ct-page {
	min-height: calc(100vh - var(--ct-header-h));
}

.ct-wrap {
	width: min(1200px, calc(100% - 24px));
	margin: 0 auto;
}

/* 首页轮播 */
.ct-banner {
	margin: 10px 12px 0;
	border-radius: var(--ct-radius);
	overflow: hidden;
	background: var(--ct-card);
}

.ct-banner__slider {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.ct-banner__slider::-webkit-scrollbar { display: none; }

.ct-banner__item {
	flex: 0 0 100%;
	scroll-snap-align: start;
}

.ct-banner__link {
	display: block;
	position: relative;
	height: 0;
	padding-top: 56.25%;
	background: #ddd center/cover no-repeat;
}

.ct-banner__mask {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 16px;
	color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, .78));
}

.ct-banner__mask h2 {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.3;
}

.ct-banner__mask p {
	margin: 0;
	font-size: 12px;
	opacity: .92;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ct-banner__tag {
	display: inline-block;
	margin-top: 8px;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
	background: var(--ct-primary);
}

.ct-banner__dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	padding: 10px 0;
}

.ct-banner__dots span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #ddd;
	transition: .2s;
}

.ct-banner__dots span.is-active {
	width: 16px;
	border-radius: 999px;
	background: var(--ct-primary);
}

/* 内容区块 - 白底圆角卡片 */
.ct-block {
	margin: 10px 12px;
	padding: 12px 10px 6px;
	border-radius: var(--ct-radius);
	background: var(--ct-card);
}

.ct-block__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	padding: 0 2px;
}

.ct-block__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	padding-left: 10px;
	border-left: 3px solid var(--ct-primary);
	line-height: 1.2;
}

.ct-block__more {
	font-size: 12px;
	color: var(--ct-muted);
}

/* 影片列表 - H5 三列，类似 mojia */
.ct-vod-list {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -5px;
}

.ct-vod-list__item {
	width: 33.3333%;
	padding: 5px;
}

.ct-card__pic {
	position: relative;
	display: block;
	padding-top: 145%;
	border-radius: 8px;
	overflow: hidden;
	background: #ececec;
}

.ct-card__pic img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ct-card__play {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .08) center/28px no-repeat;
	background-image: radial-gradient(circle at center, rgba(255,255,255,.92) 0 14px, transparent 15px);
	opacity: .85;
}

.ct-card__remark {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 18px 6px 4px;
	font-size: 10px;
	color: #fff;
	text-align: center;
	background: linear-gradient(transparent, rgba(0, 0, 0, .72));
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ct-card__title {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ct-card__desc {
	margin: 2px 0 0;
	font-size: 11px;
	color: var(--ct-muted);
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ct-card__desc--blurb {
	height: 2.8em;
	line-height: 1.4;
	text-align: left;
	white-space: normal;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* 内页通用 */
.ct-section {
	padding: 10px 0;
}

.ct-section .ct-wrap,
.ct-detail .ct-wrap,
.ct-player-page .ct-wrap {
	width: min(1200px, calc(100% - 24px));
	margin: 0 auto;
}

.ct-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.ct-filter__item {
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--ct-card);
	font-size: 12px;
	color: var(--ct-muted);
}

.ct-filter__item.is-active {
	background: var(--ct-primary-soft);
	color: var(--ct-primary);
}

/* 分页条：首页 上页 1/3 下页 尾页 [输入] 跳转 */
.ct-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 16px 0 8px;
	padding: 0 2px;
}

.ct-pager__btn,
.ct-pager__num,
.ct-pager__input {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 34px;
	padding: 0 12px;
	border: 0;
	border-radius: 6px;
	background: #e9e9e9;
	color: #555;
	font-size: 13px;
	line-height: 1;
	text-decoration: none;
	box-sizing: border-box;
}

.ct-pager__btn:hover {
	background: #dedede;
	color: var(--ct-primary);
}

.ct-pager__num {
	min-width: 52px;
	cursor: default;
	user-select: none;
}

.ct-pager__input {
	width: 52px;
	min-width: 52px;
	padding: 0 6px;
	text-align: center;
	outline: none;
	-moz-appearance: textfield;
}

.ct-pager__input::-webkit-outer-spin-button,
.ct-pager__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ct-pager__input:focus {
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--ct-primary);
	color: var(--ct-text);
}

.ct-pager__go {
	cursor: pointer;
	font-family: inherit;
}

.ct-pager__go:active {
	background: var(--ct-primary);
	color: #fff;
}

/* 详情页 */
.ct-detail__top {
	padding: 12px 0 16px;
}

.ct-detail__title {
	margin: 0 0 12px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
}

.ct-detail__main {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.ct-detail__pic {
	flex-shrink: 0;
	width: 118px;
}

.ct-detail__pic .ct-lazy-wrap {
	position: relative;
	width: 100%;
	padding-top: 140%;
	border-radius: 8px;
	overflow: hidden;
	background: #ececec;
}

.ct-detail__pic .ct-lazy-wrap img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ct-detail__info {
	flex: 1;
	min-width: 0;
	padding-top: 2px;
}

.ct-detail__meta {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ct-detail__meta li {
	margin-bottom: 6px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--ct-muted);
	word-break: break-all;
}

.ct-detail__meta span {
	color: var(--ct-text);
	font-weight: 600;
	margin-right: 6px;
}

.ct-detail__actions {
	margin-top: 12px;
}

.ct-detail__actions .ct-btn {
	display: block;
	width: 100%;
	max-width: 200px;
	padding: 10px 18px;
	text-align: center;
}

.ct-tag {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--ct-primary-soft);
	color: var(--ct-primary);
	font-size: 11px;
}

.ct-btn {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 999px;
	border: 1px solid var(--ct-line);
	background: #fff;
	font-size: 13px;
}

.ct-btn--primary {
	border-color: var(--ct-primary);
	background: var(--ct-primary);
	color: #fff;
}

.ct-panel {
	margin-bottom: 12px;
	padding: 14px;
	border-radius: var(--ct-radius);
	background: var(--ct-card);
}

.ct-panel__title {
	margin: 0 0 10px;
	font-size: 15px;
}

.ct-panel__body {
	color: var(--ct-muted);
	line-height: 1.8;
	font-size: 13px;
}

.ct-play-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ct-play-list__item {
	padding: 7px 12px;
	border-radius: 8px;
	background: var(--ct-bg);
	font-size: 12px;
}

.ct-play-list__item.is-active,
.ct-play-list__item:hover {
	background: var(--ct-primary-soft);
	color: var(--ct-primary);
}

/* 播放页 */
.ct-player-page { padding: 12px 0 24px; }

.ct-play-head {
	margin-bottom: 10px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
}

.ct-play-head a { font-weight: 700; color: var(--ct-text); }
.ct-play-head span { margin-left: 8px; color: var(--ct-muted); font-size: 13px; font-weight: 400; }
.ct-play-from {
	display: inline-block;
	margin-left: 10px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--ct-primary-soft);
	color: var(--ct-primary);
	font-size: 12px;
	font-style: normal;
}

.ct-player-page .embed-responsive,
.ct-player-page .ct-player-box {
	margin-bottom: 12px;
	border-radius: var(--ct-radius);
}

.ct-player-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.ct-play-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.ct-play-tabs__item {
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--ct-bg);
	font-size: 13px;
}

.ct-play-tabs__item.is-active {
	background: var(--ct-primary-soft);
	color: var(--ct-primary);
}

.ct-play-group h4 {
	margin: 0 0 10px;
	font-size: 14px;
}

.ct-play-group + .ct-play-group { margin-top: 16px; }

.ct-play-tips {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: #111;
}

/* 面包屑（百度友好内链） */
.ct-crumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0 0 12px;
	padding: 0 2px;
	font-size: 12px;
	color: var(--ct-muted);
	line-height: 1.6;
}
.ct-crumb a { color: var(--ct-muted); }
.ct-crumb a:hover { color: var(--ct-primary); }

/* 底部栏 */
.ct-footer {
	padding: 20px 12px 12px;
	text-align: center;
	color: var(--ct-muted);
	font-size: 12px;
}

.ct-footer p { margin: 0 0 6px; }

.ct-footer__links a {
	margin: 0 8px;
	color: var(--ct-muted);
}

/* 列表/表单 */
.ct-list__item,
.ct-form {
	margin-bottom: 10px;
	padding: 12px;
	border-radius: var(--ct-radius);
	background: var(--ct-card);
}

.ct-form input,
.ct-form textarea {
	width: 100%;
	margin-bottom: 10px;
	padding: 10px;
	border: 1px solid var(--ct-line);
	border-radius: 8px;
	font: inherit;
}

.ct-lazy { opacity: 0; transition: opacity .25s; }
.ct-lazy.is-loaded { opacity: 1; }

/* 资讯列表 */
.ct-art-list {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -5px;
}

.ct-art-list__item {
	width: 50%;
	padding: 5px;
}

.ct-art-card {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	background: var(--ct-bg);
}

.ct-art-card__pic {
	position: relative;
	padding-top: 56%;
	background: #e8e8e8;
	overflow: hidden;
}

.ct-art-card__pic img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ct-art-card__body {
	padding: 10px;
}

.ct-art-card__body h3 {
	margin: 0 0 6px;
	font-size: 13px;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ct-art-card__body p {
	margin: 0 0 6px;
	font-size: 11px;
	color: var(--ct-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ct-art-card__body span {
	font-size: 11px;
	color: #bbb;
}

.ct-link-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	padding: 4px 2px 10px;
}

.ct-link-list a {
	font-size: 13px;
	color: var(--ct-muted);
}

.ct-link-list a:hover { color: var(--ct-primary); }

/* 平板/桌面增强 */
@media (min-width: 768px) {
	.ct-body { padding-bottom: 0; }

	.ct-header__bar,
	.ct-nav-scroll__inner,
	.ct-wrap {
		width: min(1200px, calc(100% - 32px));
		margin-left: auto;
		margin-right: auto;
		padding-left: 0;
		padding-right: 0;
	}

	.ct-header__bar { height: 56px; padding: 0; }

	.ct-search { flex-basis: 40%; width: 40%; }

	.ct-banner { margin: 16px auto 0; }

	.ct-banner__link { padding-top: 42%; }

	.ct-block { margin: 16px auto; padding: 16px 14px 10px; }

	.ct-vod-list__item {
		width: 16.6666%;
		padding: 8px;
	}

	.ct-art-list__item {
		width: 25%;
		padding: 8px;
	}

	.ct-card__title { font-size: 14px; }

	.ct-detail__pic { width: 160px; }
	.ct-detail__title { font-size: 24px; margin-bottom: 14px; }
	.ct-detail__main { gap: 18px; }
}

@media (max-width: 767px) {
	.ct-logo { max-width: 48%; }
}

@media (min-width: 480px) and (max-width: 767px) {
	.ct-vod-list__item { width: 25%; }
}
