/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
	--primary-color: #e63946;
	--primary-hover: #d62828;
	--bg-dark: #121212;
	--bg-darker: #0a0a0a;
	--text-light: #ffffff;
	--text-muted: #cccccc;
	--font-heading: "Montserrat", sans-serif;
	--font-body: "Inter", sans-serif;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background-color: var(--bg-dark);
	color: var(--text-light);
	font-family: var(--font-body);
	line-height: 1.6;
	scroll-behavior: smooth;
	overflow-x: hidden;
}

h1,
h2,
h3,
.logo-text,
.btn {
	font-family: var(--font-heading);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem 5%;
	background-color: rgba(0, 0, 0, 0.95);
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo-container {
	display: flex;
	align-items: center;
	text-decoration: none;
	gap: 10px;
}

.logo-text {
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: 2px;
	color: var(--primary-color);
}

.logo-img {
	height: 40px;
	width: auto;
	display: block;
}

nav ul {
	list-style: none;
	display: flex;
	gap: 2rem;
	align-items: center;
}

nav a {
	color: var(--text-light);
	text-decoration: none;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 500;
	transition: color 0.3s ease;
}

nav a:hover {
	color: var(--primary-color);
}

.btn-order {
	background-color: var(--primary-color);
	padding: 10px 20px;
	border-radius: 4px;
	transition:
		background-color 0.3s ease,
		transform 0.3s ease;
}

.btn-order:hover {
	background-color: var(--primary-hover);
	color: var(--text-light) !important;
	transform: translateY(-2px);
}

.menu-toggle {
	display: none;
	flex-direction: column;
	cursor: pointer;
	gap: 5px;
}
.menu-toggle .bar {
	width: 25px;
	height: 3px;
	background-color: var(--text-light);
	transition: all 0.3s ease-in-out;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
	position: relative;
	height: 75vh;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	overflow: hidden;
}
.slider-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}
.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1.5s ease-in-out;
}
.slide.active {
	opacity: 1;
}
.hero-content {
	z-index: 1;
	padding: 0 20px;
}
.hero h1 {
	font-size: 4.5rem;
	margin-bottom: 1rem;
	letter-spacing: 4px;
	font-weight: 700;
	text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}
.hero p {
	font-size: 1.1rem;
	margin-bottom: 2.5rem;
	color: var(--text-muted);
	max-width: 650px;
	margin-left: auto;
	margin-right: auto;
}

.btn {
	padding: 14px 40px;
	background-color: var(--primary-color);
	color: white;
	text-decoration: none;
	border-radius: 3px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	display: inline-block;
	transition: all 0.3s ease;
}
.btn:hover {
	background-color: var(--primary-hover);
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Shared & Layout Components
   ========================================================================== */
.section-title {
	font-size: 2.5rem;
	margin-bottom: 3.5rem;
	letter-spacing: 2px;
	text-align: center;
	font-weight: 600;
}
.section-title::after {
	content: "";
	display: block;
	width: 60px;
	height: 3px;
	background-color: var(--primary-color);
	margin: 15px auto 0;
}

.about-us,
.gallery,
.contact {
	padding: 6rem 5%;
}
.gallery {
	background-color: var(--bg-darker);
}
.about-container,
.contact-container {
	display: flex;
	flex-wrap: wrap;
	gap: 4rem;
	max-width: 1200px;
	margin: 0 auto;
	align-items: center;
}
.about-text,
.about-image,
.contact-info,
.map-container {
	flex: 1;
	min-width: 300px;
}
.about-text h3,
.contact-info h3 {
	font-size: 1.8rem;
	margin-bottom: 1.5rem;
	color: var(--primary-color);
}
.about-text p {
	color: var(--text-muted);
	margin-bottom: 1.5rem;
	font-size: 1.05rem;
}
.about-image img {
	width: 100%;
	border-radius: 5px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Gallery Grid */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 1.5rem;
	max-width: 1200px;
	margin: 0 auto;
}
.gallery-item {
	overflow: hidden;
	border-radius: 5px;
	cursor: pointer;
	position: relative;
}
.gallery-item img {
	width: 100%;
	height: 350px;
	object-fit: cover;
	display: block;
	transition:
		transform 0.5s ease,
		filter 0.5s ease;
}
.gallery-item:hover img {
	transform: scale(1.08);
	filter: brightness(0.7);
}

/* Contact Info */
.info-block {
	margin-bottom: 2rem;
}
.info-block strong {
	display: block;
	color: var(--text-light);
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
	font-weight: 600;
}
.info-block p,
.info-block li {
	color: var(--text-muted);
}
.info-block ul {
	list-style: none;
}
.info-block a {
	color: var(--text-muted);
	text-decoration: none;
	transition: color 0.3s;
}
.info-block a:hover {
	color: var(--primary-color);
}
.map-container iframe {
	width: 100%;
	height: 100%;
	min-height: 400px;
	border: 0;
	border-radius: 5px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Lightbox & ScrollBtn */
.lightbox {
	display: none;
	position: fixed;
	z-index: 2000;
	padding-top: 60px;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.95);
}
.lightbox-content {
	margin: auto;
	display: block;
	max-width: 90%;
	max-height: 85vh;
	border-radius: 5px;
	animation: zoomIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}
.close-btn {
	position: absolute;
	top: 20px;
	right: 40px;
	color: #f1f1f1;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
	transition: color 0.3s;
}
.close-btn:hover {
	color: var(--primary-color);
}
@keyframes zoomIn {
	from {
		transform: scale(0.9);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

#scrollTopBtn {
	display: none;
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 999;
	background-color: var(--primary-color);
	color: white;
	border: none;
	cursor: pointer;
	padding: 15px;
	border-radius: 50%;
	font-size: 18px;
	width: 50px;
	height: 50px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
	transition: 0.3s;
}
#scrollTopBtn:hover {
	background-color: var(--primary-hover);
	transform: translateY(-5px);
}
footer {
	text-align: center;
	padding: 2rem;
	background-color: #000;
	color: #666;
	font-size: 0.9rem;
}

/* ==========================================================================
   Scroll Reveal Animations Classes
   ========================================================================== */
.fade-in {
	opacity: 0;
	transform: translateY(40px);
	transition:
		opacity 0.8s cubic-bezier(0.5, 0, 0, 1),
		transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Delay classes for staggered animations (e.g., gallery items, side-by-side elements) */
.delay-1 {
	transition-delay: 0.2s;
}
.delay-2 {
	transition-delay: 0.4s;
}

/* ==========================================================================
   Mobile Responsive Rules
   ========================================================================== */
@media screen and (max-width: 768px) {
	.menu-toggle {
		display: flex;
	}
	nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background-color: rgba(0, 0, 0, 0.98);
		padding: 2rem 0;
		box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
	}
	nav.active {
		display: block;
	}
	nav ul {
		flex-direction: column;
		align-items: center;
		gap: 1.5rem;
	}
	.hero h1 {
		font-size: 3rem;
	}
	.hero p {
		font-size: 1rem;
		padding: 0 10px;
	}
	.about-us,
	.gallery,
	.contact {
		padding: 4rem 5%;
	}
	.section-title {
		font-size: 2rem;
	}
	.about-text,
	.about-image,
	.contact-info,
	.map-container {
		min-width: 100%;
	}
	/* Reset animation delays on mobile so they don't look weird when stacked */
	.delay-1,
	.delay-2 {
		transition-delay: 0s;
	}
}
/* ==========================================================================
   Hiring Popup Modal (Mobile Optimized)
   ========================================================================== */
.modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.85);
	z-index: 3000;
	backdrop-filter: blur(5px);
	/* 改为支持滚动，并添加上下内边距防止贴边 */
	overflow-y: auto;
	padding: 40px 10px;
}

