/*
 Theme Name: 轻松阅读 (Easy Reading)
 Theme URI: https://easyread.king51.com/
 Description: 轻松阅读官方宣传主题，用于介绍 iOS RSS 阅读器 App「轻松阅读」。采用 WordPress 官方区块主题（Block Theme / 全站编辑）方案构建，无需改动数据库。
 Author: king51
 Author URI: https://king51.com/
 Version: 1.0.0
 Requires at least: 6.6
 Tested up to: 6.7
 Requires PHP: 8.1
 License: GPL-2.0-or-later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: k51easyread
 Tags: blog, news, one-column, custom-colors, custom-logo, custom-menu, editor-style, full-site-editing, translation-ready, wide-blocks, responsive
*/

/* =========================================================
   轻松阅读宣传主题 —— 自定义样式
   说明：全局设计令牌（颜色/字体/间距）由 theme.json 管理，
   此处仅补充区块主题难以直接表达的组件样式。
   ========================================================= */

:root {
	--er-primary: #2F6BFF;
	--er-primary-dark: #1E54D6;
	--er-ink: #0F172A;
	--er-body: #475467;
	--er-muted: #98A2B3;
	--er-surface: #F5F8FF;
	--er-border: #E4E9F2;
	--er-radius: 18px;
	--er-shadow: 0 18px 50px -20px rgba(15, 23, 42, 0.22);
	--er-shadow-sm: 0 8px 24px -12px rgba(15, 23, 42, 0.18);
	--er-rss: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 15a9 9 0 0 1 9 9'/%3E%3Cpath d='M5 9a15 15 0 0 1 15 15'/%3E%3Ccircle cx='5' cy='19' r='1.6' fill='white' stroke='none'/%3E%3C/svg%3E");
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	color: var(--er-body);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

/* 块主题全局样式会给 .wp-site-blocks 的直接子块（header/main/footer）
   之间默认加 24px 的 block-gap 间距，导致页眉下出现多余空白。
   本主题各区块内部已自带留白，故统一清零。 */
.wp-site-blocks > * {
	margin-block-start: 0;
}

img {
	max-width: 100%;
	height: auto;
}

/* ---------- 页眉 ---------- */
header.wp-block-template-part,
.wp-block-template-part:has(.site-header) {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.82);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--er-border);
}

.site-header {
	background: transparent;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 1.25rem;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

.site-header .site-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}

.site-header .site-logo {
	margin: 0;
	display: inline-flex;
	align-items: center;
}

