/* 新版前台公共样式 */
:root {
	--bs-primary: #165DFF;
	--bs-primary-rgb: 22, 93, 255;
	--c-bg: #F7F8FA;
	--c-line: #E5E6EB;
	--c-text: #1D2129;
	--c-muted: #86909C;
}
body { margin: 0; background: var(--c-bg); color: var(--c-text); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
.btn-primary {
	--bs-btn-bg: #165DFF; --bs-btn-border-color: #165DFF;
	--bs-btn-hover-bg: #0f4fe0; --bs-btn-hover-border-color: #0f4fe0;
	--bs-btn-active-bg: #0f4fe0; --bs-btn-active-border-color: #0f4fe0;
}
.site-nav { background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); }
.site-nav .navbar-brand { font-weight: 700; }
.site-nav .navbar-brand img { max-height: 32px; width: auto; }
.c-nav-tab {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 14px; border: 1px solid var(--c-line); border-radius: 6px;
	background: #fff; color: #4E5969; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.c-nav-tab:hover { border-color: #C9CDD4; color: var(--c-text); }
.c-nav-tab.active { background: #165DFF; border-color: #165DFF; color: #fff; }
.c-nav-tab .badge { font-weight: 500; }
.c-card { background: #fff; border: 1px solid var(--c-line); border-radius: 8px; }
.c-card__head {
	padding: 16px 20px; border-bottom: 1px solid #F0F2F5;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.c-card__title { margin: 0; font-size: 15px; font-weight: 600; }
.c-card__body { padding: 20px; }
.welcome { background: linear-gradient(135deg, #F2F6FF 0%, #FFFFFF 72%); border: 1px solid #D9E5FF; border-radius: 8px; padding: 32px; }
.stat-card { background: #fff; border: 1px solid var(--c-line); border-radius: 8px; padding: 16px; height: 100%; }
.stat-card__label { color: var(--c-muted); font-size: 12px; margin-bottom: 6px; }
.stat-card__value { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.quick-card { display: flex; gap: 12px; padding: 18px; background: #fff; border: 1px solid var(--c-line); border-radius: 8px; height: 100%; color: inherit; }
.quick-card:hover { border-color: #C9D8FF; background: #FBFDFF; color: inherit; }
.quick-card__icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 8px; background: #EAF1FF; display: flex; align-items: center; justify-content: center; color: #165DFF; font-size: 22px; }
.quick-card__icon img { width: 24px; height: 24px; object-fit: contain; }
.quick-card__title { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.quick-card__desc { font-size: 12px; color: var(--c-muted); margin: 0; }
.c-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.c-tab {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
	border: 1px solid var(--c-line); border-radius: 6px; background: #fff;
	color: #4E5969; font-size: 13px; font-weight: 600;
}
.c-tab:hover { border-color: #C9CDD4; color: var(--c-text); }
.c-tab.active { background: #165DFF; border-color: #165DFF; color: #fff; }
.c-tab .badge { font-weight: 500; background: #F2F3F5; color: #4E5969; }
.c-tab.active .badge { background: rgba(255, 255, 255, .22); color: #fff; }
.product-table th { color: var(--c-muted); font-size: 12px; font-weight: 500; border-bottom-color: var(--c-line); white-space: nowrap; }
.product-table td { border-bottom-color: #F0F2F5; vertical-align: middle; }
.product-table tr:last-child td { border-bottom: 0; }
.activity-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #F0F2F5; }
.activity-item:last-child { border-bottom: 0; }
.activity-item img { width: 96px; height: 60px; object-fit: cover; border-radius: 6px; flex: 0 0 96px; }
.news-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #F0F2F5; font-size: 13px; }
.news-row:last-child { border-bottom: 0; }
.cta-card {
	background: linear-gradient(135deg, #EAF1FF, #F7FAFF); border: 1px solid #D9E5FF;
	border-radius: 8px; padding: 28px; display: flex; align-items: center;
	justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.site-footer { background: #fff; border-top: 1px solid var(--c-line); color: var(--c-muted); font-size: 12px; }
.site-footer a { color: #4E5969; }
.site-footer a:hover { color: #165DFF; }
.qr-ph { width: 72px; height: 72px; border: 1px dashed #C9CDD4; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #A9B1C2; background: #fff; font-size: 22px; }

/* 图标与轻量动画 */
.c-nav-tab { transition: background .18s, border-color .18s, color .18s, transform .18s; }
.c-nav-tab:hover { transform: translateY(-1px); }
.c-nav-tab i { font-size: 14px; opacity: .85; }
.c-nav-tab.active i { opacity: 1; }
.welcome { position: relative; overflow: hidden; }
.welcome > .row { position: relative; z-index: 1; }
.welcome-blob { position: absolute; border-radius: 50%; filter: blur(28px); opacity: .45; pointer-events: none; }
.welcome-blob--1 { width: 220px; height: 220px; background: #BBD3FF; right: -40px; top: -70px; }
.welcome-blob--2 { width: 160px; height: 160px; background: #DCE8FF; right: 130px; bottom: -80px; }
.stat-card { transition: border-color .2s, box-shadow .2s; }
.stat-card:hover { border-color: #C9D8FF; box-shadow: 0 8px 20px rgba(22, 93, 255, .07); }
.stat-icon { width: 34px; height: 34px; border-radius: 8px; background: #EAF1FF; color: #165DFF; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.quick-card { transition: transform .2s, border-color .2s, box-shadow .2s; }
.quick-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(22, 93, 255, .08); }
.quick-card__icon i { transition: transform .25s; }
.quick-card:hover .quick-card__icon i { transform: scale(1.12) rotate(-4deg); }
.c-tab { transition: background .18s, border-color .18s, color .18s, transform .18s; }
.c-tab:hover { transform: translateY(-1px); }
.c-tab i { font-size: 14px; }
.product-table tbody tr { transition: background .15s; }
.product-table tbody tr:hover { background: #F7FAFF; }
.activity-item, .news-row { transition: background .15s, padding-left .15s; }
.activity-item:hover, .news-row:hover { background: #F7FAFF; padding-left: 6px; }
.cta-card { position: relative; overflow: hidden; }
.cta-card::after { content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(22, 93, 255, .08); }

/* 页脚贴底：商品少时在底部，商品多时跟在内容后面 */
body { min-height: 100vh; display: flex; flex-direction: column; }
.site-nav { flex: 0 0 auto; }
main.container {
	flex: 1 0 auto;
	width: 100%;
	max-width: 100%;
	padding-left: 20px;
	padding-right: 20px;
}
.site-footer { margin-top: auto; }
.site-footer__inner { max-width: 100%; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
@media (max-width: 575.98px) {
	main.container { padding-left: 12px; padding-right: 12px; }
	.site-footer__inner { padding-left: 12px; padding-right: 12px; }
}

/* 产品卡片 · 5 列网格 */
.product-grid { display: grid; gap: 20px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1599.98px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1199.98px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991.98px)  { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px)  { .product-grid { grid-template-columns: 1fr; gap: 14px; } }

.product-card { border: 1px solid var(--c-line); border-radius: 8px; background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.product-card:hover { transform: translateY(-3px); border-color: #C9D8FF; box-shadow: 0 12px 28px rgba(22, 93, 255, .08); }
.product-card__top { padding: 18px 18px 0; }
.product-card__name { font-size: 15px; font-weight: 700; line-height: 1.45; margin: 10px 0 8px; color: var(--c-text); }
.product-card__desc {
	margin: 0; padding: 10px 18px 0; color: var(--c-muted); font-size: 13px; line-height: 1.85;
	word-break: break-word; overflow-wrap: anywhere;
}
/* 规格：一行一项，带轻量图标与色彩 */
.product-specs { list-style: none; margin: 0; padding: 14px 18px 0; display: grid; gap: 8px; }
.product-specs li {
	display: flex; align-items: baseline; gap: 8px;
	font-size: 13px; line-height: 1.6; min-width: 0;
}
.product-specs li i {
	flex: 0 0 18px; width: 18px; text-align: center;
	font-size: 14px; color: #4E7BF0; opacity: .9;
}
.product-specs__label { color: #86909C; flex: 0 0 auto; }
.product-specs__value { color: #165DFF; font-weight: 600; word-break: break-word; }

.product-card__foot {
	padding: 14px 18px 16px;
	display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
	border-top: 1px solid #F0F2F5;
	margin-top: auto;
}
.product-card .price { color: #165DFF; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }


/* 文档中心 */
.doc-link { display: block; padding: 7px 10px; border-radius: 6px; color: #4E5969; font-size: 13px; }
.doc-link:hover, .doc-link.active { background: #EAF1FF; color: #165DFF; }
.doc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #F0F2F5; color: #1D2129; font-size: 14px; }
.doc-row:last-child { border-bottom: 0; }
.doc-row:hover { color: #165DFF; }
.doc-content { color: #1D2129; font-size: 15px; line-height: 2; word-break: break-word; }
.doc-content h1, .doc-content h2, .doc-content h3 { margin-top: 1.2em; font-weight: 700; }
.doc-content pre { background: #F7F8FA; border: 1px solid var(--c-line); border-radius: 8px; padding: 14px 16px; overflow: auto; }
.doc-content code { background: #F2F3F5; padding: 1px 6px; border-radius: 4px; }
.doc-content img { max-width: 100%; height: auto; border-radius: 6px; }
.doc-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.doc-content iframe { max-width: 100%; }

/* 最新活动 */
.activity-card { border: 1px solid var(--c-line); border-radius: 8px; background: #fff; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; height: 100%; }
.activity-card:hover { transform: translateY(-3px); border-color: #C9D8FF; box-shadow: 0 12px 28px rgba(22, 93, 255, .08); }
.activity-card img { width: 100%; height: 170px; object-fit: cover; }
.activity-card__body { padding: 16px; }
.activity-card__title { font-size: 15px; font-weight: 600; margin: 0 0 8px; color: #1D2129; }
.activity-card__desc { color: #86909C; font-size: 12px; line-height: 1.7; margin: 0 0 12px; min-height: 40px; }
.activity-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #86909C; }
@media (prefers-reduced-motion: reduce) {
	.welcome-blob { animation: none; }
	.quick-card, .c-tab, .c-nav-tab, .stat-card, .activity-item, .news-row { transition: none; }
}
@media (max-width: 991.98px) {
	.c-nav-tab { width: 100%; justify-content: space-between; }
	.welcome { padding: 22px; }
}

/* 购买配置弹窗 */
.buy-summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	margin-top: 18px; padding: 14px 16px;
	background: #F7FAFF; border: 1px solid #D9E5FF; border-radius: 8px;
}
.buy-summary__amount { font-size: 24px; font-weight: 700; color: #165DFF; letter-spacing: -.02em; line-height: 1.2; }
#buyModal .modal-content { border: 0; border-radius: 10px; }
#buyModal .modal-header { border-bottom: 1px solid var(--c-line); }
#buyModal .modal-footer { border-top: 1px solid var(--c-line); }
#buyModal .modal-title { font-size: 16px; font-weight: 600; }

/* 库存 */
.product-stock {
	display: inline-flex; align-items: center; gap: 4px;
	font-size: 12px; line-height: 1.6; padding: 2px 9px; border-radius: 999px;
	background: #ECFDF3; color: #067647; white-space: nowrap; font-weight: 500;
}
.product-stock i { font-size: 12px; }
.product-stock--low { background: #FFF7E8; color: #B54708; }
.product-stock--out { background: #F2F3F5; color: #86909C; }

/* 二级分组与分组介绍 */
.c-tabs--sub { gap: 6px; margin-top: -6px; }
.c-tabs--sub .c-tab { padding: 6px 12px; font-size: 13px; background: #fff; border-color: #E5E6EB; }
.c-tabs--sub .c-tab.active { background: #E8F3FF; border-color: #BEDAFF; color: #165DFF; }
.c-tabs--sub .c-tab .badge { font-size: 11px; background: rgba(22,93,255,.1); color: #165DFF; }
.group-intro {
	margin: 0 0 14px; padding: 10px 14px; border-radius: 8px;
	background: #F7F8FA; border: 1px solid #F0F2F5;
	color: #4E5969; font-size: 13px; line-height: 1.8;
}

/* 文档中心分类列表 */
.doc-row__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.doc-row__title { font-weight: 500; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.doc-row__desc { color: #86909C; font-size: 12px; line-height: 1.6; }
.doc-row__side { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.doc-row--download { align-items: center; }

/* 教程中心 */
.tutorial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tutorial-card {
	display: flex; flex-direction: column; background: #fff; border: 1px solid #F0F2F5;
	border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit;
	transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tutorial-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(29,33,41,.08); border-color: #BEDAFF; color: inherit; }
.tutorial-card__cover { position: relative; aspect-ratio: 16 / 9; background: #F7F8FA; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tutorial-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.tutorial-card__ph { color: #C9CDD4; font-size: 38px; }
.tutorial-card__file {
	position: absolute; right: 10px; top: 10px; padding: 2px 8px; border-radius: 999px;
	background: rgba(22,93,255,.9); color: #fff; font-size: 11px;
}
.tutorial-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.tutorial-card__title { font-size: 15px; font-weight: 600; margin: 0; color: #1D2129; line-height: 1.5; }
.tutorial-card__desc { margin: 0; color: #86909C; font-size: 12px; line-height: 1.7; }
.tutorial-content { font-size: 14px; line-height: 1.9; color: #1D2129; }
.tutorial-content img { max-width: 100%; height: auto; border-radius: 6px; }
.tutorial-content h2, .tutorial-content h3 { margin: 20px 0 10px; font-size: 18px; font-weight: 700; }
.tutorial-content pre { background: #F7F8FA; padding: 12px 14px; border-radius: 8px; overflow: auto; font-size: 13px; }
.tutorial-content code { background: #F2F3F5; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.tutorial-content table { width: 100%; border-collapse: collapse; }
.tutorial-content th, .tutorial-content td { border: 1px solid #E5E6EB; padding: 8px 10px; }


/* 文档中心移动端 */
.docs-search { display: flex; gap: 8px; }
.docs-search__input { width: 200px; }
.doc-row__title { word-break: break-word; }
@media (max-width: 767.98px) {
	.docs-head { flex-direction: column; align-items: stretch; }
	.docs-search { width: 100%; }
	.docs-search__input { width: 100%; flex: 1 1 auto; min-width: 0; }
	.docs-search__btn { flex: 0 0 auto; white-space: nowrap; }
	.docs-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.docs-tabs::-webkit-scrollbar { display: none; }
	.docs-tabs .c-tab { flex: 0 0 auto; }
	.doc-row { align-items: flex-start; gap: 8px; }
	.doc-row__side { flex-direction: row; align-items: center; gap: 6px; }
	.doc-row--download { flex-wrap: wrap; }
	.doc-row--download .btn { width: 100%; margin-top: 4px; }
	.tutorial-grid { grid-template-columns: 1fr; }
}

/* 法律条款 */
.legal-page { background: #fff; min-height: 60vh; }
.legal-page__head { max-width: 860px; margin: 0 auto 20px; }
.legal-page__eyebrow { color: #165DFF; font-size: 12px; font-weight: 700; letter-spacing: .08em; margin-bottom: 8px; }
.legal-page__head h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: #1D2129; margin: 0 0 8px; }
.legal-page__head p { color: #86909C; font-size: 13px; margin: 0; }
.legal-content {
	max-width: 860px; margin: 0 auto; color: #1D2129; font-size: 14px; line-height: 2;
	background: #F7F8FA; border: 1px solid #E5E6EB; border-radius: 12px; padding: clamp(18px, 3vw, 34px);
	word-break: break-word;
}
.legal-page__foot { max-width: 860px; margin: 18px auto 0; display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; }
.legal-consent {
	max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid #E5E6EB; border-radius: 16px;
	padding: clamp(20px, 4vw, 34px); box-shadow: 0 12px 40px rgba(29, 33, 41, .06);
}
.legal-consent__head { margin-bottom: 18px; }
.legal-consent__head h1 { font-size: 24px; font-weight: 700; margin: 0 0 8px; }
.legal-consent__head p { color: #86909C; font-size: 13px; margin: 0; }
.legal-consent__docs { display: grid; gap: 10px; margin-bottom: 16px; }
.legal-consent__docs a {
	display: flex; align-items: center; gap: 10px; border: 1px solid #E5E6EB; border-radius: 10px;
	padding: 12px 14px; color: #1D2129; background: #FAFBFC;
}
.legal-consent__docs a:hover { border-color: #BEDAFF; background: #F7FAFF; color: #165DFF; }
.legal-consent__docs a > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.legal-consent__docs small { color: #86909C; font-size: 12px; }
.legal-consent__check { display: flex; align-items: flex-start; gap: 8px; color: #4E5969; font-size: 13px; line-height: 1.7; margin: 14px 0 16px; }
.legal-consent__check input { margin-top: 3px; flex: 0 0 auto; }
.legal-consent__hint { color: #86909C; font-size: 12px; text-align: center; margin: 12px 0 0; }

/* 产品页：地域分组 + 二级分组产品 */
.c-tabs--region { align-items: center; }
.c-tabs__label {
	display: inline-flex; align-items: center; gap: 6px;
	color: #86909C; font-size: 13px; padding: 0 6px 0 2px; white-space: nowrap;
}
.region-group { margin: 0 0 28px; }
.region-group:last-child { margin-bottom: 0; }
.region-group__head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 0 2px 10px; margin-bottom: 14px; border-bottom: 1px solid var(--c-line);
}
.region-group__title { margin: 0; font-size: 16px; font-weight: 600; color: var(--c-text); }
.region-group__count { color: #86909C; font-size: 12px; white-space: nowrap; }
.region-group__empty {
	padding: 24px; text-align: center; color: #86909C; font-size: 13px;
	background: #fff; border: 1px dashed var(--c-line); border-radius: 10px;
}
@media (max-width: 767.98px) {
	.c-tabs--region { gap: 6px; }
	.c-tabs__label { width: 100%; padding-bottom: 2px; }
	.region-group__title { font-size: 15px; }
}
