/* Flash — Tophub 左侧时间轴 × Findly 详情页版心 + 双层卡片 × emerald 绿 */

.flash-page {
	--flash-accent: #10b981;
	--flash-accent-hover: #059669;
	--flash-accent-soft: rgba(16, 185, 129, 0.12);
	--flash-accent-ring: rgba(16, 185, 129, 0.28);
	color: var(--f-text, #0a0a0a);
	font-family: var(--f-font, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

/* 与网址详情页同宽（略窄于首页），避免被其它容器规则撑满 */
.findly-ui #content.findly-page.findly-detail.flash-page,
.findly-ui .findly-page.findly-detail.flash-page {
	width: 100%;
	max-width: min(var(--f-detail-cap), var(--f-content-width)) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 20px var(--f-content-pad) 56px;
	box-sizing: border-box;
}

@media (max-width: 767.98px) {
	.findly-ui #content.findly-page.findly-detail.flash-page,
	.findly-ui .findly-page.findly-detail.flash-page {
		padding: 16px var(--f-content-pad) 40px;
	}
}

.io-black-mode .flash-page {
	--flash-accent: #34d399;
	--flash-accent-hover: #10b981;
	--flash-accent-soft: rgba(52, 211, 153, 0.14);
	--flash-accent-ring: rgba(52, 211, 153, 0.32);
}

/* ========== Hero（复用工具页 hero 结构，绿色强调） ========== */
.flash-page .flash-hero.findly-tools-page-hero {
	margin: 0 0 1.25rem;
}

.flash-page .flash-hero.findly-tools-page-hero::before {
	background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(52, 211, 153, 0.08));
}

.flash-page .flash-hero-badge.findly-tools-page-badge,
.flash-page .findly-tools-page-badge.flash-hero-badge {
	color: #059669;
	background: rgba(16, 185, 129, 0.12);
	border-color: rgba(16, 185, 129, 0.28);
}

.io-black-mode .flash-page .flash-hero-badge.findly-tools-page-badge,
.io-black-mode .flash-page .findly-tools-page-badge.flash-hero-badge {
	color: #34d399;
	background: rgba(52, 211, 153, 0.14);
	border-color: rgba(52, 211, 153, 0.3);
}

.flash-page .flash-hero-meta {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.85rem;
	width: 100%;
	max-width: none;
}

/* ========== Chips（融入 hero） ========== */
.flash-page .flash-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0;
	justify-content: flex-start;
	max-width: none;
	width: 100%;
}

.flash-page .flash-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.32rem 0.8rem;
	border: 1px solid var(--f-border, #e8e8e8);
	border-radius: 999px;
	background: var(--f-surface, #fff);
	color: var(--f-text-2, #525252);
	font-size: 0.8125rem;
	font-weight: 500;
	text-decoration: none !important;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.flash-page .flash-chip:hover,
.flash-page .flash-chip.is-active {
	border-color: var(--flash-accent-ring);
	color: var(--flash-accent-hover);
	background: var(--flash-accent-soft);
}

.io-black-mode .flash-page .flash-chip {
	background: rgba(255, 255, 255, 0.04);
}

/* ========== Timeline：绿点与灰线同一中心对齐 ========== */
.flash-page .flash-timeline {
	--flash-rail: 28px;
	position: relative;
	max-width: none;
	margin: 0;
	padding-left: var(--flash-rail);
	overflow: visible;
}

.flash-page .flash-timeline-axis {
	position: absolute;
	left: calc(var(--flash-rail) / 2);
	top: 0.5rem;
	bottom: 0.5rem;
	width: 2px;
	transform: translateX(-50%);
	background: var(--f-border, #d4d4d4);
	border-radius: 999px;
	pointer-events: none;
}

.io-black-mode .flash-page .flash-timeline-axis {
	background: rgba(255, 255, 255, 0.14);
}

.flash-page .flash-item {
	position: relative;
	display: flex;
	margin: 0 0 1rem;
	padding-left: 0.75rem;
}

.flash-page .flash-item:last-child {
	margin-bottom: 0;
}

.flash-page .flash-timeline-dot {
	position: absolute;
	left: calc(var(--flash-rail) / -2);
	top: 1.35rem;
	width: 20px;
	height: 20px;
	z-index: 2;
	transform: translateX(-50%);
	margin-left: 0;
}

@media (max-width: 640px) {
	.flash-page .flash-timeline {
		--flash-rail: 24px;
	}

	.flash-page .flash-timeline-dot {
		top: 1.15rem;
	}

	.flash-page .flash-item {
		padding-left: 0.55rem;
	}
}

.flash-page .flash-timeline-dot-core {
	display: block;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--flash-accent);
	border: 3px solid var(--f-surface, #fff);
	box-shadow: 0 1px 4px var(--flash-accent-ring);
	position: relative;
	z-index: 2;
}

.io-black-mode .flash-page .flash-timeline-dot-core {
	border-color: #0c0e12;
}

.flash-page .flash-timeline-dot-ping {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--flash-accent);
	opacity: 0.22;
	animation: flash-dot-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
	pointer-events: none;
}

@keyframes flash-dot-ping {
	0% { transform: scale(1); opacity: 0.28; }
	75%, 100% { transform: scale(1.85); opacity: 0; }
}

/* ========== List cards (Findly double frame) ========== */
.flash-page .flash-card.findly-detail-card {
	display: block;
	flex: 1;
	min-width: 0;
	width: 100%;
	color: inherit;
	text-decoration: none !important;
	transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
	box-shadow: 0 1px 2px rgba(10, 10, 10, 0.03);
}

.flash-page .flash-card.findly-detail-card:hover {
	transform: translateY(-3px);
	border-color: var(--flash-accent-ring);
	box-shadow: 0 12px 32px rgba(10, 10, 10, 0.07);
	color: inherit;
	text-decoration: none !important;
}

.flash-page .flash-card-inner {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.05rem 1.1rem 1.15rem !important;
}

@media (min-width: 641px) {
	.flash-page .flash-card--media .flash-card-inner {
		flex-direction: row;
		align-items: flex-start;
		gap: 1.1rem;
	}
}

.flash-page .flash-card-thumb {
	margin: 0;
	flex-shrink: 0;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	max-height: none;
	border-radius: 8px;
	overflow: hidden;
	background: var(--f-muted-fill, rgba(10, 10, 10, 0.04));
	border: 1px solid var(--f-border, #e8e8e8);
}

@media (min-width: 641px) {
	.flash-page .flash-card-thumb {
		width: 11.5rem;
		aspect-ratio: 16 / 9;
		height: auto;
		max-height: none;
		min-height: 0;
		align-self: flex-start;
	}
}

.flash-page .flash-card-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.flash-page .flash-card-body {
	min-width: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.flash-page .flash-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 0.75rem;
	margin-bottom: 0.55rem;
}

.flash-page .flash-card-meta-left {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
}

.flash-page .flash-tag {
	display: inline-flex;
	align-items: center;
	padding: 0.15rem 0.55rem;
	border-radius: 7px;
	background: var(--flash-accent);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 650;
	letter-spacing: 0.01em;
	line-height: 1.45;
}

.io-black-mode .flash-page .flash-tag {
	color: #052e1c;
}

.flash-page .flash-date {
	display: inline-flex;
	align-items: center;
	padding: 0.12rem 0.45rem;
	border-radius: 6px;
	background: var(--f-muted-fill, rgba(10, 10, 10, 0.04));
	color: var(--f-text-3, #a3a3a3);
	font-size: 0.75rem;
	line-height: 1.45;
}

.flash-page .flash-source {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--f-text-2, #525252);
	padding: 0.15rem 0.55rem;
	border-radius: 7px;
	background: var(--f-muted-fill, rgba(10, 10, 10, 0.04));
	border: 1px solid var(--f-border, #e8e8e8);
	white-space: nowrap;
}

.flash-page .flash-card-title {
	display: block;
	margin: 0 0 0.4rem;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.02em;
	color: var(--f-text, #0a0a0a);
}

.flash-page .flash-card:hover .flash-card-title {
	color: var(--flash-accent-hover);
}

.flash-page .flash-card-summary {
	display: -webkit-box;
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.65;
	color: var(--f-text-2, #525252);
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.flash-page .flash-empty-card {
	margin-top: 0.5rem;
}

.flash-page .flash-empty {
	margin: 0;
	padding: 1.5rem 0.5rem;
	text-align: center;
	color: var(--f-text-3, #a3a3a3);
	font-size: 0.875rem;
	max-width: none;
	border: 0;
	background: transparent;
}

.flash-page .flash-pagination {
	margin-top: 1.75rem;
	text-align: center;
}

.flash-page .flash-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	margin: 0 0.15rem;
	padding: 0 0.5rem;
	border-radius: 8px;
	border: 1px solid var(--f-border, #e8e8e8);
	background: var(--f-surface, #fff);
	color: var(--f-text-2, #525252);
	text-decoration: none;
	font-size: 0.8125rem;
}

.flash-page .flash-pagination .page-numbers.current,
.flash-page .flash-pagination .page-numbers:hover {
	background: var(--flash-accent);
	border-color: var(--flash-accent);
	color: #fff;
}

/* ========== Detail ========== */
.flash-page .flash-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
	max-width: none;
	margin: 0 0 1rem;
	font-size: 0.8125rem;
	color: var(--f-text-3, #a3a3a3);
}

.flash-page .flash-breadcrumb a {
	color: var(--flash-accent-hover);
	text-decoration: none;
}

.flash-page .flash-detail-card .flash-detail-cover {
	margin: 0 0 1.15rem;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background: var(--f-muted-fill, rgba(10, 10, 10, 0.04));
	border: 1px solid var(--f-border, #e8e8e8);
}

.flash-page .flash-detail-cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.flash-page .flash-detail-meta {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.45rem 0.55rem;
	margin-bottom: 0.85rem;
	font-size: 0.8125rem;
	color: var(--f-text-3, #a3a3a3);
	min-width: 0;
	overflow: hidden;
}

.flash-page .flash-detail-meta > * {
	flex-shrink: 0;
}

.flash-page .flash-detail-meta time {
	display: inline;
	white-space: nowrap;
}

.flash-page .flash-detail-sep {
	opacity: 0.55;
	line-height: 1;
}

.flash-page .flash-detail-source {
	color: var(--f-text-2, #525252);
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
	flex-shrink: 1;
}

.flash-page .flash-detail-title {
	margin: 0 0 0.85rem;
	font-size: clamp(1.4rem, 2.6vw, 1.85rem);
	font-weight: 750;
	letter-spacing: -0.03em;
	line-height: 1.25;
	color: var(--f-text, #0a0a0a);
}

.flash-page .flash-detail-summary {
	margin: 0 0 1.25rem;
	padding: 0.85rem 1rem;
	border-radius: 8px;
	background: var(--f-surface, #fff);
	border: 1px solid var(--f-border, #e8e8e8);
	color: var(--f-text-2, #525252);
	font-size: 0.9375rem;
	line-height: 1.65;
}

.flash-page .flash-detail-body {
	font-size: 1rem;
	line-height: 1.85;
	color: var(--f-text, #0a0a0a);
}

.flash-page .flash-detail-body p {
	margin: 0 0 1rem;
}

.flash-page .flash-detail-body p:last-child {
	margin-bottom: 0;
}

.flash-page .flash-detail-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 1.75rem;
	padding-top: 1.15rem;
	border-top: 1px solid var(--f-border, #e8e8e8);
}

.flash-page .flash-back {
	color: var(--f-text-2, #525252);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
}

.flash-page .flash-back:hover {
	color: var(--flash-accent-hover);
}

.flash-page .flash-origin-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1rem;
	border-radius: 8px;
	background: var(--flash-accent);
	color: #fff !important;
	font-size: 0.875rem;
	font-weight: 650;
	text-decoration: none !important;
	transition: opacity 0.15s, transform 0.15s, background 0.15s;
}

.flash-page .flash-origin-btn:hover {
	background: var(--flash-accent-hover);
	opacity: 1;
	transform: translateY(-1px);
	color: #fff !important;
}

/* ========== Related：复用首页整体卡片 + 电脑两列 ========== */
.flash-page .flash-related {
	max-width: none;
	margin: 2rem 0 0;
}

.flash-page .flash-related .flash-related-title,
.flash-page .flash-related .findly-section-title {
	margin: 0;
}

.flash-page .flash-related .findly-section-head {
	margin: 0 0 1rem;
}

/* 相关快讯：无分类；标题与时间同一行 */
.flash-page .flash-related .findly-home-flash-tag {
	display: none !important;
}

.flash-page .flash-related .findly-home-flash-main {
	flex-wrap: nowrap;
	min-width: 0;
}

.flash-page .flash-related .findly-home-flash-title {
	flex: 1 1 auto;
	min-width: 0;
	white-space: nowrap !important;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block !important;
	-webkit-line-clamp: unset;
	-webkit-box-orient: unset;
}

.flash-page .flash-related .findly-home-flash-time {
	flex-shrink: 0;
	align-self: center;
	padding-top: 0;
}

/* ========== Home flash（Findly 双层卡片 + 左侧绿点列表） ========== */
.findly-ui .findly-home-flash {
	--flash-accent: #10b981;
	--flash-accent-hover: #059669;
	--flash-accent-soft: rgba(16, 185, 129, 0.12);
	--flash-accent-ring: rgba(16, 185, 129, 0.28);
}

/* 插在精选工具与我的导航之间时的间距 */
.findly-ui .findly-fav-block > .findly-home-flash {
	margin: 0.5rem 0 1.25rem;
}

.findly-ui .findly-home-flash-more {
	font-size: 13px;
	font-weight: 500;
	color: var(--f-text-3, #737373) !important;
	text-decoration: none !important;
	transition: color 0.15s ease;
}

.findly-ui .findly-home-flash-more:hover {
	color: var(--flash-accent-hover, #059669) !important;
}

.findly-ui .findly-home-flash-panel.findly-detail-card {
	margin: 0;
}

.findly-ui .findly-home-flash-list.findly-detail-card-inner {
	padding: 0.35rem 0.45rem !important;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

@media (min-width: 992px) {
	.findly-ui .findly-home-flash-list.findly-home-flash-cols-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0;
		column-gap: 0;
	}

	.findly-ui .findly-home-flash-cols-2 .findly-home-flash-item {
		border-bottom: 1px solid var(--f-border, #e8e8e8);
	}

	/* 两列时：奇数行右边、偶数行左边加竖线分隔 */
	.findly-ui .findly-home-flash-cols-2 .findly-home-flash-item:nth-child(odd) {
		border-right: 1px solid var(--f-border, #e8e8e8);
	}

	.findly-ui .findly-home-flash-cols-2 .findly-home-flash-item:nth-last-child(-n+2) {
		border-bottom: 0;
	}
}

.findly-ui .findly-home-flash-item {
	margin: 0;
	border-bottom: 1px solid var(--f-border, #e8e8e8);
}

.findly-ui .findly-home-flash-item:last-child {
	border-bottom: 0;
}

.findly-ui .findly-home-flash-link {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 0.85rem 0.9rem;
	color: inherit;
	text-decoration: none !important;
	border-radius: 8px;
	transition: background 0.15s ease;
}

.findly-ui .findly-home-flash-link:hover {
	background: rgba(16, 185, 129, 0.06);
	color: inherit;
	text-decoration: none !important;
}

.io-black-mode .findly-ui .findly-home-flash-link:hover {
	background: rgba(52, 211, 153, 0.08);
}

.findly-ui .findly-home-flash-dot {
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	margin-top: 0.45rem;
	border-radius: 50%;
	background: var(--flash-accent, #10b981);
	box-shadow: 0 0 0 3px var(--flash-accent-soft, rgba(16, 185, 129, 0.12));
}

.findly-ui .findly-home-flash-body {
	min-width: 0;
	flex: 1;
}

.findly-ui .findly-home-flash-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 0.35rem 0.75rem;
	min-width: 0;
}

.findly-ui .findly-home-flash-main {
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.55rem;
}

.findly-ui .findly-home-flash-tag {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	padding: 0.12rem 0.5rem;
	border-radius: 6px;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.02em;
	background: rgba(16, 185, 129, 0.12);
	color: #059669;
}

.io-black-mode .findly-ui .findly-home-flash-tag {
	background: rgba(52, 211, 153, 0.16);
	color: #34d399;
}

.findly-ui .findly-home-flash-title {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.45;
	letter-spacing: -0.01em;
	color: var(--f-text, #0a0a0a);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color 0.15s ease;
}

.findly-ui .findly-home-flash-link:hover .findly-home-flash-title {
	color: #059669;
}

.io-black-mode .findly-ui .findly-home-flash-link:hover .findly-home-flash-title {
	color: #34d399;
}

.findly-ui .findly-home-flash-time {
	grid-column: 2;
	grid-row: 1;
	align-self: start;
	flex-shrink: 0;
	padding-top: 0.15rem;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--f-text-3, #737373);
	white-space: nowrap;
}

.findly-ui .findly-home-flash-summary {
	margin: 0.35rem 0 0;
	padding: 0;
	font-size: 12px;
	line-height: 1.55;
	color: var(--f-text-2, #525252);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 640px) {
	.findly-ui .findly-home-flash-title {
		flex: 1 1 100%;
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}

	.findly-ui .findly-home-flash-link {
		padding: 0.75rem 0.65rem;
		gap: 0.7rem;
	}
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
	.flash-page .flash-timeline-dot-ping {
		animation: none;
		opacity: 0;
	}
	.flash-page .flash-card.findly-detail-card:hover {
		transform: none;
	}
}
