/*全局提亮·新中式浅暖餐饮配色*/
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
:root{
    --nav-coffee:#8C6954;
    --warm-gold:#C99F62;
    --cream-light:#FCF9F5;
    --footer-dark:#3E3530;
    --gray:#88827E;
    --light-gray:#F1EBE5;
    --white:#ffffff;
}
body{
    font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
    background-color:var(--cream-light);
    color:#333;
}
[dir="rtl"]{
    direction: rtl !important;
    text-align: right !important;
    font-family: Amiri, Tahoma, sans-serif;
}

/* 导航基础：沿用Bootstrap原生自适应，不写死高度 */
header{
    background-color:var(--nav-coffee) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transform: translateZ(0);
    backface-visibility: hidden;
}
header .navbar {
    transition: padding 0.3s ease;
}

/* 原生导航样式 */
.navbar-dark .nav-link{
    color:rgba(255,255,255,0.85);
    transition:0.3s ease;
}
.navbar-dark .nav-link:hover,.navbar-dark .nav-link.active{
    color:var(--warm-gold);
}

/* 滚动收缩：仅减小上下内边距，不破坏自适应 */
header.nav-min .navbar {
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
}

/* 收缩后：仅隐藏LOGO+店名，语言按钮保留 */
header.nav-min .nav-logo,
header.nav-min .navbar-brand {
    display: none !important;
}

/* 强制元素在导航内部，禁止溢出 */
header .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 菜单展开背景 */
.navbar-collapse {
    background-color: var(--nav-coffee);
}

/* 语言按钮、汉堡按钮 布局约束 */
header .d-flex.gap-2 {
    flex-shrink: 0;
}
header .navbar-toggler {
    flex-shrink: 0;
}

/*语言切换按钮*/
.btn-outline-light{
    border-color:rgba(255,255,255,0.7);
    color:#fff;
}
.btn-outline-light:hover{
    background:var(--warm-gold);
    color:#fff;
    border-color:var(--warm-gold);
}

/*Banner高度*/
.banner-wrap{
    height:65vh;
}
.carousel-item{
    background:#000;
}
.carousel-item h1{
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

/*菜品卡片样式*/
.food-card{
    transition: all 0.35s ease;
    border-radius:16px !important;
    overflow:hidden;
    border:none;
    box-shadow: 0 2px 10px rgba(140,105,84,0.07);
    background:#fff;
}
.food-card:hover{
    transform: translateY(-10px);
    box-shadow: 0 12px 26px rgba(140,105,84,0.15);
}
.food-card img{
    height:230px;
    object-fit:cover;
    transition:0.4s ease;
}
.food-card:hover img{
    transform:scale(1.06);
}

/*WA咨询按钮*/
.btn-wa{
    background:var(--warm-gold);
    color:#fff;
    border:none;
    transition:0.3s;
}
.btn-wa:hover{
    background:#b88f55;
    color:#fff;
    transform:scale(1.03);
}
.btn-wechat{
    background:#07C160;
    color:#fff;
    border:none;
    transition:0.3s;
}
.btn-wechat:hover{
    background:#05aa54;
    transform:scale(1.03);
}

/*悬浮WhatsApp按钮*/
.fixed-wa{
    position:fixed;
    right:24px;
    bottom:35px;
    z-index:9999;
}
[dir="rtl"] .fixed-wa{
    right:auto;
    left: 24px;
}
.fixed-wa a{
    width:62px;
    height:62px;
    background:#25D366;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:26px;
    text-decoration:none;
    box-shadow:0 4px 15px rgba(37,211,102,0.35);
    animation: wapulse 3s infinite;
    transition:0.3s;
}
.fixed-wa a:hover{
    transform:scale(1.1);
}
@keyframes wapulse{
    0%,100%{box-shadow:0 0 0 0 rgba(37,211,102,0.35);}
    50%{box-shadow:0 0 0 12px rgba(37,211,102,0.12);}
}
@media(max-width:768px){
    .fixed-wa a{
        width:56px;
        height:56px;
        font-size:24px;
    }
}

/*LOGO尺寸*/
.nav-logo{
    height:48px;
    margin-right:12px;
    border-radius:6px;
    object-fit:cover;
}
.footer-logo{
    height:70px;
    margin-bottom:15px;
    border-radius:8px;
    object-fit:cover;
}

/*页脚*/
footer{
    background:var(--footer-dark);
}
.footer-link{
    color:#cccccc;
    text-decoration:none;
    line-height:2.2;
    transition:0.25s;
}
.footer-link:hover{
    color:var(--warm-gold);
    padding-left:4px;
}
.footer-title{
    color:#fff;
    font-size:18px;
    margin-bottom:16px;
    font-weight:500;
    border-left:3px solid var(--warm-gold);
    padding-left:10px;
}

.bg-light{
    background-color:var(--light-gray) !important;
}
.text-danger{
    color:var(--warm-gold) !important;
}
.rounded-3{
    background:#fff !important;
}

/*轮播动画*/
.animate-title{
    opacity:0;
    transform:translateY(30px);
    animation:titleIn 0.8s ease forwards;
}
.animate-desc{
    opacity:0;
    transform:translateY(30px);
    animation:descIn 0.8s ease 0.3s forwards;
}
.carousel-item.active .animate-title,
.carousel-item.active .animate-desc{
    animation-play-state:running;
}
@keyframes titleIn {
    to{
        opacity:1;
        transform:translateY(0);
    }
}
@keyframes descIn {
    to{
        opacity:1;
        transform:translateY(0);
    }
}
.carousel-fade .carousel-item{
    transition:opacity 0.9s ease-in-out;
}

/*菜品卡片加大&弹窗*/
.food-card {
    transition: all 0.35s ease;
    border-radius: 16px !important;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 15px rgba(140, 105, 84, 0.08);
    background: #fff;
}
.food-card img {
    height: 400px;
    object-fit: cover;
    transition: 0.4s ease;
    cursor: pointer;
}
.food-card .p-4 {
    padding: 1.5rem !important;
}
.food-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
}
.food-card p.text-secondary {
    font-size: 1rem;
    line-height: 1.6;
}
.food-card span.text-danger {
    font-size: 1.35rem;
}
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}
.modal-content {
    background-color: transparent;
    border: none;
}
#modalImg {
    border-radius: 12px;
    max-height: 80vh;
    object-fit: contain;
}

/*服务图标*/
.service-icon {
    font-size: 3.5rem;
    background: rgba(201, 159, 98, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    transition: all 0.3s ease;
}
.food-card:hover .service-icon {
    background: var(--warm-gold);
    color: white;
    transform: scale(1.05);
}