/* 移动端基础样式 */
: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-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background-color: #e8e8e8;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
}

/* 移动端固定宽度容器 */
.page-container {
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background-color: var(--bg-color);
    overflow-x: hidden;
    padding-bottom: 80px;
}
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;
    background-color: var(--brand-color);
    border-radius: 2px;
}

/* --- 主内容区 --- */
.content-area { padding: 15px; }
.card { background-color: var(--card-bg); border-radius: 12px; padding: 15px; margin-bottom: 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;
    margin-bottom: 12px;
    padding: 15px 0;
    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%;
    border-radius: 12px;
    display: block;
    margin-bottom: 15px;
}

/* --- 底部导航栏 --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 49.5%;
    transform: translateX(-50%);
    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;
}