body {
	padding: 2rem;
	font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
}

h1 {
	font-size: 16px;
	margin-top: 0;
}

p {
	font-size: 15px;
	margin-bottom: 10px;
	margin-top: 5px;
}

.card {
	max-width: 620px;
	margin: 0 auto;
	padding: 16px;
	border: 1px solid lightgray;
	border-radius: 16px;
}

.card p:last-child {
	margin-bottom: 0;
}

/* 首页广告样式 */
.ad-float {
	position: fixed;
	width: 180px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(0,0,0,0.12);
	z-index: 9998;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e5e7eb;
}
.ad-float-left {
	left: 24px;
	bottom: 180px;
}
.ad-float-right {
	right: 24px;
	bottom: 180px;
}
.ad-popup {
	background: #fff !important;
	box-shadow: 0 8px 32px rgba(0,0,0,0.18);
	border-radius: 16px;
	border: none;
	position: fixed;
	left: 50%;
	top: 50%;
	width: 700px;
	max-width: 95vw;
	z-index: 10000;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	overflow: visible !important;
}
.ad-popup-inner {
	position: relative;
	height: 100%;
	width: 100%;
	display: flex;
	flex-direction: column;
}
.ad-close-btn {
	display: none !important;
}
@media (max-width: 900px) {
	.ad-float,
	.ad-float-left,
	.ad-float-right {
		display: none !important;
	}
	.ad-popup {
		width: 96vw !important;
		min-width: 0 !important;
		max-width: 98vw !important;
		left: 50% !important;
		right: auto !important;
		transform: translate(-50%, -50%) !important;
		border-radius: 10px !important;
		padding: 0 !important;
	}
	.ad-popup .ad-content {
		padding: 16px 8px 0 8px !important;
	}
}

/* 广告Mac风格顶部条 */
.ad-mac-bar {
	width: 100%;
	height: 32px !important;
	background: linear-gradient(90deg, #0056B3 60%, #003D82 100%);
	border-top-left-radius: 16px;
	border-top-right-radius: 16px;
	display: flex;
	align-items: center;
	padding-left: 16px;
	gap: 8px;
}
.ad-mac-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: inline-block;
	margin-right: 4px;
}
.ad-mac-dot-red { background: #ff5f56; }
.ad-mac-dot-yellow { background: #ffbd2e; }
.ad-mac-dot-green { background: #27c93f; }

.ad-img-bottom-radius {
	border-top-left-radius: 0 !important;
	border-top-right-radius: 0 !important;
	border-bottom-left-radius: 12px !important;
	border-bottom-right-radius: 12px !important;
}

/* 左右广告图片无圆角 */
.ad-float .ad-content img {
	border-radius: 0 !important;
}

/* 弹窗广告图片底部圆角 */
.ad-popup .ad-content img,
.ad-img-bottom-radius {
	border-top-left-radius: 0 !important;
	border-top-right-radius: 0 !important;
	border-bottom-left-radius: 12px !important;
	border-bottom-right-radius: 12px !important;
}

/* .ad-popup, .ad-popup * {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
} */
.ad-popup .ad-content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 20px 24px 0 24px;
	box-sizing: border-box;
}
.ad-popup .ad-content img,
.ad-img-bottom-radius {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto !important;
	height: auto !important;
	margin: 0 auto;
	border-top-left-radius: 0 !important;
	border-top-right-radius: 0 !important;
	border-bottom-left-radius: 12px !important;
	border-bottom-right-radius: 12px !important;
}
.ad-popup-close-btn {
    position: absolute;
    left: 50%;
    top: -48px;
    transform: translateX(-50%);
    background: rgba(21,21,21,0.38) !important;
    color: #fff !important;
    font-size: 32px !important;
    border: none !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    line-height: 48px !important;
    text-align: center !important;
    cursor: pointer !important;
    z-index: 99999 !important;
    transition: background 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.ad-popup-close-btn:hover {
    background: rgba(51,51,51,0.7) !important;
}

/* 公告内容左对齐，首行缩进，自适应高度，底部边距10px */
.ad-popup .ad-content .popup-announcement-text {
	color: #222;
	font-weight: bold;
	font-size: 1.0rem;
	text-align: left;
	line-height: 1.7;
	padding-bottom: 30px;
	margin-bottom: 0;
	box-sizing: border-box;
	width: 100%;
	word-break: break-all;
	flex-shrink: 0;
}

@media (max-width: 768px) {
  .flex.flex-col.md\:flex-row.md\:space-x-4.w-full.md\:w-auto > button {
    margin-bottom: 16px !important;
    margin-top: 0 !important;
  }
  .flex.flex-col.md\:flex-row.md\:space-x-4.w-full.md\:w-auto > button:last-child {
    margin-bottom: 0 !important;
  }
}