@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/pages/fonts/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/pages/fonts/inter-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/pages/fonts/inter-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/pages/fonts/inter-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/pages/fonts/sourcesans-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/pages/fonts/sourcesans-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/pages/fonts/sourcesans-700.woff2') format('woff2');
}

html {
  /* 让灵动岛/status bar 区域（viewport-fit=cover 延伸部分）跟随主题色，不显示浏览器默认黑色 */
  background-color: var(--mg-c-bg);
  transition: background-color 0.4s ease, color 0.4s ease;
}
body {
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  background-color: var(--mg-c-bg);
}
.item {
  transition: background-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.head {
	position: sticky;
	top: 0;
	left: 0;
	width: 100%;
	margin: 0;
	height: var(--mg-s-head-height);
	padding-left: 24px;
	padding-right: 12px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	background-color: rgba(255, 255, 255, 0.2);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	backdrop-filter: blur(20px) saturate(180%);
	box-sizing: border-box;
	z-index: 100;
}
html.dark-theme .head {
	background-color: rgba(20, 20, 22, 0.25);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
:root {
	--mg-rc-base: 255, 255, 255;
	--mg-rc-invert: 0, 0, 0;
	--mg-c-bg: #fff;
	--mg-c-bg-weak: #f9f9f9;
	--mg-c-bg-mute: #f1f1f1;
	--mg-f-sys-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--mg-f-sys-serif: Georgia, Palatino, "Times New Roman", Times;
	--mg-f-cjk: "PingFang SC", "Hiragino Sans GB", "Droid Sans Fallback", "Microsoft YaHei";
	--mg-f-mono: Menlo, Monaco, Consolas, "Courier New", monospace;
	--mg-f-base: var(--mg-f-sys-sans), var(--mg-f-cjk), sans-serif;
	--mg-f-text: "Inter", var(--mg-f-base);
	--mg-f-heading: var(--mg-f-base);
	--mg-rc-accent: var(--t-rc-primary);
	--mg-rc-accent-text: var(--t-on-primary);
	--mg-s-head-offset: 0px;
	--mg-s-head-height: 55px;
	--mg-c-head-bg: var(--mg-c-bg);
	--mg-c-head-text: var(--mg-c-text);
	--mg-c-foot-bg: #000;
	--mg-c-foot-text: #fff;
	--mg-c-codespan: rgb(255, 248, 197)
}

html.dark-theme {
	--mg-rc-base: 0, 0, 0;
	--mg-rc-invert: 255, 255, 255;
	--mg-c-bg: #2a2b2d;
	--mg-c-bg-weak: #3a3a3a;
	--mg-c-bg-mute: #444;
	--mg-rc-accent: var(--t-rc-secondary);
	--mg-rc-accent-text: var(--t-on-secondary);
	--mg-c-codespan: rgb(255, 248, 197, .15)
}

:root {
	--mg-c-text: rgba(var(--mg-rc-invert), .82);
	--mg-c-text-light: rgba(var(--mg-rc-invert), .58);
	--mg-c-text-strong: rgba(var(--mg-rc-invert), .94);
	--mg-c-text-mute: rgba(var(--mg-rc-invert), .2);
	--mg-c-divider: rgba(var(--mg-rc-invert), .08);
	--mg-c-divider-light: rgba(var(--mg-rc-invert), .04);
	--mg-c-accent: rgb(var(--mg-rc-accent));
	--tc-c-primary: var(--mg-c-accent);
	--tc-c-link: var(--mg-c-accent)
}

.yue {
	--yue-f-base: var(--mg-f-base);
	--yue-f-quote: var(--mg-f-base);
	--yue-f-heading: var(--mg-f-heading);
	--yue-f-mono: var(--mg-f-mono);
	--yue-c-strong: var(--mg-c-text-strong);
	--yue-c-light: var(--mg-c-text-light);
	--yue-c-accent: var(--mg-c-accent);
	--yue-c-tr: rgba(var(--mg-rc-invert), .6);
	--yue-c-divider: var(--mg-c-divider);
	--yue-c-bc: var(--mg-c-text);
	--yue-c-bc-bg: rgba(0, 0, 0, .03);
	--yue-c-bc-gutter: #f0f0f0
}

html.dark-theme .yue {
	--yue-c-bc-bg: rgba(0, 0, 0, .5);
	--yue-c-bc-gutter: rgba(0, 0, 0, .4)
}

ul.links,ul.links ul {
	list-style-type: none;
	padding: 0;
	margin: 0
}


.head svg {
	fill: currentColor
}

.head_wrap {
	margin: 0 auto;
	max-width: 1200px;
	box-sizing: border-box;
	height: 100%;
	display: flex;
	align-items: center
}

.head_inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	height: 100%
}

.head_logo {
	flex-shrink: 0
}

.head_logo>a {
	display: flex;
	align-items: center;
	height: calc(var(--mg-s-head-height) - 1px);
	text-decoration: none;
	color: var(--mg-c-text);
	font-size: 16px;
	font-weight: 900;
	font-family: var(--mg-f-sys-sans),sans-serif
}

.head_logo img {
	height: calc(var(--mg-s-head-height) - 20px)
}

.head_logo img+span {
	margin-left: 10px;
	text-transform: uppercase
}

.head_actions {
	display: flex
}

.head_actions .theme-toggle {
	display: flex;
	align-items: center;
	margin: 0 10px
}

.head_actions button,.head_links .link_title {
	display: flex;
	align-items: center;
	border: none;
	background: 0 0;
	cursor: pointer
}

.head_actions button {
	color: var(--mg-c-text-light)
}

.head_actions button:hover {
	color: var(--mg-c-text-strong)
}

.head_links .link_title {
	justify-content: space-between;
	width: 100%;
	padding: 6px 0;
	text-decoration: none;
	font-weight: 500;
	color: var(--mg-c-text);
	box-sizing: border-box;
	height: var(--mg-s-head-height);
	border-bottom: 1px solid transparent
}

.head_links {
	display: none;
	position: fixed;
	top: calc(var(--mg-s-head-offset) + var(--mg-s-head-height));
	right: 0;
	bottom: 0;
	left: 0;
	padding: 0 32px;
	width: 100%;
	box-sizing: border-box;
	background-color: var(--mg-c-bg);
	z-index: 90
}

.head_links._expanded {
	display: block;
	overflow-y: auto
}

.head_links>nav {
	max-width: 420px;
	padding: 20px 0;
	margin-left: auto;
	margin-right: auto
}

.head_links .links>li {
	border-bottom: 1px solid var(--mg-c-divider-light)
}

.head_links .link_title>svg {
	width: 14px;
	height: 14px
}

.head_links .link_title>.icon {
	font-size: 14px
}

.head_links .link>ul {
	height: 0;
	visibility: hidden
}

.head_links .link>ul._expanded {
	height: auto;
	visibility: visible;
	padding-bottom: 15px
}

.head_links .link>ul a {
	display: block;
	font-size: 14px;
	line-height: 1.42;
	font-weight: 600;
	color: var(--mg-c-text);
	transition: color .25s;
	padding: .5em .8em;
	margin-bottom: .1em;
	text-decoration: none;
	white-space: nowrap;
	border-radius: 4px;
	transition: background-color .1s ease
}

.head_links a:hover {
	color: var(--mg-c-accent)
}

.head_links .link>ul a:hover {
	color: var(--mg-c-accent);
	background-color: rgba(var(--mg-rc-accent),.1)
}

body[data-expanded-HeadNav] {
	overflow: hidden
}


@media(min-width:840px) {
	.head_links { background-color: transparent; }

	body[data-expanded-HeadNav] {
		overflow: initial
	}

	.head_actions button.head_menu {
		display: none
	}

	.head_links {
		height: calc(var(--mg-s-head-height) - 1px)
	}

	.head_links,.head_links._expanded {
		display: flex;
		position: relative;
		top: 0;
		justify-content: space-between;
		overflow-y: inherit;
		padding-right: 6px
	}

	.head_links>nav {
		padding: 0;
		margin: 0
	}

	.head_links li.button {
		margin-left: 8px;
		margin-right: 6px;
		margin-top: calc((var(--mg-s-head-height) - 32px)/2)
	}

	.head_links .button>.link_title {
		font-size: 14px;
		padding: 4px 18px;
		height: 32px;
		border-radius: 32px;
		box-sizing: border-box;
		color: var(--mg-c-head-button);
		background-color: var(--mg-c-head-button-bg)
	}

	.head_links .button>.link_title:hover {
		opacity: .8
	}

	.head_links .links {
		display: flex
	}

	.head_links .links>li {
		position: relative;
		border: 0;
		height: calc(var(--mg-s-head-height) - 1px);
		z-index: 9
	}

	.head_links .link_title {
		padding: 0 10px
	}

	.head_links .link_title>svg,.head_links .link_title>.icon {
		margin: 2px 0 0 2px
	}

	.head_links .link>ul {
		position: absolute;
		display: none;
		height: auto;
		visibility: visible;
		background-color: var(--mg-c-bg);
		top: calc(var(--mg-s-head-offset) + var(--mg-s-head-height));
		margin-left: -15px;
		padding: 15px;
		border-radius: 6px;
		box-shadow: 0 12px 32px rgba(var(--mg-rc-invert),.1),0 2px 6px rgba(var(--mg-rc-invert),.08);
		z-index: 9
	}

	html.dark-theme .head_links .link>ul {
		box-shadow: none;
		border: 1px solid rgba(var(--mg-rc-invert),.1)
	}

	.head_links .link:hover>ul {
		display: block
	}

	.head_links .link>ul:before {
		content: "";
		position: absolute;
		left: 45px;
		border-width: 5px;
		border-style: solid;
		border-color: transparent transparent var(--mg-c-bg) transparent;
		top: -10px
	}
}

.theme-toggle {
	position: relative
}

.theme-toggle>input {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
	word-wrap: normal
}

.theme-toggle>label {
	position: relative;
	display: block;
	width: 40px;
	height: 22px;
	border-radius: 12px;
	flex-shrink: 0;
	background-color: rgba(var(--mg-rc-invert),.1);
	cursor: pointer
}

.theme-toggle input:focus+label {
    outline: none;
}

.theme-toggle_handle {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	border-radius: 18px;
	background-color: rgba(var(--mg-rc-base),.86)
}

.theme-toggle input:checked+label .theme-toggle_handle {
	transform: translate(18px)
}

.theme-toggle svg {
	position: absolute;
	fill: currentColor;
	top: 5px;
	width: 12px;
	height: 12px;
	z-index: 2;
	transition: color .15s linear
}

.theme-toggle .sun {
	left: 5px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round
}

.theme-toggle .moon {
	right: 5px
}

.hamburger {
	position: relative;
	display: inline-block;
	width: 16px;
	height: 14px;
	overflow: hidden
}

.hamburger>span {
	position: absolute;
	width: 16px;
	height: 2px;
	background-color: var(--mg-c-text);
	transition: top .25s,transform .25s
}

.hamburger_1 {
	top: 0;
	left: 0;
	transform: translate(0)
}

.hamburger_2 {
	top: 6px;
	left: 0;
	transform: translate(8px)
}

.hamburger_3 {
	top: 12px;
	left: 0;
	transform: translate(4px)
}

button[aria-expanded=true] .hamburger_1 {
	top: 6px;
	transform: translate(0) rotate(225deg)
}

button[aria-expanded=true] .hamburger_2 {
	top: 6px;
	transform: translate(18px)
}

button[aria-expanded=true] .hamburger_3 {
	top: 6px;
	transform: translate(0) rotate(135deg)
}

:root {
	--en-sans: "Helvetica Neue", "Helvetica", Aria;
	--sys-sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue";
	--cjk-sans: "PingFang SC", "Hiragino Sans GB", "Droid Sans Fallback", "Microsoft YaHei"
}

body {
	font: normal 16px/1.42 var(--mg-f-base);
	color: var(--mg-c-text);
	background-color: var(--mg-c-bg)
}

a {
	color: rgb(var(--mg-rc-accent))
}

.inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5em;
	box-sizing: border-box
}