.modal-content {
	background-color: var(--bg-darker);
	border: 2px solid var(--primary-color);
	border-radius: 8px;
	padding: 2.5rem;
	max-width: 500px;
	width: 100%;
	position: relative;
	text-align: center;
	animation: slideDown 0.5s ease;
	box-shadow: 0 10px 40px rgba(230, 57, 70, 0.2);
	/* 关键：使用 margin: auto 实现在屏幕够大时垂直居中，屏幕小则自然排版 */
	margin: auto;
}

.modal-close {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 2.5rem;
	color: var(--text-muted);
	cursor: pointer;
	transition: color 0.3s;
	line-height: 1;
}

.modal-close:hover {
	color: var(--primary-color);
}

.modal-content h2 {
	color: var(--primary-color);
	margin-bottom: 1rem;
	font-size: 2rem;
}
.hiring-subtitle {
	margin-bottom: 1.5rem;
	font-size: 1rem;
	color: var(--text-light);
}
.hiring-positions {
	list-style: none;
	margin-bottom: 2rem;
	font-size: 1.2rem;
	font-weight: 600;
	color: #fff;
}
.hiring-positions li {
	margin-bottom: 0.5rem;
}
.hiring-positions li::before {
	content: "🍣 ";
}

.interview-box {
	background-color: #1a1a1a;
	padding: 1.5rem;
	border-radius: 5px;
	text-align: left;
}
.interview-box h3 {
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
	color: #fff;
	text-align: center;
}
.warning-text {
	font-size: 0.85rem;
	color: var(--primary-color);
	text-align: center;
	margin-bottom: 1rem;
	font-style: italic;
}
.interview-box ul {
	list-style: none;
	margin-bottom: 1.5rem;
}
.interview-box li {
	color: var(--text-muted);
	margin-bottom: 0.5rem;
	text-align: center;
	font-size: 1.05rem;
}
.interview-box p:last-child {
	text-align: center;
	font-size: 0.95rem;
	color: var(--text-muted);
}

/* 底部关闭按钮样式 */
.btn-close-bottom {
	display: inline-block;
	margin-top: 1.5rem;
	padding: 10px 30px;
	background-color: transparent;
	color: var(--text-muted);
	border: 1px solid var(--text-muted);
	border-radius: 4px;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.3s;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-family: var(--font-heading);
}

.btn-close-bottom:hover {
	background-color: var(--primary-color);
	color: white;
	border-color: var(--primary-color);
}

@keyframes slideDown {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* 移动端专属适配：缩小间距 */
@media screen and (max-width: 768px) {
	.modal-content {
		padding: 1.5rem;
	}
	.modal-close {
		top: 5px;
		right: 15px;
	}
}