.site-header .site-logo a {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.site-header .site-logo img {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header .site-logo a:hover img {
	transform: translateY(-1px);
	opacity: 0.92;
}

.site-header .wp-block-site-title a {
	font-weight: 800;
	font-size: 1.15rem;
	color: var(--er-ink);
}

.site-nav ul {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav a {
	color: var(--er-body);
	font-weight: 600;
	font-size: 0.95rem;
}

.site-nav a:hover {
	color: var(--er-primary);
}

/* 锚点跳转补偿：吸顶栏高约 65px，避免区块标题被遮挡 */
section[id] {
	scroll-margin-top: 5rem;
}

@media (max-width: 782px) {
	.site-nav {
		display: none;
	}
}

/* ---------- 区块通用 ---------- */
.site-content {
	padding: 0;
}

.section {
	padding: clamp(3.5rem, 8vw, 6.5rem) 1.25rem;
}

.section__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.eyebrow {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--er-primary);
	background: var(--er-surface);
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	margin-bottom: 1rem;
}

.eyebrow--pro {
	color: #7C5CFC;
	background: #F2EEFF;
}

.section__title {
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	color: var(--er-ink);
	margin: 0 0 0.75rem;
}

.section__lead {
	font-size: 1.1rem;
	max-width: 640px;
	margin: 0 auto 2.5rem;
	color: var(--er-body);
}

/* ---------- Hero ---------- */
.hero {
	background: linear-gradient(180deg, #EAF1FF 0%, #F7FAFF 60%, #FFFFFF 100%);
	padding: clamp(3rem, 7vw, 6rem) 1.25rem clamp(2.5rem, 5vw, 4rem);
}

.hero__grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

.hero__title {
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	line-height: 1.15;
	color: var(--er-ink);
	margin: 0 0 1.25rem;
}

.hero__lead {
	font-size: 1.15rem;
	color: var(--er-body);
	max-width: 30rem;
	margin: 0 0 2rem;
}

.hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
}

.hero__tagline {
	margin-top: 1.25rem;
}

.hero__tagline-link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin-top: 0;
	padding: 0.45rem 1rem 0.45rem 0.5rem;
	border-radius: 999px;
	background: linear-gradient(135deg, #1E54D6 0%, #2F6BFF 45%, #7C5CFC 100%);
	color: #fff;
	font-size: 0.88rem;
	text-decoration: none;
	box-shadow: 0 4px 18px -2px rgba(47, 107, 255, 0.38);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero__tagline-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px -2px rgba(124, 92, 252, 0.45);
	color: #fff;
}

.hero__tagline-badge {
	background: rgba(255, 255, 255, 0.2);
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.hero__tagline-text {
	font-weight: 700;
	color: #fff;
}

.hero__tagline-price {
	font-size: 0.76rem;
	font-weight: 800;
	background: #fff;
	color: #1E54D6;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.hero__tagline-arrow {
	font-size: 0.8rem;
	font-weight: 800;
	opacity: 0.95;
	color: #FFDE6A;
}

.hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin-top: 2.5rem;
	color: var(--er-body);
	font-size: 0.95rem;
}

.hero__stats strong {
	color: var(--er-ink);
}

.hero__media {
	display: flex;
	justify-content: center;
}

.hero__phone {
	width: min(320px, 80%);
	filter: drop-shadow(0 30px 60px rgba(31, 84, 214, 0.25));
}

.hero__phone svg {
	width: 100%;
	height: auto;
	display: block;
}

@media (max-width: 900px) {
	.hero__grid {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.hero__lead {
		margin-left: auto;
		margin-right: auto;
	}
	.hero__cta,
	.hero__stats {
		justify-content: center;
	}
}

/* ---------- 功能卡片 ---------- */
.features__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 1.25rem;
	max-width: 1200px;
	/* 标题文字到下方卡片之间需要留出更大间距。
	   外层 .section__inner 是 constrained 容器，块主题的 block-gap
	   机制会接管子块间距，导致 .section__lead 的 margin-bottom 失效、
	   间距过小，故在此显式补足间距。 */
	margin: 2.5rem auto 0;
}

.feature {
	background: #fff;
	border: 1px solid var(--er-border);
	border-radius: var(--er-radius);
	padding: 1.75rem 1.5rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
	transform: translateY(-4px);
	box-shadow: var(--er-shadow);
	border-color: transparent;
}

.feature__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--er-surface);
	color: var(--er-primary);
	margin-bottom: 1rem;
}

.feature__icon svg {
	width: 24px;
	height: 24px;
}

.feature__title {
	font-size: 1.1rem;
	margin: 0 0 0.5rem;
	color: var(--er-ink);
}

.feature p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--er-body);
}

/* ---------- 三步上手 ---------- */
.steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5rem;
	max-width: 1200px;
	margin: 0 auto;
}

.step {
	background: var(--er-surface);
	border-radius: var(--er-radius);
	padding: 2rem 1.75rem;
	position: relative;
}

.step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--er-primary), var(--er-primary-dark));
	color: #fff;
	font-weight: 800;
	font-size: 1.2rem;
	margin-bottom: 1rem;
}

.step__title {
	font-size: 1.15rem;
	margin: 0 0 0.5rem;
	color: var(--er-ink);
}

/* 步骤卡片内的说明文字用正文灰。
   用 :not(.step__num) 排除圆圈数字：.step p 的特异性(0,1,1)高于
   .step__num 的 (0,1,0)，若不排除会把圈内数字从白色覆盖成灰色。 */
.step p:not(.step__num) {
	margin: 0;
	color: var(--er-body);
}

/* ---------- 展示区 ---------- */
.showcase__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.5rem;
	max-width: 1000px;
	margin: 0 auto;
	justify-items: center;
}

.showcase__phone {
	width: min(240px, 70%);
	filter: drop-shadow(0 24px 48px rgba(15, 23, 42, 0.18));
}

.showcase__phone svg {
	width: 100%;
	height: auto;
	display: block;
}

.showcase__caption {
	text-align: center;
	margin-top: 0.85rem;
	font-weight: 700;
	color: var(--er-ink);
}

/* ---------- Pro 专属特权与定价 ---------- */
.pro-pricing {
	display: grid;
	grid-template-columns: 1fr 1.18fr;
	gap: 2rem;
	max-width: 960px;
	margin: 2rem auto 0;
	align-items: stretch;
}

