/* A&K Reviews Carousel - 前台样式（作用域全部限定在 .ak-rev 内，不污染主题） */

.ak-rev {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 8px 48px 48px;
	text-align: center;
	box-sizing: border-box;
}
.ak-rev *,
.ak-rev *::before,
.ak-rev *::after { box-sizing: border-box; }

/* 区块标题由页面中的 Elementor 标题部件输出，样式在编辑器里调 */

/* 轮播视口：底部留出分页空间（overflow:hidden 下分页仍可见） */
.ak-rev-carousel {
	position: relative;
	overflow: hidden;
	padding-bottom: 54px;
	list-style: none;
	margin: 0;
}

/* 评价卡片 */
.ak-rev-card {
	max-width: 720px;
	width: 88%;
	margin: 0 auto;
	background: #f8f4ec;
	border-radius: 10px;
	padding: 36px 44px 30px;
	text-align: left;
}
.ak-rev-quote {
	font-size: 28px;
	line-height: 1.28;
	font-weight: 400;
	color: #1a1a1a;
	margin: 0 0 14px;
}
.ak-rev-body {
	font-size: 15px;
	line-height: 1.75;
	color: #333;
	margin: 0 0 22px;
}

/* 星级：用媒体库 star.png（5 星连排），按星级裁切显示 */
.ak-rev-stars {
	text-align: center;
	margin: 0 0 18px;
}
.ak-rev-stars-crop {
	display: inline-block;
	overflow: hidden;
	line-height: 0;
	border-radius: 3px;
	max-width: 160px;
}
.ak-rev-stars-crop img { display: block; height: auto; }

.ak-rev-byline { text-align: center; }
.ak-rev-author {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #1a1a1a;
	letter-spacing: .2px;
}
.ak-rev-published {
	display: block;
	font-size: 12.5px;
	color: #5f5e5a;
	margin-top: 5px;
}

/* 分段式分页：已看过的段填满，点击跳转 */
.ak-rev-pagination {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	max-width: 320px;
	margin: 6px auto 0;
}
.ak-rev-seg {
	position: relative;
	flex: 1 1;
	min-width: 0;
	height: 3px;
	padding: 0;
	background: #ddd5c6;
	border: 0;
	border-radius: 2px;
	overflow: hidden;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}
.ak-rev-seg:focus-visible { outline: 1px solid #1a1a1a; outline-offset: 3px; }
.ak-rev-seg-fill {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 0;
	height: 100%;
	background: #1a1a1a;
	border-radius: 2px;
}

/* 左右导航：铺在轮播两侧的圆形按钮 */
.ak-rev-nav {
	position: absolute;
	inset: 0 0 54px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	pointer-events: none;
	z-index: 9;
}
.ak-rev .ak-rev-nav .ak-rev-btn {
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-width: 40px;
	padding: 0;
	margin: 0;
	line-height: 1;
	border-radius: 50%;
	border: 1px solid #1a1a1a;
	background: transparent;
	color: #1a1a1a;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
/* 防止主题按钮样式把图标压扁 */
.ak-rev .ak-rev-nav .ak-rev-btn svg {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
	display: block;
}
.ak-rev .ak-rev-nav .ak-rev-btn:hover { background: #1a1a1a; color: #fff; }
.ak-rev .ak-rev-nav .ak-rev-btn:disabled,
.ak-rev .ak-rev-nav .ak-rev-btn[disabled] {
	opacity: .28;
	cursor: not-allowed;
	pointer-events: none;
}

@media (max-width: 1024px) {
	.ak-rev { padding: 4px 32px 40px; }
}

@media (max-width: 767px) {
	.ak-rev { padding: 0 20px 32px; }
	.ak-rev-carousel { padding-bottom: 44px; }
	.ak-rev-card { width: 100%; padding: 26px 22px 24px; border-radius: 8px; }
	.ak-rev-quote { font-size: 21px; }
	.ak-rev-body { font-size: 14px; }
	.ak-rev-nav { display: none; inset: 0 0 44px 0; }
	.ak-rev-seg { height: 4px; }
}
