body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding-bottom: 60px; /* 确保内容区域不会被 bottom-nav 遮挡 */
}

iframe {
    width: 100%;
    height: calc(100vh - 25px);
    border: none;
}

.nav {
    display: flex;
    justify-content: flex-start; /* 让内容从左到右排列 */
    align-items: center;
    gap: 15px;
    margin: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0; /* 浅灰色底部边框 */
    overflow-x: auto; /* 允许横向滚动 */
    white-space: nowrap; /* 防止内容换行 */
    padding-left: 10px;
    padding-right: 10px;
}

/* 保持导航项样式 */
.nav a {
    text-decoration: none;
    color: black;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 0; /* 上下留白 */
    min-width: 80px; /* 规定每个导航项的最小宽度 */
    text-align: center;
}

.nav a:hover {
    color: #28a745; /* 绿色 hover 效果 */
}

/* 竖线样式 */
.divider {
    width: 1px;
    height: 20px;
    background-color: #e0e0e0; /* 竖线颜色 */
    margin: 5px 0; /* 上下留白 */
}

.menu-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.menu-item {
    border: 1px solid #ccc;
    margin: 10px;
    padding: 10px;
    width: 160px;
    text-align: center;
}

.menu-item img {
    width: 100px;
    height: 100px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f8f8f8;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* 底部导航项 */
.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: black;
    font-size: 14px;
    font-weight: bold;
    /* padding: 10px; */
    transition: color 0.3s ease;
}

/* SVG 图标 */
.bottom-nav svg {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
    stroke: black;
    transition: stroke 0.3s ease;
}

/* Active 状态 */
.bottom-nav a.active {
    color: orange;
}

.bottom-nav a.active svg {
    stroke: orange;
}


#receipt {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    text-align: center;
    width: 300px;
}

#receipt hr {
    margin: 10px 0;
}

button {
    padding: 10px;
    margin-top: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #218838;
}


#receipt-details {
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8f8f8;
}

button {
    padding: 10px;
    margin-top: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #218838;
}


/* 购物车项 */
.cart-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    width: 100%;
}

/* 商品图片 */
.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

/* 右侧详情 */
.cart-item-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 商品名称 */
.cart-item-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* 数量调整按钮 */
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-controls button {
    width: 30px;
    height: 30px;
    font-size: 18px;
    border: none;
    background: #f8f8f8;
    cursor: pointer;
    border-radius: 5px;
}

.cart-item-controls button:hover {
    background: #e0e0e0;
}

/* 价格 */
.cart-item-price {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* 按钮通用样式 */
.quantity-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.quantity-btn:hover {
    background: #e0e0e0;
}
