/*
 Theme Name: webok
 Theme URI: https://example.com/webok
 Description: WebOK custom standalone theme.
 Author: Local Project
 Version: 1.0.0
 Text Domain: webok
*/

/* ==========================================
   基础通用样式
   ========================================== */
/* 隐藏首页/普通页面的默认标题及标题容器 */
.home .entry-title,
.home .page-title,
.home .site-main > article > .entry-header,
.page .entry-title,
.page .page-title,
.page .site-main > article > .entry-header {
	display: none;
}

/* ==========================================
   Archive Hero Shared Skeleton (List Pages)
   ========================================== */
.webok-list-hero__inner {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: 26px;
	padding-bottom: 24px;
}

.webok-list-hero__heading-row {
	display: grid;
	grid-template-columns: minmax(0, 0.45fr) minmax(0, 1.55fr);
	gap: clamp(24px, 3vw, 54px);
	align-items: center;
	margin-top: 18px;
}

.webok-list-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.webok-list-hero__title {
	margin: 16px 0 0;
	line-height: 1.02;
	letter-spacing: -0.03em;
}

.webok-list-hero__intro {
	margin: 0;
	max-width: min(100%, 820px);
	font-weight: 400;
	line-height: 1.55;
	letter-spacing: -0.01em;
	justify-self: start;
	align-self: center;
	text-wrap: balance;
}

@media (max-width: 820px) {
	.webok-list-hero__heading-row {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.webok-list-hero__intro {
		max-width: 100%;
	}
}

@media (max-width: 640px) {
	.webok-list-hero__inner {
		padding-top: 18px;
		padding-bottom: 16px;
	}
}

/* 全局基础布局：防止溢出、弹性布局固定页脚 */
html,
body {
	margin: 0;
	padding: 0;
}
html {
	min-height: 100%; /* html占满视口高度 */
	scrollbar-gutter: stable;
}
body {
	overflow-x: clip; /* 避免横向溢出，但不创建会破坏 sticky 的滚动容器 */
	min-height: 100vh; /* body最小高度为视口高度 */
	display: flex;     /* 弹性布局，实现页脚固定 */
	flex-direction: column; /* 子元素垂直排列 */
}

/* 主内容区自动填充剩余高度，保证页脚固定在底部 */
main.site-main {
	flex: 1 0 auto;
}
/* 页脚不收缩，固定在底部 */
.webok-footer {
	flex-shrink: 0;
}

/* 隐藏前端跳过链接（无障碍功能，前端无需展示） */
.skip-link,
.screen-reader-shortcut {
	display: none !important;
}

/* WordPress 无障碍文本：视觉隐藏，供屏幕阅读器读取 */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* 键盘聚焦时可见（标准 WordPress 行为） */
.screen-reader-text:focus {
	-webkit-clip-path: none;
	clip-path: none;
	clip: auto !important;
	display: block;
	height: auto;
	width: auto;
	top: 8px;
	left: 8px;
	padding: 10px 14px;
	background: #f3f7f9;
	color: #0d3f49;
	border: 1px solid rgba(13, 63, 73, 0.2);
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	z-index: 100000;
	text-decoration: none;
}

/* ==========================================
   核心容器样式（合并重复规则，强制防覆盖）
   ========================================== */
/* 基础容器样式：首页/内页通用 */
.webok-page,
.webok-index {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px 64px;
	box-sizing: border-box; /* 盒模型统一，避免尺寸溢出 */
}
/* 容器内所有元素统一盒模型 */
.webok-page *,
.webok-index * {
	box-sizing: border-box;
}

/* 强制内页容器宽度（防后台/插件样式覆盖）
   排除首页(.webok-page--front)，仅作用于内页 */
main.webok-page:not(.webok-page--front),
main.webok-index {
	width: 100%;
	max-width: 1200px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 40px 20px 64px !important;
}

/* ==========================================
   文章内容容器样式
   ========================================== */
/* 文章卡片样式：白色背景、圆角、阴影 */
.webok-page__article,
.webok-index__article {
	background: #ffffff;
	border: 1px solid rgba(20, 64, 80, 0.08);
	border-radius: 20px;
	box-shadow: 0 16px 40px rgba(18, 58, 72, 0.06);
	padding: 32px 28px;
}

/* 文章标题样式：响应式字号、紧凑行高 */
.webok-page__title,
.webok-index__title {
	margin: 0 0 18px;
	color: #16353d;
	font-size: clamp(28px, 4vw, 42px); /* 响应式字号：28px~42px */
	line-height: 1.12;
}

/* 文章内容文本样式：主色调、行高优化可读性 */
.webok-page__content,
.webok-index__content {
	color: #4d6770;
	font-size: 16px;
	line-height: 1.85;
}

/* 清除内容区首尾元素的默认边距，避免多余空白 */
.webok-page__content > *:first-child,
.webok-index__content > *:first-child {
	margin-top: 0;
}
.webok-page__content > *:last-child,
.webok-index__content > *:last-child {
	margin-bottom: 0;
}

/* ==========================================
   关于页（主页面）样式
   ========================================== */
/* 关于页整体布局：网格布局、固定间距 */
.webok-about-page {
	display: grid;
	gap: 42px;
}

/* 关于页头部布局：双列网格、垂直居中 */
.webok-about-page__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
	gap: 34px;
	align-items: center;
}

