/* 基础样式 */
:root {
    --primary-color: #8B0000; /* 暗红色 */
    --secondary-color: #A52A2A; /* 棕色 */
    --dark-color: #333;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}


/*
幻灯片
*/
.slide {
    will-change: transform; /* 优化性能 */
    backface-visibility: hidden; /* 防止闪烁 */
}

/* 滑动过程中的样式（可选） */
.hero-slider {
    overflow: hidden;
    position: relative;
}

/* 如果需要更明显的滑动效果，可以添加半透明预览 */
.slide.preview-next {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

.slide.preview-prev {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    opacity: 0.7;
}




.frientbox,.frientbox ul li a{
	color:#aaa;
	font-size:12px;
	text-decoration:none;
}







/*
 自定义顶部导航栏样式
*/
.topnavs{
	position:relative;
	top:0px;
	width:100vw;
	background:var(--primary-color);
	padding: 20px 0px;
	z-index:999;
	border-bottom: 2px solid #ff1818;
}

.topnavs a{
	color:#fff;
}

.leftnav{
	text-align:right;
}
.rightnav{
	text-align:left;
}
.leftnav ,.rightnav{
	margin: 40px 0px;
}
.midnav{
	max-width:200px;
	overflow:hidden;
}
.midnav a img{
	width:100%;
	max-width:200px;
	height:auto;
}

.jiamengicon{
    text-align: center;
	margin:0 auto;
	margin-top:10px;
	min-width: 200px;
	height: 28px;
	margin-left: -10px;
}
.jiamengicon span{
	border: 2px solid #fff;
    border-radius: 10px;
	color: #fff;
	font-size:12px;
	padding:5px 10px;
}




/* 导航栏样式 */
.navbar{
	background-color: rgba(139, 0, 0, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.nav-hot{
	position: absolute;
    color: #ff4d4d;
    margin-left: 20px;
	margin-top: -15px;
}
.nav-jiameng-text{
	position: relative;
    display: inline-block;
    color: #fff;
	animation: float 1.5s ease-in-out infinite;
}
@keyframes float {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-5px);
	}
}
	
.main-navbar .container  {
    
    padding: 15px 0;
    transition: all 0.3s ease;
	/* display: flex; */
	justify-content: space-between;
	align-items: center;
}
.main-navbar .navbar-brand .logo {
    width: 150px;
    height: auto;
    transition: all 0.3s ease;
}
.navbar-brand {
	margin: 0 2rem;
}

.main-navbar .nav-link {
    color: white !important;
    font-size: 1.1rem;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.leftnav a:hover,.rightnav a:hover {
    color: #ff8484;
}

.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffcccb;
    transition: width 0.3s ease;
}

.main-navbar .nav-link:hover::after {
    width: 100%;
}

.navbar-left, .navbar-right {
    /* display: flex; */
    align-items: center;
}

.navbar-left .navbar-nav, .navbar-right .navbar-nav {
	display: flex;
	justify-content: space-between;
	width: 100%;

}

/* 增加各版块间距 */
section {
	margin-top: 50px;
	margin-bottom: 50px;
}

/* 响应式导航 */
@media (max-width: 992px) {
    .navbar-left, .navbar-right {
        width: auto;
        justify-content: center;
    }
    
    .navbar-brand {
        order: -1;
        margin: 0;
    }
    
    .navbar-toggler {
        order: 1;
    }
}

/*幻灯片*/
.hero-slider {
	position: relative;
	overflow: hidden;
	height: 80vh;
	min-height: 500px;
}

.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
	display: flex;
	align-items: center;
}
.slide .slide-content {
	position: relative;
	z-index: 10; /* 高于蒙层的 z-index */
}

/* 添加蒙层 */
.slide .slideimg::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4); /* 黑色半透明蒙层，可调整透明度 */
	z-index: 9;
}

.slide.active {
	opacity: 1;
	z-index: 1;
}

