@charset "UTF-8";
/**
 * GO爱踏网 正文排版规范
 *
 * 目的：让「自动生成」「后台粘贴」「AI 搜索收录」三种来源的文章
 * 在页面上呈现同一套发布风格，不依赖文章里自带的内联样式。
 *
 * 注意：本文件由 mu-plugins/goaita-post-style.php 在主题样式之后加载，
 * 因此这里的规则可以覆盖原主题只给了 margin 的裸表格。
 */

/* =============== 正文基础 =============== */
.entry-content p {
	margin: 0 0 1.15em;
}

.entry-content h2 {
	font-size: 1.32em;
	line-height: 1.45;
	margin: 1.9em 0 .75em;
	padding-left: 12px;
	border-left: 4px solid #ff3333;
	font-weight: 700;
}

.entry-content h3 {
	font-size: 1.16em;
	line-height: 1.5;
	margin: 1.5em 0 .6em;
	font-weight: 700;
}

.entry-content h2:first-child,
.entry-content h3:first-child {
	margin-top: 0;
}

/* 超长英文/链接/数字不撑破版面 */
.entry-content p,
.entry-content li,
.entry-content td,
.entry-content th,
.entry-content h2,
.entry-content h3 {
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* =============== 列表 =============== */
.entry-content ul,
.entry-content ol {
	margin: 0 0 1.2em;
}

.entry-content li {
	margin: 0 0 .5em;
	line-height: 1.75;
}

/* =============== 表格：全站统一 =============== */
.entry-content table,
.entry-content .gb-table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	font-size: 15px;
	line-height: 1.65;
	background: #fff;
}

.entry-content th,
.entry-content td,
.entry-content .gb-table th,
.entry-content .gb-table td {
	padding: 9px 12px;
	border: 1px solid #e6ebf2;
	text-align: left;
	vertical-align: top;
	white-space: normal;
}

.entry-content thead th,
.entry-content .gb-table thead th {
	background: #f6f8fb;
	font-weight: 600;
	color: #24303f;
	white-space: nowrap;
}

.entry-content tbody tr:nth-child(even) {
	background: #fbfcfe;
}

/* 表格容器：窄屏横向滚动，不撑破正文 */
.entry-content .gb-table-wrap,
.entry-content .table-wrap {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 20px 0;
}

.entry-content .gb-table-wrap > table,
.entry-content .table-wrap > table {
	margin: 0;
}

.entry-content .gb-table-wrap::-webkit-scrollbar {
	height: 6px;
}

.entry-content .gb-table-wrap::-webkit-scrollbar-thumb {
	background: #d5dbe4;
	border-radius: 3px;
}

/* 涨跌配色（快讯表格自带） */
.gb-table td.up,
.entry-content .up {
	color: #d93025;
}

.gb-table td.down,
.entry-content .down {
	color: #188038;
}

.gb-table td.flat {
	color: #667085;
}

/* =============== 引用 =============== */
.entry-content blockquote,
.entry-content .entry-content blockquote {
	margin: 20px 0;
	padding: 12px 18px;
	background: #f8fafc;
	border-left: 3px solid #ff3333;
	color: #475569;
	font-size: 1em;
	font-style: normal;
	line-height: 1.75;
}