.pricing-card {
	background: #fff;
	border: 1px solid var(--er-border);
	border-radius: 24px;
	padding: 2.25rem 2rem;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card--free {
	box-shadow: var(--er-shadow-sm);
}

.pricing-card--free:hover {
	transform: translateY(-3px);
	box-shadow: var(--er-shadow);
}

.pricing-card__header {
	margin-bottom: 1.5rem;
}

.pricing-card__badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 800;
	color: var(--er-muted);
	background: var(--er-surface);
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	margin-bottom: 0.75rem;
}

.pricing-card__badge--pro {
	color: #fff;
	background: rgba(255, 255, 255, 0.2);
}

.pricing-card__title {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--er-ink);
	margin: 0 0 0.35rem;
}

.pricing-card__desc {
	font-size: 0.9rem;
	color: var(--er-body);
	margin: 0 0 1.25rem;
}

.pricing-card__price {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--er-border);
}

.pricing-card__price .price-amount {
	font-size: 2.4rem;
	font-weight: 900;
	color: var(--er-ink);
	line-height: 1;
}

.pricing-card__price .price-period {
	font-size: 0.9rem;
	color: var(--er-muted);
	font-weight: 600;
}

.pricing-card__features {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	flex-grow: 1;
}

.pricing-card__features li {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	font-size: 0.92rem;
	color: var(--er-body);
	line-height: 1.45;
}

.feature-check {
	color: #12B886;
	font-weight: 800;
	flex-shrink: 0;
	font-size: 1rem;
	line-height: 1.3;
}

.feature-disabled {
	color: var(--er-muted);
	text-decoration: line-through;
	opacity: 0.55;
}

.feature-cross {
	color: var(--er-muted);
	font-weight: 800;
	flex-shrink: 0;
	font-size: 0.9rem;
	line-height: 1.3;
}

.pricing-card__cta {
	margin-top: auto;
}

.pricing-btn {
	display: block;
	text-align: center;
	padding: 0.85rem 1.5rem;
	border-radius: 999px;
	font-weight: 800;
	font-size: 0.95rem;
	text-decoration: none;
	transition: all 0.2s ease;
}

.pricing-btn--outline {
	border: 2px solid var(--er-border);
	color: var(--er-ink);
	background: #fff;
}

.pricing-btn--outline:hover {
	border-color: var(--er-primary);
	color: var(--er-primary);
	background: var(--er-surface);
	transform: translateY(-1px);
}

/* Pro 卡片高亮定制 */
.pricing-card--pro {
	background: linear-gradient(145deg, #1640B0 0%, #245CE6 42%, #6A44F2 100%);
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.22);
	box-shadow: 0 20px 50px -10px rgba(36, 92, 230, 0.45);
	transform: scale(1.03);
}

.pricing-card--pro:hover {
	transform: scale(1.03) translateY(-4px);
	box-shadow: 0 26px 60px -10px rgba(106, 68, 242, 0.55);
}

