/* 保留原站白底、浅灰分区与蓝色强调，布局同时适配手机和桌面。 */
:root {
	color-scheme: light;
	--blue: #2f78f5;
	--blue-dark: #175fc9;
	--text: #333;
	--muted: #8793a1;
	--line: #eef1f4;
	--page: #eceff1;
}
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	scroll-padding-top: 110px;
}
body {
	margin: 0;
	background: var(--page);
	color: var(--text);
	font: 14px/1.65 "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
a {
	color: inherit;
	text-decoration: none;
}
a:hover {
	color: var(--blue-dark);
}
button, input, textarea {
	font: inherit;
}
button, a, input, textarea, summary {
	-webkit-tap-highlight-color: transparent;
}
button, summary {
	cursor: pointer;
}
button {
	border: 0;
}
button:disabled {
	cursor: wait;
	opacity: .6;
}
:focus-visible {
	outline: 3px solid #77aaff;
	outline-offset: 3px;
}
img, video, iframe {
	max-width: 100%;
}
img {
	vertical-align: middle;
	object-fit: cover;
}
ul, ol {
	margin: 0;
	padding: 0;
}
li {
	list-style: none;
}
h1, h2, h3, p {
	margin: 0;
}
h1, h2, h3 {
	font-weight: 500;
}
[hidden] {
	display: none !important;
}
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.skip-link {
	position: fixed;
	top: -60px;
	left: 12px;
	z-index: 20;
	padding: 10px 16px;
	color: white;
	background: var(--blue);
}
.skip-link:focus {
	top: 10px;
}
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--line);
}
.header-inner, .main-nav, .page-shell, .site-footer {
	max-width: 760px;
	margin: 0 auto;
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 20px 11px;
}
.brand {
	color: #333;
	font: 700 27px/1.1 Arial, sans-serif;
	letter-spacing: -.9px;
}
.brand span {
	color: var(--blue);
}
.brand small {
	display: block;
	margin-top: 7px;
	color: var(--muted);
	font: 11px/1.4 "Microsoft YaHei", sans-serif;
	letter-spacing: 1px;
}
.search-link {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 8px;
	color: #6f7d8b;
	font-size: 13px;
}
.search-link svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
}
.main-nav {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
}
.main-nav a {
	padding: 11px 0 10px;
	border-bottom: 2px solid transparent;
	text-align: center;
	font-size: 15px;
}
.main-nav a[aria-current] {
	border-color: var(--blue);
	color: var(--blue);
}
.page-shell {
	min-height: 55vh;
	outline: 0;
}
.content-block {
	margin-top: 10px;
	background: white;
}
.section-title {
	padding: 13px 20px;
	border-bottom: 1px solid var(--line);
	background: white;
	font-size: 16px;
	line-height: 24px;
}
.section-title > span {
	margin-left: 5px;
	color: var(--muted);
	font-size: 12px;
}
.section-more {
	float: right;
	color: var(--blue);
	font-size: 12px;
}
.quick-links {
	display: flex;
	justify-content: space-around;
	gap: 8px;
	padding: 15px 10px;
	background: white;
	color: #536477;
	font-size: 12px;
}
.quick-links a:hover {
	color: var(--blue);
}
/* 轮播依靠 scroll-snap 实现触摸滑动，不加载第三方轮播库。 */
.carousel {
	position: relative;
	background: #c8d7e8;
	color: white;
}
.carousel-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar {
	display: none;
}
.carousel-slide {
	position: relative;
	flex: 0 0 100%;
	scroll-snap-align: start;
}
.carousel-slide a {
	position: relative;
	display: block;
	height: 290px;
	color: white;
}
.carousel-slide a::after {
	position: absolute;
	inset: 0;
	content: "";
	background: linear-gradient(transparent 20%, rgba(0,0,0,.08) 40%, rgba(0,0,0,.74));
}
.carousel-slide img {
	width: 100%;
	height: 100%;
}
.carousel-slide h2 {
	position: absolute;
	right: 24px;
	bottom: 51px;
	left: 24px;
	z-index: 1;
	font-size: 23px;
	line-height: 1.5;
	text-shadow: 0 1px 3px #2228;
}
.carousel-controls {
	position: absolute;
	right: 16px;
	bottom: 12px;
	left: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
}
.carousel-controls > button {
	width: 28px;
	height: 26px;
	border-radius: 4px;
	background: #0002;
	color: white;
	font: 22px/1 Arial, sans-serif;
}
.carousel-controls > .carousel-toggle {
	position: absolute;
	right: 0;
	width: 40px;
	font: 11px/1.4 sans-serif;
}
.carousel-dots {
	display: flex;
	gap: 7px;
}
.carousel-dots button {
	width: 8px;
	height: 8px;
	padding: 0;
	border-radius: 50%;
	background: #ffffff70;
}
.carousel-dots button[aria-current] {
	background: white;
}
.post-link {
	display: flex;
	flex-direction: row-reverse;
	align-items: flex-start;
	gap: 16px;
	min-height: 111px;
	padding: 15px 20px;
	border-bottom: 1px solid var(--line);
}
.post-link:hover {
	background: #f8fafc;
}
.post-image {
	flex: 0 0 120px;
	width: 120px;
	height: 80px;
	background: #e9f0f7;
}
.post-text {
	flex: 1;
	min-width: 0;
}
.post-text h3 {
	display: -webkit-box;
	min-height: 48px;
	margin-bottom: 9px;
	overflow: hidden;
	color: var(--text);
	font-size: 15px;
	line-height: 1.6;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.post-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	color: var(--muted);
	font-size: 12px;
}
.like-count {
	color: #a0aab5;
	white-space: nowrap;
}
.list-heading h2 {
	padding: 11px 16px;
	border-left: 4px solid var(--blue);
	color: var(--blue);
	font-size: 14px;
}
.load-more {
	padding: 22px 20px 14px;
	text-align: center;
}
.button {
	display: inline-flex;
	min-width: 112px;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	padding: 8px 22px;
	border: 1px solid var(--blue);
	border-radius: 25px;
	background: var(--blue);
	color: white;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}