.entry-content blockquote:before {
	content: none;
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

/* =============== 代码：绝不撑破版面 =============== */
.entry-content code {
	font-family: ui-monospace, "SFMono-Regular", Consolas, Menlo, monospace;
	font-size: .92em;
	background: #f2f5f9;
	color: #b4232a;
	padding: 1px 5px;
	border-radius: 4px;
	white-space: normal;
}

.entry-content pre {
	margin: 20px 0;
	padding: 14px 16px;
	background: #f7f9fc;
	border: 1px solid #eaeff5;
	border-radius: 8px;
	max-width: 100%;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-word;
	font-size: 14px;
	line-height: 1.7;
}

.entry-content pre code {
	background: none;
	padding: 0;
	color: inherit;
	font-size: 13.5px;
	white-space: inherit;
}

/* =============== 图片 =============== */
.entry-content img {
	max-width: 100%;
	height: auto;
}

.entry-content figure {
	margin: 20px 0;
}

.entry-content figcaption {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.6;
	color: #8a94a6;
	text-align: center;
}

/* =============== 首页栏目块：标题行数限制 =============== */
.content-block .post-big .entry-title,
.content-block .post-small .entry-title,
.content-block-1 .post-big .entry-title,
.content-block-2 .post-big .entry-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* 带缩略图的小标题只给一行，保持每行对齐 */
.content-block .post-small .entry-title {
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

/* =============== 手机端字号微调 =============== */
@media only screen and (max-width: 600px) {
	.entry-content table,
	.entry-content .gb-table {
		font-size: 13.5px;
	}
	.entry-content th,
	.entry-content td,
	.entry-content .gb-table th,
	.entry-content .gb-table td {
		padding: 7px 9px;
	}
}


/* =============== 头部「大家都在搜」 =============== */
.header-icons .header-hot {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	line-height: 1;          /* 主题这里是 100px，不重置会撑出一整行 */
	max-width: 460px;
	white-space: nowrap;
}

.header-icons .header-hot-label {
	color: #9aa3b0;
	font-size: 13px;
	line-height: 1;
	padding-left: 0;         /* 主题给 span 留了 30px 图标位，这里用不上 */
	background: none;
}

/* 热词做成小胶囊，点一下直接站内搜索 */
.header-icons .header-hot a {
	display: inline-block;
	padding-left: 11px;      /* 覆盖主题给 span a 的 30px 图标位 */
	background: #f5f7fa;
	background: #f5f7fa;
	border: 1px solid #eaeef4;
	border-radius: 999px;
	color: #4a5568;
	font-size: 13px;
	line-height: 1;
	padding: 6px 11px;
	text-decoration: none;
	transition: background .15s, border-color .15s, color .15s;
}

.header-icons .header-hot a:hover {
	background: #fff1f1;
	border-color: #ffd0d0;
	color: #e5484d;
}

/* =============== 侧栏：大盘云图入口（正方形） =============== */
.goaita-dy-ad {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;      /* 正方形：宽度跟着侧栏走，高度自动等高 */
	box-sizing: border-box;
	padding: 22px 16px;
	overflow: hidden;
	border-radius: 10px;
	background: radial-gradient(120% 90% at 50% 0%, #2d4a6b 0%, #1b2735 60%, #221a2a 100%);
	color: #fff;
	text-align: center;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease;
}

/* 背景暗纹：轻微的网格，暗示「行情图表」 */
.goaita-dy-ad:before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
	background-size: 26px 26px;
	opacity: .55;
	pointer-events: none;
}

.goaita-dy-ad:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(20, 30, 48, .3);
}

.goaita-dy-ad > span {
	position: relative;
	z-index: 1;
}

/* 顶部小标 */
.goaita-dy-ad-badge {
	color: #ff6b6b;
	font-size: 12px;
	letter-spacing: .12em;
	border: 1px solid rgba(255, 107, 107, .5);
	border-radius: 999px;
	padding: 3px 9px;
}

/* 主标题 */
.goaita-dy-ad-title {
	font-size: 30px;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1.2;
	color: #fff;
}

.goaita-dy-ad-sub {
	font-size: 13px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .68);
	max-width: 200px;
}

/* 按钮 */
.goaita-dy-ad-cta {
	margin-top: 6px;
	background: #e5484d;
	border-radius: 999px;
	color: #fff;
	font-size: 14px;
	line-height: 1;
	padding: 10px 22px;
	box-shadow: 0 6px 14px rgba(229, 72, 77, .35);
}

.goaita-dy-ad:hover .goaita-dy-ad-cta {
	background: #f05257;
}

/* 手机端：头部热词只留得下两个，标签隐去 */
@media only screen and (max-width: 767px) {
	.header-icons .header-hot-label {
		display: none;
	}
}

@media only screen and (max-width: 479px) {
	.header-icons .header-hot {
		display: none;
	}
}


/* =============== 场景化侧栏 =============== */

/* 广告卡：不要主题给 .widget 的边框和内边距 */
.sidebar .widget.goaita-sb-ad {
	border: none;
	padding: 0;
	background: none;
}

/* 标签胶囊 */
.goaita-tagpills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.goaita-tagpills a {
	background: #f5f7fa;
	border: 1px solid #eaeef4;
	border-radius: 999px;
	color: #4a5568;
	font-size: 13px;
	line-height: 1;
	padding: 6px 10px;
	text-decoration: none;
	transition: background .15s, border-color .15s, color .15s;
}

.goaita-tagpills a:hover {
	background: #fff1f1;
	border-color: #ffd0d0;
	color: #e5484d;
}

/* 栏目导航：一行一个，右侧带文章数 */
.sidebar .goaita-sb-widget ul.goaita-catnav {
	margin: 0;
	padding: 0;
}

.sidebar .goaita-sb-widget ul.goaita-catnav > li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0;
	padding: 8px 0;
	border-bottom: 1px solid #f2f4f7;
	line-height: 1.45;
}

