:root {
	--yw-primary: #4f46e5;
	--yw-primary-dark: #3730a3;
	--yw-bg: #f5f7fb;
	--yw-surface: #ffffff;
	--yw-text: #111827;
	--yw-muted: #6b7280;
	--yw-border: #e8ecf3;
	--yw-radius: 16px;
	--yw-radius-sm: 12px;
	--yw-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
	--yw-shadow-lg: 0 12px 40px rgba(79, 70, 229, 0.12);
	--yw-container: 1400px;
	--yw-font: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--yw-font);
	color: var(--yw-text);
	background: var(--yw-bg);
	line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--yw-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.yw-sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.yw-skip-link {
	position: absolute; left: -999px; top: 0; background: #000; color: #fff;
	padding: 8px 12px; z-index: 1000;
}
.yw-skip-link:focus { left: 8px; }
.yw-container { width: min(100% - 32px, var(--yw-container)); margin-inline: auto; }

/* Header */
.yw-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--yw-border);
}
.yw-header__inner { display: flex; align-items: center; gap: 48px; min-height: 72px; }
.yw-header__bar { display: flex; align-items: center; flex-shrink: 0; gap: 12px; }
.yw-brand { flex-shrink: 0; }
.yw-header__panel { flex: 1; padding-left: 8px; }
.yw-brand__link {
	display: inline-flex; align-items: center; gap: 10px;
	color: inherit; text-decoration: none; font-weight: 700;
}
.yw-brand__logo, .custom-logo-link img { display: block; height: 36px; width: auto; }
.yw-brand__name { font-size: 17px; }
.yw-brand__en {
	font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
	color: var(--yw-muted); text-transform: uppercase;
}
.yw-header__toggle {
	display: none; border: 1px solid var(--yw-border); background: var(--yw-surface);
	border-radius: 10px; padding: 10px; cursor: pointer;
}
.yw-header__toggle-bar { display: block; width: 22px; height: 2px; background: var(--yw-text); margin: 4px 0; }
.yw-header__panel {
	flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.yw-nav__list {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; justify-content: center;
}
.yw-nav__list .menu-item { list-style: none; margin: 0; }
.yw-nav__list a {
	color: #374151; text-decoration: none; font-size: 15px; font-weight: 500;
	padding: 8px 2px; border-bottom: 2px solid transparent;
}
.yw-nav__list .current-menu-item > a,
.yw-nav__list .current_page_item > a {
	color: var(--yw-primary);
	border-bottom-color: var(--yw-primary);
	font-weight: 700;
}
.yw-nav__list a:hover {
	color: var(--yw-primary);
	text-decoration: none;
}
.yw-header__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: flex-end; }
.yw-header-search-wrap { position: relative; }
.yw-header-search {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 999px; color: var(--yw-text);
	background: transparent; border: 0; cursor: pointer; padding: 0;
}
.yw-header-search:hover,
.yw-header-search.is-active {
	background: #f3f4f6; color: var(--yw-primary);
}
.yw-header-search-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 60;
	min-width: min(360px, calc(100vw - 32px));
	padding: 12px;
	background: var(--yw-surface);
	border: 1px solid var(--yw-border);
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}
.yw-header-search-panel[hidden] { display: none; }
.yw-header-search-panel .yw-search--header {
	display: flex;
	align-items: center;
	gap: 8px;
}
.yw-header-search-panel .yw-search__input {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--yw-border);
	background: #f8fafc;
	border-radius: 999px;
	padding: 10px 14px;
	font: inherit;
}
.yw-header-search-panel .yw-search__submit {
	flex-shrink: 0;
	padding: 10px 16px;
	font-size: 13px;
}
.yw-header-login {
	color: var(--yw-text); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 4px;
}
.yw-header-login:hover { color: var(--yw-primary); text-decoration: none; }
.yw-search--header { display: flex; align-items: center; gap: 8px; }
.yw-search__input {
	border: 1px solid var(--yw-border); background: var(--yw-surface);
	border-radius: 999px; padding: 10px 14px; min-width: 180px; font: inherit;
}
.yw-search__btn { border: 0; background: transparent; color: var(--yw-primary); font-weight: 600; cursor: pointer; }

