/**
 * 前台功能页标题/布局紧凑化
 * 统一压低超大字号，收紧 hero 留白；不改首页营销区。
 */
body.lx-cyber-feature,
body.lx-cyber-toolbox,
body.lx-cyber-auth,
body.lx-client-auth-page {
	--lx-title-h1: clamp(1.05rem, 1.8vw, 1.28rem);
	--lx-title-h2: clamp(0.98rem, 1.4vw, 1.12rem);
	--lx-title-h3: 1rem;
}

/* 页面主标题 / WordPress 页面标题 */
body.lx-cyber-feature h1,
body.lx-cyber-toolbox h1,
body.lx-cyber-auth h1,
body.lx-cyber-feature .wp-block-post-title,
body.lx-cyber-toolbox .wp-block-post-title,
body.lx-cyber-feature .entry-title,
body.lx-client-auth-page .lx-client-page__title,
body.lx-cyber-auth .lx-client-page__title {
	font-size: var(--lx-title-h1) !important;
	line-height: 1.35 !important;
	letter-spacing: 0.02em !important;
	font-weight: 700 !important;
	margin-top: 0 !important;
}

/* Hero 内主标题 */
body.lx-cyber-feature [class*="__hero"] h1,
body.lx-cyber-feature [class*="-hero"] h1,
body.lx-cyber-feature [class$="-hero"] h1,
body.lx-cyber-feature [class*="hero__title"],
body.lx-cyber-feature [class*="__hero-title"],
body.lx-cyber-feature [class*="__hero__title"],
body.lx-cyber-toolbox [class*="__hero"] h1,
body.lx-cyber-toolbox [class*="-hero"] h1 {
	font-size: var(--lx-title-h1) !important;
	line-height: 1.35 !important;
}

/* 常见模块 title */
body.lx-cyber-feature .lx-fa__title,
body.lx-cyber-feature .lx-sh-hero__title,
body.lx-cyber-feature .lx-sd-hero__title,
body.lx-cyber-feature .lx-dm-hero__title,
body.lx-cyber-feature .lx-dcv-hero__title,
body.lx-cyber-feature .lx-docs__title,
body.lx-cyber-feature .lx-api-front__title,
body.lx-cyber-feature .lx-api-cyber__title,
body.lx-cyber-feature .lx-pg__brand-title,
body.lx-cyber-feature .lx-aw__hero h1,
body.lx-cyber-feature .lx-ac__hero h1,
body.lx-cyber-feature .lx-co__hero h1,
body.lx-cyber-feature .lx-mt__hero h1,
body.lx-cyber-feature .lx-ic-hero h1,
body.lx-cyber-feature .lx-cv-hero h1,
body.lx-cyber-feature .lx-tc-hero h1,
body.lx-cyber-feature .lx-rt-hero__title,
body.lx-cyber-feature .lx-rh-hero__title,
body.lx-cyber-feature .lx-ps-hero__title,
body.lx-cyber-feature .lx-tb__section-title,
body.lx-cyber-toolbox .lx-tb__section-title,
body.lx-cyber-feature .lx-gl__hero h1,
body.lx-cyber-feature .lx-fw__hero h1,
body.lx-cyber-feature .lx-fm__hero h1,
body.lx-cyber-feature .lx-ve__hero h1 {
	font-size: var(--lx-title-h1) !important;
	line-height: 1.35 !important;
}

/* 二级标题 */
body.lx-cyber-feature h2,
body.lx-cyber-toolbox h2 {
	font-size: var(--lx-title-h2) !important;
	line-height: 1.4 !important;
	font-weight: 700 !important;
}

body.lx-cyber-feature h3 {
	font-size: var(--lx-title-h3) !important;
	line-height: 1.4 !important;
}

/* Hero 区：收紧上下内边距（只动常见 hero 根节点） */
body.lx-cyber-feature [class*="__hero"]:not([class*="__hero-"]),
body.lx-cyber-feature [class*="-hero"]:not([class*="-hero__"]):not([class*="-hero-"]),
body.lx-cyber-toolbox [class*="__hero"]:not([class*="__hero-"]) {
	padding-top: 14px !important;
	padding-bottom: 14px !important;
}

/* 过大装饰图标：略缩小 */
body.lx-cyber-feature [class*="hero__icon"],
body.lx-cyber-feature [class*="__hero-icon"],
body.lx-cyber-feature [class*="hero-icon"] {
	font-size: 26px !important;
	line-height: 1 !important;
}

/* Hero 描述 */
body.lx-cyber-feature [class*="hero__desc"],
body.lx-cyber-feature [class*="__hero-desc"],
body.lx-cyber-feature [class*="hero__lead"],
body.lx-cyber-feature [class*="__hero-lead"] {
	font-size: 13.5px !important;
	line-height: 1.55 !important;
}

/* 登录/注册卡标题 */
body.lx-cyber-auth .lx-client-page__title,
body.lx-client-auth-page .lx-client-page__title {
	font-size: 1.2rem !important;
	margin-bottom: 12px !important;
}

/* 工具箱卡片标题 */
body.lx-cyber-toolbox .lx-tb__title {
	font-size: 16px !important;
}
body.lx-cyber-toolbox h1,
body.lx-ai-toolbox-page h1 {
	font-size: var(--lx-title-h1) !important;
}

/* 分类归档 / 文章顶栏标题适度收敛 */
body.lx-archive-page .wp-block-query-title,
body.lx-archive-page h1.wp-block-query-title,
body.lx-cyber-archive .wp-block-query-title {
	font-size: clamp(1.1rem, 2vw, 1.35rem) !important;
	line-height: 1.35 !important;
}

body.lx-cyber-single .star-banner .wp-block-post-title {
	font-size: clamp(1.1rem, 2vw, 1.4rem) !important;
	line-height: 1.35 !important;
}