.slide-content {
	position: relative;
	z-index: 2;
	padding: 2rem;
	max-width: 800px; /* 缩小最大宽度，避免内容贴边 */
	animation-duration: 0.8s;
	animation-fill-mode: both;
}
.slide-content h2{
	font-size: 52px;
	font-weight: bold;
	color: #fff;
	text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
}
.slide-content p{
	font-size: 20px;
	font-weight: bold;
	color: #fff;
	text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);
}
.slide-content span,.slide-content a{
	font-size: 20px;
	font-weight: bold;
	color: #fff;
	text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);
}

.slide-content.left {
	text-align: left;
	margin-left: 80px; /* 增加左间距，避开左侧导航按钮 */
}

.slide-content.right {
	text-align: right;
	margin-right: 80px; /* 增加右间距，避开右侧导航按钮 */
	margin-left: auto;
}

.slide-content.center {
	text-align: center;
	margin: 0 auto;
}

.slide .slideimg img ,.slide .slideimg-a img{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
	animation-duration: 0.8s;
	animation-fill-mode: both;
}

.slide h1, .slide p, .slide span, .slide a {
	opacity: 0;
	transform: translateX(0);
}

.slide.active h1 {
	animation: fadeInLeft 0.5s ease-out 0.3s forwards;
}

.slide.active p {
	animation: fadeInLeft 0.5s ease-out 0.6s forwards;
}

.slide.active span, .slide.active a {
	animation: fadeInLeft 0.5s ease-out 0.9s forwards;
}

.slide.active.right-animation h1 {
	animation: fadeInRight 0.5s ease-out 0.3s forwards;
}

.slide.active.right-animation p {
	animation: fadeInRight 0.5s ease-out 0.6s forwards;
}

.slide.active.right-animation span, .slide.active.right-animation a {
	animation: fadeInRight 0.5s ease-out 0.9s forwards;
}

.slide.active .slideimg img {
	animation: scaleIn 1s ease-out forwards;
}

.slider-controls {
	position: absolute;
	top: 50%;
	width: 100%;
	display: flex;
	justify-content: space-between;
	transform: translateY(-50%);
	z-index: 15;
	padding: 0 0.5rem; /* 增加按钮与幻灯片边缘的间距 */
}

.slider-controls button {
	background: rgba(255, 255, 255, 0.3);
	border: none;
	width: 40px; /* 缩小按钮宽度 */
	height: 40px; /* 缩小按钮高度 */
	border-radius: 50%;
	color: white;
	font-size: 1.2rem; /* 缩小图标大小 */
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.slider-controls button:hover {
	background: rgba(255, 255, 255, 0.6);
}

.slider-dots {
	position: absolute;
	bottom: 2rem;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	z-index: 3;
}

.slider-dots .dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: all 0.3s ease;
}

.slider-dots .dot.active {
	background: white;
	transform: scale(1.2);
}

