/* =========================================================
   人安消防 品牌前端资产 renan.css (v0.6.2)
   整改方案 v2.0 设计系统：令牌 / 组件 / 卡片 / 时间轴 / 证书墙 / 底部条
   ========================================================= */

/* ---------- 1. 设计令牌 ---------- */
:root {
	--renan-red: #C8102E;
	--renan-red-dark: #8F0B22;
	--renan-ink: #0E1420;
	--renan-slate: #2E3947;
	--renan-amber: #F5A623;
	--renan-green: #1FA46B;
	--renan-bg: #F4F5F7;
	--renan-line: #E2E6EA;
	--renan-text: #1F2733;
	--renan-muted: #4B5563;
	--renan-faint: #6B7280;
	--renan-flame: #FF8C00;
	--renan-flame-dark: #B35A00;
	--renan-flame-soft: rgba(255,140,0,.14);
	--renan-ink-2: #16181D;
	--renan-ink-3: #1E222A;
	--renan-text-on-dark: #E8ECF1;
	--renan-muted-on-dark: #9AA7B5;
	--renan-line-dark: rgba(255,255,255,.12);
	--renan-surface: #FFFFFF;
	--renan-heading: var(--renan-ink);
	--renan-body: var(--renan-text);
	--renan-focus-ring: rgba(200,16,46,.35);
	--renan-font-sans: "PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif;
	--renan-font-num: "Barlow Condensed","Oswald",sans-serif;
	--renan-dur-base: 300ms;
	--renan-ease: cubic-bezier(.22, 1, .36, 1);
	--renan-dur-micro: 200ms;
	--renan-dur-reveal: 500ms;
	--renan-radius: 10px;
	--renan-safe-bottom: calc(58px + env(safe-area-inset-bottom));
}

@font-face {
	/* Barlow Condensed Bold 数字子集，SIL Open Font License 1.1 */
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/barlow-condensed-digits.woff") format("woff");
	unicode-range: U+0025, U+002B, U+0030-0039;
}

/* ---------- 2. 区块头与栅格 ---------- */
.renan-section-head { text-align: center; margin-bottom: 28px; }
.renan-section-head--left { text-align: left; }
.renan-kicker {
	display: inline-block; font-size: 12px; letter-spacing: 2px; color: var(--renan-red);
	font-weight: 600; text-transform: uppercase; margin-bottom: 8px;
}
.renan-kicker::before { content: "// "; }
.renan-section-title { font-size: 32px; font-weight: 700; color: var(--renan-ink); margin: 0 0 8px; line-height: 1.25; }
.renan-section-sub { color: var(--renan-muted); font-size: 15px; margin: 0; }

/* ---------- 3. 按钮 ---------- */
.renan-btn { display: inline-block; padding: 11px 26px; border-radius: 8px; font-size: 15px; font-weight: 600;
	border: 1px solid transparent; cursor: pointer; text-decoration: none; min-height: 44px; box-sizing: border-box;
	transition: all var(--renan-dur-micro) var(--renan-ease); }
.renan-btn--red { background: var(--renan-red); color: #fff; }
.renan-btn--red:hover { background: var(--renan-red-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(200, 16, 46, .25); }
.renan-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.renan-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.renan-btn--slate { background: var(--renan-slate); color: #fff; }
.renan-btn--slate:hover { background: #23303d; transform: translateY(-2px); }
.renan-btn--flame { background: var(--renan-flame); color: var(--renan-ink); }
.renan-btn--flame:hover { background: var(--renan-flame-dark); color: var(--renan-ink); transform: translateY(-2px); }
.renan-btn:focus-visible { outline: 3px solid rgba(200, 16, 46, .35); outline-offset: 2px; }

/* ---------- 4. 卡片体系 ---------- */
.renan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1024px) { .renan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .renan-grid { grid-template-columns: 1fr; } }

.renan-card {
	position: relative; display: block; background: #fff; border: 1px solid var(--renan-line);
	border-radius: var(--renan-radius); overflow: hidden; text-decoration: none;
	transition: transform var(--renan-dur-micro) var(--renan-ease), box-shadow var(--renan-dur-micro) var(--renan-ease), border-color var(--renan-dur-micro);
}
.renan-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(14, 20, 32, .10); border-color: var(--renan-red); }

.renan-card-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--renan-bg); }
.renan-card-img--ph { display: flex; align-items: center; justify-content: center; color: var(--renan-faint); font-size: 13px; }
.renan-card-img--cert { aspect-ratio: 3 / 4; }
.renan-card--news .renan-card-img { aspect-ratio: 8 / 5; }