.main {
	padding: 1em 0 2em;
	font-family: var(--mg-f-text)
}

.navigation a {
	text-decoration: none
}

.navigation {
	display: flex;
	margin: 2em 0;
	justify-content: space-between
}

.powered-by {
	font-size: 14px;
	padding: 12px 24px;
	border-top: 1px solid var(--mg-c-divider-light);
	text-align: center
}

.powered-by>div {
	margin: 0 auto;
	max-width: 1200px;
	box-sizing: border-box
}

.powered-by,.powered-by a {
	color: var(--mg-c-text-mute)
}

.h-entry {
	position: relative;
	padding-top: 15px;
	padding-bottom: 20px
}

h1.p-name {
	font-size: 1.8em;
	margin: 0 0 .1em;
	letter-spacing: .02em;
	line-height: 1.1
}

h1.p-name a {
	text-decoration: none
}

h2.p-summary {
	color: var(--mg-c-text-light);
	font-size: 1.42em;
	font-weight: 300
}

.e-content {
	line-height: 1.64;
	margin-top: 2em
}

.item {
	position: relative;
	padding: 30px 0
}

.h-entry+.item,.item+.item {
	border-top: 1px solid var(--mg-c-divider)
}

.item a {
	text-decoration: none
}

.item h2 {
	margin: 0 0 .6em
}