/* Buttons */
.yw-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
	text-decoration: none; border: 1px solid transparent; cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
	white-space: nowrap;
}
.yw-btn:hover { text-decoration: none; transform: translateY(-1px); }
.yw-btn--primary { background: var(--yw-primary); color: #fff; }
.yw-btn--primary:hover { background: var(--yw-primary-dark); color: #fff; }
.yw-btn--ghost { background: #fff; color: var(--yw-primary); border-color: rgba(79, 70, 229, 0.35); }
.yw-btn--outline { background: var(--yw-surface); border-color: var(--yw-border); color: var(--yw-text); }
.yw-btn--dark { background: #111827; color: #fff; }
.yw-btn--white { background: #fff; color: var(--yw-primary); }
.yw-btn--light { background: #fff; color: var(--yw-primary-dark); border: 0; }
.yw-btn--block { width: 100%; }
.yw-btn--sm { padding: 8px 12px; font-size: 13px; }
.yw-btn--lg { padding: 12px 22px; font-size: 15px; gap: 8px; }
.yw-btn--lg svg { flex-shrink: 0; }

.yw-main { padding-block: 32px 48px; }
.yw-main--home { padding-top: 0; padding-bottom: 0; }
.yw-muted { color: var(--yw-muted); }
.yw-h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.yw-section { padding-block: 36px; }
.yw-section--scenes { padding-top: 20px; padding-bottom: 8px; }

.yw-scene-cats__track {
	display: flex;
	flex-wrap: nowrap;
	gap: 14px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
	padding-bottom: 6px;
}
.yw-scene-cats__track::-webkit-scrollbar { height: 6px; }
.yw-scene-cats__track::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 999px;
}
.yw-scene-cat {
	flex: 0 0 200px;
	scroll-snap-align: start;
	background: #fff;
	border: 1px solid #e8edf5;
	border-radius: 16px;
	padding: 16px 14px 14px;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
	min-height: 292px;
	display: flex;
	flex-direction: column;
}
.yw-scene-cat__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}
.yw-scene-cat__icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	font-size: 18px;
	line-height: 1;
	flex-shrink: 0;
	display: grid;
	place-items: center;
	border: 1px solid transparent;
}
.yw-scene-cat__icon--rose { background: #fff1f2; border-color: #fecdd3; }
.yw-scene-cat__icon--orange { background: #fff7ed; border-color: #fed7aa; }
.yw-scene-cat__icon--blue { background: #eff6ff; border-color: #bfdbfe; }
.yw-scene-cat__icon--violet { background: #f5f3ff; border-color: #ddd6fe; }
.yw-scene-cat__icon--teal { background: #f0fdfa; border-color: #99f6e4; }
.yw-scene-cat__icon--green { background: #f0fdf4; border-color: #bbf7d0; }
.yw-scene-cat__icon--indigo { background: #eef2ff; border-color: #c7d2fe; }
.yw-scene-cat__title {
	margin: 0;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
}
.yw-scene-cat__title a {
	color: #0f172a;
	text-decoration: none;
}
.yw-scene-cat__title a:hover { color: var(--yw-primary); }
.yw-scene-cat__list {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
}
.yw-scene-cat__link {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 6px;
	margin: 0 -6px;
	color: #64748b;
	font-size: 13px;
	text-decoration: none;
	border-radius: 8px;
	border-bottom: 1px solid #f1f5f9;
}
.yw-scene-cat__link:hover {
	color: var(--yw-primary);
	background: #f8fafc;
	text-decoration: none;
}
.yw-scene-cat__list li:last-child .yw-scene-cat__link { border-bottom: 0; }
.yw-scene-cat__arrow {
	flex-shrink: 0;
	color: #cbd5e1;
	font-size: 14px;
	line-height: 1;
}
.yw-scene-cat__label {
	min-width: 0;
	line-height: 1.4;
}
.yw-scene-cat__more {
	margin-top: auto;
	padding-top: 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--yw-primary);
	text-decoration: none;
}
.yw-scene-cat__more:hover { text-decoration: underline; }
.yw-grid--scenes-archive { margin-top: 28px; }

.yw-h2--sm { font-size: clamp(18px, 2.2vw, 22px); }
.yw-section__head--row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}
.yw-section__head--row .yw-section__sub { margin-top: 4px; }

/* 使用场景页 */
.yw-scene-page__grid { align-items: start; }
.yw-scene-sidebar__goal-chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.yw-scene-sidebar__chip {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	padding: 8px 11px;
	border-radius: 11px;
	border: 1px solid transparent;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.yw-scene-sidebar__chip:hover {
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.yw-scene-sidebar__chip.is-active {
	border-color: var(--yw-primary);
	box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.15);
	font-weight: 700;
	color: var(--yw-primary-dark);
}
.yw-scene-sidebar__chip-ico {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	display: grid;
	place-items: center;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1;
	background: rgba(255, 255, 255, 0.7);
}
.yw-scene-sidebar__chip-label {
	flex: 1;
	min-width: 0;
}
.yw-scene-sidebar__chip-count {
	flex-shrink: 0;
	min-width: 21px;
	padding: 2px 6px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	background: rgba(255, 255, 255, 0.75);
	color: #64748b;
}
.yw-scene-sidebar__chip.is-active .yw-scene-sidebar__chip-count {
	background: rgba(79, 70, 229, 0.12);
	color: var(--yw-primary-dark);
}
.yw-scene-sidebar__chip--amber { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #fde68a; }
.yw-scene-sidebar__chip--orange { background: linear-gradient(135deg, #fff7ed, #ffedd5); border-color: #fed7aa; }
.yw-scene-sidebar__chip--blue { background: linear-gradient(135deg, #eff6ff, #dbeafe); border-color: #bfdbfe; }
.yw-scene-sidebar__chip--violet { background: linear-gradient(135deg, #f5f3ff, #ede9fe); border-color: #ddd6fe; }
.yw-scene-sidebar__chip--green { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border-color: #bbf7d0; }
.yw-scene-sidebar__chip--indigo { background: linear-gradient(135deg, #eef2ff, #e0e7ff); border-color: #c7d2fe; }
.yw-scene-sidebar__cta {
	position: relative;
	overflow: hidden;
}
.yw-scene-sidebar__cta-art {
	position: absolute;
	right: -6px;
	bottom: -4px;
	opacity: 0.35;
	pointer-events: none;
}
.yw-scene-sidebar__cta p {
	position: relative;
	z-index: 1;
	line-height: 1.55;
}

.yw-scene-search {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 22px;
	padding: 0 18px;
	height: 52px;
	border: 1px solid var(--yw-border);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.yw-scene-search__icon { color: #94a3b8; display: grid; place-items: center; }
.yw-scene-search__input {
	flex: 1;
	border: 0;
	background: transparent;
	font-size: 15px;
	outline: none;
	min-width: 0;
}
.yw-scene-search__input::placeholder { color: #94a3b8; }

.yw-scene-featured { margin-bottom: 28px; }
.yw-scene-featured__track {
	display: flex;
	flex-wrap: nowrap;
	gap: 14px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
	padding-bottom: 8px;
}
.yw-scene-featured__track::-webkit-scrollbar {
	height: 6px;
}
.yw-scene-featured__track::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 999px;
}
.yw-scene-featured__card {
	position: relative;
	flex: 0 0 220px;
	scroll-snap-align: start;
	display: block;
	min-height: 148px;
	padding: 18px 16px;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	border: 1px solid transparent;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.yw-scene-featured__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
	text-decoration: none;
}
.yw-scene-featured__card--rose { background: linear-gradient(135deg, #fff1f2, #ffe4e6); border-color: #fecdd3; }
.yw-scene-featured__card--orange { background: linear-gradient(135deg, #fff7ed, #ffedd5); border-color: #fed7aa; }
.yw-scene-featured__card--blue { background: linear-gradient(135deg, #eff6ff, #dbeafe); border-color: #bfdbfe; }
.yw-scene-featured__card--violet { background: linear-gradient(135deg, #f5f3ff, #ede9fe); border-color: #ddd6fe; }
.yw-scene-featured__card--teal { background: linear-gradient(135deg, #f0fdfa, #ccfbf1); border-color: #99f6e4; }
.yw-scene-featured__card--green { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border-color: #bbf7d0; }
.yw-scene-featured__card--indigo { background: linear-gradient(135deg, #eef2ff, #e0e7ff); border-color: #c7d2fe; }
.yw-scene-featured__title { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.yw-scene-featured__desc {
	margin: 0 0 10px;
	font-size: 12px;
	line-height: 1.5;
	color: #64748b;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.yw-scene-featured__count { font-size: 13px; font-weight: 700; color: #475569; }
.yw-scene-featured__glyph {
	position: absolute;
	right: 8px;
	bottom: 4px;
	font-size: 52px;
	line-height: 1;
	opacity: 0.22;
}

.yw-scene-hot-section { margin-bottom: 30px; }
.yw-scene-hot-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.yw-scene-hot {
	background: #fff;
	border: 1px solid var(--yw-border);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.yw-scene-hot:hover {
	box-shadow: 0 10px 24px rgba(79, 70, 229, 0.1);
	transform: translateY(-2px);
}
.yw-scene-hot__link {
	display: block;
	color: inherit;
	text-decoration: none;
	height: 100%;
}
.yw-scene-hot__link:hover { text-decoration: none; }
.yw-scene-hot__media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, #e2e8f0, #eef2ff);
}
.yw-scene-hot__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yw-scene-hot__ph { width: 100%; height: 100%; background: linear-gradient(135deg, #e2e8f0, #eef2ff); }
.yw-scene-hot__rank {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.92);
	color: #64748b;
	font-size: 13px;
	font-weight: 800;
	display: grid;
	place-items: center;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.yw-scene-hot.is-top-1 .yw-scene-hot__rank { background: #fef3c7; color: #b45309; }
.yw-scene-hot.is-top-2 .yw-scene-hot__rank { background: #f1f5f9; color: #475569; }
.yw-scene-hot.is-top-3 .yw-scene-hot__rank { background: #ffedd5; color: #c2410c; }
.yw-scene-hot__body { padding: 14px 14px 16px; }
.yw-scene-hot__title { margin: 0 0 6px; font-size: 16px; font-weight: 800; line-height: 1.35; }
.yw-scene-hot__desc {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--yw-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 40px;
}
.yw-scene-hot__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.yw-scene-hot__stack { display: flex; align-items: center; }
.yw-scene-hot__stack-item {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 2px solid #fff;
	overflow: hidden;
	display: grid;
	place-items: center;
	font-size: 10px;
	font-weight: 800;
	color: #fff;
	margin-left: -8px;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}
.yw-scene-hot__stack-item:first-child { margin-left: 0; }
.yw-scene-hot__stack-item img { width: 100%; height: 100%; object-fit: cover; }
.yw-scene-hot__usage {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: #64748b;
	font-weight: 600;
	white-space: nowrap;
}

.yw-scene-all-cats {
	margin-top: 28px;
	padding: 22px 20px 20px;
	background: linear-gradient(180deg, #f8faff 0%, #f3f6fc 100%);
	border: 1px solid #e8edf5;
	border-radius: 20px;
}
.yw-scene-all-cats--home { margin-top: 0; }
.yw-scene-all-cats .yw-section__head--row { margin-bottom: 18px; }
.yw-scene-all-cats .yw-h2--sm { font-size: clamp(20px, 2.4vw, 24px); }
.yw-scene-all-cats .yw-scene-cats { margin-top: 0; }
.yw-section--muted {
	background: linear-gradient(180deg, #f8faff 0%, #f3f6fc 100%);
	border-block: 1px solid #eef2f8;
}
.yw-section--bottom { padding-block: 40px 48px; }
.yw-section__head {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px;
}
.yw-section__head--tight { margin-top: 36px; }
.yw-section__titles { min-width: 0; }
.yw-section__sub { margin: 6px 0 0; font-size: 14px; color: var(--yw-muted); }
.yw-link { font-weight: 600; font-size: 14px; color: var(--yw-primary); text-decoration: none; white-space: nowrap; }
.yw-link--arrow::after { content: " →"; }
.yw-link:hover { color: var(--yw-primary-dark); text-decoration: none; }

/* Hero */
.yw-hero {
	position: relative;
	padding: 36px 0 28px;
	overflow: hidden;
	background:
		radial-gradient(ellipse 80% 60% at 85% 20%, rgba(199, 210, 254, 0.55), transparent 60%),
		radial-gradient(ellipse 50% 40% at 10% 80%, rgba(221, 214, 254, 0.35), transparent 55%),
		linear-gradient(180deg, #fafbff 0%, #f5f7fb 100%);
}
.yw-hero--has-bg {
	padding: 44px 0 32px;
	background: transparent;
}
.yw-hero--has-bg .yw-hero__grid {
	grid-template-columns: minmax(0, 1fr);
	max-width: 720px;
	margin-inline: 0;
	justify-items: start;
}
.yw-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}
.yw-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		100deg,
		rgba(250, 251, 255, 0.96) 0%,
		rgba(250, 251, 255, 0.9) 38%,
		rgba(250, 251, 255, 0.72) 58%,
		rgba(250, 251, 255, 0.35) 100%
	);
}
.yw-hero__bg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center right;
	display: block;
}
.yw-hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
	gap: 24px 32px;
	align-items: center;
	justify-items: start;
}
.yw-hero__copy {
	text-align: left;
	justify-self: start;
	width: min(100%, 640px);
	padding-inline-start: clamp(20px, 4vw, 56px);
	padding-inline-end: 12px;
	box-sizing: border-box;
}
.yw-hero__title {
	margin: 0 0 14px;
	font-size: clamp(32px, 4.2vw, 48px);
	line-height: 1.12;
	letter-spacing: -0.03em;
	font-weight: 800;
	color: #0f172a;
}
.yw-hero__sub {
	margin: 0 0 28px;
	color: #64748b;
	font-size: 16px;
	line-height: 1.65;
	max-width: 34em;
}
.yw-search--hero {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	max-width: 640px;
	margin-inline: 0;
	background: #fff;
	padding: 8px 8px 8px 22px;
	border-radius: 999px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 8px 32px rgba(79, 70, 229, 0.1), 0 2px 8px rgba(15, 23, 42, 0.04);
}
.yw-search--hero .yw-search__input {
	flex: 1;
	border: 0;
	background: transparent;
	min-width: 0;
	padding: 14px 0;
	font-size: 15px;
	outline: none;
}
.yw-search__btn--primary {
	flex-shrink: 0;
	border-radius: 999px;
	padding: 14px 28px;
	border: 0;
	background: linear-gradient(135deg, #6366f1, var(--yw-primary));
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.yw-search__btn--primary:hover { filter: brightness(1.05); }
.yw-hero__hot {
	margin-top: 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: #94a3b8;
}
.yw-hero__hot-label { color: #94a3b8; margin-right: 4px; }
.yw-hero__hot-link {
	color: #64748b;
	text-decoration: none;
	font-weight: 500;
}
.yw-hero__hot-link:hover { color: var(--yw-primary); text-decoration: none; }
.yw-hero__hot-sep { margin-right: 4px; color: #cbd5e1; }
.yw-hero__art {
	position: relative;
	min-height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.yw-hero__glow {
	position: absolute;
	inset: 8% 0;
	background: radial-gradient(circle at 50% 50%, rgba(165, 180, 252, 0.45), transparent 68%);
	border-radius: 50%;
}
.yw-hero__mascot {
	position: relative;
	z-index: 1;
	width: min(100%, 420px);
	height: auto;
	display: block;
	filter: drop-shadow(0 20px 40px rgba(79, 70, 229, 0.18));
}
/* Archives layout */
.yw-archive-grid {
	display: grid; grid-template-columns: 280px 1fr;
	gap: 22px; align-items: start;
}
.yw-archive-grid--triple { grid-template-columns: 260px 1fr 280px; }
.yw-aside {
	position: sticky; top: 88px; align-self: start;
	background: var(--yw-surface); border: 1px solid var(--yw-border);
	border-radius: var(--yw-radius); padding: 14px; box-shadow: var(--yw-shadow);
}
.yw-aside__title { margin: 0 0 10px; font-size: 15px; }
.yw-aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.yw-aside-list__link {
	display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px;
	border-radius: 12px; color: inherit; text-decoration: none; font-size: 14px;
}
.yw-aside-list__link:hover { background: #f3f4f6; text-decoration: none; }
.yw-aside-list__link.is-active { background: #eef2ff; color: var(--yw-primary-dark); font-weight: 700; }
.yw-aside-list__count { color: var(--yw-muted); font-variant-numeric: tabular-nums; }

/* 归档侧栏分类（全站统一，与使用场景一致） */
.yw-cat-sidebar > .yw-aside__block + .yw-aside__block,
.yw-cat-sidebar > .yw-aside__block + .yw-aside__cta,
.yw-cat-sidebar > .yw-aside__block + .yw-tools-sidebar__cta,
.yw-cat-sidebar > .yw-aside__cta,
.yw-cat-sidebar > .yw-tools-sidebar__cta {
	border-top: 1px solid var(--yw-border);
}

.yw-cat-sidebar__section-title,
.yw-scene-sidebar__goals-block .yw-aside__title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	letter-spacing: 0.01em;
}

.yw-cat-sidebar .yw-cat-sidebar__link,
.yw-cat-sidebar .yw-aside-list__link.yw-cat-sidebar__link { align-items: center; }

/* 左栏分类：舒适行距 */
.yw-cat-sidebar.yw-aside { padding: 14px; }
.yw-cat-sidebar .yw-aside-list,
.yw-cat-sidebar .yw-cat-sidebar__list { gap: 6px; }
.yw-cat-sidebar .yw-aside-list__link {
	padding: 8px 10px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.5;
}
.yw-cat-sidebar .yw-aside__title { margin-bottom: 8px; font-size: 15px; }
.yw-cat-sidebar__section-title,
.yw-scene-sidebar__goals-block .yw-aside__title {
	margin-bottom: 10px;
	font-size: 15px;
}
.yw-cat-sidebar > .yw-aside__block + .yw-aside__block,
.yw-cat-sidebar > .yw-aside__block + .yw-aside__cta,
.yw-cat-sidebar > .yw-aside__block + .yw-tools-sidebar__cta,
.yw-cat-sidebar > .yw-aside__cta,
.yw-cat-sidebar > .yw-tools-sidebar__cta {
	margin-top: 12px;
	padding-top: 12px;
}

.yw-cat-sidebar__label,
.yw-scene-sidebar__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}
.yw-cat-sidebar__ico,
.yw-scene-sidebar__ico {
	width: 20px;
	text-align: center;
	flex-shrink: 0;
	font-size: 13px;
	line-height: 1;
}
.yw-cat-sidebar .yw-aside-list__count { font-size: 12px; }

.yw-cat-sidebar__sort-list { gap: 5px; }
.yw-cat-sidebar__sort-list .yw-aside-list__link {
	padding: 7px 10px;
}
.yw-cat-sidebar__link--sort {
	font-weight: 500;
	color: #334155;
}
.yw-cat-sidebar__link--sort .yw-cat-sidebar__label {
	flex: 1;
	min-width: 0;
}
.yw-cat-sidebar__link--sort:hover {
	background: #f8fafc;
	color: #0f172a;
}
.yw-cat-sidebar__link--sort.is-active {
	background: linear-gradient(135deg, #eef2ff, #f5f3ff);
	color: var(--yw-primary-dark);
	font-weight: 700;
	box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.1);
}

.yw-aside__cta {
	margin-top: 14px; padding: 14px; border-radius: 14px;
	background: linear-gradient(135deg, #7c3aed, var(--yw-primary)); color: #fff; font-size: 13px;
}
.yw-aside__cta p { margin: 0 0 10px; }
.yw-aside__cta .yw-btn { margin-top: 6px; }

.yw-archive__head { margin-bottom: 16px; }
.yw-archive__head-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.yw-archive__title { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); }
.yw-archive__sub { margin: 0; color: var(--yw-muted); }

/* 归档页：大标题与说明文字同一行（紧挨标题右侧） */
.yw-archive__head:has(.yw-archive__title):has(.yw-archive__sub),
.yw-archive__head-titles,
.yw-tools-page__titles,
.yw-workflow-page__titles,
.yw-prompt-page__hero-text {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	min-width: 0;
}

.yw-archive__head-row .yw-archive__head-titles {
	flex: 1;
	min-width: 0;
}

.yw-archive__head:has(.yw-archive__title):has(.yw-archive__sub) .yw-archive__title,
.yw-archive__head-titles .yw-archive__title,
.yw-tools-page__titles .yw-archive__title,
.yw-workflow-page__titles .yw-archive__title,
.yw-prompt-page__hero-text .yw-archive__title {
	margin: 0;
	flex: 0 0 auto;
}

.yw-archive__head:has(.yw-archive__title):has(.yw-archive__sub) .yw-archive__sub,
.yw-archive__head-titles .yw-archive__sub,
.yw-tools-page__titles .yw-archive__sub,
.yw-workflow-page__titles .yw-archive__sub,
.yw-prompt-page__hero-text .yw-archive__sub {
	margin: 0;
	flex: 0 1 auto;
	font-size: 14px;
	line-height: 1.5;
	font-weight: 400;
	color: var(--yw-muted);
}

.yw-archive__head .yw-archive__sub p {
	display: inline;
	margin: 0;
}

.yw-archive__head .yw-archive__sub p + p::before {
	content: " ";
}
.yw-filterbar {
	display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 18px;
}
.yw-filterbar__meta { margin-left: auto; color: var(--yw-muted); font-size: 13px; }

.yw-breadcrumbs { font-size: 13px; color: var(--yw-muted); margin-bottom: 10px; }
.yw-bc__sep { margin: 0 8px; opacity: 0.6; }
.yw-bc__current { color: var(--yw-text); font-weight: 600; }

.yw-grid { display: grid; gap: 16px; }
.yw-grid--scenes { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.yw-grid--flows { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.yw-grid--flows-home { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.yw-grid--tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yw-grid--tools-home { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.yw-grid--prompts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yw-grid--prompts-home { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }

/* 首页：列数由后台条数注入 --yw-grid-cols*，自动适配宽度 */
.yw-grid--home-auto {
	grid-template-columns: repeat(var(--yw-grid-cols, 4), minmax(0, 1fr));
	gap: 14px;
}
.yw-grid--flows-home.yw-grid--home-auto { gap: 16px; }
.yw-grid--prompts-home.yw-grid--home-auto .yw-prompt-masonry-card__title {
	padding: 10px 12px;
	font-size: 13px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}
.yw-section--prompts { padding-top: 8px; }

.yw-home-workflows--with-aside {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 20px;
	align-items: start;
	margin-bottom: 28px;
}
.yw-home-workflows--with-aside .yw-grid--flows-home.yw-grid--home-auto {
	gap: 12px;
}
.yw-home-workflows--with-aside .yw-flow-card--home .yw-flow-card__title {
	font-size: 14px;
	line-height: 1.35;
}
.yw-home-workflows--with-aside .yw-flow-card--home .yw-flow-card__desc {
	font-size: 12px;
	-webkit-line-clamp: 2;
}
.yw-home-workflows__main { min-width: 0; }
.yw-home-workflows__aside { position: sticky; top: 92px; }
.yw-home-workflows .yw-section__head { margin-bottom: 18px; }
.yw-home-tools-full { width: 100%; }
.yw-section__head--tight {
	margin-top: 4px;
	padding-top: 28px;
	border-top: 1px solid var(--yw-border);
}

.yw-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.yw-split__aside { position: sticky; top: 92px; }
.yw-panel {
	background: var(--yw-surface); border: 1px solid var(--yw-border);
	border-radius: var(--yw-radius); padding: 18px; box-shadow: var(--yw-shadow);
}
.yw-panel--rank { padding: 20px 18px; }
.yw-panel__title { margin: 0 0 16px; font-size: 17px; font-weight: 800; }
.yw-rank { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 4px; }
.yw-rank__item {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	padding: 10px 8px;
	border-radius: 12px;
}
.yw-rank__item:hover { background: #f8fafc; }
.yw-rank__n {
	font-weight: 800;
	font-size: 14px;
	color: #94a3b8;
	text-align: center;
}
.yw-rank__n.is-top { color: var(--yw-primary); }
.yw-rank__main {
	display: flex;
	align-items: center;
	gap: 10px;
	color: inherit;
	text-decoration: none;
	min-width: 0;
}
.yw-rank__main:hover { text-decoration: none; }
.yw-rank__logo {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	object-fit: cover;
	border: 1px solid var(--yw-border);
	flex-shrink: 0;
}
.yw-rank__logo--ph {
	display: grid;
	place-items: center;
	background: #eef2ff;
	color: var(--yw-primary);
	font-size: 11px;
	font-weight: 800;
}
.yw-rank__info { min-width: 0; display: grid; gap: 2px; }
.yw-rank__name { font-size: 14px; font-weight: 700; color: var(--yw-text); }
.yw-rank__desc {
	font-size: 12px;
	color: var(--yw-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.yw-rank__hot { font-size: 12px; color: #f59e0b; font-weight: 700; white-space: nowrap; }
.yw-home-triple {
	display: grid;
	grid-template-columns: 1fr 1fr minmax(260px, 0.85fr);
	gap: 28px;
	align-items: start;
}
.yw-home-triple__col--cta { align-self: stretch; }
.yw-feed { display: grid; gap: 2px; }
.yw-feed-item__link {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 10px;
	border-radius: 12px;
	color: inherit;
	text-decoration: none;
}
.yw-feed-item__link:hover { background: #f8fafc; text-decoration: none; }
.yw-feed-item__icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #f1f5f9;
	display: grid;
	place-items: center;
	font-size: 16px;
	flex-shrink: 0;
}
.yw-feed-item__body { min-width: 0; display: grid; gap: 4px; }
.yw-feed-item__title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--yw-text);
}
.yw-feed-item__meta { font-size: 12px; color: var(--yw-muted); }
.yw-dual { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.yw-stack { display: grid; gap: 14px; }
.yw-stack--tight { gap: 10px; }

.yw-cta {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
	align-items: end;
	padding: 24px 22px;
	border-radius: var(--yw-radius);
	color: #fff;
	background: linear-gradient(145deg, #4f46e5 0%, #6366f1 45%, #7c3aed 100%);
	box-shadow: var(--yw-shadow-lg);
	overflow: hidden;
	position: relative;
	height: 100%;
	min-height: 280px;
}
.yw-cta--card { border: 0; }
.yw-cta__title { margin: 0 0 8px; font-size: 20px; font-weight: 800; color: #fff; }
.yw-cta__lead { margin: 0 0 14px; font-size: 13px; opacity: 0.92; line-height: 1.5; }
.yw-cta__list {
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
	font-size: 13px;
	line-height: 1.45;
}
.yw-cta__list li {
	padding-left: 22px;
	position: relative;
}
.yw-cta__list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	font-weight: 800;
}
.yw-cta__art {
	align-self: end;
	pointer-events: none;
}
.yw-cta__art img {
	width: 140px;
	height: auto;
	display: block;
	opacity: 0.95;
}

/* Tool / Flow / Scene / List cards */
.yw-tool-card, .yw-flow-card, .yw-prompt-card, .yw-scene-card, .yw-list-card {
	background: var(--yw-surface); border: 1px solid var(--yw-border);
	border-radius: var(--yw-radius); box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.yw-tool-card:hover, .yw-flow-card:hover, .yw-scene-card:hover {
	box-shadow: 0 8px 24px rgba(79, 70, 229, 0.1);
	border-color: #dbeafe;
	transform: translateY(-2px);
}
.yw-tool-card__link, .yw-flow-card__link, .yw-scene-card__link, .yw-list-card__link {
	color: inherit; text-decoration: none; display: block; height: 100%;
}
.yw-tool-card__link:hover, .yw-flow-card__link:hover, .yw-scene-card__link:hover, .yw-list-card__link:hover { text-decoration: none; }
.yw-tool-card--home .yw-tool-card__link { text-align: center; }
.yw-tool-card--home .yw-tool-card__head {
	padding: 18px 14px 0;
	display: flex;
	justify-content: center;
}
.yw-tool-card--home .yw-tool-card__body { padding: 10px 14px 16px; }
.yw-tool-card--home .yw-tool-card__title { font-size: 15px; }
.yw-tool-card--home .yw-tool-card__desc {
	font-size: 12px;
	min-height: 36px;
}
.yw-tool-card--home .yw-tool-card__tags { justify-content: center; margin-bottom: 10px; }
.yw-tool-card--home .yw-tool-card__meta { justify-content: center; gap: 14px; }
.yw-pill--tool { background: #eff6ff; color: #2563eb; font-size: 11px; padding: 3px 10px; }
.yw-tool-card__head { padding: 14px 14px 0; }
.yw-tool-card__logo {
	width: 52px; height: 52px; object-fit: cover; border-radius: 14px; border: 1px solid var(--yw-border);
}
.yw-tool-card--home .yw-tool-card__logo { width: 56px; height: 56px; border-radius: 16px; }
.yw-tool-card__logo--ph {
	display: grid; place-items: center; background: #eef2ff; color: var(--yw-primary); font-weight: 800;
}
.yw-tool-card__body { padding: 12px 14px 14px; }
.yw-tool-card__title { margin: 0 0 8px; font-size: 16px; }
.yw-tool-card__desc { margin: 0 0 10px; color: var(--yw-muted); font-size: 13px; line-height: 1.5; }
.yw-tool-card__badges, .yw-tool-card__meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--yw-muted); }
.yw-pill {
	display: inline-flex; padding: 4px 10px; border-radius: 999px; background: #eef2ff;
	color: var(--yw-primary-dark); font-size: 12px; font-weight: 600;
}
.yw-pill.is-active { background: var(--yw-primary); color: #fff; }
.yw-badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #f3f4f6; font-size: 12px; }
.yw-badge--ok { background: #ecfdf5; color: #065f46; }

.yw-flow-card__media { position: relative; aspect-ratio: 16 / 10; background: #f3f4f6; }
.yw-flow-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yw-flow-card__ph { width: 100%; height: 100%; background: linear-gradient(135deg, #e5e7eb, #eef2ff); }
.yw-flow-card__body { padding: 14px 14px 16px; }
.yw-flow-card__title { margin: 0 0 8px; font-size: 15px; font-weight: 700; line-height: 1.35; }
.yw-flow-card__desc {
	margin: 0 0 10px;
	color: var(--yw-muted);
	font-size: 12px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.yw-flow-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.yw-tag {
	display: inline-flex;
	padding: 3px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
}
.yw-tag--soft { background: #eef2ff; color: var(--yw-primary-dark); }
.yw-tag--outline { background: #fff; border: 1px solid #e2e8f0; color: #64748b; }
.yw-flow-card__foot { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--yw-muted); }
.yw-flow-card__stat { font-weight: 600; }
.yw-flow-card__diff { color: #b45309; font-weight: 700; }

/* 首页热门工作流卡片（设计稿） */
.yw-flow-card--home {
	border-radius: 16px;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}
.yw-flow-card--home:hover {
	box-shadow: 0 12px 28px rgba(79, 70, 229, 0.12);
	transform: translateY(-3px);
}
.yw-flow-card--home .yw-flow-card__media {
	aspect-ratio: 4 / 3;
	background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 100%);
}
.yw-flow-card--home .yw-flow-card__media::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 45%;
	background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.18));
	pointer-events: none;
}
.yw-flow-card--home .yw-flow-card__ph {
	background: linear-gradient(135deg, #e2e8f0 0%, #eef2ff 55%, #f8fafc 100%);
}
.yw-flow-card--home .yw-flow-card__stack {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
}
.yw-flow-card--home .yw-flow-card__stack-item {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 2px solid #fff;
	overflow: hidden;
	display: grid;
	place-items: center;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
	margin-left: -10px;
	background: #fff;
}
.yw-flow-card--home .yw-flow-card__stack-item:first-child { margin-left: 0; }
.yw-flow-card--home .yw-flow-card__stack-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.yw-flow-card--home .yw-flow-card__stack-letter {
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
}
.yw-flow-card--home .yw-flow-card__body {
	padding: 14px 16px 16px;
}
.yw-flow-card--home .yw-flow-card__title {
	font-size: 16px;
	margin-bottom: 6px;
	color: #0f172a;
}
.yw-flow-card--home .yw-flow-card__desc {
	font-size: 13px;
	line-height: 1.55;
	margin-bottom: 12px;
	min-height: 40px;
}
.yw-flow-card--home .yw-flow-card__tags {
	gap: 8px;
	margin-bottom: 12px;
}
.yw-tag--flow-cat {
	background: #ede9fe;
	color: #5b21b6;
}
.yw-tag--flow-plat {
	background: #dbeafe;
	color: #1d4ed8;
}
.yw-tag--flow-cat.yw-tag--ecom-flow,
.yw-tag--flow-plat.yw-tag--taobao {
	background: #ffe4e6;
	color: #be123c;
}
.yw-flow-card--home .yw-flow-card__foot {
	justify-content: space-between;
	align-items: center;
	flex-wrap: nowrap;
	margin-top: auto;
	padding-top: 2px;
}
.yw-flow-card--home .yw-flow-card__stats {
	display: flex;
	align-items: center;
	gap: 14px;
}
.yw-flow-card--home .yw-flow-card__stat {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: #64748b;
	font-weight: 600;
}
.yw-flow-card--home .yw-flow-card__icon {
	color: #94a3b8;
	flex-shrink: 0;
}
.yw-flow-card--home .yw-flow-card__diff {
	font-size: 13px;
	color: #d97706;
	white-space: nowrap;
}

.yw-scene-card__link {
	display: flex;
	gap: 14px;
	padding: 16px 14px;
	align-items: flex-start;
	min-height: 118px;
}
.yw-scene-card__icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	font-weight: 800;
	font-size: 18px;
	line-height: 1;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
}
.yw-scene-card--more .yw-scene-card__count {
	font-weight: 600;
	color: #94a3b8;
}
.yw-scene-card__icon--1 { background: #fce7f3; color: #db2777; }
.yw-scene-card__icon--2 { background: #ffedd5; color: #ea580c; }
.yw-scene-card__icon--3 { background: #ede9fe; color: #7c3aed; }
.yw-scene-card__icon--4 { background: #dbeafe; color: #2563eb; }
.yw-scene-card__icon--5 { background: #dcfce7; color: #16a34a; }
.yw-scene-card__icon--6 { background: #e0e7ff; color: #4f46e5; }
.yw-scene-card__icon--7 { background: #cffafe; color: #0891b2; }
.yw-scene-card__icon--8 { background: #fef3c7; color: #d97706; }
.yw-scene-card__icon--9 { background: #f3e8ff; color: #9333ea; }
.yw-scene-card__icon--10 { background: #f1f5f9; color: #64748b; }
.yw-scene-card__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.yw-scene-card__title { margin: 0 0 6px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.yw-scene-card__desc {
	margin: 0 0 10px;
	color: var(--yw-muted);
	font-size: 12px;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.yw-scene-card__meta { margin-top: auto; font-size: 12px; color: #94a3b8; }
.yw-scene-card__count { font-weight: 600; }

.yw-prompt-card { padding: 14px; }
.yw-prompt-card__title { margin: 0 0 8px; font-size: 16px; }
.yw-prompt-card__desc { margin: 0 0 10px; color: var(--yw-muted); font-size: 13px; }
.yw-prompt-card__preview {
	background: #f3f4f6; border-radius: 12px; padding: 10px; font-size: 13px; overflow: auto;
}
.yw-prompt-card__preview code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.yw-prompt-card__foot { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--yw-muted); }

.yw-list-card__link { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 12px; align-items: center; }
.yw-list-card__media img { width: 88px; height: 66px; object-fit: cover; border-radius: 12px; border: 1px solid var(--yw-border); }
.yw-list-card__title { margin: 0 0 6px; font-size: 15px; }
.yw-list-card__excerpt { margin: 0 0 8px; color: var(--yw-muted); font-size: 13px; }
.yw-list-card__meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--yw-muted); }


/* Single */
.yw-single__title { margin: 0 0 10px; font-size: clamp(22px, 3vw, 34px); }
.yw-single__head { margin-bottom: 16px; }
.yw-single__brand { display: flex; gap: 14px; align-items: flex-start; }
.yw-single__logo { width: 64px; height: 64px; object-fit: cover; border-radius: 16px; border: 1px solid var(--yw-border); }
.yw-single__meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--yw-muted); }
.yw-single__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.yw-single__excerpt { margin: 0 0 12px; color: var(--yw-muted); }
.yw-single__byline { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--yw-muted); }
.yw-single__cover { margin: 14px 0 18px; border-radius: var(--yw-radius); overflow: hidden; border: 1px solid var(--yw-border); }
.yw-single__cover img { width: 100%; display: block; }
.yw-metric { margin: 0 0 10px; font-weight: 800; color: var(--yw-primary-dark); }
.yw-prose { font-size: 16px; color: #374151; }
.yw-prose > *:first-child { margin-top: 0; }
.yw-prose a { text-decoration: underline; }

/* 全站广告位 */
.yw-ad-slot { margin: 16px 0; text-align: center; }
.yw-tool-side-ad .yw-ad-slot,
.yw-tool-side-ad .yw-tool-ad-slot__body {
	margin: 0;
	padding: 0;
}
.yw-ad-slot--detail_title { margin: 12px 0 16px; }
.yw-ad-slot--content_mid {
	margin: 28px auto;
	padding: 12px 0;
	border-top: 1px dashed var(--yw-border);
	border-bottom: 1px dashed var(--yw-border);
}
.yw-ad-slot--content_bottom {
	margin: 32px 0 8px;
	padding-top: 20px;
	border-top: 1px solid var(--yw-border);
}
.yw-ad-slot__inner {
	display: block;
	width: 100%;
	max-width: 100%;
	line-height: normal;
}
.yw-ad-slot__inner iframe,
.yw-ad-slot__inner ins.adsbygoogle {
	display: block;
	width: 100%;
	max-width: 100%;
}
.yw-ad-slot--content_bottom .yw-ad-slot__inner ins.adsbygoogle {
	min-height: 280px;
}
.yw-ad-slot--content_mid .yw-ad-slot__inner ins.adsbygoogle {
	min-height: 250px;
}
.yw-ad-slot--detail_title .yw-ad-slot__inner ins.adsbygoogle {
	min-height: 90px;
}
.yw-tool-single .yw-ad-slot--detail_title { margin: 8px 0 14px; }

.yw-kv { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.yw-kv li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #f9fafb; border-radius: 12px; }
.yw-kv span { color: var(--yw-muted); }

.yw-steps { margin-top: 22px; }
.yw-steps__list { margin: 0; padding: 0; list-style: decimal inside; display: grid; gap: 14px; }
.yw-steps__item { border: 1px solid var(--yw-border); border-radius: var(--yw-radius); padding: 14px; background: var(--yw-surface); }
.yw-steps__title { margin: 0 0 8px; font-size: 16px; }
.yw-prompt-box {
	border: 1px solid var(--yw-border); border-radius: var(--yw-radius); padding: 12px; background: #0b1220; color: #e5e7eb;
}
.yw-prompt-box__pre { margin: 0 0 10px; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }

.yw-copy {
	border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08);
	color: #fff; border-radius: 999px; padding: 8px 12px; cursor: pointer; font-weight: 700;
}
.yw-prompt-card .yw-copy { border-color: var(--yw-border); background: var(--yw-surface); color: var(--yw-text); }

/* Pagination（全站统一） */
.yw-pagination-wrap {
	margin-top: 28px;
	padding-top: 4px;
}

.yw-pagination-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 28px;
}

.yw-pagination-bar__meta {
	margin: 0;
	flex-shrink: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--yw-muted);
}

.yw-pagination,
.navigation.pagination {
	margin: 0;
}

.yw-pagination .nav-links,
.navigation.pagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0;
}

.yw-pagination .page-numbers,
.navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	border: 1px solid var(--yw-border);
	background: #fff;
	color: #475569;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.yw-pagination .page-numbers:hover,
.navigation.pagination .page-numbers:hover {
	border-color: #c7d2fe;
	color: var(--yw-primary);
	background: #fff;
	text-decoration: none;
}

.yw-pagination .page-numbers.current,
.navigation.pagination .page-numbers.current {
	background: var(--yw-primary);
	border-color: var(--yw-primary);
	color: #fff;
}

.yw-pagination .page-numbers.dots,
.navigation.pagination .page-numbers.dots {
	min-width: auto;
	padding: 0 4px;
	border: 0;
	background: transparent;
	color: #94a3b8;
}

.yw-pagination .prev.page-numbers,
.yw-pagination .next.page-numbers,
.navigation.pagination .prev.page-numbers,
.navigation.pagination .next.page-numbers {
	padding: 0 14px;
}

/* Footer */
.yw-footer-stats {
	background: #fff;
	border-top: 1px solid var(--yw-border);
	padding: 32px 0;
	margin-top: 0;
}
.yw-footer-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}
.yw-stat {
	display: flex;
	align-items: center;
	gap: 14px;
	justify-content: center;
	padding: 8px;
}
.yw-stat__icon {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	border: 1px solid #e0e7ff;
	background: #f8faff;
	display: grid;
	place-items: center;
	font-size: 22px;
	flex-shrink: 0;
}
.yw-stat__text { text-align: left; }
.yw-stat__num { display: block; font-size: 22px; font-weight: 800; color: var(--yw-text); line-height: 1.2; }
.yw-stat__label { font-size: 13px; color: var(--yw-muted); }
.yw-footer__inner { padding: 24px 0 40px; background: var(--yw-bg); }
.yw-footer__menu { list-style: none; margin: 0 0 12px; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.yw-footer__menu a { color: inherit; text-decoration: none; font-weight: 600; }
.yw-footer__copy { margin: 0; color: var(--yw-muted); font-size: 13px; }

/* Misc */
.yw-empty { padding: 18px 0; color: var(--yw-muted); margin: 0; }
.yw-empty-page { padding: 40px 0; }
.yw-related { margin-top: 26px; }
.yw-mini-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 8px 0 18px; }
.yw-mini-card {
	display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px;
	border: 1px solid var(--yw-border); background: var(--yw-surface);
}
.yw-mini-card__i { font-weight: 900; color: var(--yw-primary); }
/* 社区页样式见 assets/css/community.css */
.yw-tutorial-hub .yw-hub-grid { display: grid; gap: 22px; }

.yw-form-page .yw-form { max-width: 720px; display: grid; gap: 12px; }
.yw-form label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.yw-input, .yw-textarea {
	width: 100%; border: 1px solid var(--yw-border); border-radius: 12px; padding: 10px 12px; font: inherit; background: var(--yw-surface);
}
.yw-notice { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--yw-border); background: #fff7ed; }
.yw-notice--ok { background: #ecfdf5; border-color: #a7f3d0; }
.yw-notice--err { background: #fef2f2; border-color: #fecaca; }

.yw-sideblock { margin-bottom: 12px; }
.yw-sideblock__title { margin: 0 0 10px; font-size: 15px; }
.yw-side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.yw-side-list__link {
	display: flex; justify-content: space-between; gap: 10px;
	padding: 8px 10px; border-radius: 12px; text-decoration: none; color: inherit; font-size: 14px;
}
.yw-side-list__link:hover { background: #f3f4f6; text-decoration: none; }

/* AI 资讯页 */
.yw-news-layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr) 280px;
	gap: 22px;
	align-items: start;
}
.yw-news-center { min-width: 0; }
.yw-news-aside { position: sticky; top: 88px; }
.yw-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.yw-news-subscribe__form { display: grid; gap: 10px; }
.yw-news-subscribe__note { margin: 8px 0 0; font-size: 12px; }

.yw-news-spotlight {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 14px;
	margin-bottom: 20px;
}
.yw-news-spotlight__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.yw-news-hero {
	border-radius: var(--yw-radius);
	overflow: hidden;
	background: #0b1220;
	color: #e5e7eb;
	min-height: 100%;
}
.yw-news-hero__link { color: inherit; text-decoration: none; display: block; height: 100%; }
.yw-news-hero__link:hover { text-decoration: none; }
.yw-news-hero__media { position: relative; aspect-ratio: 16 / 10; background: #111827; }
.yw-news-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.85; }
.yw-news-hero__badge {
	position: absolute; top: 12px; left: 12px; background: var(--yw-primary); color: #fff;
	padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.yw-news-hero__body { padding: 16px 18px 18px; }
.yw-news-hero__cat { font-size: 12px; color: #93c5fd; font-weight: 700; }
.yw-news-hero__title { margin: 8px 0; font-size: 22px; line-height: 1.25; color: #fff; }
.yw-news-hero__excerpt { margin: 0 0 12px; color: #cbd5e1; font-size: 14px; }
.yw-news-hero__meta { display: flex; gap: 12px; font-size: 12px; color: #94a3b8; }

.yw-news-mini {
	background: var(--yw-surface); border: 1px solid var(--yw-border); border-radius: 14px; overflow: hidden;
	box-shadow: 0 6px 16px rgba(17, 24, 39, 0.06);
}
.yw-news-mini__link { color: inherit; text-decoration: none; display: block; }
.yw-news-mini__link:hover { text-decoration: none; }
.yw-news-mini__media { aspect-ratio: 16 / 10; background: #f3f4f6; }
.yw-news-mini__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yw-news-mini__body { padding: 10px 12px 12px; }
.yw-news-mini__cat { font-size: 11px; color: var(--yw-primary); font-weight: 700; }
.yw-news-mini__title { margin: 6px 0; font-size: 14px; line-height: 1.35; }
.yw-news-mini__meta { display: flex; gap: 10px; font-size: 12px; color: var(--yw-muted); }

.yw-news-tabs {
	display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px;
	padding-bottom: 10px; border-bottom: 1px solid var(--yw-border);
}
.yw-news-tabs__link {
	padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
	color: var(--yw-muted); text-decoration: none; background: transparent;
}
.yw-news-tabs__link:hover { background: #f3f4f6; text-decoration: none; color: var(--yw-text); }
.yw-news-tabs__link.is-active { background: #eef2ff; color: var(--yw-primary-dark); }

.yw-news-feed-list { display: grid; gap: 12px; }
.yw-news-feed {
	background: var(--yw-surface); border: 1px solid var(--yw-border); border-radius: 14px; overflow: hidden;
}
.yw-news-feed__link {
	display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 12px; color: inherit; text-decoration: none;
}
.yw-news-feed__link:hover { text-decoration: none; background: #fafafa; }
.yw-news-feed__media img, .yw-news-feed__ph {
	width: 140px; height: 96px; object-fit: cover; border-radius: 12px; display: block; background: #f3f4f6;
}
.yw-news-feed__cat { font-size: 12px; color: var(--yw-primary); font-weight: 700; }
.yw-news-feed__title { margin: 6px 0; font-size: 17px; line-height: 1.35; }
.yw-news-feed__excerpt { margin: 0 0 8px; color: var(--yw-muted); font-size: 13px; line-height: 1.55; }
.yw-news-feed__meta { display: flex; gap: 12px; font-size: 12px; color: var(--yw-muted); }
.yw-news-more { margin-top: 8px; }

.yw-hot-news { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.yw-hot-news__item {
	display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: start; font-size: 13px;
}
.yw-hot-news__n { font-weight: 800; color: var(--yw-primary); }
.yw-hot-news__link { color: inherit; text-decoration: none; line-height: 1.35; }
.yw-hot-news__link:hover { color: var(--yw-primary); text-decoration: none; }
.yw-hot-news__views { color: var(--yw-muted); font-size: 12px; white-space: nowrap; }

.yw-news-calendar__month { margin: 0 0 10px; font-weight: 700; }
.yw-news-calendar__grid {
	display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-size: 12px; text-align: center;
}
.yw-news-calendar__cell {
	padding: 6px 0; border-radius: 8px; color: var(--yw-muted);
}
.yw-news-calendar__cell.is-active { background: #eef2ff; color: var(--yw-primary-dark); font-weight: 700; }
.yw-news-calendar__cell.is-today { outline: 2px solid var(--yw-primary); outline-offset: 1px; }
.yw-news-calendar__cell--empty { visibility: hidden; }

.yw-news-cta {
	background: linear-gradient(135deg, var(--yw-primary), #7c3aed);
	color: #fff; border: 0;
}
.yw-news-cta .yw-panel__title,
.yw-news-cta .yw-muted { color: rgba(255, 255, 255, 0.92); }

/* Responsive */
@media (max-width: 1080px) {
	.yw-hero__grid { grid-template-columns: 1fr; justify-items: start; }
	.yw-hero__copy { width: min(100%, 640px); }
	.yw-hero__art { min-height: 220px; max-width: 360px; margin-inline: auto; justify-self: center; }
	.yw-scene-hot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yw-grid--home-auto {
		grid-template-columns: repeat(var(--yw-grid-cols-md, var(--yw-grid-cols, 3)), minmax(0, 1fr));
	}
	.yw-grid--prompts-home.yw-grid--home-auto {
		grid-template-columns: repeat(var(--yw-grid-cols-md, 2), minmax(0, 1fr));
	}
	.yw-grid--scenes:not(.yw-grid--home-auto) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.yw-grid--flows:not(.yw-grid--home-auto),
	.yw-grid--flows-home:not(.yw-grid--home-auto) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yw-grid--tools-home:not(.yw-grid--home-auto) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.yw-home-workflows--with-aside, .yw-split, .yw-dual, .yw-home-triple, .yw-community-grid, .yw-archive-grid, .yw-archive-grid--triple, .yw-news-layout { grid-template-columns: 1fr; }
	.yw-home-workflows__aside, .yw-split__aside, .yw-aside, .yw-news-aside { position: static; }
	.yw-news-spotlight { grid-template-columns: 1fr; }
	.yw-footer-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	.yw-scene-cat { flex-basis: min(200px, 78vw); }
	.yw-scene-hot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.yw-grid--home-auto {
		grid-template-columns: repeat(var(--yw-grid-cols-sm, 2), minmax(0, 1fr));
		gap: 10px;
	}
	.yw-grid--prompts-home.yw-grid--home-auto {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.yw-grid--scenes:not(.yw-grid--home-auto),
	.yw-grid--flows-home:not(.yw-grid--home-auto),
	.yw-grid--tools:not(.yw-grid--home-auto),
	.yw-grid--tools-home:not(.yw-grid--home-auto),
	.yw-grid--prompts:not(.yw-grid--home-auto),
	.yw-grid--prompts-home:not(.yw-grid--home-auto) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.yw-search--hero { flex-direction: column; align-items: stretch; padding: 12px; border-radius: 20px; }
	.yw-search__btn--primary { width: 100%; }
	.yw-mini-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.yw-footer-stats__grid { grid-template-columns: 1fr 1fr; }
	.yw-news-spotlight__grid { grid-template-columns: 1fr; }
}
