/*
 Theme Name: HelloWorld 跨境翻译官网
 Theme URI: https://helloward.com/
 Description: 轻量化 WordPress 跨境 SaaS 翻译官网首页主题，纯原生 PHP+CSS+JS，不依赖任何第三方插件。
 Version: 1.0.0
 Author: HelloWorld Dev
 Tags: translation, saas, business, blue, responsive, customizer
 Text Domain: helloworld
*/

/* ============================================================
 * 设计变量（浅蓝简约商务 UI）
 * ========================================================== */
:root {
	--hw-primary: #2563EB;
	--hw-primary-dark: #1E40AF;
	--hw-secondary: #1E40AF;
	--hw-heading: #1F2937;
	--hw-body: #6B7280;
	--hw-bg: #FFFFFF;
	--hw-surface: #F8FAFC;
	--hw-light: #F9FAFB;
	--hw-border: #E5E7EB;
	--hw-muted: #9CA3AF;

	--hw-grad-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	--hw-grad-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	--hw-grad-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	--hw-grad-primary: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);

	--hw-radius: 16px;
	--hw-radius-lg: 24px;
	--hw-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
	--hw-shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.08);

	--hw-container: 1200px;
	--hw-gap: 24px;
}

/* ============================================================
 * 基础重置
 * ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
		"Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
	color: var(--hw-body);
	background: var(--hw-bg);
	line-height: 1.6;
	font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hw-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--hw-primary-dark); }
h1, h2, h3, h4, h5, h6 { color: var(--hw-heading); margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.screen-reader-text {
	border: 0; clip-path: inset(50%); height: 1px; width: 1px; position: absolute;
	overflow: hidden; word-wrap: normal !important;
}
.skip-link:focus {
	background: #fff; color: var(--hw-primary); padding: 10px 16px; z-index: 9999;
	position: fixed; top: 8px; left: 8px; clip-path: none; width: auto; height: auto;
}

/* ============================================================
 * 容器 & 通用
 * ========================================================== */
.hw-container {
	max-width: var(--hw-container);
	margin: 0 auto;
	padding: 0 20px;
}
.hw-section { padding: 80px 0; }
.hw-section-title {
	text-align: center;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 800;
	margin-bottom: 16px;
}
.hw-section-subtitle {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 48px;
	font-size: 17px;
	color: var(--hw-body);
}

/* 按钮 */
.hw-btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
	border: 2px solid transparent;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
	white-space: nowrap;
}
.hw-btn:hover { transform: translateY(-2px); }
.hw-btn-primary { background: var(--hw-primary); color: #fff; }
.hw-btn-primary:hover { background: var(--hw-primary-dark); color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.35); }
.hw-btn-light { background: #fff; color: var(--hw-primary); }
.hw-btn-light:hover { background: #eef3ff; color: var(--hw-primary-dark); }
.hw-btn-outline { background: transparent; color: var(--hw-primary); border-color: var(--hw-primary); }
.hw-btn-outline:hover { background: var(--hw-primary); color: #fff; }
.hw-btn-lg { padding: 16px 44px; font-size: 17px; }

/* ============================================================
 * 吸顶导航
 * ========================================================== */
.hw-header {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 1000;
	background: transparent;
	transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
}
.hw-header.is-stuck {
	position: fixed;
	background: #fff;
	box-shadow: var(--hw-shadow-sm);
}
.hw-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
}
.hw-logo img { height: 39px; width: auto; }
.hw-nav { margin-right: auto; margin-left: 48px; }
.hw-nav .hw-menu { display: flex; align-items: center; gap: 40px; }
.hw-nav .hw-menu a {
	color: var(--hw-heading);
	font-size: 16px;
	font-weight: 500;
}
.hw-header.is-stuck .hw-nav .hw-menu a { color: var(--hw-heading); }
.hw-nav .hw-menu a:hover { color: var(--hw-primary); }
.hw-header.is-stuck .hw-nav .hw-menu a:hover { color: var(--hw-primary); }
.hw-header-cta .hw-btn { padding: 9px 22px; }

/* 汉堡按钮 */
.hw-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px; height: 42px;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 8px;
}
.hw-hamburger span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--hw-heading);
	border-radius: 2px;
	transition: background-color .3s ease, transform .3s ease, opacity .3s ease;
}
.hw-header.is-stuck .hw-hamburger span { background: var(--hw-heading); }
.hw-hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hw-hamburger.is-active span:nth-child(2) { opacity: 0; }
.hw-hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端菜单 */
.hw-mobile-menu {
	display: none;
	background: #fff;
	border-top: 1px solid var(--hw-border);
	padding: 16px 20px 24px;
	box-shadow: var(--hw-shadow);
}
.hw-mobile-menu.is-open { display: block; }
.hw-mobile-menu-list li { border-bottom: 1px solid var(--hw-border); }
.hw-mobile-menu-list a {
	display: block;
	padding: 14px 4px;
	color: var(--hw-heading);
	font-weight: 500;
}
.hw-mobile-cta { display: block; text-align: center; margin-top: 16px; }