.item h2>a:after {
	content: "\2192";
	color: rgb(var(--mg-rc-accent));
	opacity: 0;
	transition: all .2s ease
}

.item h2>a:hover:after {
	opacity: 1;
	margin-left: 10px
}
.yue {
	font-family: var(--yue-f-base)
}

.yue h1,.yue h2 {
	font-family: var(--yue-f-heading);
	color: var(--yue-c-strong)
}

.yue h1 {
	font-weight: 700;
	font-size: 1.8em;
	margin: 0 0 3em
}

.yue h2 {
	font-weight: 700;
	font-size: 1.42em;
	margin-top: 1.42em;
	margin-bottom: .4em
}

.yue p {
	margin-top: 0;
	margin-bottom: 1.12em;
	hyphens: auto
}

.yue h1 a,.yue h2 a {
	text-decoration: none
}

.yue i {
	font-style: normal;
	color: var(--yue-c-strong)
}

.yue a img {
	border: none;
	vertical-align: middle
}

.yue a {
	color: var(--yue-c-accent);
	text-decoration: none
}

.yue a:hover {
	text-decoration: underline
}

.yue ul {
	margin: 0 0 24px 6px;
	padding-left: 16px
}

.yue li {
	margin-bottom: .2em
}

.yue li ul {
	margin-top: 0;
	margin-bottom: 0
}