/* 关于页小标题/章节标签：浅蓝背景、大写样式 */
.webok-about-page__eyebrow,
.webok-about-page__section-label {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 6px;
	background: #eaf5f7;
	color: #0b6b77;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* 关于页主标题：响应式字号、紧凑行高 */
.webok-about-page__headline {
	margin: 18px 0 16px;
	color: #16353d;
	font-size: clamp(34px, 5vw, 56px); /* 响应式字号：34px~56px */
	line-height: 1.08;
	letter-spacing: -0.03em;
}

/* 关于页引导文本：浅色调、大号字体 */
.webok-about-page__lead {
	margin: 0 0 24px;
	color: #5e7882;
	font-size: 18px;
	line-height: 1.9;
}

/* 关于页头部按钮组：弹性布局、自动换行 */
.webok-about-page__hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

/* 关于页按钮基础样式：主色背景、圆角、过渡动画 */
.webok-about-page__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid #11a8b5;
	border-radius: 4px;
	background: #11a8b5;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	/* 交互过渡：位移、阴影、颜色 */
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
/* 按钮hover/focus状态：深色背景、上浮、阴影 */
.webok-about-page__button:hover,
.webok-about-page__button:focus-visible {
	background: #0798a5;
	border-color: #0798a5;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 14px 24px rgba(17, 168, 181, 0.18);
}

/* 次要按钮样式：浅灰背景、深色文字 */
.webok-about-page__button--secondary {
	background: #eef3f5;
	border-color: rgba(20, 64, 80, 0.1);
	color: #16353d;
}
/* 次要按钮hover/focus状态：深灰背景、阴影 */
.webok-about-page__button--secondary:hover,
.webok-about-page__button--secondary:focus-visible {
	background: #dfe9ed;
	border-color: rgba(20, 64, 80, 0.16);
	color: #16353d;
	box-shadow: 0 14px 24px rgba(18, 58, 72, 0.08);
}

/* 关于页图片样式：自适应宽度、圆角、阴影 */
.webok-about-page__hero-media img,
.webok-about-page__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 18px;
	box-shadow: 0 18px 40px rgba(18, 58, 72, 0.12);
}

/* 关于页网格布局：双列、固定间距 */
.webok-about-page__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 30px;
	align-items: start;
}

/* 关于页章节标题：响应式字号、紧凑行高 */
.webok-about-page__section-title {
	margin: 14px 0 18px;
	color: #16353d;
	font-size: clamp(28px, 3.6vw, 38px); /* 响应式字号：28px~38px */
	line-height: 1.14;
}

/* 关于页文本段落：默认间距，最后一段清除底边距 */
.webok-about-page__copy p {
	margin: 0 0 18px;
}
.webok-about-page__copy p:last-child {
	margin-bottom: 0;
}

/* 关于页面板/分类面板/CTA容器：白色背景、圆角、阴影 */
.webok-about-page__panel,
.webok-about-page__category-panel,
.webok-about-page__cta {
	padding: 28px;
	border: 1px solid rgba(20, 64, 80, 0.1);
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 12px 30px rgba(18, 58, 72, 0.06);
}