/* ============================================================
 * Hero 首屏
 * ========================================================== */
.hw-hero {
	position: relative;
	padding: 170px 0 60px;
	background-size: cover;
	background-position: center 73%;
	background-repeat: no-repeat;
	background-color: #EFF6FF;
}
.hw-hero::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(135deg, rgba(240,245,255,.18) 0%, rgba(220,230,250,.28) 100%);
}
.hw-hero-inner { position: relative; text-align: center; z-index: 1; }
.hw-hero-title {
	color: #2563EB;
	font-size: clamp(34px, 6.5vw, 76px);
	font-weight: 800;
	margin-bottom: 18px;
	line-height: 1.05;
}
.hw-hero-subtitle {
	color: #6B7280;
	font-size: clamp(15px, 2vw, 19px);
	max-width: 720px;
	margin: 0 auto 32px;
	font-weight: 400;
}
.hw-hero-actions { margin-bottom: 110px; }
.hw-hero-actions .hw-btn { border-radius: 15px; }
.hw-hero-app {
	position: relative;
	z-index: 1;
	max-width: 1000px;
	margin: 0 auto;
	filter: drop-shadow(0 18px 40px rgba(30,41,59,.18));
}

/* ============================================================
 * 品牌信赖
 * ========================================================== */
.hw-trust { background: var(--hw-light); padding: 56px 0; }
.hw-trust .hw-section-title { font-size: clamp(22px, 3vw, 30px); margin-bottom: 36px; }
.hw-trust-logos {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 24px;
	align-items: center;
}
.hw-trust-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
}
.hw-trust-logo img {
	max-height: 50px;
	width: auto;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: .65;
	transition: filter .3s ease, opacity .3s ease;
}
.hw-trust-logo:hover img { filter: grayscale(0); opacity: 1; }

/* ============================================================
 * 场景图文
 * ========================================================== */
.hw-scene-row { display: flex; gap: var(--hw-gap); margin-bottom: var(--hw-gap); }
.hw-scene-row:last-child { margin-bottom: 0; }
.hw-scene-card {
	margin: 0;
	border-radius: var(--hw-radius);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--hw-shadow-sm);
	transition: transform .3s ease, box-shadow .3s ease;
}
.hw-scene-card:hover { transform: translateY(-4px); box-shadow: var(--hw-shadow); }
.hw-scene-card img { width: 100%; height: 100%; object-fit: cover; }
.hw-scene-row-1 .hw-scene-xl { flex: 0 0 53.5%; }
.hw-scene-row-1 .hw-scene-card:not(.hw-scene-xl) { flex: 1; }
.hw-scene-row-2 .hw-scene-card { flex: 1; }
.hw-scene-row-1 .hw-scene-xl img { height: 320px; }
.hw-scene-row-1 .hw-scene-card:not(.hw-scene-xl) img { height: 320px; }
.hw-scene-row-2 .hw-scene-card img { height: 300px; }

/* ============================================================
 * 三大优势
 * ========================================================== */