.yue li p {
	margin: .4em 0 .6em
}

:root {
	--admonition-bg-opacity: .03;
	--admonition-head-opacity: .08
}

html.dark-theme {
	--admonition-bg-opacity: .1;
	--admonition-head-opacity: .3
}

:root {
	--syntax-default: #24292f;
	--syntax-meta: #d4d4d4;
	--syntax-comment: #6e7781;
	--syntax-constant: #0550ae;
	--syntax-entity: #268bd2;
	--syntax-property: #8250df;
	--syntax-definition: #24292f;
	--syntax-tag: #085;
	--syntax-builtin: #b58900;
	--syntax-keyword: #cf222e;
	--syntax-exception: #e6212e;
	--syntax-string: #0a3069;
	--syntax-regexp: #e40;
	--syntax-variable: #a4480f;
	--syntax-invalid-illegal-text: #f6f8fa;
	--syntax-invalid-illegal-bg: #82071e;
	--syntax-markup-heading: #0550ae;
	--syntax-markup-italic: #24292f;
	--syntax-markup-bold: #24292f;
	--syntax-markup-deleted-text: #82071e;
	--syntax-markup-deleted-bg: #FFEBE9;
	--syntax-markup-inserted-text: #116329;
	--syntax-markup-inserted-bg: #dafbe1;
	--syntax-markup-changed-text: #953800;
	--syntax-markup-changed-bg: #ffd8b5;
	--syntax-markup-ignored-text: #eaeef2;
	--syntax-markup-ignored-bg: #0550ae;
	--syntax-meta-diff-range: #8250df;
	--syntax-attention-bg: #fff8c5
}

