@charset "utf-8";
/* CSS Document */

@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css");
@import url("https://fonts.googleapis.com/css2?family=Pattaya&family=Work+Sans:wght@300;400;500;600&display=swap");

/* Reset & Base */
*, *:before, *:after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background: #323030;
	color: #444;
	font-family: "Work Sans", sans-serif;
	font-size: 13pt;
	font-weight: 300;
	line-height: 1.65;
	min-width: 320px;
}

a {
	color: #a0895e;
	text-decoration: none;
}

/* FontAwesome Helper Support */
.icon, .fa {
	text-decoration: none;
}
.icon:before, .fa:before {
	display: inline-block;
	font-family: FontAwesome !important;
	font-style: normal;
	font-weight: normal;
	text-transform: none !important;
}

/* Base Buttons (精确定位，不干扰 FontAwesome) */
a.button, button.button, input.button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	padding: 0.6em 2.5em;
	border-radius: 999px;
	background-color: #ffffff;
	color: #a0895e !important;
	font-size: 1em;
	font-weight: 600;
	letter-spacing: 1px;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	line-height: 1.2;
}

a.button:hover, button.button:hover, input.button:hover {
	transform: translateY(-3px);
	background-color: #a0895e;
	color: #ffffff !important;
	border-color: #ffffff;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Header */
#header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	z-index: 10001;
	background: rgba(0, 0, 0, 0.46);
	display: flex;
	justify-content: center;
	align-items: center;
	transition: background 0.8s ease-in-out, height 0.5s ease-in-out;
}

#header .inner {
	position: relative;
	width: 35em;
	height: 35em;
	border-radius: 50%;
	background: #a0895e;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 2em;
	box-shadow: 0 0 0 1em rgba(75, 81, 85, 0.35), 0 20px 60px rgba(0, 0, 0, 0.2);
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#header .inner .content {
	transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
	opacity: 1;
	transform: scale(1);
}

#header .inner h1 {
	font-family: 'Pattaya', sans-serif;
	font-size: 3.2em;
	color: #fff;
	margin-bottom: 0.25em;
	font-weight: 300;
	line-height: 1.2;
}

#header .inner h2 {
	font-size: 1.5em;
	color: #fff;
	margin-bottom: 1em;
	font-weight: 300;
}

/* Header Action Button */
#header .button {
	margin-top: 10px;
	z-index: 2;
}

#header .button.hidden {
	display: none !important;
}

/* Header 收起/隐藏状态 */
#header.hide, #header.preview {
	background: transparent;
	height: 0;
	pointer-events: none;
}

#header.hide .inner, #header.preview .inner {
	width: 5em;
	height: 5em;
	padding: 0;
	pointer-events: auto;
	box-shadow: 0 0 0 0.5em rgba(75, 81, 85, 0.35);
}

#header.hide .inner .content, #header.preview .inner .content,
#header.hide .button:not(.hidden), #header.preview .button:not(.hidden) {
	display: none !important;
	opacity: 0;
}

#header.hide .button.hidden, #header.preview .button.hidden {
	display: flex !important;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	border-radius: 50%;
	background: transparent !important;
	border: none;
	color: #fff !important;
	font-size: 1.6em;
	box-shadow: none;
	transform: none;
}

#header.hide .button.hidden:hover, #header.preview .button.hidden:hover {
	background: rgba(255, 255, 255, 0.15) !important;
	color: #fff !important;
}

/* Main Image Grid */
#main {
	padding: 2em;
	margin-top: 2em;
}

#main .inner {
	max-width: 90%;
	margin: 0 auto;
}

.columns {
	column-count: 4;
	column-gap: 1em;
}

.columns .image {
	display: inline-block;
	width: 100%;
	margin-bottom: 0.5em;
	overflow: hidden;
	border-radius: 4px;
}

.columns .image img {
	width: 100%;
	display: block;
	border-radius: 4px;
	transition: transform 0.2s ease-in-out;
}

.columns .image:hover img {
	transform: scale(1.05);
}

/* Footer */
#footer {
	position: fixed;
	bottom: -20em;
	left: 0;
	width: 100%;
	text-align: center;
	z-index: 9999;
	color: #fff;
	transition: bottom 0.3s ease;
}

#footer.show {
	bottom: 0;
}

#footer .info {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: #a0895e;
	width: 5em;
	height: 4em;
	border-radius: 50% 50% 0 0;
	color: #fff;
	font-size: 1.3em;
	margin-bottom: -1px;
	cursor: pointer;
}

#footer .info span {
	font-size: 0.6em;
	margin-top: 2px;
}

#footer .inner {
	background: #a0895e;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 2.5em 4em;
	min-height: 18em;
}

#footer .inner .content {
	width: 65%;
	text-align: left;
	color: rgba(255, 255, 255, 0.85);
}

#footer .inner .copyright {
	width: 30%;
	text-align: right;
	color: rgba(255, 255, 255, 0.85);
}

#footer .inner h3 {
	color: #fff;
	font-size: 1.4em;
	margin-bottom: 0.5em;
	font-weight: 300;
}

#footer .inner a {
	color: #fff;
}

/* Footer Button */
#footer .inner .content .button {
	margin-top: 15px;
}

/* Social Icons Area */
ul.icons {
	list-style: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	padding-bottom: 0.8em;
	margin-bottom: 1em;
}

ul.icons li {
	display: inline-block;
	margin-right: 1em;
}

ul.icons li a {
	display: inline-block;
	font-size: 1.5em;
	color: #ffffff !important;
	transition: opacity 0.3s ease, transform 0.2s ease;
}

ul.icons li a:hover {
	opacity: 0.8;
	transform: translateY(-2px);
}

/* QR Code Modal */
.qr-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.75);
	z-index: 10005;
	justify-content: center;
	align-items: center;
}

.qr-content {
	position: relative;
	background: #fff;
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.qr-content img {
	width: 240px;
	height: auto;
	display: block;
	border-radius: 6px;
}

.close {
	position: absolute;
	top: 6px;
	right: 12px;
	font-size: 26px;
	color: #333;
	cursor: pointer;
}

.close:hover {
	color: #a0895e;
}

/* 小屏响应式布局 (<= 738px) */
@media screen and (max-width: 738px) {
	body {
		display: flex;
		flex-direction: column;
	}

	#footer {
		position: relative;
		bottom: 0;
		order: 1;
	}

	#footer .inner {
		flex-direction: column;
		padding: 2em;
		min-height: auto;
	}

	#footer .inner .content,
	#footer .inner .copyright {
		width: 100%;
		text-align: center;
		padding: 0.5em 0;
	}

	#footer .info {
		display: none;
	}

	#main {
		order: 2;
		margin-top: 0;
		padding: 1em;
	}

	/* 小屏强制单列显示图片 */
	.columns {
		column-count: 1;
	}

	#header .inner {
		width: 22em;
		height: 22em;
		font-size: 0.75em;
	}
}