.hw-advantages { background: var(--hw-light); }
.hw-adv-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--hw-gap);
}
.hw-adv-card {
	border-radius: var(--hw-radius-lg);
	min-height: 400px;
	padding: 48px 36px;
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	justify-content: center;
	transition: transform .3s ease, box-shadow .3s ease;
}
.hw-adv-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(15,23,42,.18); }
.hw-adv-card-1 { background: var(--hw-grad-1); }
.hw-adv-card-2 { background: var(--hw-grad-2); }
.hw-adv-card-3 { background: var(--hw-grad-3); }
.hw-adv-icon {
	width: 80px; height: 80px;
	border-radius: 20px;
	background: rgba(255,255,255,.18);
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 28px;
}
.hw-adv-icon img { width: 40px; height: 40px; filter: brightness(0) invert(1); }
.hw-adv-title { color: #fff; font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.hw-adv-desc { color: rgba(255,255,255,.92); font-size: 15px; margin: 0; }

/* ============================================================
 * 图文特性区（翻译引擎 / 跨平台 / 多元产品）
 * ========================================================== */
.hw-feature { padding: 72px 0; }
.hw-feature-inner {
	display: flex;
	align-items: center;
	gap: 64px;
}
.hw-feature-media { flex: 1; }
.hw-feature-media img { width: 100%; border-radius: var(--hw-radius); }
.hw-feature-text { flex: 1; }
.hw-feature-title { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin-bottom: 16px; }
.hw-feature-text p { font-size: 17px; color: var(--hw-body); }
.hw-feature-alt { background: var(--hw-light); }
.hw-feature-image-right .hw-feature-media { order: 2; }
.hw-feature-image-right .hw-feature-text { order: 1; }
.hw-feature-actions { margin-top: 24px; }

/* ============================================================
 * 客户评价轮播
 * ========================================================== */
.hw-testimonials { background: var(--hw-light); }
.hw-testi {
	position: relative;
	max-width: 820px;
	margin: 0 auto;
}
.hw-testi-viewport { overflow: hidden; }
.hw-testi-track {
	display: flex;
	transition: transform .5s ease;
}
.hw-testi-slide { flex: 0 0 100%; padding: 0 8px; }
.hw-testi-card {
	background: #fff;
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-radius);
	padding: 44px;
}
.hw-testi-text { font-size: 18px; line-height: 1.7; color: var(--hw-heading); margin-bottom: 28px; }
.hw-testi-author { display: flex; align-items: center; gap: 14px; }
.hw-testi-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.hw-testi-name { font-weight: 700; color: var(--hw-heading); margin: 0 0 2px; }
.hw-testi-role { font-size: 14px; color: var(--hw-muted); margin: 0; }
.hw-testi-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px; height: 44px;
	border-radius: 50%;
	border: 1px solid var(--hw-border);
	background: #fff;
	color: var(--hw-primary);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: var(--hw-shadow-sm);
	transition: background-color .2s ease, color .2s ease;
	z-index: 2;
}
.hw-testi-arrow:hover { background: var(--hw-primary); color: #fff; }
.hw-testi-prev { left: -22px; }
.hw-testi-next { right: -22px; }
.hw-testi-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.hw-testi-dots button {
	width: 10px; height: 10px;
	border-radius: 50%;
	border: 0;
	background: var(--hw-border);
	cursor: pointer;
	padding: 0;
	transition: background-color .2s ease, transform .2s ease;
}
.hw-testi-dots button.is-active { background: var(--hw-primary); transform: scale(1.25); }

/* ============================================================
 * FAQ 折叠
 * ========================================================== */
.hw-faq-section { background: var(--hw-bg); }
.hw-faq-container { max-width: 860px; }
.hw-faq-title { margin-bottom: 40px; }
.hw-faq-item {
	border: 1px solid var(--hw-border);
	border-radius: 8px;
	margin-bottom: 14px;
	background: #fff;
	overflow: hidden;
}
.hw-faq-q {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	background: transparent;
	border: 0;
	cursor: pointer;
	font-size: 18px;
	font-weight: 600;
	color: var(--hw-heading);
	text-align: left;
}
.hw-faq-icon {
	position: relative;
	flex: 0 0 18px;
	width: 18px; height: 18px;
}
.hw-faq-icon::before, .hw-faq-icon::after {
	content: "";
	position: absolute;
	top: 50%; left: 50%;
	background: var(--hw-primary);
	transform: translate(-50%, -50%);
	transition: transform .3s ease, opacity .3s ease;
}
.hw-faq-icon::before { width: 14px; height: 2px; }
.hw-faq-icon::after { width: 2px; height: 14px; }
.hw-faq-q[aria-expanded="true"] .hw-faq-icon::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }
.hw-faq-a {
	max-height: 0;
	overflow: hidden;
	transition: max-height .35s ease;
}
.hw-faq-a-inner {
	padding: 0 24px 22px;
	color: var(--hw-body);
	font-size: 15px;
}
.hw-faq-a-inner p { margin: 0 0 10px; }
.hw-faq-a-inner p:last-child { margin-bottom: 0; }

