/**
 * 元数云科技官网 全局样式
 * 风格：简约科技蓝、深色轻奢、自适应响应式
 * 适配：PC+移动端、卡片动效、导航高亮、新闻详情、产品内页
 */

/* ========== 全局重置 ========== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
	color: #334155;
	background-color: #ffffff;
	line-height: 1.75;
	overflow-x: hidden;
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
	transition: all 0.25s ease;
}

img {
	max-width: 100%;
	display: block;
}

:root {
	--primary: #2563eb;
	--primary-hover: #3b82f6;
	--primary-light: #bfdbfe;
	--text-dark: #1f2937;
	--text-gray: #6b7280;
	--bg-white: #ffffff;
	--bg-gray: #f8fafc;
	--border-color: #e5e7eb;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Microsoft YaHei", sans-serif;
	background-color: var(--bg-gray);
	color: var(--text-dark);
	line-height: 1.7;
}

a {
	text-decoration: none;
	color: inherit;
}

ul {
	list-style: none;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ==========导航栏========== */
.header {
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	background: var(--bg-white);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
	z-index: 999;
}

.header-inner {
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.logo {
	font-size: 22px;
	font-weight: 700;
	color: var(--primary);
}

.nav-wrap {
	display: flex;
	align-items: center;
	gap: 32px;
}

.nav-wrap li a {
	font-size: 15px;
	transition: color 0.25s;
}

.nav-wrap li a:hover {
	color: var(--primary);
}

.login-btn {
	background-color: var(--primary);
	color: #fff;
	padding: 8px 22px;
	border-radius: 30px;
}

.login-btn:hover {
	background-color: var(--primary-hover);
	color: #fff;
}

.page-body {
	padding-top: 72px;
}

/* ==========Banner========== */
.banner {
	width: 100%;
	height: 460px;
	background: url(../img/bannerbg.png) no-repeat center center;
	background-size: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	margin-bottom: 30px;
}

.banner h1 {
	font-size: 46px;
	margin-bottom: 16px;
	color: #2563eb;
	margin-left: -800px;
}

.banner p {
	font-size: 18px;
	opacity: 0.92;
	max-width: 720px;
}

.banner-slider {
	position: relative;
	width: 100%;
	height: 460px;
	overflow: hidden;
}

.banner-item {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.7s ease;
	z-index: 1;
}

.banner-item.active {
	opacity: 1;
	z-index: 2;
}

.banner-item:nth-child(1) {
	background: url(../img/banner03.png) no-repeat center center;
	background-size: 100%;
}

.banner-item:nth-child(2) {
	background: url(../img/banner02.png) no-repeat center center;
	background-size: 100%;
}

.banner-item:nth-child(3) {
	background: url(../img/banner01.png) no-repeat center center;
	background-size: 100%;
}

.banner-content {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	text-align: left;
	color: #ffffff;
	flex-wrap: wrap;
	align-content: flex-start;
	padding-left: 80px;
}

.banner-content h1 {
	font-size: 46px;
	margin-bottom: 16px;
	color: #05225c;
}

.banner-content p {
	font-size: 28px;
	opacity: 0.92;
	max-width: 720px;
	margin: 0 auto;
	color: #102040;
}

/* 轮播指示器 */
.banner-dots {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 10;
}

.dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: background 0.3s;
}

.dot.active {
	background: #fff;
}

/* 左右切换按钮 */
.banner-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	cursor: pointer;
	transition: background 0.3s;
	z-index: 10;
	user-select: none;
}

.banner-arrow:hover {
	background: rgba(255, 255, 255, 0.35);
}

.banner-arrow.prev {
	left: 20px;
}

.banner-arrow.next {
	right: 20px;
}

/* ========== 通用容器 ========== */