.renan-card-body { display: block; padding: 16px 18px 18px; }
.renan-card-title { display: block; font-size: 17px; font-weight: 600; color: var(--renan-ink); line-height: 1.4; margin: 6px 0; }
.renan-card-excerpt { display: block; color: var(--renan-muted); font-size: 14px; line-height: 1.6; }
.renan-card-meta { display: block; color: var(--renan-faint); font-size: 13px; margin-top: 6px; }
.renan-card-arrow { position: absolute; right: 16px; bottom: 16px; color: var(--renan-red); font-size: 18px; transition: transform var(--renan-dur-micro) var(--renan-ease), color var(--renan-dur-micro); }
.renan-card:hover .renan-card-arrow { transform: translateX(4px); color: var(--renan-flame); }

/* 服务卡 */
.renan-card--service { padding: 22px; display: flex; gap: 14px; align-items: flex-start; }
.renan-service-icon { flex: none; width: 52px; height: 52px; border-radius: 12px; background: rgba(200, 16, 46, .08);
	display: flex; align-items: center; justify-content: center; color: var(--renan-red); font-size: 24px; }
.renan-card--service .renan-card-body { padding: 0; }
.renan-card--service .renan-card-title { margin-top: 0; }

/* 证书卡 */
.renan-card--cert { cursor: zoom-in; }
.renan-card--cert .renan-card-body { padding: 12px 14px 14px; }
.renan-card--cert .renan-card-title { font-size: 15px; }

/* 招聘/行业卡 */
.renan-card--job .renan-card-body, .renan-card--industry .renan-card-body { padding: 16px 18px 18px; }
.renan-card--industry { border-left: 3px solid var(--renan-flame); }
.renan-card--industry:hover { border-left-color: var(--renan-red); background: var(--renan-flame-soft); }

