:root {
	--primary: #2b4bfa;          /* 标签栏 / 激活态 蓝色 */
	--accent-orange: #ff7000;    /* 收藏按钮 橙色 */
	--count-green: #4fc36a;      /* 统计数量 绿色 */
	--text-dark: #333;
	--text-main: #222;
	--text-gray: #999;
	--bg-page: #eceef4;
	--card-bg: #ffffff;
	--card-radius: 10px;
	--card-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	--tm-fallback: #24688a;      /* 商标图加载前底色 */
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

html,
body {
	height: 100%;
}

body {
	font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
	background: #dfe2ea;
	color: var(--text-main);
	font-size: 14px;
	line-height: 1.5;
}

a {
	text-decoration: none;
	color: inherit;
}

ul,
li,
dl,
dd,
dt {
	list-style: none;
}

img {
	display: block;
	max-width: 100%;
}

/* ---------- 移动端画布（桌面居中展示） ---------- */

.layout {
	position: relative;
	max-width: 100%;
	min-height: 100vh;
	margin: 0 auto;
	background: var(--bg-page);
	display: flex;
	flex-direction: column;
	box-shadow: 0 0 24px rgba(0, 0, 0, 0.12);
}

/* ---------- 顶部标题栏 ---------- */

.header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: 48px;
	background: #fff;
	border-bottom: 1px solid #f0f0f0;
}

.header .wrap {
	position: relative;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 14px;
}

.header .title {
	font-size: 17px;
	font-weight: 500;
	color: var(--text-dark);
}

.header .h-ico {
	position: absolute;
	top: 0;
	height: 100%;
	width: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #555;
	border: none;
	background: none;
}

.header .h-ico.left {
	left: 0;
}

.header .h-ico.right {
	right: 0;
}

.header .h-ico svg {
	width: 22px;
	height: 22px;
	fill: #666;
}

.header .h-ico:active {
	opacity: 0.6;
}

/* ---------- 首页 Swiper 轮播图 ---------- */

.banner-swiper {
	position: relative;
	overflow: hidden;
	border-radius: var(--card-radius);
	box-shadow: var(--card-shadow);
	margin-bottom: 12px;
	background: #fff;
	touch-action: pan-y;
}

.banner-swiper .swiper-wrapper {
	display: flex;
	height: 140px;
	transition: transform 0.45s ease;
	will-change: transform;
}

.banner-swiper .swiper-wrapper.dragging {
	transition: none;
}

.banner-swiper .swiper-slide {
	flex-shrink: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
	user-select: none;
}

.banner-slide {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 22px 0 26px;
}