.container-sm {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.container-sm h2 {
	margin: 16px 0;
	color: var(--text-dark)
}

.container-sm p {
	color: var(--text-gray);
	margin-bottom: 5px;
	line-height: 26px;
}

.container-sm ul {
	color: var(--text-gray);
	padding-left: 20px;
	list-style: disc;
	line-height: 2.2;
	height: 200px;
	padding: 20px 0;
}

.container-sm ul>li {
	float: left;
	width: 23%;
	height: 150px;
	padding: 2% 3%;
	text-align: left;
	border-radius: 10px;
	list-style: none;
	color: #fff;
}

.container-sm ul>li>a {
	display: none;
}

.container-sm ul>li:nth-child(1) {
	background: url(../img/smsbg.png) no-repeat center center;
	background-size: 100%;
}

.container-sm ul>li:nth-child(2) {
	background: url(../img/realnamebg.png) no-repeat center center;
	background-size: 100%;
}

.container-sm ul>li:nth-child(3) {
	background: url(../img/ocrbg.png) no-repeat center center;
	background-size: 100%;
}

.container-sm ul>li:nth-child(4) {
	background: url(../img/numbercheckbg.png) no-repeat center center;
	background-size: 100%;
}

.container-sm ul>li:hover {
	transform: translateY(-6px);
	box-shadow: 0 10px 26px rgba(37, 99, 235, 0.11);
	border-color: var(--primary-light);
	background-color: #7ba8e0;
	background-image: none;
}

.container-sm ul>li:hover a {
	display: block;
}

.container-xs {
	max-width: 860px;
	margin: 0 auto;
	padding: 70px 20px;
}

/* ==========通用区块标题========== */
.section-title {
	text-align: center;
	margin-bottom: 55px;
}

.section-title h2 {
	font-size: 30px;
	margin-bottom: 10px;
	position: relative;
	display: inline-block;
}

.section-title h2::after {
	content: "";
	width: 55px;
	height: 3px;
	background: var(--primary);
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: -10px;
}

.section-title p {
	color: var(--text-gray);
	margin-top: 10px;
}

/* ==========产品板块========== */
.product-section {
	padding: 80px 0;
	background: var(--bg-white);
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 26px;
}

.card-item {
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 30px 24px;
	background: #fff;
	transition: all 0.3s ease;
	box-shadow: var(--shadow);
}

.card-item:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-hover);
	border-color: var(--primary);
}

.card-item h3 {
	font-size: 18px;
	color: var(--primary);
	margin-bottom: 12px;
}

.card-item p {
	color: var(--text-gray);
	font-size: 15px;
}

.card {
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 32px 20px;
	text-align: center;
	background: #fff;
	transition: 0.3s;
}

.card:hover {
	transform: translateY(-6px);
	box-shadow: 0 10px 26px rgba(37, 99, 235, 0.11);
	border-color: var(--primary-light);
}

/* 图标预留容器 */
.icon-box {
	width: 64px;
	height: 64px;
	border-radius: 12px;
	margin: 0 auto 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
}

.product-section .icon01 {
	background: url(../img/sms.png) no-repeat center center;
	background-size: 100%;
}

.product-section .icon02 {
	background: url(../img/realname.png) no-repeat center center;
	background-size: 100%;
}

.product-section .icon03 {
	background: url(../img/ocr.png) no-repeat center center;
	background-size: 100%;
}

.product-section .icon04 {
	background: url(../img/numbercheck.png) no-repeat center center;
	background-size: 100%;
}

.card-grid .icon05 {
	background: url(../img/high-availability.png) no-repeat center center;
	background-size: 100%;
}

.card-grid .icon06 {
	background: url(../img/millisecond-response.png) no-repeat center center;
	background-size: 100%;
}

.card-grid .icon07 {
	background: url(../img/compliance-security.png) no-repeat center center;
	background-size: 100%;
}

.card-grid .icon08 {
	background: url(../img/technical-support.png) no-repeat center center;
	background-size: 100%;
}

.card h3 {
	font-size: 18px;
	margin-bottom: 12px;
}

.card p {
	color: var(--text-gray);
	font-size: 14px;
}

.about-bg {
	background: url(../img/abouts.png) no-repeat center center;
	background-size: 100%;
	height: 280px;
	display: flex;
	align-items: center;
	justify-content: center;
}



/* ==========优势板块========== */
.advantage-section {
	padding: 80px 0;
	background: var(--bg-gray);
}

