/*
 * 博会动态 · 列表与详情样式
 *
 * 只在 expo_event 的归档页与详情页加载，不进入全站公共样式包。
 * 配色全部走主题变量（--blue / --ink / --soft / --line …），跟随配色家族与日间/夜间切换。
 */

/* ---------- 首屏 ---------- */
.expo-hero__lead {
	max-width: 760px;
	margin: 10px 0 0;
	color: #cfe3f8;
	font-size: 15.5px;
	line-height: 1.8;
}

.expo-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}

.expo-hero__stats li {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.expo-hero__stats b {
	font-size: 28px;
	font-weight: 800;
	line-height: 1.1;
	color: #fff;
}

.expo-hero__stats span {
	font-size: 12.5px;
	color: #bcd9f6;
	letter-spacing: 0.5px;
}

.expo-hero--single h1 {
	margin-top: 12px;
	max-width: 900px;
	line-height: 1.35;
}

.expo-hero__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}

.expo-hero__brief {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: #d6e7f8;
}

.expo-hero__brief li {
	position: relative;
	padding-left: 13px;
}

.expo-hero__brief li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.65);
}

/* ---------- 筛选区 ---------- */
.expo-section {
	padding-top: 36px;
}

.expo-filters {
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px 20px;
	margin-bottom: 26px;
}

.expo-filters__search {
	display: flex;
	gap: 10px;
	margin-bottom: 14px;
}

.expo-filters__search input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--bg);
	color: var(--ink);
	font-size: 14.5px;
	font-family: inherit;
}

.expo-filters__search input:focus {
	outline: 2px solid var(--blue);
	outline-offset: 1px;
	border-color: var(--blue);
}

.expo-filters__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	padding: 10px 0;
	border-top: 1px dashed var(--line);
}

.expo-filters__row:first-of-type {
	border-top: 0;
}

.expo-filters__label {
	flex: 0 0 34px;
	font-size: 13px;
	font-weight: 700;
	color: var(--muted);
}

.expo-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.expo-chip {
	position: relative;
	display: inline-flex;
	cursor: pointer;
}

/* 单选框视觉隐藏但保持可聚焦，禁用 JS 时仍可键盘操作 */
.expo-chip input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.expo-chip span {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--bg);
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.6;
	transition: 0.18s;
	white-space: nowrap;
}

.expo-chip:hover span {
	border-color: var(--blue);
	color: var(--blue);
}

.expo-chip input:checked + span {
	background: var(--blue);
	border-color: var(--blue);
	color: #fff;
}

.expo-chip input:focus-visible + span {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}

.expo-chip.is-muted span {
	opacity: 0.8;
}

.expo-filters__tail {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.expo-filters__tail select {
	padding: 7px 10px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--bg);
	color: var(--ink);
	font-size: 13px;
	font-family: inherit;
	max-width: 160px;
}

.expo-filters__go {
	padding: 8px 20px;
	font-size: 13.5px;
}

.expo-filters__reset {
	font-size: 13px;
	color: var(--muted);
	text-decoration: underline;
}

.expo-filters__reset:hover {
	color: var(--blue);
}

/* ---------- 结果计数与空状态 ---------- */
.expo-count {
	margin: 0 0 18px;
	font-size: 13.5px;
	color: var(--muted);
}

.expo-count strong {
	color: var(--blue);
	font-size: 16px;
}

.expo-empty {
	padding: 60px 20px;
	text-align: center;
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	color: var(--muted);
}

.expo-empty__title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
	color: var(--ink);
}

/* ---------- 卡片网格 ---------- */
.expo-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.expo-grid--compact {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.expo-card {
	display: flex;
	flex-direction: column;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.expo-card:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
	box-shadow: var(--shadow);
}

.expo-card__date {
	display: flex;
	align-items: baseline;
	gap: 6px;
	padding: 14px 18px 0;
	color: var(--blue);
}

.expo-card__date .m {
	font-size: 13px;
	font-weight: 700;
}

.expo-card__date .d {
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.5px;
}

.expo-card__date .w {
	font-size: 12px;
	color: var(--muted);
	font-weight: 600;
}

.expo-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px 18px 0;
	flex: 1 1 auto;
}

.expo-card__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.expo-card__title {
	margin: 0;
	font-size: 16.5px;
	font-weight: 700;
	line-height: 1.5;
}

.expo-card__title a {
	color: var(--ink);
	text-decoration: none;
}

.expo-card__title a:hover {
	color: var(--blue);
}

.expo-card__brief {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.75;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.expo-meta {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--muted);
}

.expo-meta li {
	position: relative;
	padding-left: 14px;
	line-height: 1.6;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.expo-meta li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 8px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--blue);
	opacity: 0.55;
}

.expo-meta li.i-time {
	color: var(--ink);
	font-weight: 600;
}

.expo-card__act {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 18px 16px;
	margin-top: 14px;
	border-top: 1px solid var(--line);
}