/* 关于页面板标题：固定字号、紧凑行高 */
.webok-about-page__panel-title {
	margin: 14px 0 16px;
	color: #16353d;
	font-size: 28px;
	line-height: 1.16;
}

/* 关于页面板列表/产品列表：默认间距、行高优化 */
.webok-about-page__panel-list,
.webok-about-page__product-list {
	margin: 0;
	padding-left: 20px;
	color: #244850;
	line-height: 1.95;
}

/* 关于页产品网格：双列布局、固定间距 */
.webok-about-page__product-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 26px;
	align-items: start;
}

/* 关于页产品备注文本：浅色调、顶间距 */
.webok-about-page__product-note {
	margin: 18px 0 0;
	color: #5e7882;
}

/* 关于页图文布局：双列网格、垂直居中 */
.webok-about-page__image-copy {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
	gap: 34px;
	align-items: center;
}

/* 关于页CTA容器：渐变背景 */
.webok-about-page__cta {
	background: linear-gradient(180deg, #eff7f9 0%, #f8fbfc 100%);
}
/* 关于页CTA文本：底边距 */
.webok-about-page__cta p {
	margin: 0 0 22px;
}

/* ==========================================
   关于页（内页）样式
   ========================================== */
/* 关于内页整体布局：网格布局、固定间距 */
.webok-about-inner {
	display: grid;
	gap: 34px;
}

/* 关于内页介绍区：双列网格、顶部对齐 */
.webok-about-inner__intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 28px;
	align-items: start;
}

/* 关于内页文本/面板/CTA容器：白色背景、圆角、阴影 */
.webok-about-inner__copy,
.webok-about-inner__panel,
.webok-about-inner__cta {
	padding: 26px 24px;
	border: 1px solid rgba(20, 64, 80, 0.08);
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 12px 30px rgba(18, 58, 72, 0.05);
}

/* 关于内页小标题：浅蓝背景、大写样式 */
.webok-about-inner__eyebrow {
	display: inline-flex;
	align-items: center;
	padding: 7px 12px;
	border-radius: 4px;
	background: #eaf5f7;
	color: #0b6b77;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* 关于内页标题：响应式字号、紧凑行高 */
.webok-about-inner__title {
	margin: 14px 0 14px;
	color: #16353d;
	font-size: clamp(24px, 3.2vw, 34px); /* 响应式字号：24px~34px */
	line-height: 1.12;
}

/* 关于内页文本样式：浅色调、统一行高 */
.webok-about-inner__lead,
.webok-about-inner__copy p,
.webok-about-inner__cta p {
	color: #5e7882;
	font-size: 16px;
	line-height: 1.9;
}
/* 清除最后一段文本底边距 */
.webok-about-inner__copy p:last-child,
.webok-about-inner__cta p:last-child {
	margin-bottom: 0;
}

/* 关于内页图片：自适应宽度、圆角 */
.webok-about-inner__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
}

/* 关于内页网格布局：双列、固定间距 */
.webok-about-inner__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 28px;
	align-items: start;
}

/* 关于内页章节标题：响应式字号、紧凑行高 */
.webok-about-inner__section-title {
	margin: 0 0 16px;
	color: #16353d;
	font-size: clamp(24px, 3vw, 32px); /* 响应式字号：24px~32px */
	line-height: 1.15;
}

/* 关于内页列表：默认间距、行高优化 */
.webok-about-inner__list {
	margin: 0;
	padding-left: 20px;
	color: #244850;
	line-height: 1.95;
}

/* 关于内页产品网格：双列布局、固定间距 */
.webok-about-inner__products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

/* 关于内页CTA容器：渐变背景 */
.webok-about-inner__cta {
	background: linear-gradient(180deg, #eff7f9 0%, #f8fbfc 100%);
}

/* 关于内页按钮组：弹性布局、自动换行、顶间距 */
.webok-about-inner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 18px;
}

/* 关于内页按钮基础样式：浅灰背景、过渡动画 */
.webok-about-inner__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 20px;
	border: 1px solid rgba(20, 64, 80, 0.12);
	border-radius: 4px;
	background: #e3ecef;
	color: #16353d;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	/* 交互过渡：位移、阴影、颜色 */
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
/* 按钮hover/focus状态：深灰背景、上浮、阴影 */
.webok-about-inner__button:hover,
.webok-about-inner__button:focus-visible {
	background: #d6e2e6;
	border-color: rgba(20, 64, 80, 0.18);
	color: #16353d;
	transform: translateY(-2px);
	box-shadow: 0 12px 22px rgba(18, 58, 72, 0.08);
}

