/* 移动端基础样式 */
:root {
    --bg-color: #f5f5f7;
    --card-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #888888;
    --brand-color: #ffc300;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden; /* 禁止页面整体滚动 */
}

html {
    background: linear-gradient(180deg, #ffa544 0%, #ffa544 66%, #D3D3D3 66%, #D3D3D3 100%);
    background-attachment: fixed;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background-color: transparent; /* 移除body背景色，设为透明 */
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
}

/* 页面容器 */
.page-container {
    width: 88%;
    height: 78.8%;
    margin: 16% auto 0;
    overflow-y: auto; /* 允许容器内部垂直滚动 */
    scrollbar-width: none; /* 隐藏滚动条 (Firefox) */
    -ms-overflow-style: none; /* 隐藏滚动条 (IE/Edge) */
    overscroll-behavior-y: contain; /* 阻止滚动链，消除抖动 */
}

.page-container::-webkit-scrollbar {
    display: none; /* 隐藏滚动条 (Chrome/Safari) */
}
a { text-decoration: none; color: inherit; }

/* --- 首页主横幅样式 --- */
.main-banner {
    position: relative;
    line-height: 1.2;
}
.banner-background {
    width: 100%;
    display: block;
}
.banner-options {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
}
.banner-options .option-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    padding-top: 10%; /* 调整文字垂直位置 */
    transition: background-color 0.2s;
}
.banner-options .option-item:hover {
    background-color: rgba(0, 0, 0, 0.1);
}
.banner-options .main-text {
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
}
.banner-options .sub-text {
    font-size: 12px;
    margin-top: 4px;
    color: white;
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
}
.banner-options .option-item.active .main-text {
    position: relative;
    display: inline-block;
}
.banner-options .option-item.active .main-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 4px;
    border-radius: 2px;
}

/* 二维码容器样式 */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 20px;
}

.qr-container .qrcode {
    margin-bottom: 10px;
    width: 300px;
    border-radius:50%
}

.qr-container .qr-tip {
    font-size: 30px;
    color: white;
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
    margin-bottom: 8px;
}

.qr-container .big-screen-order-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 40px;
    font-weight: bold;
    display: inline-block;
    margin-top: 16px;
}

.qr-container .big-screen-order-btn:hover {
    background-color: white;
}

/* --- 主内容区 --- */
.card { background-color: var(--card-bg); border-radius: 12px; padding: 15px;}

.restaurant-card .main-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.restaurant-card h3 {
    font-size: 16px;
    font-weight: bold;
}
.restaurant-card .switch-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 4px 10px;
    font-size: 12px;
}

/* 营业时间样式 */
.restaurant-card .business-hours {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px 0px 0px 0px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.restaurant-card .hour-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.restaurant-card .meal-name {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 2px;
}

.restaurant-card .meal-time {
    color: var(--text-secondary);
    font-size: 11px;
}

.restaurant-card .sub-actions {
    display: flex;
    justify-content: space-around;
    font-size: 12px;
    color: var(--text-secondary);
    padding-top: 15px;
}

/* 广告图样式 */
.promo-banners .banner-image {
    width: 100%;
    height: 350px;
    display: block;
}

/* --- 底部导航栏 --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 49.5%;
    transform: translateX(-50%);
    width: 480px;
    background-color: var(--card-bg);
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-around;
    padding: 5px 0;
    z-index: 100;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: var(--text-secondary);
}
.nav-item img {
    width: 28px;
    height: 28px;
    margin-bottom: 2px;
}
.nav-item.active {
    color: var(--text-primary);
    font-weight: bold;
}