/* ============================================================
 * 最新资讯
 * ========================================================== */
.hw-news-section { background: var(--hw-light); }
.hw-news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--hw-gap);
}
.hw-news-card {
	background: #fff;
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-radius);
	overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease;
}
.hw-news-card:hover { transform: translateY(-6px); box-shadow: var(--hw-shadow); }
.hw-news-thumb { display: block; overflow: hidden; }
.hw-news-thumb img { width: 100%; height: 200px; object-fit: cover; transition: transform .4s ease; }
.hw-news-card:hover .hw-news-thumb img { transform: scale(1.05); }
.hw-news-body { padding: 22px; }
.hw-news-title { font-size: 18px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.hw-news-title a { color: var(--hw-heading); }
.hw-news-title a:hover { color: var(--hw-primary); }
.hw-news-date { display: block; font-size: 13px; color: var(--hw-muted); margin-bottom: 10px; }
.hw-news-excerpt { font-size: 14px; color: var(--hw-body); margin: 0;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hw-news-more { text-align: center; margin-top: 44px; }
.hw-news-empty { text-align: center; color: var(--hw-muted); }

/* ============================================================
 * 底部 CTA
 * ========================================================== */
.hw-cta {
	background: var(--hw-grad-primary);
	padding: 90px 0;
}
.hw-cta-inner { text-align: center; }
.hw-cta-title {
	color: #fff;
	font-size: clamp(26px, 4vw, 40px);
	font-weight: 800;
	letter-spacing: .5px;
	margin-bottom: 32px;
}

/* 底部信息 */
.hw-footer-info { background: #0f172a; color: #cbd5e1; padding: 48px 0 0; }
.hw-footer-info-inner {
	display: flex;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
	padding-bottom: 32px;
}
.hw-footer-brand { max-width: 420px; }
.hw-footer-logo { height: 32px; width: auto; margin-bottom: 14px; }
.hw-footer-desc { font-size: 14px; color: #94a3b8; margin: 0; }
.hw-footer-menu { display: flex; flex-wrap: wrap; gap: 20px; }
.hw-footer-menu a { color: #cbd5e1; font-size: 14px; }
.hw-footer-menu a:hover { color: #fff; }
.hw-footer-bottom {
	border-top: 1px solid rgba(255,255,255,.1);
	padding: 18px 0;
	text-align: center;
}
.hw-footer-copyright { margin: 0; font-size: 13px; color: #64748b; }

/* ============================================================
 * 内页：页头 / 面包屑 / 列表 / 详情
 * ========================================================== */
.hw-page-hero {
	background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
	padding: 120px 0 48px;
}
.hw-breadcrumb {
	font-size: 14px;
	color: var(--hw-muted);
	margin-bottom: 14px;
}
.hw-breadcrumb a { color: var(--hw-primary); }
.hw-breadcrumb a:hover { color: var(--hw-primary-dark); }
.hw-breadcrumb-sep { margin: 0 8px; color: var(--hw-muted); }
.hw-page-title {
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 800;
	color: var(--hw-heading);
	margin: 0;
}
.hw-page-desc {
	margin: 14px 0 0;
	color: var(--hw-body);
	font-size: 16px;
	max-width: 720px;
}
.hw-archive-section { background: #fff; }

/* 详情页 */
.hw-single-hero { padding: 110px 0 28px; }
.hw-single-inner { max-width: 820px; }
.hw-single-header { margin-bottom: 28px; }
.hw-single-title {
	font-size: clamp(26px, 4vw, 36px);
	font-weight: 800;
	line-height: 1.3;
	margin: 0 0 14px;
}
.hw-single-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 14px;
	color: var(--hw-muted);
}
.hw-single-cat { color: var(--hw-primary); font-weight: 600; }
.hw-single-thumb {
	margin: 0 0 28px;
	border-radius: var(--hw-radius);
	overflow: hidden;
}
.hw-single-thumb img { width: 100%; height: auto; }
.hw-single-content { font-size: 16px; line-height: 1.85; color: var(--hw-heading); }
.hw-single-content p { margin: 0 0 1.2em; }
.hw-single-content h2 {
	font-size: 24px;
	margin: 1.6em 0 .6em;
	padding-left: 14px;
	border-left: 4px solid var(--hw-primary);
}
.hw-single-content h3 { font-size: 20px; margin: 1.4em 0 .5em; }
.hw-single-content ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1.2em; }
.hw-single-content ul li { margin-bottom: .5em; }
.hw-single-content strong { color: var(--hw-heading); }
.hw-single-related { margin-top: 56px; }
.hw-single-related .hw-section-title { text-align: left; margin-bottom: 24px; }

/* 分页 */
.hw-pagination {
	margin-top: 44px;
	text-align: center;
	border: 0 !important;
	background: none !important;
	padding: 0 !important;
}
.hw-pagination ul.page-numbers {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.hw-pagination li {
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
}
.hw-pagination .page-numbers,
.hw-pagination .page-numbers:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 16px;
	border: 1.5px solid #D1D5DB;
	border-radius: 10px;
	color: #374151;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: all .2s ease;
	box-sizing: border-box;
	line-height: 1;
}
.hw-pagination .page-numbers:hover { border-color: var(--hw-primary); color: var(--hw-primary); background: #EEF2FF; }
.hw-pagination .page-numbers.current,
.hw-pagination .page-numbers.current:hover {
	background: var(--hw-primary);
	border-color: var(--hw-primary);
	color: #fff;
	cursor: default;
}
.hw-pagination .page-numbers.dots { border: none; }

/* 内页响应式 */
@media (max-width: 768px) {
	.hw-page-hero { padding: 96px 0 36px; }
	.hw-single-inner { max-width: 100%; }
}

/* ============================================================
 * 响应式
 * ========================================================== */
@media (max-width: 992px) {
	.hw-nav, .hw-header-cta { display: none; }
	.hw-hamburger { display: flex; }
	.hw-adv-grid { grid-template-columns: 1fr; }
	.hw-feature-inner { flex-direction: column; gap: 32px; }
	.hw-feature-image-right .hw-feature-media,
	.hw-feature-image-right .hw-feature-text { order: initial; }
	.hw-news-grid { grid-template-columns: repeat(2, 1fr); }
	.hw-trust-logos { grid-template-columns: repeat(3, 1fr); }
	.hw-testi-prev { left: 4px; }
	.hw-testi-next { right: 4px; }
}

@media (max-width: 768px) {
	.hw-section { padding: 56px 0; }
	.hw-hero { padding: 130px 0 40px; }
	.hw-scene-row { flex-direction: column; }
	.hw-scene-row-1 .hw-scene-xl,
	.hw-scene-row-1 .hw-scene-card:not(.hw-scene-xl),
	.hw-scene-row-2 .hw-scene-card { flex: 1 1 auto; }
	.hw-scene-row-1 .hw-scene-xl img,
	.hw-scene-row-1 .hw-scene-card:not(.hw-scene-xl) img,
	.hw-scene-row-2 .hw-scene-card img { height: 220px; }
	.hw-news-grid { grid-template-columns: 1fr; }
	.hw-trust-logos { grid-template-columns: repeat(2, 1fr); }
	.hw-testi-card { padding: 28px; }
	.hw-testi-arrow { display: none; }
	.hw-footer-info-inner { flex-direction: column; gap: 24px; }
}