.pricing-card__ribbon {
	position: absolute;
	top: -14px;
	right: 24px;
	background: linear-gradient(135deg, #FFB800 0%, #FF8A00 100%);
	color: #0F172A;
	font-weight: 800;
	font-size: 0.78rem;
	padding: 0.3rem 0.85rem;
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(255, 138, 0, 0.45);
	letter-spacing: 0.02em;
}

.pricing-card--pro .pricing-card__title {
	color: #fff;
	font-size: 1.65rem;
}

.pricing-card--pro .pricing-card__desc {
	color: rgba(255, 255, 255, 0.88);
}

.pricing-card--pro .pricing-card__price {
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.pro-price-group {
	display: flex;
	align-items: baseline;
	gap: 0.85rem;
	flex-wrap: wrap;
}

.pro-price-item {
	display: flex;
	align-items: baseline;
	gap: 0.15rem;
}

.pricing-card--pro .price-currency {
	font-size: 1.25rem;
	font-weight: 800;
	color: #fff;
}

.pricing-card--pro .price-amount {
	font-size: 2.6rem;
	font-weight: 900;
	color: #fff;
	line-height: 1;
}

.pricing-card--pro .price-period {
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 700;
}

.price-tag {
	background: #FFDE6A;
	color: #7A4E00;
	font-size: 0.75rem;
	font-weight: 800;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	margin-left: 0.4rem;
	align-self: center;
}

.pro-price-divider {
	color: rgba(255, 255, 255, 0.45);
	font-size: 0.85rem;
	font-weight: 600;
}

.pro-price-item--sub {
	opacity: 0.85;
}

.pro-price-item--sub .price-amount {
	font-size: 1.6rem;
}

.pricing-card__features--pro li {
	color: #fff;
}

.pricing-card__features--pro strong {
	color: #fff;
}

.pricing-card__features--pro .feature-check {
	color: #48F0A2;
}

.pricing-btn--pro {
	background: #fff;
	color: #1E54D6;
	padding: 0.95rem 1.8rem;
	font-size: 1rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.pricing-btn--pro:hover {
	background: #F8FAFF;
	color: #1640B0;
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.pricing-card__subnote {
	display: block;
	text-align: center;
	margin-top: 0.75rem;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 820px) {
	.pro-pricing {
		grid-template-columns: 1fr;
		max-width: 480px;
	}
	.pricing-card--pro {
		transform: none;
	}
	.pricing-card--pro:hover {
		transform: translateY(-4px);
	}
}

@media (max-width: 520px) {
	.hero__tagline-link {
		flex-wrap: wrap;
		justify-content: center;
		padding: 0.5rem 0.85rem;
		gap: 0.4rem;
	}
}

/* ---------- FAQ ---------- */
.faq {
	max-width: 1100px;
	margin: 2.5rem auto 0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0.75rem;
}

.faq__item {
	min-height: 96px;
	max-height: 96px;
	background: #fff;
	border: 1px solid var(--er-border);
	border-radius: 14px;
	padding: 0.8rem 0.75rem;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
}

/* 覆盖内核 is-layout-flow 强制给子块加的 24px 上边距 */
.faq.is-layout-flow > * {
	margin-block-start: 0;
}

.faq__item.is-layout-flow > * {
	margin-block-start: 0;
}

.faq__q {
	margin: 0 0 0.25rem;
	font-weight: 700;
	color: var(--er-ink);
	font-size: 0.88rem;
	line-height: 1.2;
}

.faq__a {
	margin: 0;
	color: var(--er-body);
	font-size: 0.78rem;
	line-height: 1.3;
}

@media (max-width: 900px) {
	.faq {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 600px) {
	.faq {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---------- 下载 CTA ---------- */
.download {
	text-align: center;
	background: linear-gradient(180deg, #F5F8FF 0%, #FFFFFF 100%);
}

.download__title {
	font-size: clamp(1.8rem, 4vw, 2.75rem);
	color: var(--er-ink);
	margin: 0 0 0.75rem;
}

.download__lead {
	font-size: 1.1rem;
	color: var(--er-body);
	margin: 0 auto 2rem;
	max-width: 520px;
}

.download__actions {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	margin: 0 auto;
}

.appstore-badge {
	display: inline-block;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.appstore-badge:hover {
	transform: translateY(-2px);
	opacity: 0.92;
}

.appstore-badge svg {
	display: block;
	width: 180px;
	height: auto;
}

.download__qrcode {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
}

.download__qrcode img {
	display: block;
	width: 96px;
	height: 96px;
	border-radius: 12px;
}

.download__qrcode-label {
	font-size: 0.78rem;
	color: var(--er-muted);
}

.download__note {
	margin-top: 1rem;
	font-size: 0.85rem;
	color: var(--er-muted);
}

@media (max-width: 520px) {
	.download__actions {
		flex-direction: column;
		gap: 1rem;
	}
}

/* ---------- 页脚 ---------- */
.site-footer {
	background: var(--er-ink);
	color: rgba(255, 255, 255, 0.82);
	padding: clamp(3rem, 6vw, 4.5rem) 1.25rem 2rem;
}

.site-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.4fr repeat(2, 1fr);
	gap: 2rem;
}

.site-footer__brand .wp-block-site-title a,
.site-footer .footer-brand {
	color: #fff;
	font-weight: 800;
	font-size: 1.2rem;
}

.site-footer p {
	color: rgba(255, 255, 255, 0.7);
	max-width: 320px;
}

.site-footer h4 {
	color: #fff;
	font-size: 0.95rem;
	margin: 0 0 1rem;
}

.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.6rem;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.75);
}

.site-footer a:hover {
	color: #fff;
}

.site-footer__bottom {
	max-width: 1200px;
	margin: 2.5rem auto 0;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 760px) {
	.site-footer__inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 520px) {
	.site-footer__inner {
		grid-template-columns: 1fr;
	}
}

/* ---------- 文章与页面辅助（page / single 模板） ---------- */
.page-header {
	text-align: center;
}

.post-meta {
	color: var(--er-muted);
	font-size: 0.9rem;
	gap: 1rem;
}

.post-meta .wp-block-post-author {
	font-weight: 600;
	color: var(--er-ink);
}

.wp-block-post-navigation {
	max-width: 760px;
	margin: 2.5rem auto 0;
}

.post-navigation a {
	font-weight: 600;
}
