/**
 * pro 主题样式（参照 RuoYi-SpringBoot3-Pro tenant-site 官网风格）
 * 与 comlink 原主题完全独立，互不影响；通过站点主题配置或 cms.front.theme 切换。
 */
:root {
	--brand: #1677ff;
	/* 首屏科技感配色（参照参照页） */
	--cyan: #00e5ff;
	--cyan-dim: rgba(0, 229, 255, 0.6);
	--navy-deep: #020617;
	--glass-bg: rgba(12, 25, 56, 0.45);
	--glass-border: rgba(0, 229, 255, 0.25);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
	color: #1f2329;
	background: #f7f8fa;
	line-height: 1.6;
	font-size: 15px;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ============ 顶部导航：固定透明悬浮于视频之上，滚动后变深色毛玻璃 ============ */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
}
.site-header.scrolled {
	background: rgba(2, 6, 23, 0.6);
	backdrop-filter: blur(20px);
	border-bottom-color: rgba(255, 255, 255, .08);
}
.site-header .header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
/* logo 显式 block + 固定尺寸，避免行内基线导致与菜单不对齐 */
.brand-logo { height: 40px; width: auto; display: block; border-radius: 10px; }
/* 渐变方形 logo 标记（参照页 navbar__logo-mark） */
.brand-mark {
	width: 36px; height: 36px; border-radius: 8px;
	background: linear-gradient(135deg, var(--cyan) 0%, #3b82f6 100%);
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 18px; color: var(--navy-deep);
	box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}
.brand-name { color: #fff; letter-spacing: .5px; display: flex; align-items: center; line-height: 1; }
.nav { display: flex; gap: 40px; align-items: center; }
.nav-item { color: rgba(255, 255, 255, 0.85); font-size: 14px; transition: color .2s; cursor: pointer; display: inline-block; position: relative; }
.nav-item::after {
	content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 1px;
	background: var(--cyan); transition: width .3s ease;
}
.nav-item:hover::after, .nav-item.active::after { width: 100%; }
.nav-item:hover, .nav-item.active { color: var(--cyan); }
.nav-search-link { display: inline-flex; align-items: center; color: rgba(255, 255, 255, 0.85); font-size: 16px; }
.nav-search-link:hover { color: var(--cyan); }
/* 导航右侧 CTA 按钮（毛玻璃） */
.nav-cta {
	padding: 10px 24px; border: 1px solid var(--glass-border); border-radius: 6px;
	background: var(--glass-bg); color: #fff; font-size: 13px; font-weight: 500;
	cursor: pointer; transition: all .2s ease; backdrop-filter: blur(10px); display: inline-block;
}
.nav-cta:hover { border-color: var(--cyan); background: rgba(0, 229, 255, 0.1); box-shadow: 0 0 20px rgba(0, 229, 255, 0.2); color: #fff; }
/* 含子栏目的悬浮下拉 */
.nav-drop { position: relative; }
.nav-sub {
	position: absolute; top: 100%; left: 50%;
	min-width: 140px; background: #fff; border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 8px 0;
	opacity: 0; visibility: hidden;
	transform: translateX(-50%) translateY(6px);
	transition: opacity .2s, transform .2s;
}
.nav-drop:hover .nav-sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-sub-item { display: block; padding: 8px 18px; color: #4e5969; font-size: 14px; white-space: nowrap; transition: background .2s, color .2s; }
.nav-sub-item:hover { background: #f2f3f5; color: var(--brand); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: #fff; cursor: pointer; }

/* ============ 首页 Hero：全屏视频 + 透明导航悬浮其上 ============ */
.hero {
	position: relative; overflow: hidden;
	/* 渐变作为视频未加载/不支持时的降级背景 */
	background: linear-gradient(180deg, var(--navy-deep), #0c1938);
	color: #fff;
	/* 视频铺满整页（含导航区域） */
	width: 100%; height: 100vh; min-height: 600px;
}
/* 背景视频：铺满 Hero，居中裁剪 */
.hero-video {
	position: absolute; left: 0; top: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: center center; z-index: 0;
}
/* 三段式渐变遮罩：上/下压暗保证导航与内容可读 */
.hero-overlay {
	position: absolute; left: 0; top: 0; width: 100%; height: 100%;
	background: linear-gradient(180deg, rgba(2, 6, 23, 0.55) 0%, rgba(2, 6, 23, 0.25) 40%, rgba(2, 6, 23, 0.65) 100%);
	z-index: 1;
}
/* 氛围光晕 */
.hero-glow {
	position: absolute; top: -20%; right: -10%; width: 600px; height: 600px;
	background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
	border-radius: 50%; z-index: 1; pointer-events: none;
}
.hero-glow--left {
	top: auto; bottom: -30%; left: -15%; right: auto; width: 500px; height: 500px;
	background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
}
/* 内容区：垂直居中，顶部预留导航空间 */
.hero .hero-inner {
	position: relative; z-index: 5; width: 100%;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	height: 100%; padding: 90px 24px 70px; text-align: center;
}
/* 徽章：企业级支付系统服务商 */
.hero-badge {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 18px; border: 1px solid var(--glass-border); border-radius: 100px;
	background: var(--glass-bg); backdrop-filter: blur(10px);
	font-size: 13px; color: var(--cyan-dim); margin-bottom: 32px;
	animation: fadeInUp .8s ease .2s both;
}
.hero-badge-dot {
	width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
	box-shadow: 0 0 8px var(--cyan); animation: pulse 2s ease-in-out infinite;
}
/* 主标题 + 渐变流光 span */
.hero-title {
	font-size: clamp(36px, 5.5vw, 64px); font-weight: 700; line-height: 1.2;
	margin: 0 0 16px; letter-spacing: -1px; color: #fff;
	animation: fadeInUp .8s ease .4s both;
}
.hero-title span {
	background: linear-gradient(90deg, var(--cyan) 0%, #60a5fa 50%, var(--cyan) 100%);
	background-size: 200% auto;
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
	animation: shimmer 3s linear infinite;
}
.hero-subtitle {
	font-size: clamp(15px, 1.6vw, 18px); color: rgba(255, 255, 255, 0.7);
	margin: 0 0 48px; font-weight: 300; letter-spacing: 2px;
	animation: fadeInUp .8s ease .6s both;
}
/* 毛玻璃搜索框（提交到 CMS 搜索） */
.hero-searchbox { width: 100%; max-width: 640px; position: relative; animation: fadeInUp .8s ease .8s both; }
.hero-searchbox-row {
	display: flex; align-items: center;
	background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px;
	backdrop-filter: blur(20px); padding: 6px 6px 6px 24px;
	transition: all .3s ease; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.hero-searchbox-row:hover { border-color: rgba(0, 229, 255, 0.5); box-shadow: 0 8px 32px rgba(0, 229, 255, 0.15); }
.hero-searchbox-row:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1), 0 8px 32px rgba(0, 229, 255, 0.2); }
.hero-searchbox-icon { width: 20px; height: 20px; color: var(--cyan-dim); flex-shrink: 0; margin-right: 12px; }
.hero-searchbox-input {
	flex: 1; background: transparent; border: none; outline: none;
	color: #fff; font-size: 15px; padding: 14px 0; font-family: inherit; min-width: 0;
}
.hero-searchbox-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.hero-searchbox-btn {
	padding: 12px 28px; border: none; border-radius: 8px;
	background: linear-gradient(135deg, var(--cyan) 0%, #3b82f6 100%);
	color: var(--navy-deep); font-size: 14px; font-weight: 600; cursor: pointer;
	transition: all .2s ease; white-space: nowrap; font-family: inherit;
}
.hero-searchbox-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0, 229, 255, 0.4); }
/* 热词标签：点击填入搜索框 */
.hero-tags {
	display: flex; justify-content: center; gap: 16px; margin-top: 20px;
	font-size: 12px; color: rgba(255, 255, 255, 0.4);
	animation: fadeInUp .8s ease 1s both;
}
.hero-tags span { cursor: pointer; transition: color .2s ease; }
.hero-tags span:hover { color: var(--cyan-dim); }
/* 底部 SCROLL 滚动提示 */
.scroll-indicator {
	position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
	z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 8px;
	color: rgba(255, 255, 255, 0.4); font-size: 12px; letter-spacing: 2px;
	animation: fadeInUp .8s ease 1.2s both;
}
.scroll-indicator-line {
	width: 1px; height: 40px;
	background: linear-gradient(180deg, var(--cyan) 0%, transparent 100%);
	animation: scrollLine 2s ease-in-out infinite;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(1.2); } }
@keyframes scrollLine { 0%, 100% { opacity: .3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ============ 板块通用 ============ */
.section { padding: 48px 20px; }
.section-alt { background: #fff; }
.section-head { position: relative; text-align: center; margin-bottom: 36px; }
.section-title { font-size: 32px; font-weight: 700; color: #1d2129; margin: 0; letter-spacing: 1px; }
.section-title::after {
	content: ''; display: block; width: 48px; height: 3px; margin: 16px auto 0; border-radius: 2px; background: var(--brand);
}
.more-link { position: absolute; right: 0; top: 10px; color: #4e5969; font-size: 14px; transition: color .2s; }
.more-link:hover { color: var(--brand); }

/* 资讯卡片网格 */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
	background: #fff; border-radius: 12px; padding: 0; overflow: hidden;
	display: flex; flex-direction: column; min-height: 160px;
	box-shadow: 0 2px 10px rgba(0,0,0,.04); transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,0,0,.1); }
/* 卡片封面图：后台未维护图片时显示主题内置默认封面 */
.news-thumb { height: 160px; background: #0c1938 center/cover no-repeat; }
.news-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.news-title { font-size: 17px; margin: 0 0 10px; line-height: 1.5; color: #1f2329; }
.news-summary { color: #86909c; font-size: 14px; margin: 0 0 auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-date { color: #c9cdd4; font-size: 13px; margin-top: 14px; }

/* 子栏目导航卡片 */
.col-nav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.col-nav-card {
	display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,.04); transition: transform .2s, box-shadow .2s; padding: 22px;
}
.col-nav-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,0,0,.1); }
.col-nav-name { font-size: 18px; margin: 0 0 8px; color: #1d2129; }
.col-nav-desc { color: #86909c; font-size: 14px; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.col-nav-arrow { color: var(--brand); font-size: 13px; }

.empty-tip { text-align: center; color: #86909c; padding: 30px 0; }

/* 表单提交按钮（留言等内页使用） */
.btn-brand {
	display: inline-block; background: var(--brand); color: #fff;
	padding: 10px 26px; border-radius: 6px; font-size: 15px; border: none; cursor: pointer;
	transition: opacity .2s;
}
.btn-brand:hover { opacity: .9; color: #fff; }

/* ============ 列表页 ============ */
.page-banner { background: linear-gradient(135deg, var(--brand), #0b1f4d); color: #fff; padding: 118px 0 46px; }
.page-banner h1 { margin: 0 0 8px; font-size: 30px; font-weight: 700; }
.page-banner p { margin: 0; opacity: .85; font-size: 15px; }
.breadcrumb-bar { background: #fff; border-bottom: 1px solid #f0f0f0; }
.breadcrumb-bar .container { display: flex; align-items: center; gap: 6px; height: 46px; font-size: 14px; color: #86909c; flex-wrap: wrap; }
.breadcrumb-bar a { color: #86909c; }
.breadcrumb-bar a:hover { color: var(--brand); }
.breadcrumb-bar .sep { color: #c9cdd4; margin: 0 4px; }
.breadcrumb-bar .current { color: #1f2329; }

.list-wrap { padding: 40px 0 60px; }
.post-list { display: flex; flex-direction: column; gap: 16px; }
.post-row {
	display: flex; gap: 18px; background: #fff; border-radius: 12px; padding: 20px;
	box-shadow: 0 2px 10px rgba(0,0,0,.04); transition: box-shadow .2s;
}
.post-row:hover { box-shadow: 0 10px 26px rgba(0,0,0,.1); }
.post-thumb { flex: 0 0 180px; height: 110px; border-radius: 8px; background: #f2f3f5 center/cover no-repeat; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.post-title { font-size: 17px; margin: 0 0 8px; color: #1f2329; }
.post-row:hover .post-title { color: var(--brand); }
.post-summary { color: #86909c; font-size: 14px; margin: 0 0 auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-date { color: #c9cdd4; font-size: 13px; margin-top: 10px; }

/* ============ 分页 ============ */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.pager a, .pager span {
	display: inline-block; min-width: 36px; height: 36px; line-height: 34px; text-align: center;
	padding: 0 12px; background: #fff; border: 1px solid #e5e6eb; border-radius: 6px; color: #4e5969; font-size: 14px;
}
.pager a:hover { color: var(--brand); border-color: var(--brand); }
.pager span.current { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager span.disabled { color: #c9cdd4; background: #f7f8fa; }

/* ============ 文章详情 ============ */
.article-view { background: #fff; border-radius: 12px; padding: 40px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.article-view h1.article-title { font-size: 28px; margin: 0 0 16px; color: #1d2129; line-height: 1.4; }
.article-meta { color: #86909c; font-size: 13px; padding-bottom: 18px; border-bottom: 1px solid #f0f0f0; margin-bottom: 26px; }
.article-meta span { margin-right: 18px; }
.rich { font-size: 15px; color: #4e5969; line-height: 1.9; word-break: break-word; }
.rich img { max-width: 100%; height: auto; border-radius: 8px; }
.rich p { margin: 0 0 12px; }
.rich h1, .rich h2, .rich h3 { color: #1d2129; margin: 18px 0 12px; }
.rich table { border-collapse: collapse; max-width: 100%; }
.rich table td, .rich table th { border: 1px solid #e5e6eb; padding: 6px 10px; }
.article-back { margin-top: 30px; }
.article-back a { color: var(--brand); font-size: 14px; }

/* ============ 搜索页 ============ */
.search-box { background: #fff; border-radius: 12px; padding: 26px; box-shadow: 0 2px 10px rgba(0,0,0,.04); margin-bottom: 24px; }
.search-box .search-input-row { display: flex; gap: 10px; max-width: 680px; }
.search-box input[type=text] {
	flex: 1; padding: 11px 16px; border-radius: 6px; border: 1px solid #e5e6eb; font-size: 15px; outline: none;
}
.search-box input[type=text]:focus { border-color: var(--brand); }
.search-stat { color: #86909c; font-size: 14px; margin: 0 0 16px; }
.search-result { background: #fff; border-radius: 12px; padding: 22px 26px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.search-result .result-title { font-size: 17px; margin: 0 0 8px; }
.search-result .result-title a { color: #1f2329; }
.search-result .result-title a:hover { color: var(--brand); }
.search-result .result-desc { color: #86909c; font-size: 14px; margin: 0 0 8px; }
.search-result .result-info { color: #c9cdd4; font-size: 13px; }
.search-result em, .news-title em, .post-title em, .result-desc em { color: var(--brand); font-style: normal; }

/* ============ 留言/评论/站点地图 ============ */
.panel-card { background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.panel-card h3 { margin: 0 0 20px; font-size: 20px; color: #1d2129; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 14px; color: #4e5969; margin-bottom: 6px; }
.form-row input[type=text], .form-row input[type=email], .form-row select, .form-row textarea {
	width: 100%; max-width: 560px; padding: 10px 14px; border: 1px solid #e5e6eb; border-radius: 6px; font-size: 14px; outline: none;
}
.form-row textarea { min-height: 120px; resize: vertical; }
.guestbook-item { border-bottom: 1px solid #f0f0f0; padding: 16px 0; }
.guestbook-item .gb-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.guestbook-item .gb-name { color: #1f2329; font-weight: 600; }
.guestbook-item .gb-date { color: #c9cdd4; }
.guestbook-item .gb-content { color: #4e5969; font-size: 14px; }
.guestbook-item .gb-reply { background: #f7f8fa; border-radius: 8px; padding: 10px 14px; margin-top: 10px; color: #86909c; font-size: 14px; }
.sitemap-group { margin-bottom: 22px; }
.sitemap-group h4 { font-size: 17px; color: #1d2129; margin: 0 0 10px; }
.sitemap-group a { display: inline-block; margin: 0 18px 8px 0; color: #4e5969; font-size: 14px; }
.sitemap-group a:hover { color: var(--brand); }

/* ============ 底部 ============ */
.site-footer { background: #1d2129; color: #c9cdd4; margin-top: 60px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 40px 0 24px; }
.footer-contact p { margin: 4px 0; font-size: 14px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-links dl { margin: 0; }
.footer-links dt { font-size: 15px; color: #fff; margin-bottom: 10px; font-weight: 600; }
.footer-links dd { margin: 0 0 8px; }
.footer-links dd a { color: #c9cdd4; font-size: 14px; }
.footer-links dd a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom-inner { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px; padding: 16px 0; font-size: 13px; color: #86909c; }
.footer-bottom-inner a { color: #86909c; }
.footer-bottom-inner a:hover { color: #c9cdd4; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
	.nav { gap: 22px; }
	.news-grid, .col-nav-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.hero { min-height: 480px; }
	/* 移动端不加载视频，节省流量，直接走渐变背景 */
	.hero-video { display: none; }
	.hero-title { font-size: 30px; letter-spacing: 0; }
	.hero-inner { padding: 80px 16px 60px; }
	.hero-searchbox-row { padding: 4px 4px 4px 16px; }
	.hero-searchbox-btn { padding: 10px 18px; font-size: 13px; }
	.hero-tags { flex-wrap: wrap; gap: 10px; }
	.news-grid, .col-nav-grid { grid-template-columns: 1fr; }
	.nav {
		display: none; position: absolute; top: 72px; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: rgba(2, 6, 23, 0.95); backdrop-filter: blur(20px);
		border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 8px 24px rgba(0,0,0,.4); padding: 8px 0;
	}
	.nav.open { display: flex; }
	.nav-item { padding: 12px 20px; }
	.nav-item::after { display: none; }
	.nav-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 16px; background: transparent; }
	.nav-sub-item { color: rgba(255, 255, 255, 0.75); }
	.nav-sub-item:hover { background: rgba(255, 255, 255, 0.06); color: var(--cyan); }
	.nav-toggle { display: block; }
	.post-thumb { display: none; }
	.article-view { padding: 24px 18px; }
	.article-view h1.article-title { font-size: 22px; }
}
