/* 澳门日报 PC 公共样式：顶栏、左侧工具、双页、搜索覆盖、页脚 */
html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	min-height: 100%;
}
body.macao-pc {
	min-width: 1280px;
	font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
	color: #333;
	background-color: #e8e8e8;
	background-image: url("../images/bg.png");
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center top;
	background-attachment: fixed;
}
.macao-pc a {
	color: inherit;
	text-decoration: none;
}
.macao-shell {
	width: max-content;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}
.macao-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: 88px;
	padding: 0;
	margin: 0;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	background: transparent;
}
.macao-logo {
	justify-self: start;
	cursor: pointer;
}
.macao-logo img {
	height: 52px;
	display: block;
	cursor: pointer;
}
.macao-search {
	display: flex;
	align-items: stretch;
	width: 400px;
	height: 36px;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
}
.macao-search input {
	flex: 1;
	border: 0;
	outline: none;
	padding: 0 14px;
	font-size: 14px;
	background: transparent;
}
.macao-search button {
	width: 40px;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
}
.macao-search button img {
	width: 18px;
	height: 18px;
	display: block;
	margin: 0 auto;
	filter: none;
}
.macao-header-links {
	display: flex;
	gap: 10px;
	justify-self: end;
}
.macao-header-links a {
	display: inline-block;
	min-width: 88px;
	height: 32px;
	line-height: 32px;
	text-align: center;
	border: 1px solid #ccc;
	border-radius: 2px;
	background: #fff;
	font-size: 13px;
	color: #333;
}
.macao-header-links a:hover {
	border-color: #e60012;
	color: #e60012;
}
.macao-body {
	position: relative;
	margin: 0;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}