.sidebar .goaita-sb-widget ul.goaita-catnav > li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

/* 主题给小工具列表加了小圆点，这里不要 */
.sidebar .goaita-sb-widget ul.goaita-catnav > li:before {
	content: none;
	display: none;
}

.sidebar .goaita-sb-widget ul.goaita-catnav > li a {
	color: #333;
	text-decoration: none;
}

.sidebar .goaita-sb-widget ul.goaita-catnav > li a:hover {
	color: #e5484d;
}

.sidebar .goaita-sb-widget ul.goaita-catnav > li.is-current a {
	color: #e5484d;
	font-weight: 600;
}

.goaita-catnav-n {
	color: #98a2b3;
	font-size: 12px;
	line-height: 1.6;
	background: #f5f7fa;
	border-radius: 999px;
	padding: 0 7px;
	flex: none;
	margin-left: 8px;
}


/* =============== AI 搜索：搜索框右侧的口号 =============== */

/*
 * 日期行收紧：页头右侧是「2026年11月22日 星期日」，两个 li 各带
 * margin-right 9 + padding-right 11 + 竖线，加起来比文字本身还宽。
 * 这里把间距和内边距压小一档，日期看起来还是一行，但左边让出十几个像素，
 * 好让口号站在搜索框和日期之间，谁都不贴着谁。
 */
@media only screen and (min-width: 960px) {
	#primary-bar .top-right {
		font-size: 12px;
	}
	#primary-bar .top-right li {
		margin-right: 7px;
		padding-right: 8px;
	}
	#primary-bar .top-right .current-date {
		margin-left: 0;
	}
}

/*
 * 挂在 .header-search 内部，用 left:100% 跟着搜索框走。
 * 搜索框在几个断点会改宽度（400 / 300 / 260），口号自动跟在后面，
 * 不用为每个断点重写定位。
 *
 * 高度对齐搜索框（42px 里留 2px），视觉上像搜索框自带的一块牌子，
 * 而不是随便飘在旁边的一坨字。
 */
.header-search .header-slogan {
	position: absolute;
	left: calc(100% + 18px);
	top: 1px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
	font-size: 13px;
	line-height: 1;
	padding: 0 12px 0 10px;
	border-radius: 999px;
	border: 1px solid transparent;
	/* 渐变描边：padding-box 给白底，border-box 给渐变，比单色边框细腻 */
	background:
		linear-gradient(180deg, #fffcfa 0%, #ffffff 62%) padding-box,
		linear-gradient(120deg, #f7b9b9 0%, #f8c9a8 46%, #f2bcd8 100%) border-box;
	box-shadow: 0 1px 3px rgba(229, 72, 77, .05), 0 6px 16px -8px rgba(229, 72, 77, .18);
	cursor: pointer;
	user-select: none;
	transition: box-shadow .2s, transform .2s;
}

.header-search .header-slogan:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(229, 72, 77, .07), 0 10px 22px -8px rgba(229, 72, 77, .26);
}

.header-search .header-slogan:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(229, 72, 77, .1), 0 8px 20px -8px rgba(229, 72, 77, .28);
}

/* 一颗小星，代替生硬的图标 */
.header-search .header-slogan:before {
	content: '✦';
	flex: none;
	color: #e88f8f;
	font-size: 11px;
	line-height: 1;
	transform: translateY(-.5px);
}

.header-search .header-slogan-mark {
	color: #8c95a2;
	font-size: 13px;
	letter-spacing: .2px;
}

/* 落点：红字 + 荧光笔底纹 */
.header-search .header-slogan-hl {
	font-style: normal;
	color: #e0454a;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .2px;
	padding: 0 2px;
	border-radius: 3px;
	background-image: linear-gradient(transparent 58%, #ffe0e0 58%);
	background-repeat: no-repeat;
}

/* 960–1079：搜索框只有 260 宽，日期又贴在右边，
 * 口号整体缩一档（字号和内边距都收），别跟日期挤在一起 */
@media only screen and (min-width: 960px) and (max-width: 1079px) {
	.header-search .header-slogan {
		left: calc(100% + 12px);
		padding: 0 10px 0 9px;
		gap: 4px;
	}
	.header-search .header-slogan-mark {
		font-size: 12px;
	}
	.header-search .header-slogan-hl {
		font-size: 13px;
	}
}

/* 960 以下搜索框是折叠的（display:none），口号跟着一起收掉 */
@media only screen and (max-width: 959px) {
	.header-search .header-slogan {
		display: none;
	}
}
