/* WQGEO 3.8 — compact Chinese knowledge hero and complete /en/ site. */

/* The brand promise stays on one deliberate desktop line. */
.wo-brand__tagline {
	display: block !important;
	max-width: none;
	white-space: nowrap;
	font-size: clamp(11px, .78vw, 14px);
}

.wq-language-switch {
	display: inline-grid;
	place-items: center;
	min-width: 38px;
	height: 34px;
	padding: 0 10px;
	border: 1px solid rgba(120, 82, 59, .24);
	border-radius: 999px;
	background: rgba(255, 255, 255, .76);
	color: var(--wo-text);
	font-size: 12px;
	font-weight: 800;
}

/* Keep the existing background art, but reveal the guide cards in the first viewport. */
.wq-knowledge-hub--curated .wq-knowledge-hero {
	min-height: 0;
	padding-top: clamp(64px, 6vw, 88px);
	padding-bottom: clamp(34px, 3.4vw, 50px);
}
.wq-knowledge-hub--curated .wq-knowledge-hero::before {
	inset: 16px -24vw auto 47%;
	height: 340px;
}
.wq-knowledge-hub--curated .wq-knowledge-hero .wq-breadcrumb { margin-bottom: 14px; }
.wq-knowledge-hub--curated .wq-knowledge-hero .wq-eyebrow { margin: 0 0 8px; font-size: 12px; }
.wq-knowledge-hub--curated .wq-knowledge-hero h1 {
	max-width: 900px;
	margin: 8px 0 12px;
	font-size: clamp(42px, 5.4vw, 72px);
	line-height: 1;
}
.wq-knowledge-hub--curated .wq-knowledge-hero .wq-lead {
	max-width: 880px;
	margin: 0;
	font-size: clamp(16px, 1.35vw, 20px);
	line-height: 1.55;
}
.wq-knowledge-hub--curated .wq-knowledge-search {
	width: min(100%, 900px);
	margin-top: 22px;
	padding: 5px;
}
.wq-knowledge-hub--curated .wq-knowledge-search input { padding: 11px 15px; }
.wq-knowledge-hub--curated .wq-knowledge-search button { padding: 11px 18px; }

/* English global chrome. */
.wq-site-en .wo-header__inner { width: min(1600px, calc(100% - 42px)); }
.wq-site-en .wo-brand { flex: 0 0 auto; }
.wq-site-en .wo-nav { transform: none !important; }
.wq-site-en .wo-menu { gap: clamp(10px, 1vw, 20px); }
.wq-site-en .wo-menu a { font-size: clamp(11px, .72vw, 14px); white-space: nowrap; }
.wq-site-en .wo-header-actions { gap: 8px; }
.wq-site-en .wo-header-actions .wo-button { min-width: 142px; padding-inline: 16px; font-size: 12px; }

