:root {
	--max: 1120px;
	--muted: #6b7280;
	--border: #e5e7eb;
	--brand: #111;
}

* {
	box-sizing: border-box
}

html {
	font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
	line-height: 1.6
}

body {
	margin: 0;
	background: #fff;
	color: #111
}

.container {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 16px
}

header {
	position: sticky;
	top: 0;
	background: rgba(255, 255, 255, .85);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--border);
	z-index: 10
}

.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 64px
}



nav a {
	color: #111;
	text-decoration: none;
	margin-right: 16px
}

nav a:hover {
	text-decoration: underline
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 10px 14px;
	background: #fff;
	text-decoration: none;
	color: #111
}

.btn:hover {
	background: #6b7280;
}

.btn-primary {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff
}


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

h2 {
	font-size: 22px;
	margin: 24px 0 12px
}

h3 {
	font-size: 18px;
	margin: 12px 0 6px
}

.muted {
	color: var(--muted)
}

.card {
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 16px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .03)
}

.grid {
	display: grid;
	gap: 16px
}

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

.grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr))
}

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

@media (max-width: 1024px) {
	.grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr))
	}
}

@media (max-width: 768px) {

	.grid-2,
	.grid-3,
	.grid-4 {
		grid-template-columns: 1fr
	}

	.header-inner{
		display: block;
		margin-top: 15px;
		line-height: 30px;
	}

	.header-inner .btn{
		float: right;
		padding: 2px 7px;
		margin-top: -64px;
	}

	.hero{
		overflow: visible !important;
	}
}

.hero {
	position: relative;
	overflow: hidden;
	margin: 24px 0
}

.hero-bg {
	background: linear-gradient(135deg, #e0f2fe, #e9d5ff);
	height: 330px;
	border: 1px solid var(--border);
	border-radius: 16px
}

footer {
	border-top: 1px solid var(--border);
	margin-top: 40px;
	padding: 24px 0
}

.breadcrumbs {
	font-size: 14px;
	color: var(--muted);
	margin-top: 8px
}

.breadcrumbs a {
	color: var(--muted)
}

input[type="search"] {
	width: 88%;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: 10px
}

table {
	border-collapse: collapse;
	width: 100%
}

th,
td {
	border: 1px solid var(--border);
	padding: 8px;
	text-align: left
}

figure {
	margin: 0
}

img {
	max-width: 100%;
	display: block;
	border-radius: 12px
}

.small {
	font-size: 12px
}

.bottomnav {
	color: #111;
	text-decoration: none
}

#clickSearch{
	cursor: pointer;
}
#loadMore{
	cursor: pointer;
}

/* 着落页的适配 */
/* ---- 斗地主着陆页专用：按钮区域基础布局 ---- */
.ddz-header .header-actions-ddz {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;        /* 宽度不够时，按钮自己换行 */
}

/* ---- 手机端（只影响 ddz-header） ---- */
@media (max-width: 970px) {

	/* 覆盖全局 .header-inner 的手机端写法，只针对 ddz-header */
	.ddz-header .header-inner {
		display: flex;
		flex-wrap: wrap;     /* header 整体允许换行 */
		align-items: flex-start;
		justify-content: space-between;
		height: auto;
		margin-top: 8px;
		line-height: 1.4;

   padding-bottom: 8px;
  
	}

	/* logo 单独占一行 */
	.ddz-header .logo {
		flex: 0 0 100%;
		margin-bottom: 4px;
		display: block;
	}

	/* 导航变成可换行的横向菜单 */
	.ddz-header nav {
		flex: 1 1 auto;
		display: flex;
		flex-wrap: wrap;
		gap: 4px 12px;
		font-size: 14px;
		margin-bottom: 4px;
	}

	/* 三个按钮区域：单独占一行，内部允许换行 */
	.ddz-header .header-actions-ddz {
		flex: 0 0 100%;
		display: flex;
		flex-wrap: wrap;       /* 关键：按钮内部换行 */
		justify-content: flex-start;
		gap: 6px;
	}

	/* 按钮在手机端稍微瘦一点，更美观 */
	.ddz-header .header-actions-ddz .btn {
		float: none;           /* 覆盖全局 .header-inner .btn 的 float */
		margin-top: 0;         /* 清掉原来的 -64px 影响 */
		padding: 4px 10px;
		font-size: 13px;
		border-radius: 8px;
	}

	/* 你原来给 hero 的那条继续保留 */
	.hero {
		overflow: visible !important;
	}
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;     /* 不够宽时换行 */
  gap: 8px;            /* 行/列之间都留 8px 间距 */
  margin-top: 16px;    /* 按钮整体和上一行文案拉开一点 */
}