@keyframes fadeInLeft {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes fadeInRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes scaleIn {
	from {
		transform: scale(1.1);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

@media (max-width: 768px) {
	.hero-slider {
		height: 60vh;
		min-height: 400px;
	}
	
	.slide-content {
		padding: 1rem;
		max-width: 80%;
		border-radius: 10px;
	}
	
	.slide-content h1{
		font-size: 2.2rem;
	}
	.slide-content p{
		font-size: 1.1rem;
	}
	.slide-content span,.slide-content a{
		font-size: 1.1rem;
	}
}






/* 特色介绍部分 */
.features {
	/* 防止内容溢出 */
	overflow: hidden;
}
.col-lg-2-5 {
	flex: 0 0 20%;
	max-width: 20%;
}

.feature-item {
	min-width: 200px; /* 小屏幕下的最小宽度 */
	flex: 0 0 auto; /* 防止卡片被压缩 */
}

.feature-img {
	aspect-ratio: 9/16; /* 竖版比例 */
	object-fit: cover;
}

.hide-scrollbar {
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE/Edge */
}
.hide-scrollbar::-webkit-scrollbar {
	display: none; /* Chrome/Safari */
}

.fs-sm {
	font-size: 0.875rem;
}

.feature-item .card {
	transition: all 0.3s ease;
}
.feature-item .card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.text-indigo {
	color: #6610f2;
}

/*加盟图片*/
.jiameng-banner-box img{
	max-width:100%;
	height:auto;
}





/* 菜品展示部分 */
.dishes {
    padding-top: 80px;
    background-color: #f9f9f9;
}

.dishes h1 {
    color: var(--primary-color);
    font-weight: 700;
}

.dish-item {
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.dish-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.dish-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px 5px 0 0;
}

.dish-info {
    background-color: white;
    padding: 20px;
    border-radius: 0 0 5px 5px;
}

.dish-info h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.dish-info p {
    color: #666;
    line-height: 1.6;
}


/* 页脚样式 */
.main-footer {
    background-color: var(--dark-color);
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-column h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column p, .footer-column a {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.8;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: white;
    text-decoration: none;
}

.footer-column address p {
    margin-bottom: 15px;
}

.footer-column address i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}
.copyright a{
	color:#aaa;
	text-decoration:none;
}

/* 右侧浮动联系方式 */
.float-contact {
	position: fixed;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 999;
}
.float-contact a{
	text-decoration:none;
}

.contact-item {
	position: relative;
	margin-bottom: 10px;
	cursor: pointer;
}

.ftag {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	line-height: 1.2;
	text-align: center;
	background: #cc0000;
	color: white;
	border-radius: 4px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	font-size: 14px;
	transition: all 0.3s ease;
	border-radius: 50%;
}

.ftag:hover {
	background: #0052a3;
}
.float-text{
	font-size:20px;
	text-align:center;
}
.contact-tooltip {
	position: absolute;
	right: 100%;
	top: 0;
	width: 200px;
	padding: 15px;
	background: white;
	border-radius: 4px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	opacity: 0;
	visibility: hidden;
	transition: all 0.2s ease;
	margin-right: 10px;
}

.wechat-qr {
	width: 150px;
	text-align: center;
}

.wechat-qr img {
	width: 100%;
	height: auto;
	margin-bottom: 8px;
}

.wechat-qr p {
	margin: 0;
	font-size: 12px;
	color: #666;
}

.contact-tooltip.phone {
	width: auto;
	white-space: nowrap;
	padding: 10px 15px;
}

.contact-tooltip::after {
	content: "";
	position: absolute;
	top: 15px;
	right: -5px;
	width: 10px;
	height: 10px;
	background: white;
	transform: rotate(45deg);
	box-shadow: 2px -2px 2px rgba(0, 0, 0, 0.1);
}


/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeIn {
    animation-name: fadeIn;
}

.slideInUp {
    animation-name: slideInUp;
}

.index_gnews a{
	text-decoration:none;
	color:#545454;
}

/* 响应式设计 */
@media (max-width: 768px) {

    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1.2rem;
    }
    
    .image-content h1 {
        font-size: 2.5rem;
    }
    
    .image-content p {
        font-size: 1.2rem;
    }
    
    .feature-item h1 {
        font-size: 1.5rem;
    }
    
    .dish-info h1 {
        font-size: 1.3rem;
    }
	.nav-jiameng-text{
		color: #545454;
	}
}

@media (max-width: 576px) {
    .main-navbar .navbar-brand .logo {
        width: 150px;
        height: auto;
    }
    
    .slide-content {
        max-width: 80%;
    }
    
    .slide-content h1 {
        font-size: 1.6rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .image-content h1 {
        font-size: 2rem;
    }
    
    .float-contact {
        right: 10px;
    }
    
    .contact-item {
        width: 40px;
        height: 40px;
    }
    
    .contact-item i {
        font-size: 1.2rem;
    }
    
    .contact-tooltip {
        right: 50px;
        padding: 5px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .main-navbar .navbar-brand .logo {
        width: 60px;
    }
}