html.dark-theme {
	--syntax-default: #c9d1d9;
	--syntax-meta: #6e7781;
	--syntax-comment: #8b949e;
	--syntax-constant: #79c0ff;
	--syntax-entity: #47b0fa;
	--syntax-property: #d2a8ff;
	--syntax-definition: #c9d1d9;
	--syntax-tag: #7ee787;
	--syntax-builtin: #ffd34c;
	--syntax-keyword: #ff7b72;
	--syntax-exception: #da473c;
	--syntax-string: #a5d6ff;
	--syntax-regexp: #ef954e;
	--syntax-variable: #ffa657;
	--syntax-invalid-illegal-text: #f0f6fc;
	--syntax-invalid-illegal-bg: #8e1519;
	--syntax-markup-heading: #1f6feb;
	--syntax-markup-italic: #c9d1d9;
	--syntax-markup-bold: #c9d1d9;
	--syntax-markup-deleted-text: #ffdcd7;
	--syntax-markup-deleted-bg: #67060c;
	--syntax-markup-inserted-text: #aff5b4;
	--syntax-markup-inserted-bg: #033a16;
	--syntax-markup-changed-text: #ffdfb6;
	--syntax-markup-changed-bg: #5a1e02;
	--syntax-markup-ignored-text: #c9d1d9;
	--syntax-markup-ignored-bg: #1158c7;
	--syntax-meta-diff-range: #d2a8ff;
	--syntax-attention-bg: rgba(255, 248, 197, .18)
}
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%
}

body {
	margin: 0
}

main {
	display: block
}

h1 {
	font-size: 2em;
	margin: .67em 0
}

a {
	background-color: transparent
}

img {
	border-style: none
}

button,input {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0
}

button,input {
	overflow: visible
}

button {
	text-transform: none
}

button,[type=button] {
	-webkit-appearance: button;
	appearance: button
}

button::-moz-focus-inner,[type=button]::-moz-focus-inner {
	border-style: none;
	padding: 0
}

button:-moz-focusring,[type=button]:-moz-focusring {
	outline: 1px dotted ButtonText
}[type=checkbox] {
	box-sizing: border-box;
	padding: 0
}[type=search] {
	-webkit-appearance: textfield;
	appearance: textfield;
	outline-offset: -2px
}[type=search]::-webkit-search-decoration {
	-webkit-appearance: none
}

::-webkit-file-upload-button {
	-webkit-appearance: button;
	appearance: button;
	font: inherit
}