.expo-act {
	display: inline-block;
	padding: 7px 16px;
	border-radius: var(--radius-md);
	background: var(--blue);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
	transition: 0.18s;
}

.expo-act:hover {
	background: var(--blue-d);
	color: #fff;
}

.expo-act.is-off {
	background: var(--soft);
	color: var(--muted);
	border: 1px solid var(--line);
	font-weight: 600;
}

.expo-detail {
	font-size: 12.5px;
	color: var(--muted);
	text-decoration: none;
	white-space: nowrap;
}

.expo-detail:hover {
	color: var(--blue);
}

.expo-card.is-mini .expo-card__body {
	padding: 18px;
}

.expo-card.is-mini .expo-card__title {
	font-size: 15px;
}

/* ---------- 状态徽章 ---------- */
.expo-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 14px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.7;
	white-space: nowrap;
}

.expo-badge.is-open {
	background: rgba(34, 113, 177, 0.12);
	color: #135e96;
}

.expo-badge.is-soon {
	background: rgba(214, 126, 0, 0.14);
	color: #8a4b00;
}

.expo-badge.is-live {
	background: rgba(214, 54, 56, 0.13);
	color: #a32020;
}

.expo-badge.is-live::before {
	content: "";
	width: 6px;
	height: 6px;
	margin-right: 6px;
	border-radius: 50%;
	background: currentColor;
	animation: expoPulse 1.8s ease-in-out infinite;
}

.expo-badge.is-ended,
.expo-badge.is-tba {
	background: rgba(120, 130, 140, 0.14);
	color: #5b6673;
}

/*
 * 首屏 hero 是深蓝底，徽章的半透明底色会透出蓝色，
 * 深色文字压在深色底上等于看不见。这里改成不透明浅底 + 深字，
 * 并把圆点一并处理，保证四种状态在 hero 上都清晰。
 */
.expo-hero__tags .expo-badge {
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.expo-hero__tags .expo-badge.is-open {
	background: #e8f2fb;
	color: #135e96;
}

.expo-hero__tags .expo-badge.is-soon {
	background: #fdf0dc;
	color: #8a4b00;
}

.expo-hero__tags .expo-badge.is-live {
	background: #fdeaea;
	color: #a32020;
}

.expo-hero__tags .expo-badge.is-ended,
.expo-hero__tags .expo-badge.is-tba {
	background: #eef1f4;
	color: #4a5560;
}

@keyframes expoPulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
	.expo-badge.is-live::before {
		animation: none;
	}
	.expo-card,
	.expo-act {
		transition: none;
	}
	.expo-card:hover {
		transform: none;
	}
}

/* 夜间：提高徽章与标签的可读性 */
[data-theme="night"] .expo-badge.is-open {
	background: rgba(90, 170, 240, 0.18);
	color: #8ec5f5;
}

[data-theme="night"] .expo-badge.is-soon {
	background: rgba(250, 180, 80, 0.18);
	color: #f5c07a;
}

[data-theme="night"] .expo-badge.is-live {
	background: rgba(255, 120, 120, 0.18);
	color: #ff9a9a;
}

[data-theme="night"] .expo-badge.is-ended,
[data-theme="night"] .expo-badge.is-tba {
	background: rgba(160, 170, 180, 0.16);
	color: #a8b3bf;
}

[data-theme="night"] .expo-hero__lead {
	color: #b9cfe6;
}

/* ---------- 主题/形式标签 ---------- */
.expo-tag {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 4px;
	background: var(--soft);
	border: 1px solid var(--line);
	color: var(--muted);
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.7;
	white-space: nowrap;
}

.expo-tag.is-kind {
	background: transparent;
	border-style: dashed;
}

.expo-tag.is-mode {
	background: transparent;
	border-color: color-mix(in srgb, var(--blue) 30%, var(--line));
	color: var(--blue);
}

.expo-tag.is-light {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.3);
	color: #e8f2fb;
}

/* ---------- 底部说明 ---------- */
.expo-note {
	margin: 34px 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	font-size: 12.5px;
	line-height: 1.8;
	color: var(--muted);
}

/* ---------- 详情页 ---------- */
.expo-detail__wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 40px;
	align-items: start;
}

.expo-detail__h2 {
	margin: 0 0 14px;
	font-size: 19px;
	font-weight: 800;
	color: var(--ink);
}

.expo-detail__h2:not(:first-child) {
	margin-top: 36px;
}

.expo-detail__main .entry-content {
	font-size: 15.5px;
}

