/* AI 工具详情 — Toolify 风格 */
.yw-tool-single--toolify { padding-bottom: 56px; }
.yw-tool-single--toolify .yw-breadcrumbs { margin-bottom: 18px; }
.yw-tool-single__wrap { width: min(100% - 32px, 1240px); }

.yw-tool-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 24px;
	align-items: start;
}

.yw-tool-single__primary { min-width: 0; }

/* Hero */
.yw-tool-hero {
	background: var(--yw-surface);
	border: 1px solid var(--yw-border);
	border-radius: 20px;
	padding: 28px 28px 22px;
	box-shadow: var(--yw-shadow);
	margin-bottom: 0;
}

.yw-tool-hero__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
}

.yw-tool-hero__brand {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	min-width: 0;
	flex: 1;
}

.yw-tool-hero__logo {
	flex-shrink: 0;
	width: 88px;
	height: 88px;
	border-radius: 22px;
	border: 1px solid var(--yw-border);
	background: linear-gradient(145deg, #fafbff, #f1f5f9);
	overflow: hidden;
	display: grid;
	place-items: center;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.yw-tool-hero__logo--ph {
	font-size: 32px;
	font-weight: 800;
	color: var(--yw-primary);
}

.yw-tool-hero__logo-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.yw-tool-hero__intro { min-width: 0; }

.yw-tool-hero__title {
	margin: 0 0 12px;
	font-size: clamp(28px, 3.5vw, 40px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.12;
}

.yw-tool-hero__scores {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 20px;
}

.yw-tool-hero__score {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	padding-right: 20px;
	border-right: 1px solid var(--yw-border);
}

.yw-tool-hero__score-num {
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
	color: var(--yw-text);
	font-variant-numeric: tabular-nums;
}

.yw-tool-hero__score-num--na { color: #cbd5e1; }

.yw-tool-stars {
	display: inline-flex;
	gap: 2px;
	line-height: 1;
}

.yw-tool-stars__icon { font-size: 16px; line-height: 1; }
.yw-tool-stars__icon--full { color: #f59e0b; }
.yw-tool-stars__icon--half {
	color: #f59e0b;
	opacity: 0.45;
}
.yw-tool-stars__icon--empty { color: #e2e8f0; }

.yw-tool-hero__metrics {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 20px;
}

.yw-tool-stat-pill {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

.yw-tool-stat-pill__main {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.yw-tool-stat-pill__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: #94a3b8;
}

.yw-tool-stat-pill__icon .yw-tool-heart {
	display: block;
	transition: fill 0.15s ease, stroke 0.15s ease, transform 0.15s ease;
}

.yw-tool-stat-pill__label {
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
	line-height: 1.2;
	white-space: nowrap;
}

.yw-tool-stat-pill__count {
	font-size: 20px;
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	color: #0f172a;
	letter-spacing: -0.03em;
	flex-shrink: 0;
}

.yw-tool-stat-pill--favorite {
	cursor: pointer;
	text-align: left;
	color: inherit;
	font: inherit;
}

.yw-tool-stat-pill--favorite:hover .yw-tool-stat-pill__icon,
.yw-tool-stat-pill--favorite.is-active .yw-tool-stat-pill__icon {
	color: #e11d48;
}

.yw-tool-stat-pill--favorite:hover .yw-tool-stat-pill__label,
.yw-tool-stat-pill--favorite.is-active .yw-tool-stat-pill__label {
	color: #e11d48;
}

.yw-tool-stat-pill--favorite.is-active .yw-tool-stat-pill__count {
	color: #be123c;
}

.yw-tool-stat-pill--favorite:hover .yw-tool-stat-pill__icon .yw-tool-heart {
	transform: scale(1.08);
}

.yw-tool-stat-pill--favorite.is-active .yw-tool-stat-pill__icon .yw-tool-heart {
	fill: #f43f5e;
	stroke: #e11d48;
}

.yw-tool-stat-pill--favorite.is-busy {
	opacity: 0.65;
	pointer-events: none;
}

.yw-tool-stat-pill--views .yw-tool-stat-pill__icon {
	color: #64748b;
}

.yw-tool-hero__score-label {
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	color: #94a3b8;
}

.yw-tool-hero__score-label:hover {
	color: var(--yw-primary);
	text-decoration: underline;
}

.yw-tool-stars--rate {
	gap: 4px;
}

.yw-tool-stars__btn {
	border: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
	line-height: 1;
	font: inherit;
}

.yw-tool-stars__btn span {
	font-size: 18px;
	color: #e2e8f0;
	transition: color 0.12s ease, transform 0.12s ease;
}

.yw-tool-stars__btn:hover span,
.yw-tool-stars__btn.is-active span {
	color: #f59e0b;
}

.yw-tool-stars__btn:hover {
	transform: scale(1.06);
}

.yw-tool-stars--rate.is-busy {
	opacity: 0.6;
	pointer-events: none;
}

.yw-comment__rating {
	display: block;
	margin-top: 4px;
}

.yw-comment__rating .yw-tool-stars__icon--full,
.yw-comment__rating .yw-tool-stars__icon--half {
	color: #f59e0b;
}

.yw-tool-hero__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	flex-shrink: 0;
	align-self: flex-start;
	min-width: 120px;
}

.yw-tool-hero__actions--compact .yw-btn {
	justify-content: center;
	gap: 6px;
	font-weight: 600;
}

.yw-tool-hero__btn-site {
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 700;
	background: var(--yw-primary);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.32);
}

.yw-tool-hero__btn-site:hover {
	background: var(--yw-primary-dark);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 6px 20px rgba(55, 48, 163, 0.38);
}

.yw-tool-hero__btn-site svg {
	flex-shrink: 0;
}

.yw-tool-hero__btn-copy {
	padding: 8px 12px;
	font-size: 13px;
	background: #f8fafc;
	color: #64748b;
	border: 1px solid #e8edf5;
	box-shadow: none;
}

.yw-tool-hero__btn-copy:hover {
	background: #f1f5f9;
	color: #475569;
	border-color: #dbe3ef;
}

.yw-tool-hero__intro-box {
	margin-top: 22px;
	padding: 16px 18px;
	background: #f8fafc;
	border: 1px solid #eef2f7;
	border-radius: 14px;
}

.yw-tool-hero__intro-label {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #94a3b8;
}

.yw-tool-hero__intro-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: #475569;
}

/* Meta strip */
.yw-tool-meta-strip {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 12px;
	margin: 22px 0 0;
	padding: 0;
}

.yw-tool-meta-strip__item {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	padding: 14px 12px;
	background: #fafbfc;
	border: 1px solid #eef2f7;
	border-radius: 14px;
}

.yw-tool-meta-strip__item dt {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #94a3b8;
}

.yw-tool-meta-strip__item dd {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--yw-text);
	line-height: 1.4;
}

.yw-tool-meta-strip__item--cats dd {
	font-weight: 600;
	line-height: 1.45;
}
.yw-tool-meta-strip__item--cats dd a {
	color: var(--yw-primary-dark);
	text-decoration: none;
}
.yw-tool-meta-strip__item--cats dd a:hover {
	text-decoration: underline;
}

.yw-tool-meta-strip__item--vpn-direct dd {
	color: #059669;
}

.yw-tool-meta-strip__item--vpn-magic dd {
	color: #d97706;
}

.yw-tool-price-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.yw-tool-price-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	border: 1px solid transparent;
}

.yw-tool-price-badge--free {
	background: #ecfdf5;
	color: #047857;
	border-color: #a7f3d0;
}

.yw-tool-price-badge--trial {
	background: #eff6ff;
	color: #1d4ed8;
	border-color: #bfdbfe;
}

.yw-tool-price-badge--paid {
	background: #fef3c7;
	color: #b45309;
	border-color: #fde68a;
}

.yw-tool-price-badge--contact {
	background: #f5f3ff;
	color: #6d28d9;
	border-color: #ddd6fe;
}

.yw-tool-price-badge--pricing,
.yw-tool-price-badge--muted {
	background: #f1f5f9;
	color: #475569;
	border-color: #e2e8f0;
}

.yw-tool-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.yw-tool-tag {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: #f1f5f9;
	color: #475569;
	text-decoration: none;
	border: 1px solid #e8ecf3;
}

.yw-tool-tag:hover {
	background: #fff;
	border-color: #c7d2fe;
	color: var(--yw-primary);
	text-decoration: none;
}

.yw-tool-tag--feature {
	background: #ecfdf5;
	color: #047857;
	border-color: #bbf7d0;
}

/* Tabs */
.yw-tool-tabs {
	position: sticky;
	top: 72px;
	z-index: 20;
	margin: 16px 0 0;
	background: rgba(245, 247, 251, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--yw-border);
}

.yw-tool-tabs__inner {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: none;
}

.yw-tool-tabs__inner::-webkit-scrollbar { display: none; }

.yw-tool-tabs__link {
	flex-shrink: 0;
	padding: 14px 18px;
	font-size: 14px;
	font-weight: 700;
	color: #64748b;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.yw-tool-tabs__link:hover {
	color: var(--yw-primary);
	text-decoration: none;
}

.yw-tool-tabs__link.is-active {
	color: var(--yw-primary);
	border-bottom-color: var(--yw-primary);
}

/* Sections */
.yw-tool-section {
	background: var(--yw-surface);
	border: 1px solid var(--yw-border);
	border-radius: 20px;
	padding: 28px 30px 32px;
	margin-top: 16px;
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
	scroll-margin-top: 140px;
}

.yw-tool-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f1f5f9;
}

.yw-tool-section__title {
	margin: 0;
	font-size: clamp(20px, 2.5vw, 26px);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.yw-tool-section__more {
	font-size: 14px;
	font-weight: 600;
	color: var(--yw-primary);
	text-decoration: none;
	white-space: nowrap;
}

.yw-tool-section__more:hover { text-decoration: underline; }

.yw-tool-toc {
	margin: 0 0 24px;
	padding: 16px 18px;
	background: #f8fafc;
	border: 1px solid #eef2f7;
	border-radius: 14px;
	font-size: 14px;
}

.yw-tool-toc strong {
	display: block;
	margin-bottom: 10px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #94a3b8;
}

.yw-tool-toc ol {
	margin: 0;
	padding-left: 20px;
	display: grid;
	gap: 6px;
}

.yw-tool-toc a {
	color: #475569;
	font-weight: 600;
	text-decoration: none;
}

.yw-tool-toc a:hover { color: var(--yw-primary); }

.yw-tool-prose {
	font-size: 16px;
	line-height: 1.85;
	color: #334155;
}

.yw-tool-prose > *:first-child { margin-top: 0; }
.yw-tool-prose > *:last-child { margin-bottom: 0; }

.yw-tool-prose h2 {
	margin: 2.2em 0 0.75em;
	padding-top: 1.2em;
	border-top: 1px solid #f1f5f9;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--yw-text);
	scroll-margin-top: 140px;
}

.yw-tool-prose h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.yw-tool-prose h3 {
	margin: 1.5em 0 0.5em;
	font-size: 1.1rem;
	font-weight: 700;
}

.yw-tool-prose ul,
.yw-tool-prose ol {
	padding-left: 1.25em;
}

.yw-tool-prose li { margin: 0.35em 0; }

.yw-tool-prose a {
	color: var(--yw-primary);
	font-weight: 600;
}

.yw-tool-tags-footer {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid #f1f5f9;
}

.yw-tool-tags-footer strong {
	display: block;
	margin-bottom: 10px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #94a3b8;
}

.yw-tool-single__back {
	margin: 16px 0 0;
}

/* Alternatives grid */
.yw-tool-alt-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.yw-tool-alt-card {
	background: #fafbfc;
	border: 1px solid #eef2f7;
	border-radius: 16px;
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.yw-tool-alt-card:hover {
	border-color: #c7d2fe;
	box-shadow: 0 8px 24px rgba(79, 70, 229, 0.08);
}

.yw-tool-alt-card__main {
	display: grid;
	grid-template-columns: 52px 1fr;
	gap: 12px;
	padding: 14px;
	color: inherit;
	text-decoration: none;
}

.yw-tool-alt-card__main:hover { text-decoration: none; }

.yw-tool-alt-card__logo {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	border: 1px solid var(--yw-border);
	background: #fff;
	overflow: hidden;
	display: grid;
	place-items: center;
	font-size: 18px;
	font-weight: 800;
	color: var(--yw-primary);
}

.yw-tool-alt-card__logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.yw-tool-alt-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.yw-tool-alt-card__title {
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
}

.yw-tool-alt-card__desc {
	font-size: 13px;
	color: #64748b;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.yw-tool-alt-card__cat {
	font-size: 11px;
	font-weight: 600;
	color: var(--yw-primary);
}

.yw-tool-alt-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 14px;
	border-top: 1px solid #eef2f7;
	background: #fff;
}

.yw-tool-alt-card__site {
	font-size: 12px;
	font-weight: 700;
	color: var(--yw-primary);
	text-decoration: none;
}

.yw-tool-alt-card__site:hover { text-decoration: underline; }

.yw-tool-reviews-box {
	padding-top: 8px;
}

.yw-tool-section--reviews .yw-comments--embedded {
	margin-top: 0;
}

/* Sidebar */
.yw-tool-single__aside {
	display: grid;
	gap: 14px;
	align-content: start;
}

.yw-tool-side-card {
	background: var(--yw-surface);
	border: 1px solid var(--yw-border);
	border-radius: 16px;
	padding: 18px;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.yw-tool-side-card--sticky {
	position: sticky;
	top: 96px;
}

.yw-tool-side-card__muted {
	margin: 0;
	font-size: 13px;
	color: #94a3b8;
}

.yw-tool-side-card__title {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 800;
}

.yw-tool-side-ad.yw-tool-side-card {
	padding: 0;
	overflow: hidden;
}

.yw-tool-side-ad .yw-tool-ad-slot__body {
	margin: 0;
	padding: 0;
	overflow: hidden;
	line-height: normal;
}

.yw-tool-side-ad .yw-tool-ad-slot__body > *:first-child {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.yw-tool-side-ad .yw-ad-slot {
	margin: 0;
	padding: 0;
}

.yw-tool-side-ad .yw-ad-slot__inner {
	display: block;
	line-height: normal;
}

.yw-tool-side-ad .yw-tool-ad-slot__body iframe,
.yw-tool-side-ad .yw-tool-ad-slot__body ins.adsbygoogle,
.yw-tool-side-ad .yw-tool-ad-slot__body img {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 250px;
	margin-left: auto;
	margin-right: auto;
}

.yw-tool-side-ad .yw-tool-ad-slot__body:empty {
	display: none;
}

.yw-tool-side-ad:has(.yw-tool-ad-slot__body:empty) {
	display: none;
}

.yw-tool-side-stats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.yw-tool-side-stats li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	font-size: 13px;
}

.yw-tool-side-stats span { color: #94a3b8; }
.yw-tool-side-stats strong { font-weight: 800; font-variant-numeric: tabular-nums; }

.yw-tool-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.yw-tool-checklist li {
	position: relative;
	padding-left: 22px;
	font-size: 14px;
	color: #475569;
	line-height: 1.5;
}

.yw-tool-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #ecfdf5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.7 9.5 3.8' fill='none' stroke='%23047857' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.yw-tool-facts { margin: 0; padding: 0; }

.yw-tool-facts__row {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 8px 12px;
	padding: 8px 0;
	border-bottom: 1px solid #f1f5f9;
	font-size: 13px;
}

.yw-tool-facts__row:last-child { border-bottom: 0; padding-bottom: 0; }

.yw-tool-facts dt {
	margin: 0;
	color: #94a3b8;
	font-weight: 500;
}

.yw-tool-facts dd {
	margin: 0;
	color: var(--yw-text);
	font-weight: 600;
	line-height: 1.45;
}

.yw-tool-facts dd a { text-decoration: none; }
.yw-tool-facts dd a:hover { color: var(--yw-primary); }

.yw-tool-facts__code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 11px;
	font-weight: 500;
	background: #f8fafc;
	padding: 2px 8px;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
}

.yw-tool-related {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 4px;
}

.yw-tool-related__link {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 12px;
	align-items: center;
	padding: 10px 8px;
	margin: 0 -8px;
	border-radius: 12px;
	color: inherit;
	text-decoration: none;
	transition: background 0.12s ease;
}

.yw-tool-related__link:hover {
	background: #f8fafc;
	text-decoration: none;
}

.yw-tool-related__logo {
	width: 40px;
	height: 40px;
	border-radius: 11px;
	border: 1px solid var(--yw-border);
	background: #f8fafc;
	overflow: hidden;
	display: grid;
	place-items: center;
	font-size: 14px;
	font-weight: 800;
	color: var(--yw-primary);
}

.yw-tool-related__logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.yw-tool-related__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.yw-tool-related__text strong {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.yw-tool-related__text small {
	font-size: 12px;
	color: #94a3b8;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 1080px) {
	.yw-tool-single__layout { grid-template-columns: 1fr; }
	.yw-tool-side-card--sticky { position: static; }
	.yw-tool-hero__head { flex-direction: column; }
	.yw-tool-alt-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
	.yw-tool-hero { padding: 20px 18px 18px; }
	.yw-tool-hero__brand { flex-direction: column; align-items: center; text-align: center; }
	.yw-tool-hero__actions { width: 100%; min-width: 0; align-self: stretch; }
	.yw-tool-hero__scores { justify-content: center; }
	.yw-tool-hero__score { border-right: 0; padding-right: 0; }
	.yw-tool-meta-strip { gap: 8px; }
	.yw-tool-meta-strip__item { padding: 10px 8px; }
	.yw-tool-meta-strip__item dt { font-size: 10px; margin-bottom: 4px; }
	.yw-tool-meta-strip__item dd { font-size: 12px; }
	.yw-tool-section { padding: 20px 18px 24px; }
	.yw-tool-tabs { top: 68px; }
}