@font-face {
	font-family:twemoji country flags;unicode-range:U+1F1E6-1F1FF,U+1F3F4,U+E0062-E0063,U+E0065,U+E0067,U+E006C,U+E006E,U+E0073-E0074,U+E0077,U+E007F;src:url(https://s3.typlog.com/npm/country-flag-emoji-polyfill@0.1/dist/TwemojiCountryFlags.woff2) format("woff2")
}

:root {
	--t-rc-light: 255, 255, 255;
	--t-rc-dark: 0, 0, 0;
	--t-c-divider: rgba(0, 0, 0, .1)
}

:root {
	--tc-c-input-bg: #fff;
	--default-text-rgb: 0, 0, 0
}

html.dark-theme {
	--default-text-rgb: 255, 255, 255;
	--tc-c-input-bg: transparent;
	--tc-c-meta: rgba(255, 255, 255, .6);
	--tc-c-divider: rgba(255, 255, 255, .1);
	--tc-c-input-border: rgba(255, 255, 255, .4);
	--tc-c-quote-bg: rgba(255, 255, 255, .05);
	--tc-c-source: rgba(255, 255, 255, .6);
	--tc-c-source-bg: rgba(255, 255, 255, .1);
	--tc-c-badge-bg: #343333
}

body {
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale
}

img {
	max-width: 100%;
	vertical-align: middle;
	height: auto
}

@keyframes overlay-scale {
	0% {
		transform: scale(.8)
	}

	50% {
		transform: scale(1.1)
	}

	to {
		transform: scale(1)
	}
}

.photo {
	margin: 1.64em auto;
	text-align: center;
	max-width: 1200px;
	box-sizing: border-box
}

.photo img {
	cursor: pointer
}

.e-content .schema a {
	text-decoration: none;
	border: 0
}

.schema {
	background-color: rgba(var(--default-text-rgb),.04);
	border-radius: 8px
}

.icon {
	mask: var(--icon-url) no-repeat;
	mask-size: 100% 100%;
	-webkit-mask: var(--icon-url) no-repeat;
	-webkit-mask-size: 100% 100%;
	width: 1em;
	height: 1em;
	display: inline-block;
	vertical-align: middle;
	font-style: normal;
	background-color: currentColor
}

/* Extracted Item Container Component */

.item-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 0;
  margin-top: 20px;
}
.item {
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.03);
  padding: 16px;
  border-radius: 16px; 
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}
.item.no-border-top {
  border-top: 1px solid rgba(0,0,0,0.03);
}
html.dark-theme .item, html.dark-theme .item.no-border-top {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.08);
}
html.dark-theme .item:hover {
  box-shadow: 0 16px 32px rgba(0,0,0,0.4), 0 0 20px rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
}
.item .image-container {
  position: relative;
  width: 100%;
  margin-bottom: 14px;
}

.item .image-container img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.item .image-container .click-area {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 70%;
  height: 70%;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.item:hover .image-container .click-area {
  /* 移除悬停背景色，避免在图片中间显示 70% 范围的背景 */
}

html.dark-theme .item:hover .image-container .click-area {
  /* 移除悬停背景色，避免在图片中间显示 70% 范围的背景 */
}

.item:hover .image-container img {
  transform: scale(1.04);
}
.item .text-1 {
  font-size: 12px;
  opacity: 0.55;
  margin: auto 0 4px 0;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.item .text-2 {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.95;
  margin: 0;
  letter-spacing: 0.3px;
}
@media screen and (max-width: 600px) {
  .item-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }
  .item {
    padding: 10px;
    border-radius: 12px;
    min-width: 0;
  }
  .item .text-1 {
    font-size: 11px !important;
  }
  .item .text-2 {
    font-size: 13px !important;
  }
}

/* ================= Mobile Menu Fixes ================= */
/* 手机端菜单面板：top 必须跟 header 的实际高度一致（包含 safe area），才能占满剩余屏幕 */
/* 手机端菜单面板：明确指定高度和 top，不依赖 bottom+auto 的自动拉伸（部分浏览器不可靠） */
@media (max-width: 839px) {
    .head_links {
        top: var(--mg-s-head-height) !important;
        height: calc(100dvh - var(--mg-s-head-height)) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
    }
    /* 猫猫彩蛋 */
    .head_links._expanded {
        padding-bottom: 100px !important;
    }
    .head_links._expanded::after {
        content: '🐈';
        position: absolute;
        bottom: max(40px, env(safe-area-inset-bottom));
        left: 50%;
        transform: translateX(-50%);
        font-size: 26px;
        opacity: 0.85;
        pointer-events: none;
        animation: cat-breathe 3s ease-in-out infinite;
    }
    @keyframes cat-breathe {
        0%, 100% { transform: translate(-50%, 0); }
        50% { transform: translate(-50%, -8px); }
    }
}