/* ==========页脚上方背景板块========== */
.pre-footer-block {
	width: 100%;
	padding: 70px 0;
	background: linear-gradient(135deg, #eff6ff, #dbeafe);
	text-align: center;
}

.pre-footer-block h3 {
	font-size: 26px;
	color: var(--primary);
	margin-bottom: 14px;
}

.pre-footer-block p {
	max-width: 640px;
	margin: 0 auto;
	color: var(--text-gray);
}


/* ========== 产品详情长内容模块 ========== */
.product-block {
	margin-bottom: 50px;
}

.product-block h3 {
	font-size: 22px;
	color: var(--text-dark);
	margin-bottom: 16px;
	padding-left: 12px;
	border-left: 4px solid var(--primary);
}

.product-block p {
	color: var(--text-gray);
	line-height: 1.85;
	margin-bottom: 14px;
}

.product-block ul {
	padding-left: 20px;
	margin-bottom: 16px;
}

.product-block li {
	color: var(--text-gray);
	line-height: 1.8;
	list-style: disc;
	margin-bottom: 8px;
}

/* ========== 两栏布局 ========== */
.two-column {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

/* ========== 按钮样式 ========== */
.btn-primary {
	display: inline-block;
	padding: 11px 28px;
	background: var(--primary);
	color: #fff !important;
	border-radius: 8px;
	transition: background 0.3s;
}

.btn-primary:hover {
	background: #0848dd;
}

/* ========== 新闻模块样式 ========== */
.news-item {
	padding: 20px 0;
	border-bottom: 1px solid var(--border-color);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.news-item:last-child {
	border-bottom: none;
}

.news-title {
	font-size: 16px;
	color: var(--text-dark);
}

.news-title:hover {
	color: var(--primary);
}

.news-date {
	color: var(--text-gray);
	font-size: 14px;
}

/* ========== 新闻详情页样式 ========== */
.article-wrap {
	max-width: 860px;
	margin: 0 auto;
}

.article-header {
	margin-bottom: 32px;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 20px;
}

.article-header h1 {
	font-size: 28px;
	color: var(--text-dark);
	margin-bottom: 12px;
}

.article-meta {
	color: var(--text-gray);
	font-size: 14px;
}

.article-content p {
	margin-bottom: 18px;
	line-height: 1.85;
	color: #334155;
	font-size: 16px;
}

.back-news {
	margin: 40px 0;
}

/* ==========页脚========== */
footer {
	background: #111827;
	color: #b1b5bd;
	padding: 60px 0 22px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: 40px;
	margin-bottom: 40px;
}

.footer-brand h4 {
	color: #fff;
	font-size: 22px;
	margin-bottom: 12px;
}

.footer-brand p {
	font-size: 14px;
	line-height: 1.8;
}

.footer-column h4 {
	color: #fff;
	font-size: 16px;
	margin-bottom: 18px;
}

.footer-column li {
	margin-bottom: 11px;
}

.footer-column a {
	font-size: 14px;
	color: #b1b5bd;
}

.footer-column a:hover {
	color: var(--primary);
}

.copyright {
	border-top: 1px solid #272e3b;
	padding-top: 20px;
	text-align: center;
	font-size: 14px;
	color: #717784;
}

/* ========== 辅助类 ========== */
.bg-gray {
	background-color: var(--gray-bg);
	margin: 60px auto;
}

/* ========== 移动端适配 ========== */
@media (max-width:768px) {
	.nav-inner {
		height: auto;
		flex-direction: column;
		padding: 12px 16px;
	}

	.nav-list {
		gap: 14px;
		justify-content: center;
		margin-top: 8px;
	}

	.nav-wrap {
		gap: 14px;
	}

	.nav-list li a {
		height: 44px;
		font-size: 14px;
	}

	.banner h1 {
		font-size: 32px;
	}

	.banner-arrow {
		display: none !important;
	}

	.two-column {
		grid-template-columns: 1fr;
	}

	.section-title h2 {
		font-size: 26px;
	}

	.page-banner h1 {
		font-size: 26px;
	}

	.footer-container {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 32px 16px;
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}
}

@media(max-width:992px) {
	.card-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media(max-width:576px) {
	.card-grid {
		grid-template-columns: 1fr;
	}
}