.button:hover {
	background: var(--blue-dark);
	color: white;
}
.button-outline {
	background: transparent;
	color: var(--blue);
}
.button-outline:hover {
	background: #f0f6ff;
	color: var(--blue-dark);
}
.more-status {
	min-height: 22px;
	margin-top: 8px;
	color: var(--muted);
	font-size: 12px;
}
.horizontal-cards {
	display: flex;
	gap: 15px;
	padding: 15px 20px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
}
.small-card {
	flex: 0 0 180px;
	width: 180px;
	scroll-snap-align: start;
}
.small-card img {
	width: 100%;
	height: 110px;
	background: #ecf1f5;
}
.small-card span {
	display: -webkit-box;
	margin-top: 7px;
	overflow: hidden;
	font-size: 12px;
	line-height: 1.6;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.collection-card {
	position: relative;
}
.collection-card span {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 12px;
	background: linear-gradient(#0001, #0008);
	color: white;
	font-size: 16px;
	text-align: center;
}
.empty {
	padding: 45px 25px;
	color: var(--muted);
	text-align: center;
}
.empty p + a {
	display: inline-flex;
	margin-top: 18px;
}
.empty a:not(.button) {
	color: var(--blue);
}
.empty.compact {
	padding: 22px;
}
.empty h1 {
	margin-bottom: 16px;
	color: var(--text);
	font-size: 24px;
}
.muted {
	color: var(--muted);
}
.intro {
	padding: 18px 20px;
	background: white;
	color: #7d8995;
}
.topic-banner {
	position: relative;
	min-height: 220px;
	background: #7898b5;
	color: white;
}
.topic-banner > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.topic-banner > div {
	position: relative;
	min-height: 220px;
	padding: 45px 24px 24px;
	background: linear-gradient(#0001, #0009);
	text-align: center;
}
.topic-banner h1 {
	margin-bottom: 6px;
	font-size: 28px;
}
.topic-banner p {
	font-size: 13px;
}
.profile-card {
	padding: 30px 24px;
	background: white;
	text-align: center;
}
.avatar {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #e8eff6;
}
.profile-avatar {
	width: 80px;
	height: 80px;
	margin-bottom: 12px;
}
.profile-card h1 {
	margin-bottom: 7px;
	font-size: 19px;
}
.profile-card p {
	margin-bottom: 12px;
}
.page-intro {
	padding: 35px 20px;
	background: white;
	text-align: center;
}
.page-intro h1 {
	margin-bottom: 9px;
	font-size: 21px;
}
.page-intro p {
	color: var(--muted);
	font-size: 13px;
}
.feature-card {
	position: relative;
	display: block;
	height: 240px;
	margin-top: 10px;
	background: #afc2d3;
}
.feature-card img {
	width: 100%;
	height: 100%;
}
.feature-card h2 {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 25px;
	background: linear-gradient(#0001, #0007);
	color: white;
	font-size: 27px;
	text-align: center;
}
.search-section {
	padding: 24px 20px;
}
.search-section h1 {
	margin-bottom: 15px;
	font-size: 20px;
}
.search-form {
	display: flex;
	gap: 10px;
	margin-bottom: 12px;
}
.search-form input {
	min-width: 0;
	flex: 1;
}
.search-form .button {
	min-width: 75px;
	border-radius: 4px;
}
.search-result {
	color: var(--muted);
	font-size: 13px;
}
.text-button {
	padding: 4px 0;
	background: none;
	color: var(--blue);
	font-size: 12px;
}
/* 正文区域只接收服务端过滤后的内容，避免历史内容破坏页面布局。 */
.article-page {
	background: white;
}
.article-heading {
	position: relative;
	min-height: 280px;
	background: #9bb2c7;
}
.article-heading > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.article-heading > div {
	position: relative;
	display: flex;
	min-height: 280px;
	align-items: flex-end;
	padding: 40px 28px 28px;
	background: linear-gradient(transparent, #000b);
}
.article-heading h1 {
	color: white;
	font-size: 26px;
	line-height: 1.6;
}
.article-summary {
	margin: 0 28px;
	padding: 26px 12px;
	border-bottom: 1px solid #e9edf1;
	color: #8a939e;
	font-size: 16px;
	line-height: 1.9;
	text-align: center;
}
.article-body {
	padding: 26px 28px 12px;
	overflow-wrap: anywhere;
	color: #333;
	font-size: 16px;
	line-height: 2;
}
.article-body p {
	margin-bottom: 20px;
}
.article-body img, .article-body video {
	display: block;
	height: auto;
	margin: 18px auto;
}
.article-body h1, .article-body h2, .article-body h3 {
	margin: 25px 0 15px;
	font-size: 22px;
	font-weight: 600;
}
.article-body h3 {
	font-size: 19px;
}
.article-body a {
	text-decoration: underline;
	text-decoration-color: #84b1f5;
	text-underline-offset: 4px;
}
.article-body .text-center {
	text-align: center;
}
.article-body blockquote {
	margin: 20px 0;
	padding: 5px 20px;
	border-left: 3px solid var(--blue);
	color: #89929e;
}
.article-body ul, .article-body ol {
	margin: 14px 0;
	padding-left: 24px;
}
.article-body li {
	list-style: inherit;
}
.article-body table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}
.article-body td, .article-body th {
	padding: 8px 12px;
	border: 1px solid #e3e9ef;
}
.article-body pre {
	padding: 14px;
	overflow-x: auto;
	background: #f3f6f9;
	font-size: 13px;
}
.article-details {
	padding: 10px 28px 18px;
	color: var(--muted);
	font-size: 12px;
}
.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}
.tags a {
	padding: 4px 10px;
	border-radius: 3px;
	background: #eef4fc;
	color: #6c8caf;
	font-size: 12px;
}
.article-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	padding: 10px 20px 28px;
}
.article-actions .button {
	min-width: 95px;
	padding: 8px 15px;
	font-size: 13px;
}
.is-favorite {
	background: #edf4ff;
}
.settings-list {
	margin-top: 10px;
	background: white;
}
.settings-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 24px;
	border-bottom: 1px solid var(--line);
}
.settings-list span {
	color: #a5b0ba;
	font-size: 21px;
}
.signout-form {
	padding: 30px 20px;
	text-align: center;
}
.form-card {
	padding: 28px;
	background: white;
}
.form-card h1 {
	margin: 0 0 22px;
	font-size: 21px;
}
.form-card label {
	display: block;
	margin: 18px 0 8px;
	color: #697786;
	font-size: 13px;
}
input, textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #e5ebf1;
	border-radius: 3px;
	background: #f9fafb;
	color: var(--text);
}
input:focus, textarea:focus {
	border-color: #91b7f5;
	outline: 2px solid #dceaff;
}
textarea {
	resize: vertical;
}
input::placeholder, textarea::placeholder {
	color: #a9b2bc;
}
.form-status {
	min-height: 24px;
	margin: 12px 0;
	color: #c05251;
	font-size: 13px;
}
.form-status.success {
	color: #4e8c4e;
}
.auth-card {
	max-width: 480px;
	margin: 20px auto 0;
	padding: 35px 36px;
}
.auth-brand {
	display: block;
	margin: 0 0 30px;
	font-size: 30px;
}
.auth-card form .button {
	width: 100%;
}
.auth-links {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	margin-top: 20px;
	color: #8593a1;
	font-size: 12px;
}
.alert {
	margin: 10px 0;
	padding: 12px 20px;
}
.alert-error {
	background: #fff2f1;
	color: #b6514d;
}
.alert-success {
	background: #eff8ed;
	color: #56884c;
}
.about-card {
	min-height: 480px;
	padding: 45px 35px;
	background: white;
	text-align: center;
}
.about-brand {
	display: inline-block;
	margin-bottom: 25px;
	font-size: 37px;
}
.about-card h1 {
	margin-bottom: 18px;
	font-size: 18px;
}
.about-card > p {
	color: #8995a0;
	line-height: 1.9;
}
.about-contact {
	margin-top: 45px;
	font-size: 13px;
}
.about-contact h2 {
	margin-top: 18px;
	font-size: 13px;
	font-weight: 600;
}
.about-contact p {
	color: #8a97a5;
}
.site-footer {
	padding: 32px 16px;
	color: #94a0ac;
	font-size: 11px;
	text-align: center;
}
.site-footer p {
	margin-top: 7px;
	color: #acb5be;
}
.toast {
	position: fixed;
	bottom: 30px;
	left: 50%;
	z-index: 50;
	max-width: min(90vw, 440px);
	padding: 12px 20px;
	border-radius: 6px;
	background: #27384eeF;
	color: white;
	font-size: 13px;
	text-align: center;
	transform: translateX(-50%);
	overflow-wrap: anywhere;
	box-shadow: 0 4px 22px #0013;
}
/* 小屏幕缩减留白，仍允许浏览器正常缩放文字。 */
@media (max-width: 540px) {
	.header-inner {
		padding: 14px 16px 9px;
	}
	.brand {
		font-size: 24px;
	}
	.brand small {
		font-size: 10px;
	}
	.carousel-slide a {
		height: 220px;
	}
	.carousel-slide h2 {
		right: 18px;
		left: 18px;
		font-size: 19px;
	}
	.section-title {
		padding-right: 15px;
		padding-left: 15px;
	}
	.post-link {
		gap: 12px;
		padding: 15px;
	}
	.post-text h3 {
		font-size: 14px;
	}
	.post-image {
		flex-basis: 110px;
		width: 110px;
		height: 76px;
	}
	.article-heading, .article-heading > div {
		min-height: 240px;
	}
	.article-heading > div {
		padding: 35px 20px 22px;
	}
	.article-heading h1 {
		font-size: 22px;
	}
	.article-summary {
		margin: 0 20px;
		padding: 20px 0;
		font-size: 15px;
	}
	.article-body {
		padding: 23px 20px 10px;
	}
	.article-details {
		padding-right: 20px;
		padding-left: 20px;
	}
	.form-card {
		padding: 25px 22px;
	}
	.auth-card {
		margin: 10px 0 0;
		max-width: none;
	}
	.feature-card {
		height: 210px;
	}
	.feature-card h2 {
		font-size: 24px;
	}
}
@media (max-width: 350px) {
	.post-image {
		flex-basis: 90px;
		width: 90px;
		height: 68px;
	}
	.quick-links {
		flex-wrap: wrap;
	}
	.quick-links a {
		min-width: 40%;
		text-align: center;
	}
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* 混合内容、筛选导航与短信注册使用简洁的移动布局。 */
.content-label {
	color: #6489b4;
	font-size: 11px;
}
.post-meta {
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 3px 12px;
}
.filter-links {
	display: flex;
	gap: 8px;
	padding: 10px 15px;
	margin-top: 10px;
	background: white;
}
.filter-links a {
	flex: 1;
	padding: 7px 5px;
	border-radius: 3px;
	color: #7e8d9b;
	text-align: center;
	font-size: 13px;
}
.filter-links a[aria-current] {
	background: #eff5ff;
	color: var(--blue);
}
.category-group {
	padding: 18px 20px;
	border-bottom: 1px solid var(--line);
}
.category-group h3 {
	font-size: 14px;
	color: #768799;
}
.category-group .tags {
	margin-top: 10px;
}
.category-group .tags a {
	background: #f5f8fb;
}
.article-byline {
	padding: 18px 28px 0;
	color: #9aa5af;
	font-size: 12px;
}
.article-byline a {
	color: #728eac;
}
.source-link {
	display: inline-block;
	margin-left: 15px;
}
.author-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px;
}
.author-card > div {
	min-width: 0;
}
.author-card h3 {
	margin-bottom: 5px;
	font-size: 14px;
}
.author-card p {
	color: var(--muted);
	font-size: 12px;
	overflow-wrap: anywhere;
}
.article-actions .is-liked {
	background: #edf4ff;
}
.sms-row {
	display: flex;
	gap: 10px;
}
.sms-row input {
	flex: 1;
	min-width: 0;
}
.sms-row .button {
	flex: 0 0 130px;
	min-width: 0;
	padding: 7px 10px;
	border-radius: 4px;
	font-size: 12px;
}
.form-card .human-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
}
.human-check input {
	width: 15px;
	height: 15px;
	margin: 0;
	accent-color: var(--blue);
}
.sms-status {
	margin-top: 8px;
	color: #8797a7;
	font-size: 12px;
}
.article-body .embedded-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	margin: 20px 0;
	border: 1px solid #e8edf2;
	background: #fafbfd;
	text-decoration: none;
	line-height: 1.6;
}
.article-body .embedded-card img {
	flex: 0 0 100px;
	width: 100px;
	height: 72px;
	margin: 0;
	object-fit: cover;
}
.article-body .embedded-card strong {
	display: block;
	font-size: 14px;
	font-weight: 500;
}
.article-body .embedded-card p {
	margin: 6px 0 0;
	color: var(--muted);
	font-size: 12px;
}
@media (max-width: 540px) {
	.article-byline {
		padding-right: 20px;
		padding-left: 20px;
	}
}

/* 趋势报告长海报保留原始比例，小屏幕每行展示两份报告。 */
.report-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px 14px;
	padding: 20px;
}
.report-card {
	min-width: 0;
}
.report-card img {
	width: 100%;
	height: auto;
	background: #edf2f7;
}
.report-card span {
	display: -webkit-box;
	margin-top: 8px;
	overflow: hidden;
	font-size: 12px;
	line-height: 1.6;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
@media (max-width: 540px) {
	.report-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 15px;
	}
}