.macao-main {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 15px;
	width: 100%;
}
.macao-col {
	position: relative;
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	max-width: none;
}
.macao-tools {
	position: relative;
	left: auto;
	top: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	gap: 10px;
}
.macao-tool {
	width: 48px;
	height: 48px;
	border: 0;
	padding: 0;
	background: #e60012;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.macao-tool img {
	width: 24px;
	height: 24px;
	display: block;
	filter: brightness(0) invert(1);
}
.macao-tool.is-active {
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e60012;
}
body.macao-pc.is-search-open .macao-tool[data-macao-tool="share"],
body.macao-pc.is-search-open .macao-tool[data-macao-tool="zoom-in"],
body.macao-pc.is-search-open .macao-tool[data-macao-tool="zoom-out"] {
	display: none;
}
.macao-stage {
	position: relative;
	min-height: 640px;
}
.macao-spread-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 620px;
	width: max-content;
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}
.macao-spread-viewport {
	position: relative;
	overflow: visible;
	padding: 8px;
	background-color: #fff;
	border-radius: 4px;
	box-sizing: border-box;
}
.macao-spread-sizer {
	display: flex;
	align-items: center;
	justify-content: center;
	width: max-content;
}
.macao-spread-wrap.is-zoomed {
	max-width: none;
}
.macao-spread-wrap.is-zoomed .macao-nav-btn {
	display: none;
}
body.macao-pc.is-spread-zoomed .macao-shell {
	max-width: none;
}
.macao-spread-inner {
	position: relative;
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 0;
}
.macao-page {
	position: relative;
	width: 430px;
	height: 610px;
	height: min(760px, calc(100vh - 220px));
	width: calc(min(760px, calc(100vh - 220px)) * 0.705);
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	overflow: hidden;
}
.macao-page.is-empty {
	visibility: hidden;
}
.macao-page .paper-box {
	position: relative;
	width: 100%;
	height: 100%;
}
.macao-page img.paper-img-layout,
.macao-page img.paper-img-origin {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	object-fit: fill;
}
.macao-page img.paper-img-origin {
	opacity: 0;
	z-index: 2;
}
.macao-page .paper-canvas {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 3;
	pointer-events: none;
}
.macao-page map {
	z-index: 4;
}
.macao-unfold-spread {
	display: none;
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 8px;
	z-index: 10;
	width: auto;
	margin: 0;
	padding: 10px 20px;
	border: 0;
	box-sizing: border-box;
	font-size: 15px;
	color: #fff;
	text-align: left;
	cursor: pointer;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
}
.macao-unfold-spread.is-show {
	display: block;
}
.macao-unfold-spread:hover {
	color: #e60012;
}
.macao-spread-wrap.is-universal .macao-page:not(.is-universal-page) {
	display: none;
}
.macao-spread-wrap.is-universal .macao-page.is-universal-page {
	width: calc(min(760px, calc(100vh - 220px)) * 0.705 * 2); /* 通版横图按双页宽显示 */
	height: auto;
	aspect-ratio: var(--spread-nw) / var(--spread-nh);
}
.macao-nav-btn {
	position: absolute;
	top: 50%;
	width: 36px;
	height: 72px;
	margin-top: -36px;
	border: 0;
	border-radius: 6px;
	background: rgba(80, 80, 80, 0.45);
	cursor: pointer;
	z-index: 8;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.macao-nav-btn img {
	width: 12px;
	height: 22px;
	display: block;
}
.macao-nav-btn.is-hidden {
	display: none;
}
.macao-nav-prev {
	left: 0;
}
.macao-nav-next {
	right: 0;
}
.macao-restore {
	position: absolute;
	top: 12px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 21;
	display: none;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: max-content;
	min-width: 132px;
	height: 44px;
	margin: 0;
	padding: 0 22px;
	background: rgba(80, 80, 80, 0.9);
	color: #fff;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	box-sizing: border-box;
	pointer-events: auto;
}
.macao-restore.is-show {
	display: flex;
}
.macao-restore img {
	width: 22px;
	height: 22px;
	filter: brightness(0) invert(1);
}
.macao-ads {
	display: flex;
	gap: 12px;
	margin: 12px 0 0;
	width: auto;
	max-width: none;
}
.macao-ads a {
	flex: 1 1 0;
	min-width: 0;
}
.macao-ads img {
	width: 100%;
	height: auto;
	display: block;
}
.macao-footer {
	padding: 18px 0 28px;
	text-align: center;
	width: 100%;
	max-width: none;
	margin: 0;
}
.macao-subscribe {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	margin-bottom: 12px;
	font-size: 14px;
}
.macao-subscribe-label {
	color: #333;
	font-weight: 600;
}
.macao-subscribe a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #444;
	font-size: 13px;
}
.macao-subscribe a img {
	width: 30px;
	height: 30px;
}
.macao-copy {
	font-size: 12px;
	color: #777;
	line-height: 1.8;
}
.macao-copy a {
	color: #e60012;
}
.macao-panel {
	display: none;
	position: absolute;
	left: 0;
	top: 0;
	z-index: 30;
	width: 320px;
	max-height: 560px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	overflow: hidden;
}
.macao-panel[data-macao-panel="toc"] {
	width: 360px;
	max-height: min(640px, calc(100vh - 200px));
	overflow: auto;
}
.macao-panel.is-open {
	display: block;
}
.macao-panel[data-macao-panel="calendar"] {
	width: 400px;
	max-height: none;
}
.macao-toc-head,
.macao-cal-head {
	padding: 12px 14px;
	border-bottom: 1px solid #eee;
	background: #fff;
}
.macao-toc-item h3 {
	margin: 0;
	padding: 12px 36px 12px 24px;
	font-size: 15px;
	font-weight: 600;
	color: #e60012;
	cursor: pointer;
	position: relative;
	background: #fff;
	line-height: 1.4;
}
.macao-toc-item h3:before {
	content: "";
	position: absolute;
	left: 12px;
	top: 16px;
	width: 3px;
	height: 14px;
	background: #e60012;
	border-radius: 1px;
}
.macao-toc-item h3:after {
	content: "";
	position: absolute;
	right: 16px;
	top: 18px;
	border: 5px solid transparent;
	border-top-color: #e60012;
}
.macao-toc-item.is-collapsed h3:after {
	top: 16px;
	border-top-color: transparent;
	border-left-color: #e60012;
}
.macao-toc-item ul {
	margin: 0;
	padding: 8px 0 12px;
	list-style: none;
	background: #f5f5f5;
}
.macao-toc-item.is-collapsed ul {
	display: none;
}
.macao-toc-item li {
	padding: 8px 16px 8px 28px;
	position: relative;
	font-size: 14px;
	line-height: 1.45;
	color: #222;
}
.macao-toc-item li:before {
	content: "";
	position: absolute;
	left: 14px;
	top: 14px;
	width: 7px;
	height: 7px;
	background: #e60012;
}
.macao-toc-item li.is-current a {
	color: #e60012;
	font-weight: 600;
}
.macao-toc-item li.macao-toc-empty {
	color: #999;
	cursor: default;
}
.macao-toc-item li.macao-toc-empty:before {
	display: none;
}
.macao-search-overlay {
	display: none;
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 25;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	padding: 20px 28px 16px;
	box-sizing: border-box;
	overflow: hidden;
	flex-direction: column;
}
.macao-search-overlay.is-open {
	display: flex;
}
.macao-search-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
	flex-shrink: 0;
}
.macao-search-total {
	font-size: 16px;
	font-weight: 700;
	color: #e60012;
}
.macao-search-back {
	border: 0;
	background: none;
	color: #666;
	cursor: pointer;
	font-size: 14px;
}
.macao-search-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.macao-search-list li {
	padding: 16px 0;
	border-bottom: 1px solid #eee;
	cursor: pointer;
}
.macao-search-list li a {
	display: block;
	color: inherit;
	text-decoration: none;
}
.macao-search-list .search_title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 8px;
	color: #111;
}
.macao-search-list .search_content {
	font-size: 14px;
	color: #666;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.macao-search-list .search_time {
	margin-top: 8px;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 13px;
	color: #888;
}
.macao-search-list .highlight {
	color: #e60012;
}
.macao-search-error {
	display: none;
	padding: 40px 0;
	text-align: center;
	color: #999;
	flex: 1 1 auto;
}
.searchData {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
}
#pagination-container {
	display: none;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	flex-shrink: 0;
}
#pagination-buttons button,
#prev-page-btn,
#next-page-btn {
	min-width: 32px;
	height: 32px;
	border: 1px solid #ddd;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
}
#pagination-buttons button.active {
	border-color: #e60012;
	color: #e60012;
}
.macao-share-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 80;
	align-items: center;
	justify-content: center;
}
.macao-share-overlay.is-open {
	display: flex;
}
.macao-share-modal {
	width: 320px;
	background: #fff;
	border-radius: 6px;
	padding: 16px 16px 20px;
	text-align: center;
	position: relative;
}
.macao-share-close {
	position: absolute;
	right: 10px;
	top: 8px;
	border: 0;
	background: none;
	font-size: 22px;
	cursor: pointer;
	color: #666;
}
.macao-share-qr {
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.macao-share-tip {
	font-size: 13px;
	color: #666;
	line-height: 1.6;
}
.macao-article {
	display: flex;
	gap: 12px;
	align-items: stretch;
	justify-content: flex-start;
	height: min(760px, calc(100vh - 220px));
}
.macao-article .macao-spread-viewport {
	height: 100%;
	flex: 0 0 auto;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.macao-article-page {
	height: 100%;
	width: calc((min(760px, calc(100vh - 220px)) - 16px) * 0.705);
	position: relative;
	background: #fff;
	flex: 0 0 auto;
}
.macao-article-page img.preview,
.macao-article-page img.paper-img-origin {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	object-fit: fill;
}
.macao-article-page img.paper-img-origin {
	opacity: 0;
	z-index: 2;
}
.macao-article-page .paper-canvas {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 3;
	pointer-events: none;
}
.macao-article-col {
	flex: 1 1 auto;
	width: 680px; /* 短文也保持右栏满宽，避免只随一句正文收窄 */
	max-width: 680px;
	height: 100%;
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	overflow: auto;
}
.macao-article.is-universal {
	gap: 0;
	height: auto;
	align-items: flex-start;
}
.macao-article.is-universal .macao-spread-viewport {
	height: auto;
}
.macao-article.is-universal .macao-article-col {
	display: none; /* 整行给通版，正文暂藏，收縮后恢复 */
}
.macao-article.is-universal .macao-article-page {
	width: calc((min(760px, calc(100vh - 220px)) - 16px) * 0.705 * 2);
	height: auto;
	aspect-ratio: var(--spread-nw) / var(--spread-nh);
}
.macao-article-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-shrink: 0;
	height: 60px;
	padding: 0 20px;
	box-sizing: border-box;
	font-size: 18px;
	color: #000;
	background: linear-gradient(0deg, #ffffff 0%, #ffcdcd 100%);
	border-radius: 5px;
}
.macao-article-nav a,
.macao-article-nav span.is-disabled {
	color: #000;
}
.macao-article-nav a.is-disabled,
.macao-article-nav span.is-disabled {
	visibility: hidden;
	pointer-events: none;
}
.macao-article-main {
	flex: 1 0 auto; /* 短文撑满左侧剩余高度，长文仍随正文增高由右侧滚动 */
	width: 100%;
	background: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	border-radius: 5px;
	padding: 0 20px 16px;
	box-sizing: border-box;
	min-height: 0;
	overflow: visible;
}
.macao-article-switch {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: 0;
	z-index: 8;
	border: 0;
	margin: 0 -20px 4px;
	padding: 16px 20px 8px;
	background: #fff;
	border-radius: 5px 5px 0 0;
}
.macao-article-pn {
	display: flex;
	align-items: center;
	gap: 16px;
}
.macao-article-switch a,
.macao-article-switch span.is-disabled {
	color: #c70000;
	font-size: 16px;
}
.macao-article-switch span.is-disabled {
	visibility: hidden;
}
.macao-tts {
	display: flex;
	gap: 8px;
}
.macao-tts button {
	width: 32px;
	height: 32px;
	border: 1px solid #f0c8c8;
	border-radius: 50%;
	padding: 0;
	background: #fff;
	cursor: pointer;
	overflow: hidden;
}
.macao-tts button img {
	width: 22px;
	height: 22px;
	display: block;
	margin: 4px auto 0;
}
.macao-tts button.is-on {
	border-color: #e60012;
}
.macao-tts button.is-on img {
	filter: none;
}
.macao-article-title {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.35;
	margin: 8px 0;
	color: #111;
	letter-spacing: 0.04em;
}
.macao-intro-title,
.macao-sub-title {
	font-size: 17px;
	color: #444;
	margin: 4px 0;
}
.macao-article-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-shrink: 0;
	color: #888;
	font-size: 13px;
	margin-bottom: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid #EEF3FE;
}
.macao-fonts button {
	border: 0;
	background: none;
	color: #333;
	font-size: 16px;
	cursor: pointer;
	padding: 0 4px;
	font-weight: 700;
}
.macao-fonts button.is-current {
	color: #e60012;
}
#ozoom {
	padding-right: 8px;
	font-size: 18px;
	line-height: 2;
	color: #222;
	overflow: visible;
}
#ozoom p {
	margin: 0 0 1em;
	text-align: justify;
	word-break: break-all;
}
#ozoom img {
	max-width: 100%;
	height: auto;
}
.paper-ad-slot:empty {
	display: none;
}
.paper-ad-item {
	position: relative;
	margin: 8px 0;
	flex-shrink: 0;
	background: #fff;
}
.paper-ad-item.is-float {
	position: relative;
	top: auto;
	z-index: auto;
}
.paper-ad-track {
	position: relative;
}
.paper-ad-slide {
	display: none;
	position: relative;
}
.paper-ad-slide.is-on {
	display: block;
}
.paper-ad-slide img {
	width: 100%;
	height: auto;
	display: block;
}
.paper-ad-close {
	position: absolute;
	top: 4px;
	right: 4px;
	z-index: 2;
	width: 22px;
	height: 22px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 16px;
	line-height: 22px;
	padding: 0;
	cursor: pointer;
}
.paper-ad-identity {
	position: absolute;
	left: 6px;
	top: 6px;
	z-index: 1;
	padding: 1px 6px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 12px;
	border-radius: 2px;
}
.paper-ad-item.is-ad-multi .paper-ad-swiper {
	width: 100%;
	overflow: hidden;
	--swiper-pagination-color: #fff;
	--swiper-pagination-bullet-inactive-color: #fff;
	--swiper-pagination-bullet-inactive-opacity: 0.55;
}
.paper-ad-item.is-ad-fit .paper-ad-swiper,
.paper-ad-item.is-ad-fit .paper-ad-track {
	height: var(--ad-min-h);
}
.paper-ad-item.is-ad-fit .swiper-wrapper,
.paper-ad-item.is-ad-fit .swiper-slide {
	height: 100%;
}
.paper-ad-swiper .paper-ad-slide {
	display: block;
	height: 100%;
}
.paper-ad-item.is-ad-fit .paper-ad-track > .paper-ad-slide.is-on {
	height: 100%;
}
.paper-ad-item.is-ad-fit .paper-ad-slide img,
#ozoom .paper-ad-item.is-ad-fit .paper-ad-slide img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}
.paper-ad-item.is-ad-multi .paper-ad-pagination {
	bottom: 8px;
	z-index: 2;
}
.paper-ad-item.is-ad-multi .swiper-pagination-bullet {
	background: #fff;
	opacity: 0.55;
}
.paper-ad-item.is-ad-multi .swiper-pagination-bullet-active {
	opacity: 1;
	background: #fff;
}
.message-container {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 999;
	padding: 10px 28px 10px 16px;
	border-radius: 4px;
	color: #fff;
	background: #333;
}
.message-container.error {
	background: #c0392b;
}
.message-container.success {
	background: #27ae60;
}
.message-close {
	position: absolute;
	right: 8px;
	top: 6px;
	cursor: pointer;
}
#digital-paper-config,
.macao-store {
	display: none;
}
body.macao-pc[data-page="article"] .macao-tool-zoom {
	display: none;
}
body.paper-layout-pc #digital-paper-cal-root {
	width: 100%;
	background: #fff;
}
.timelist {
	padding: 8px 8px 12px;
}