/* 标签 chip */
.renan-chip { display: inline-block; background: rgba(200, 16, 46, .08); color: var(--renan-red);
	font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.renan-chip--ghost { background: var(--renan-bg); color: var(--renan-slate); }
.renan-chip--kind { background: var(--renan-flame-soft); color: var(--renan-flame-dark); margin-left: 6px; }
.renan-card--job .renan-job-apply { display: inline-flex; margin-top: 12px; }
.renan-org-chart-wrap { margin: 24px 0; text-align: center; }
.renan-org-chart-wrap img { max-width: 100%; height: auto; border: 1px solid var(--renan-line); border-radius: var(--renan-radius); }
.renan-org-chart-wrap figcaption { color: var(--renan-muted); font-size: 13px; margin-top: 8px; }

/* ---------- 5. 数据看板 ---------- */
.renan-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 768px) { .renan-stats { grid-template-columns: repeat(2, 1fr); } }
.renan-stat { text-align: center; color: #fff; padding: 8px 0; }
.renan-stat-num { font-size: 46px; font-weight: 700; color: var(--renan-red); font-family: var(--renan-font-num); }
.renan-stat-suffix { font-size: 26px; color: var(--renan-flame); font-weight: 700; }
.renan-stat-label { display: block; margin-top: 4px; font-size: 14px; color: #c9cfd6; }

/* ---------- 6. 时间轴（发展历程） ---------- */
.renan-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.renan-timeline::before { content: ""; position: absolute; left: 108px; top: 0; bottom: 0; width: 2px; background: var(--renan-line); }
.renan-timeline-item { position: relative; padding: 0 0 28px 140px; }
.renan-timeline-item::before { content: ""; position: absolute; left: 102px; top: 6px; width: 14px; height: 14px;
	border-radius: 50%; background: var(--renan-red); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--renan-red); }
.renan-timeline-year { position: absolute; left: 0; top: 0; width: 96px; text-align: right; font-size: 18px;
	font-weight: 700; color: var(--renan-ink); font-family: var(--renan-font-num); }
.renan-timeline-body strong { font-size: 16px; color: var(--renan-ink); }
.renan-timeline-body p { color: var(--renan-muted); font-size: 14px; line-height: 1.6; margin: 4px 0 0; }
.renan-timeline-item:hover::before { background: var(--renan-flame); box-shadow: 0 0 0 2px var(--renan-flame); }
.renan-timeline-item:hover .renan-timeline-year { color: var(--renan-flame); }
@media (max-width: 640px) { .renan-timeline::before { left: 12px; } .renan-timeline-item { padding-left: 44px; }
	.renan-timeline-item::before { left: 6px; } .renan-timeline-year { position: static; width: auto; text-align: left; } }

/* ---------- 7. 品牌表格与表单 ---------- */
.renan-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.renan-table th, .renan-table td { border: 1px solid var(--renan-line); padding: 11px 14px; text-align: left; font-size: 15px; line-height: 1.7; }
.renan-table th { background: var(--renan-ink); color: #fff; font-weight: 600; width: 150px; white-space: nowrap; }
.renan-table tbody tr:nth-child(even) { background: #fafbfc; }
.renan-table tbody tr:hover { background: #f2f4f6; }

.renan-form input[type=text], .renan-form input[type=tel], .renan-form input[type=email],
.renan-form select, .renan-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--renan-line); border-radius: 8px;
	font-size: 16px; min-height: 44px; transition: border-color var(--renan-dur-micro), box-shadow var(--renan-dur-micro);
}
.renan-form input:focus, .renan-form select:focus, .renan-form textarea:focus {
	outline: none; border-color: var(--renan-red); box-shadow: 0 0 0 3px var(--renan-focus-ring);
}
.renan-form label { display: block; margin: 12px 0; font-size: 14px; color: var(--renan-text); }

/* ---------- 8. 地图 ---------- */
.renan-map { border-radius: var(--renan-radius); overflow: hidden; background: var(--renan-bg); margin: 16px 0; }
.renan-map-frame { width: 100%; height: 380px; border: 0; display: block; }
.renan-map-addr { padding: 10px 14px; font-size: 14px; color: var(--renan-text); border-top: 1px solid var(--renan-line); }
.renan-map-nav { padding: 0 14px 14px; }

/* ---------- 9. 移动端底部快捷条 ---------- */
.renan-mobile-bar { display: none; }
@media (max-width: 768px) {
	.renan-mobile-bar {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
		background: var(--renan-ink); border-top: 2px solid var(--renan-red);
		box-shadow: 0 -2px 12px rgba(0, 0, 0, .25); padding-bottom: env(safe-area-inset-bottom);
	}
	.renan-mobile-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
		padding: 9px 4px; color: #fff; font-size: 12px; text-decoration: none; min-height: 44px; justify-content: center; }
	.renan-mobile-bar a svg { color: var(--renan-red); }
	.renan-mobile-bar a:nth-child(2) svg { color: #c9cfd6; }
	.renan-mobile-bar a:nth-child(3) svg { color: #c9cfd6; }
	.renan-mobile-bar a:active { background: var(--renan-slate); }
	body { padding-bottom: var(--renan-safe-bottom) !important; }
}

/* ---------- 10. 动效与无障碍 ---------- */
.renan-reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--renan-dur-reveal) var(--renan-ease), transform var(--renan-dur-reveal) var(--renan-ease); }
.renan-reveal.is-inview { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.renan-reveal { opacity: 1; transform: none; }
}

/* ---------- 11. 通用 ---------- */
.renan-note { color: var(--renan-faint); font-size: 13px; }
.renan-tel { color: var(--renan-red); font-weight: 600; text-decoration: none; }
.renan-ul { padding-left: 20px; line-height: 1.8; color: var(--renan-text); }

/* ---------- 12. 吸顶导航加深 ---------- */
.renan-header-scrolled { background: rgba(14, 20, 32, .94) !important; backdrop-filter: blur(12px); box-shadow: 0 2px 14px rgba(0, 0, 0, .18); }
.renan-header-scrolled .main-header-menu a, .renan-header-scrolled .ast-builder-menu a,
.renan-header-scrolled .site-title, .renan-header-scrolled .site-description { color: #fff !important; }
.renan-header-scrolled .main-header-menu .sub-menu a { color: var(--renan-ink) !important; }

/* ---------- 13. 顶部工具条 ---------- */
.renan-topbar { background: var(--renan-ink); color: var(--renan-text-on-dark); font-size: 13px;
	display: flex; justify-content: space-between; align-items: center; padding: 6px 24px; }
.renan-topbar a { color: inherit; text-decoration: none; }
.renan-topbar__left { display: flex; align-items: center; gap: 16px; }
.renan-topbar__tel { color: var(--renan-flame) !important; font-weight: 700; }
.renan-topbar__right { display: flex; align-items: center; gap: 12px; }
.renan-topbar__qr { position: relative; background: none; border: 0; color: var(--renan-text-on-dark); font-size: 13px; cursor: pointer; padding: 4px 8px; }
.renan-topbar__qr-pop { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 10000;
	background: #fff; border-radius: 10px; box-shadow: 0 12px 24px rgba(14,20,32,.18); padding: 10px; }
.renan-topbar__qr-pop.is-open { display: block; }
.renan-topbar__qr-pop img { display: block; width: 200px; height: auto; }
.renan-topbar__lang { display: flex; align-items: center; gap: 6px; }
.renan-topbar__lang a { padding: 3px 10px; border-radius: 999px; color: var(--renan-muted-on-dark); }
.renan-topbar__lang a.is-active { background: var(--renan-red); color: #fff; }
@media (max-width: 768px) {
	.renan-topbar { padding: 5px 16px; }
	.renan-topbar__right { display: none; }
}

/* ---------- 14. 吸顶 ---------- */
.site-header { position: sticky; top: 0; z-index: 9990; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header .custom-logo-link,
.ast-site-identity .custom-logo-link { display: inline-flex; align-items: center; }
.site-header .custom-logo,
.ast-site-identity .custom-logo {
	height: 48px; width: 48px; max-width: 48px; object-fit: contain;
}
.renan-header-scrolled .custom-logo { height: 36px; width: 36px; max-width: 36px; }
@media (max-width: 921px) {
	.site-header .custom-logo,
	.ast-site-identity .custom-logo { height: 40px; width: 40px; max-width: 40px; }
}

/* ---------- 15. 首页皮肤（class 契约；火色仅按钮/CTA/底边） ---------- */
.renan-topbar { background: var(--renan-ink); color: var(--renan-text-on-dark); }
.renan-topbar__tel { color: var(--renan-flame) !important; }
.renan-topbar__qr { color: var(--renan-text-on-dark); }

.renan-home-hero { position: relative; overflow: hidden; }
.renan-home-hero .elementor-background-overlay {
	background: rgba(14, 20, 32, .70) !important;
	z-index: 1;
}
.renan-home-hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
	background: var(--renan-red); z-index: 3; pointer-events: none;
}
.renan-hero-slideshow { position: absolute; inset: 0; z-index: 0; }
.renan-hero-slideshow .renan-hero-slide {
	position: absolute; inset: 0; background-size: cover; background-position: center;
	opacity: 0; transition: opacity 1.5s ease-in-out;
}
.renan-hero-slideshow .renan-hero-slide.is-active { opacity: 1; }
.renan-home-hero .elementor-container { position: relative; z-index: 2; }

.renan-home-stats { background: var(--renan-ink) !important; }
.renan-home-stats .renan-stat-num { color: var(--renan-red); }
.renan-home-stats .renan-stat-suffix { color: var(--renan-flame); }
.renan-home-stats .renan-stat-label { color: var(--renan-muted-on-dark); }

.renan-home-certs { background: var(--renan-ink-2) !important; }

.renan-home-cta { background: linear-gradient(135deg, var(--renan-red) 0%, var(--renan-red-dark) 100%) !important; }
.renan-home-cta .elementor-widget-heading .elementor-heading-title { color: #fff !important; }

.renan-hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.renan-hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: background var(--renan-dur-micro); }
.renan-hero-dots button.is-active { background: #fff; }
.renan-hero-pause { position: absolute; bottom: 18px; right: 22px; z-index: 3; background: rgba(0,0,0,.30); color: #fff; border: 0; border-radius: 16px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.renan-hero-pause:hover { background: rgba(0,0,0,.45); }
.renan-grid.is-loading { opacity: .5; pointer-events: none; transition: opacity .2s; }

/* ---------- 16. 主题模板组件 ---------- */
.renan-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.renan-filter button {
	min-height: 40px; padding: 8px 16px; border: 1px solid var(--renan-line);
	background: #fff; color: var(--renan-slate); border-radius: 999px;
	font-size: 14px; cursor: pointer;
}
.renan-filter button.is-active,
.renan-filter button[aria-pressed="true"] {
	background: var(--renan-red); color: #fff; border-color: var(--renan-red);
}
.renan-tax-header { margin-bottom: 24px; }
.renan-tax-desc { color: var(--renan-muted); font-size: 15px; margin: 8px 0 0; }
.renan-tax-cta, .renan-case-cta, .renan-service-cta {
	margin-top: 40px; padding: 28px 24px;
	background: var(--renan-bg); border-radius: var(--renan-radius);
	display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.renan-case-header { margin-bottom: 24px; }
.renan-case-nav {
	display: flex; justify-content: space-between; gap: 16px;
	margin: 32px 0; padding: 16px 0;
	border-top: 1px solid var(--renan-line); border-bottom: 1px solid var(--renan-line);
}
.renan-case-nav a { color: var(--renan-slate); text-decoration: none; }
.renan-case-nav a:hover { color: var(--renan-red); }
.renan-service-header { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.renan-service-icon--lg { width: 72px; height: 72px; font-size: 32px; }
.renan-service-faq { margin-top: 40px; }
.renan-service-faq .renan-btn--ghost {
	color: var(--renan-slate); border-color: var(--renan-slate); background: transparent;
}
.renan-service-faq .renan-btn--ghost:hover { background: var(--renan-slate); color: #fff; }
.renan-service-others { margin-top: 48px; }
.renan-404 { text-align: center; padding: 48px 16px 72px; }
.renan-404-code { font-size: 72px; font-weight: 700; color: var(--renan-red); font-family: var(--renan-font-num); line-height: 1; margin-bottom: 8px; }
.renan-404-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 24px 0 16px; }
.renan-404 .search-form, .renan-404 form.search-form { margin-top: 16px; }
.renan-ajax-pager { margin: 32px 0; text-align: center; }
.renan-ajax-pager .page-numbers { display: inline-flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; }
.renan-ajax-pager .page-numbers li { display: inline; }
.renan-ajax-pager a,
.renan-ajax-pager span.page-numbers {
	display: inline-block; min-width: 40px; min-height: 40px; line-height: 40px;
	padding: 0 12px; border: 1px solid var(--renan-line); border-radius: 8px;
	color: var(--renan-slate); text-decoration: none; box-sizing: border-box;
}
.renan-ajax-pager .current { background: var(--renan-red); color: #fff; border-color: var(--renan-red); }

.renan-grid--industries { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1024px) { .renan-grid--industries { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .renan-grid--industries { grid-template-columns: 1fr; } }

.renan-service-icon .dashicons { width: 28px; height: 28px; font-size: 28px; line-height: 28px; }
.renan-service-icon--lg .dashicons { width: 36px; height: 36px; font-size: 36px; line-height: 36px; }

.renan-steps {
	display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
	list-style: none; padding: 0; margin: 24px 0;
}
@media (max-width: 1024px) { .renan-steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .renan-steps { grid-template-columns: 1fr 1fr; } }
.renan-steps li {
	background: #fff; border: 1px solid var(--renan-line); border-radius: var(--renan-radius);
	padding: 16px 14px 18px;
}
.renan-steps__num { display: block; color: var(--renan-red); font-weight: 700; font-family: var(--renan-font-num); font-size: 22px; }
.renan-steps__title { display: block; font-weight: 600; color: var(--renan-ink); margin-top: 4px; }

.renan-lightbox {
	position: fixed; inset: 0; z-index: 99999; background: rgba(10,12,16,.88);
	display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out;
}
.renan-lightbox.is-open { display: flex; }
.renan-lightbox img { max-width: 92%; max-height: 92%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.renan-lightbox__close {
	position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: #fff; color: var(--renan-ink); font-size: 24px; cursor: pointer;
}
.renan-case-figure img, .renan-case-content img { cursor: zoom-in; }

.renan-backtop {
	position: fixed; right: 20px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 9998;
	width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--renan-ink-2); color: #fff;
	font-size: 18px; cursor: pointer; opacity: 0; pointer-events: none;
	transition: opacity var(--renan-dur-micro) var(--renan-ease);
	box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.renan-backtop.is-visible { opacity: 1; pointer-events: auto; }