.expo-info {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.expo-info th {
	width: 110px;
	padding: 12px 14px 12px 0;
	text-align: left;
	font-weight: 600;
	color: var(--muted);
	vertical-align: top;
	white-space: nowrap;
}

.expo-info td {
	padding: 12px 0;
	color: var(--ink);
	border-bottom: 1px solid var(--line);
	line-height: 1.7;
}

.expo-info tr:last-child td {
	border-bottom: 0;
}

.expo-info td a {
	color: var(--blue);
}

.expo-info__note {
	display: inline-block;
	margin-left: 10px;
	padding: 1px 8px;
	border-radius: 10px;
	background: var(--soft);
	font-size: 11.5px;
	color: var(--muted);
}

.expo-info__note.is-warn {
	background: rgba(214, 54, 56, 0.12);
	color: #a32020;
}

[data-theme="night"] .expo-info__note.is-warn {
	color: #ff9a9a;
}

.expo-source {
	margin: 26px 0 0;
	padding: 12px 16px;
	background: var(--soft);
	border-radius: var(--radius-md);
	font-size: 13px;
	color: var(--muted);
}

.expo-source a {
	color: var(--blue);
	font-weight: 600;
}

.expo-source__note {
	opacity: 0.85;
}

.expo-detail__side {
	position: sticky;
	top: 92px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.expo-signup {
	padding: 22px 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--soft);
	text-align: center;
}

.expo-signup__state {
	display: inline-block;
	margin: 0 0 10px;
	padding: 3px 12px;
	border-radius: 14px;
	font-size: 12.5px;
	font-weight: 700;
}

.expo-signup__state.is-open {
	background: rgba(34, 113, 177, 0.12);
	color: #135e96;
}

.expo-signup__state.is-soon {
	background: rgba(214, 126, 0, 0.14);
	color: #8a4b00;
}

.expo-signup__state.is-live {
	background: rgba(214, 54, 56, 0.13);
	color: #a32020;
}

.expo-signup__state.is-ended,
.expo-signup__state.is-tba {
	background: rgba(120, 130, 140, 0.14);
	color: #5b6673;
}

.expo-signup__time {
	margin: 0 0 16px;
	font-size: 15px;
	font-weight: 700;
	color: var(--ink);
}

.expo-signup__btn {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 0;
	font-size: 15px;
}

.expo-signup__btn.is-off {
	background: var(--bg);
	border: 1px solid var(--line);
	color: var(--muted);
	border-radius: var(--radius-md);
	font-weight: 600;
	cursor: default;
}

.expo-signup__hint {
	margin: 10px 0 0;
	font-size: 12px;
	color: var(--muted);
}

.expo-signup__meta {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 12px;
	margin: 18px 0 0;
	padding-top: 16px;
	border-top: 1px dashed var(--line);
	text-align: left;
	font-size: 12.5px;
}

.expo-signup__meta dt {
	color: var(--muted);
	white-space: nowrap;
}

.expo-signup__meta dd {
	margin: 0;
	color: var(--ink);
}

.expo-back {
	display: block;
	text-align: center;
	font-size: 13px;
	color: var(--muted);
	text-decoration: none;
}

.expo-back:hover {
	color: var(--blue);
}

.expo-related .sec-head {
	margin-bottom: 32px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
	.expo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.expo-grid--compact {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.expo-detail__wrap {
		grid-template-columns: minmax(0, 1fr) 280px;
		gap: 28px;
	}
}

@media (max-width: 860px) {
	.expo-detail__wrap {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.expo-detail__side {
		position: static;
		order: -1;
	}

	.expo-filters__tail {
		margin-left: 0;
		width: 100%;
	}

	.expo-filters__label {
		flex-basis: 100%;
	}
}

@media (max-width: 640px) {
	.expo-grid,
	.expo-grid--compact {
		grid-template-columns: 1fr;
	}

	.expo-hero__stats {
		gap: 18px 24px;
	}

	.expo-hero__stats b {
		font-size: 22px;
	}

	.expo-filters {
		padding: 14px;
	}

	.expo-card__act {
		flex-wrap: wrap;
	}

	.expo-info th {
		width: 84px;
		font-size: 13px;
	}

	.expo-info td {
		font-size: 13.5px;
	}

	.expo-detail__h2 {
		font-size: 17px;
	}

	/*
	 * 触控尺寸：chip 原高 35px，低于 44px 的建议下限，手指点在边缘容易误触到相邻项。
	 * 这里把纵向内边距加到 9px，整体抬到约 44px。
	 */
	.expo-chip span {
		padding: 9px 14px;
	}

	/*
	 * 搜索按钮在窄屏被压成两行「搜 / 索」。
	 * 输入框 flex:1 可缩，按钮不能缩，且强制单行。
	 */
	.expo-filters__search {
		gap: 8px;
	}

	.expo-filters__search input[type="search"] {
		min-width: 0;
	}

	.expo-filters__search button {
		flex: 0 0 auto;
		width: auto;
		white-space: nowrap;
		padding-left: 16px;
		padding-right: 16px;
	}

	/* 三个下拉在窄屏各占一行更易点，避免挤成半宽。 */
	.expo-filters__tail select {
		flex: 1 1 100%;
		max-width: 100%;
	}
}