/* 次要按钮样式：极浅灰背景 */
.webok-about-inner__button--secondary {
	background: #f1f5f7;
	border-color: rgba(20, 64, 80, 0.1);
	color: #16353d;
}
/* 次要按钮hover/focus状态：深灰背景、阴影 */
.webok-about-inner__button--secondary:hover,
.webok-about-inner__button--secondary:focus-visible {
	background: #e6edf0;
	border-color: rgba(20, 64, 80, 0.16);
	color: #16353d;
	box-shadow: 0 12px 22px rgba(18, 58, 72, 0.08);
}

/* === 功能foot === */
.ucg-performance-banner {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 90%);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ucg-performance-banner * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.ucg-performance-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}
.ucg-left {
    flex: 1 1 400px;
    color: #fff;
}
.ucg-left .title-red {
    font-size: 42px;
    font-weight: 800;
    color: #E11D48;
    line-height: 1.1;
}
.ucg-left .title-white {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 16px;
}
.ucg-left .desc {
    font-size: 16px;
    color: #CBD5E1;
    line-height: 1.6;
}
.ucg-right {
    flex: 1 1 500px;
    display: flex;
    justify-content: flex-end;
    gap: 60px;
    padding-left: 40px;
    border-left: 1px solid rgba(255,255,255,0.1);
}
.ucg-item {
    text-align: center;
    color: #fff;
}
.ucg-item .num {
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}
.ucg-item .text {
    font-size: 18px;
    font-weight: 600;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .ucg-right {
        justify-content: center;
        border-left: none;
        padding-left: 0;
    }
    .ucg-left {
        text-align: center;
    }
    .ucg-left .title-red,
    .ucg-left .title-white {
        font-size: 32px;
    }
    .ucg-item .num {
        font-size: 44px;
    }
}
 
/* ==========================================
   移动端适配（断点划分：960px/640px）
   ========================================== */
/* 中等屏幕适配（≤960px）：双列网格改为单列 */
@media (max-width: 960px) {
	/* 关于页主页面 */
	.webok-about-page__hero,
	.webok-about-page__grid,
	.webok-about-page__image-copy {
		grid-template-columns: 1fr;
	}
	.webok-about-page__product-grid {
		grid-template-columns: 1fr;
	}

	/* 关于页内页 */
	.webok-about-inner__intro,
	.webok-about-inner__grid {
		grid-template-columns: 1fr;
	}
	.webok-about-inner__products {
		grid-template-columns: 1fr;
	}
}

/* 小屏幕适配（≤640px）：间距/内边距/布局优化 */
@media (max-width: 640px) {
	/* 核心容器内边距缩减 */
	.webok-page,
	.webok-index {
		padding: 24px 3px 44px;
	}
	/* 强制内页容器移动端内边距（防覆盖） */
	main.webok-page:not(.webok-page--front),
	main.webok-index {
		padding: 24px 3px 44px !important;
	}

	/* 文章卡片内边距缩减、圆角减小 */
	.webok-page__article,
	.webok-index__article {
		padding: 22px 18px;
		border-radius: 16px;
	}

	/* 关于页主页面 */
	.webok-about-page {
		gap: 30px; /* 整体间距缩减 */
	}
	.webok-about-page__hero-actions {
		flex-direction: column; /* 按钮组垂直排列 */
		align-items: stretch; /* 按钮撑满宽度 */
	}
	.webok-about-page__button {
		width: 100%; /* 按钮宽度100% */
	}
	.webok-about-page__panel,
	.webok-about-page__category-panel,
	.webok-about-page__cta {
		padding: 22px 18px; /* 面板内边距缩减 */
	}

	/* 关于页内页 */
	.webok-about-inner__copy,
	.webok-about-inner__panel,
	.webok-about-inner__cta {
		padding: 22px 18px; /* 面板内边距缩减 */
	}
	.webok-about-inner__actions {
		flex-direction: column; /* 按钮组垂直排列 */
	}
	.webok-about-inner__button {
		width: 100%; /* 按钮宽度100% */
	}
}