.wq-site-en .wo-content {
	width: min(1240px, calc(100% - 64px));
	max-width: 1240px;
	padding-top: clamp(120px, 10vw, 160px);
	padding-bottom: clamp(70px, 8vw, 110px);
}
.wq-site-en .wq-page > h1 {
	max-width: 1080px;
	margin: 28px 0 24px;
	font-size: clamp(44px, 6vw, 86px);
	line-height: 1.02;
	letter-spacing: -.045em;
}
.wq-site-en .wq-page__content { max-width: none; }
.wq-site-en .wq-page__content > p,
.wq-site-en .wq-page__content > section { max-width: 1040px; }
.wq-site-en .wq-page__content > section { margin: clamp(52px, 6vw, 82px) 0; }
.wq-site-en .wq-page__content h2 {
	margin: 0 0 20px;
	font-size: clamp(30px, 3.2vw, 50px);
	line-height: 1.12;
	letter-spacing: -.025em;
}
.wq-site-en .wq-page__content h3 { font-size: clamp(18px, 1.6vw, 25px); line-height: 1.25; }
.wq-en-lead { max-width: 920px !important; color: #4f433b; font-size: clamp(20px, 2vw, 29px); line-height: 1.58; }

.wq-en-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-top: 30px;
}
.wq-en-card {
	display: flex;
	flex-direction: column;
	min-height: 245px;
	padding: 28px;
	border: 1px solid rgba(214, 185, 164, .72);
	border-radius: 22px;
	background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(250,241,233,.94));
	color: var(--wo-text);
	box-shadow: 0 18px 45px rgba(76, 47, 30, .05);
	transition: transform .25s ease, box-shadow .25s ease;
}
a.wq-en-card:hover { transform: translateY(-4px); box-shadow: 0 24px 58px rgba(76, 47, 30, .1); }
.wq-en-card__label { color: var(--wo-accent); font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.wq-en-card h3 { margin: 34px 0 12px; }
.wq-en-card__text { margin: 0; color: var(--wo-muted); font-size: 14px; line-height: 1.7; }
.wq-en-card__cta { margin-top: auto; padding-top: 22px; color: var(--wo-accent); font-weight: 750; }

.wq-site-en .wq-en-home-content > section { max-width: none; }

.wq-en-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.wq-en-checks { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.wq-en-checks li { position: relative; padding: 15px 18px 15px 48px; border-bottom: 1px solid var(--wo-border); line-height: 1.55; }
.wq-en-checks li::before { content: "✓"; position: absolute; left: 15px; color: var(--wo-accent); font-weight: 900; }
.wq-en-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 28px 0 0; padding: 0; list-style: none; }
.wq-en-steps li { min-height: 180px; padding: 24px 20px; border: 1px solid var(--wo-border); border-right: 0; background: rgba(255,253,250,.72); }
.wq-en-steps li:first-child { border-radius: 18px 0 0 18px; }
.wq-en-steps li:last-child { border-right: 1px solid var(--wo-border); border-radius: 0 18px 18px 0; }
.wq-en-steps b { display: block; margin-bottom: 42px; color: var(--wo-accent); font-size: 12px; }
.wq-en-steps span { font-weight: 680; line-height: 1.55; }
.wq-en-answer,
.wq-en-boundary { max-width: 1040px; padding: clamp(28px, 4vw, 48px); border: 1px solid #d9c3b2; border-radius: 24px; background: linear-gradient(135deg, #fffaf5, #f6ece3); }
.wq-en-answer > span { color: var(--wo-accent); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.wq-en-answer h2 { margin-top: 16px !important; }
.wq-en-answer p, .wq-en-boundary p { margin-bottom: 0; font-size: 18px; line-height: 1.7; }
.wq-en-faq { max-width: 1040px; }
.wq-en-faq details { border-top: 1px solid var(--wo-border); }
.wq-en-faq details:last-child { border-bottom: 1px solid var(--wo-border); }
.wq-en-faq summary { padding: 20px 0; cursor: pointer; font-weight: 800; }
.wq-en-faq details p { padding: 0 0 20px; color: var(--wo-muted); }
.wq-en-related { display: flex; flex-wrap: wrap; gap: 10px; max-width: 1040px; margin-top: 44px; }
.wq-en-related a { padding: 11px 16px; border: 1px solid var(--wo-border); border-radius: 999px; background: rgba(255,255,255,.7); color: var(--wo-text); font-weight: 730; }
.wq-en-research-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--wo-border); border-radius: 20px; background: var(--wo-border); }
.wq-en-research-facts > div { padding: 22px; background: #fffaf5; }
.wq-en-research-facts span { display: block; margin-bottom: 8px; color: var(--wo-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.wq-en-research-facts b { line-height: 1.5; }
.wq-en-metric-table { overflow-x: auto; border: 1px solid var(--wo-border); border-radius: 18px; background: rgba(255,255,255,.72); }
.wq-en-metric-table table { width: 100%; border-collapse: collapse; }
.wq-en-metric-table th, .wq-en-metric-table td { padding: 16px 18px; border-bottom: 1px solid var(--wo-border); text-align: left; }
.wq-en-metric-table thead th { background: #f3e8df; }
.wq-en-search { display: flex; max-width: 920px; margin: 30px 0 60px; padding: 6px; border: 1px solid var(--wo-border); border-radius: 16px; background: #fff; }
.wq-en-search input { flex: 1; min-width: 0; padding: 14px; border: 0; outline: 0; font: inherit; }
.wq-en-search button { padding: 12px 20px; border: 0; border-radius: 11px; background: #0d1a34; color: #fff; font-weight: 800; }

/* English home has its own full-width editorial layout and only one H1. */
.wq-site-en .wq-page--english-home { margin: 0; }
.wq-site-en .wq-page--english-home .wq-page__content { width: 100%; }
.wq-en-home-hero,
.wq-en-home-section,
.wq-en-home-cta { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.wq-en-home-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr); gap: 64px; min-height: 720px; padding: clamp(150px, 14vw, 220px) 0 90px; align-items: center; }
.wq-en-home-hero h1 { max-width: 900px; margin: 18px 0 26px; font-size: clamp(56px, 7.2vw, 108px); line-height: .95; letter-spacing: -.055em; }
.wq-en-home-hero > div > p:not(.wq-eyebrow) { max-width: 830px; color: #4f433b; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.65; }
.wq-en-home-hero aside { display: grid; gap: 8px; padding: 30px; border: 1px solid var(--wo-border); border-radius: 24px; background: rgba(255,253,250,.8); }
.wq-en-home-hero aside span { margin-top: 15px; color: var(--wo-accent); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.wq-en-home-hero aside strong { line-height: 1.4; }
.wq-en-home-section { padding: clamp(70px, 8vw, 110px) 0; border-top: 1px solid rgba(218,190,170,.52); }
.wq-en-home-section > h2, .wq-en-home-cta h2 { max-width: 940px; margin: 12px 0 24px; font-size: clamp(40px, 5vw, 72px); line-height: 1.02; }
.wq-en-home-cta { margin-bottom: 90px; padding: clamp(46px, 6vw, 78px); border-radius: 30px; background: linear-gradient(130deg, #101b32, #244a88); color: #fff; }
.wq-en-home-cta p { max-width: 780px; color: rgba(255,255,255,.75); }

.wq-en-footer__grid { display: grid; grid-template-columns: 1.3fr 1.25fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 68px); }
.wq-en-footer__brand strong { color: var(--wo-accent); font-size: 32px; }
.wq-en-footer__brand p { margin: 12px 0; font-weight: 750; }
.wq-en-footer__brand small { color: var(--wo-muted); letter-spacing: .08em; }
.wq-en-footer h3 { margin: 0 0 16px; font-size: 14px; }
.wq-en-footer ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.wq-en-footer a, .wq-en-footer p { color: var(--wo-muted); font-size: 12px; line-height: 1.65; }

/* Keep the one-line promise visible on wide screens without colliding with the
   complete bilingual navigation on laptop widths. */
@media (max-width: 1550px) {
	.wo-brand__tagline { display: none !important; }
}

@media (max-width: 1350px) {
	.wq-site-en .wo-header-qr { display: none; }
	.wq-site-en .wo-brand__tagline { display: none !important; }
	.wq-site-en .wo-menu { gap: 10px; }
	.wq-site-en .wo-menu a { font-size: 11px; }
	.wq-site-en .wo-header-actions .wo-button { min-width: 126px; }
}

@media (max-width: 980px) {
	.wo-brand__tagline { display: none; }
	.wq-site-en .wo-content { width: min(100% - 36px, 1240px); }
	.wq-en-home-hero, .wq-en-home-section, .wq-en-home-cta { width: calc(100% - 36px); }
	.wq-en-home-hero { grid-template-columns: 1fr; min-height: auto; gap: 34px; padding-top: 130px; }
	.wq-en-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wq-en-steps { grid-template-columns: 1fr 1fr; gap: 1px; border-radius: 18px; overflow: hidden; background: var(--wo-border); }
	.wq-en-steps li, .wq-en-steps li:first-child, .wq-en-steps li:last-child { min-height: 0; border: 0; border-radius: 0; }
	.wq-en-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.wq-knowledge-hub--curated .wq-knowledge-hero { padding-top: 42px; padding-bottom: 30px; }
	.wq-knowledge-hub--curated .wq-knowledge-hero h1 { font-size: 40px; }
	.wq-knowledge-hub--curated .wq-knowledge-search { margin-top: 18px; }
	.wq-knowledge-hub--curated .wq-knowledge-search button span { display: none; }
	.wq-site-en .wq-page > h1 { font-size: 42px; }
	.wq-en-home-hero h1 { font-size: 50px; }
	.wq-en-card-grid, .wq-en-split, .wq-en-research-facts, .wq-en-footer__grid { grid-template-columns: 1fr; }
	.wq-en-card { min-height: 0; }
	.wq-en-steps { grid-template-columns: 1fr; }
	.wq-en-search { display: grid; }
	.wq-en-home-cta { padding: 32px 24px; }
}