.banner-slide.s1 { background: linear-gradient(120deg, #2b4bfa 0%, #4f7cff 55%, #6ea8ff 100%); }
.banner-slide.s2 { background: linear-gradient(120deg, #1fa96a 0%, #4fc36a 55%, #86dd9d 100%); }
.banner-slide.s3 { background: linear-gradient(120deg, #ff7000 0%, #ff9a3c 55%, #ffc07a 100%); }

.banner-txt {
	position: relative;
	z-index: 1;
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.banner-txt b {
	font-size: 19px;
	font-weight: 600;
	letter-spacing: 1px;
}

.banner-txt span {
	font-size: 13px;
	opacity: 0.92;
}

.banner-slide img {
	width: 104px;
	height: 104px;
	object-fit: contain;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 50%;
	padding: 12px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	flex-shrink: 0;
}

.banner-swiper .swiper-pagination {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 8px;
	display: flex;
	justify-content: center;
	gap: 6px;
	z-index: 2;
}

.banner-swiper .swiper-pagination .dot {
	width: 6px;
	height: 6px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition: width 0.25s ease, background 0.25s ease;
}

.banner-swiper .swiper-pagination .dot.on {
	width: 16px;
	background: #fff;
}

/* ---------- 页面主体 ---------- */

.page-body {
	flex: 1;
	padding: 12px 14px 70px;
}

/* ---------- 统计列表卡片（分类统计 / 地区统计） ---------- */

.stat-card {
	display: flex;
	align-items: center;
	background: var(--card-bg);
	border-radius: var(--card-radius);
	box-shadow: var(--card-shadow);
	padding: 16px 14px;
	margin-bottom: 12px;
	cursor: pointer;
	transition: transform 0.15s ease;
}

.stat-card:active {
	transform: scale(0.985);
}

.stat-card .ico {
	width: 40px;
	height: 40px;
	font-size: 30px;
	line-height: 40px;
	text-align: center;
	flex-shrink: 0;
}

.stat-card .ico img {
	width: 38px;
	height: 38px;
	object-fit: contain;
}

.stat-card .name {
	flex: 1;
	margin-left: 14px;
	font-size: 16px;
	color: var(--text-main);
}

.stat-card .name .cls {
	color: var(--text-main);
	margin-right: 14px;
}

.stat-card .num {
	font-size: 16px;
	color: #f82323;
	font-weight: 400;
	white-space: nowrap;
}

.stat-card .num.zero {
	color: #b8bcc6;
}

/* ---------- 商标列表卡片 ---------- */

.tm-card {
	background: var(--card-bg);
	border-radius: var(--card-radius);
	box-shadow: var(--card-shadow);
	padding: 12px;
	margin-bottom: 14px;
	position: relative;
}

.tm-card .tm-info {
	display: flex;
}

.tm-card .tm-img-box {
	width: 118px;
	height: 118px;
	flex-shrink: 0;
	background: var(--tm-fallback);
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tm-card .tm-img-box img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
}

.tm-card .tm-details {
	flex: 1;
	margin-left: 12px;
	min-width: 0;
}

.tm-card .meta-item {
	font-size: 13px;
	color: var(--text-main);
	line-height: 1.75;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.tm-card .meta-item b {
	font-weight: 400;
}

.tm-card .status-tag {
	position: absolute;
	right: 12px;
	bottom: 10px;
	background: var(--accent-orange);
	color: #fff;
	font-size: 12px;
	padding: 5px 12px;
	border-radius: 14px;
	cursor: pointer;
	border: none;
	line-height: 1.2;
}

.tm-card .status-tag.done {
	background: #c0c4cf;
}

/* ---------- 详情页 ---------- */

.detail-hero {
	background: #fff;
	margin: 0 -14px;
	padding: 30px 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.detail-hero img {
	max-width: 60%;
	max-height: 240px;
	object-fit: contain;
	background: #fff;
}

.detail-section {
	background: var(--card-bg);
	border-radius: var(--card-radius);
	box-shadow: var(--card-shadow);
	padding: 16px 14px;
	margin-top: 14px;
}

.detail-section .sec-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-dark);
	margin-bottom: 10px;
	padding-left: 8px;
	border-left: 3px solid var(--primary);
	line-height: 1.3;
}

.detail-section .info-row {
	display: flex;
	font-size: 14px;
	line-height: 2;
}

.detail-section .info-row .lb {
	width: 90px;
	flex-shrink: 0;
	color: var(--text-main);
	white-space: nowrap;
	letter-spacing: 2px;
}

.detail-section .info-row .vl {
	flex: 1;
	color: var(--text-main);
	word-break: break-all;
}

.detail-section .goods {
	font-size: 14px;
	line-height: 1.9;
	color: var(--text-main);
}

/* 核定商品：类别标签切换 */

.goods-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.goods-head .sec-title {
	flex-shrink: 0;
}

.category-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	margin-top: 2px;
}

.category-tab {
	font-size: 14px;
	color: var(--text-dark);
	padding: 3px 10px 5px;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	transition: color 0.15s, background 0.15s;
	user-select: none;
}

.category-tab:active {
	opacity: 0.7;
}

.category-tab.active {
	background: rgba(74, 102, 247, 0.12);
	color: var(--primary);
	border-bottom-color: var(--primary);
	font-weight: 500;
}

.goods-list {
	margin-top: 4px;
}

.goods-list li {
	display: flex;
	font-size: 14px;
	line-height: 2.1;
	color: var(--text-main);
}

.goods-list li .no {
	width: 30px;
	flex-shrink: 0;
	color: var(--text-gray);
}

.detail-section .explain {
	font-size: 14px;
	color: var(--text-main);
	line-height: 1.9;
}

.cert-box {
	margin-top: 8px;
	border: 1px solid #eee;
	border-radius: 6px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
}

.cert-box img {
	max-width: 100%;
	max-height: 320px;
	object-fit: contain;
}

/* ---------- 搜索页（与原站一致的筛选交互） ---------- */

.search-section {
	background: var(--card-bg);
	border-radius: 12px;
	box-shadow: var(--card-shadow);
	padding: 4px 16px;
	margin-bottom: 14px;
}

.search-row {
	display: flex;
	align-items: center;
	min-height: 46px;
	border-bottom: 1px solid #f5f5f5;
	cursor: pointer;
}

.search-row:last-child {
	border-bottom: none;
}

.search-row .label {
	width: 92px;
	flex-shrink: 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--text-dark);
	white-space: nowrap;
}

.search-row .input-box {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-width: 0;
	font-size: 15px;
	color: var(--text-main);
}

.search-row .input-box .val {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.search-row .input-box .caret {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #bbb;
	margin-left: 8px;
	flex-shrink: 0;
}

.search-row .kw-input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-size: 15px;
	color: var(--text-main);
	font-family: inherit;
}

.search-row .kw-input::placeholder {
	color: #bbb;
}

.search-btn {
	display: block;
	width: 100%;
	height: 46px;
	border: none;
	border-radius: 4px;
	background: #2979ff;
	color: #fff;
	font-size: 16px;
	cursor: pointer;
	margin: 18px 0 8px;
	font-family: inherit;
}

.search-btn:active {
	opacity: 0.85;
}

/* 筛选弹层：底部弹出面板 */

.pop-mask {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 300;
}

.pop-sheet {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	background: #fff;
	border-radius: 14px 14px 0 0;
	max-height: 78vh;
	display: flex;
	flex-direction: column;
	animation: popUp 0.25s ease;
}

@keyframes popUp {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}

.pop-header {
	position: relative;
	text-align: center;
	padding: 16px 40px 12px;
	font-size: 16px;
	color: #222;
	font-weight: 500;
	flex-shrink: 0;
}

.pop-close {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	color: #999;
	line-height: 1;
	cursor: pointer;
	font-weight: 300;
}

.pop-body {
	overflow-y: auto;
	flex: 1;
	padding-bottom: 6px;
}

.pop-group[hidden] {
	display: none;
}

.pop-body .pop-item {
	text-align: center;
	padding: 15px 10px;
	font-size: 15px;
	color: #333;
	border-bottom: 1px solid #f5f5f5;
	cursor: pointer;
}

.pop-body .pop-item.active {
	color: #2979ff;
}

.pop-body .pop-item:active {
	background: #f7f8fa;
}

.pop-footer {
	text-align: center;
	padding: 15px 10px;
	font-size: 16px;
	color: #666;
	background: #fff;
	border-top: 1px solid #f0f0f0;
	cursor: pointer;
	flex-shrink: 0;
}

/* 商标类别多选弹层 */

.cls-sheet .cls-toolbar {
	display: flex;
	gap: 28px;
	padding: 10px 16px 4px;
	flex-shrink: 0;
}

.cls-sheet .cls-toolbar .lnk {
	color: #2979ff;
	font-size: 15px;
	cursor: pointer;
}

.cls-sheet .cls-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px 4px;
	padding: 12px 12px 24px;
	overflow-y: auto;
}

.cls-item {
	display: flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	font-size: 11px;
	color: #333;
	min-width: 0;
}

.cls-item .chk {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #2979ff;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	line-height: 1;
}

.cls-item.off .chk {
	background: #fff;
	border: 1px solid #c0c4cc;
	color: transparent;
}

.cls-item .no {
	font-weight: 600;
	white-space: nowrap;
}

.cls-item .txt {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #555;
}

/* 搜索提示 / 空状态 */

.result-tip {
	text-align: center;
	color: var(--text-gray);
	font-size: 13px;
	padding: 20px 0 6px;
}

.empty-box {
	text-align: center;
	color: var(--text-gray);
	font-size: 14px;
	padding: 80px 0 60px;
}

.empty-box .ico {
	font-size: 44px;
	margin-bottom: 12px;
}

/* ---------- 收藏页 tabs ---------- */

.seg-tabs {
	display: flex;
	background: var(--bg-page);
	position: sticky;
	top: 48px;
	z-index: 90;
	margin: 0 -14px 12px;
	padding: 0 14px;
}

.seg-tabs .tab {
	flex: 1;
	text-align: center;
	font-size: 16px;
	color: var(--text-dark);
	padding: 13px 0 11px;
	border-bottom: 3px solid transparent;
	cursor: pointer;
	transition: color 0.15s;
}

.seg-tabs .tab.on {
	color: var(--primary);
	border-bottom-color: var(--primary);
}

/* ---------- 分享弹层（底部弹出，复制链接） ---------- */

.share-mask {
	position: fixed;
	inset: 0;
	z-index: 300;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.share-mask[hidden] {
	display: none;
}

.share-sheet {
	width: 100%;
	background: #fff;
	border-radius: 16px 16px 0 0;
	overflow: hidden;
	animation: shareUp 0.25s ease;
}

@keyframes shareUp {
	from { transform: translateY(100%); }
	to   { transform: translateY(0); }
}

.share-body {
	display: flex;
	padding: 24px 20px 20px;
}

.share-item {
	background: none;
	border: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-family: inherit;
}

.share-item:active .share-ico {
	background: #e8eaef;
}

.share-item .share-ico {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #f2f3f5;
	display: flex;
	align-items: center;
	justify-content: center;
}

.share-item .share-ico svg {
	width: 22px;
	height: 22px;
	fill: #555;
}

.share-item .share-txt {
	font-size: 12px;
	color: #888;
}

.share-cancel {
	display: block;
	width: 100%;
	height: 50px;
	border: none;
	border-top: 8px solid #f5f6f8;
	background: #fff;
	font-size: 16px;
	color: #333;
	cursor: pointer;
	font-family: inherit;
}

.share-cancel:active {
	background: #f7f7f7;
}

/* 复制成功提示 */

.copy-toast {
	position: fixed;
	left: 50%;
	bottom: 140px;
	transform: translateX(-50%);
	z-index: 400;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	font-size: 13px;
	padding: 9px 18px;
	border-radius: 18px;
	pointer-events: none;
	animation: toastIn 0.2s ease;
}

@keyframes toastIn {
	from { opacity: 0; transform: translate(-50%, 8px); }
	to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- 底部标签栏 ---------- */

.tabbar {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	height: 56px;
	background: #fff;
	border-top: 1px solid #eee;
	display: flex;
	z-index: 200;
}

.tabbar a {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #888;
	font-size: 11px;
	line-height: 1.3;
}

.tabbar a svg {
	width: 22px;
	height: 22px;
	fill: #888;
	margin-bottom: 2px;
}

.tabbar a.on {
	color: var(--primary);
}

.tabbar a.on svg {
	fill: var(--primary);
}

/* ---------- 公司简介 ---------- */

.company-intro {
	margin: 12px 0;
	padding: 14px 16px;
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.company-intro h4 {
	font-size: 14px;
	color: var(--primary, #22b573);
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.company-intro h4::before {
	content: "";
	width: 3px;
	height: 14px;
	background: var(--primary, #22b573);
	border-radius: 2px;
}

.company-intro p {
	font-size: 13px;
	line-height: 1.8;
	color: #555;
}

/* ---------- 备案信息 ---------- */

.icp {
	text-align: center;
	padding: 10px 6px 4px;
	font-size: 13px;
}

.icp a {
	color: #0000cc;
}

/* ---------- 通用 ---------- */

.back-link {
	color: inherit;
}

@media (max-width: 480px) {
	body {
		background: var(--bg-page);
	}

	.layout {
		box-shadow: none;
	}
}
