/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: #000; /* 整体黑色背景，与图片一致 */
    color: #333;
    overflow: hidden;
    height: 100vh;
}

/* 大屏容器 */
.pickup-screen {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #000;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    flex: 1;
    padding: 0; /* 移除外边距，避免缝隙 */
    gap: 0; /* 移除区域之间的间距，让它们紧挨着 */
    overflow: hidden;
}

/* 取餐区域 */
.pickup-section {
    flex: 1;
    background: #333; /* 深灰/黑色内容区域背景 */
    border-radius: 0; /* 移除圆角边框 */
    box-shadow: none; /* 移除阴影，避免视觉缝隙 */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    margin: 0; /* 确保没有外边距 */
}

.section-header {
    padding: 12px 15px;
    display: flex;
    font-weight: 800;
    font-size: 80px;
    justify-content: center; /* 居中显示标题 */
    align-items: center;
    border-bottom: none; /* 移除底部边框 */
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: white; /* 头部文字都是白色 */
}

/* 准备中区域样式 - 浅灰头部，灰色内容区域，白色取餐码 */
.preparing-section .section-header {
    background: #f0f0f0; /* 浅灰头部背景 */
    color: #333;
}

.preparing-section .section-header h2 {
    color: #333; /* 浅灰背景上的深色文字 */
}

.preparing-section .pickup-card {
    background: #666; /* 灰色内容区域 */
    border: none; /* 移除卡片边框 */
}

.preparing-section .pickup-code {
    background: #666; /* 灰色背景 */
    color: white; /* 白色取餐码文字 */
}

/* 请取餐区域样式 - 黄色头部，黑色内容区域，黄色取餐码 */
.ready-section .section-header {
    background: #FFD700; /* 黄色头部背景 */
    color: #000;
}

.ready-section .section-header h2 {
    color: #000; /* 黄色背景上的黑色文字 */
}

.ready-section .pickup-card {
    background: #000; /* 黑色内容区域 */
    color: white;
    border: none; /* 移除卡片边框 */
}

.ready-section .pickup-code {
    background: #000; /* 黑色背景 */
    color: #FFD700; /* 黄色取餐码文字 */
}

.pickup-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 每行显示三个卡片 */
    gap: 8px;
    padding: 15px;
    overflow-y: auto;
    align-content: start;
}

/* 准备中区域的网格背景 */
.preparing-section .pickup-grid {
    background: #666; /* 灰色背景 */
}

/* 请取餐区域的网格背景 */
.ready-section .pickup-grid {
    background: #000; /* 黑色背景 */
}

.pickup-card {
    background: #333; /* 深灰/黑色背景 */
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none; /* 移除卡片边框 */
    position: relative;
    height: fit-content;
    min-height: 35px; /* 进一步减小最小高度 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

.pickup-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.pickup-code {
    font-size: 56px; /* 进一步减小字体大小 */
    font-weight: 900;
    padding: 5px 8px; /* 进一步减少内边距 */
    border-radius: 6px; /* 减小圆角 */
    text-align: center;
    margin: 0;
    min-width: auto; /* 移除最小宽度限制 */
    letter-spacing: 0px;
    word-break: break-word;
    line-height: 1;
}

/* 移除商品信息显示 */
.order-items {
    display: none;
}

/* 底部提示信息 */
.page-footer {
    background: #000; /* 黑色底部背景 */
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 40px;
    letter-spacing: 1px;
}

.page-footer p {
    margin: 0;
}

/* 手动全屏按钮样式 */
#fullscreen-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #0078D7;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 120, 215, 0.4);
    transition: all 0.3s ease;
}

#fullscreen-btn:hover {
    background-color: #106ebe;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 120, 215, 0.5);
}

#fullscreen-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 120, 215, 0.3);
}

/* 全屏状态下的页面样式优化 */
:fullscreen .pickup-screen,
:-webkit-full-screen .pickup-screen,
:-moz-full-screen .pickup-screen,
:-ms-fullscreen .pickup-screen {
    width: 100vw;
    height: 100vh;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .pickup-grid {
        grid-template-columns: repeat(3, 1fr); /* 保持每行三个卡片 */
    }

    .pickup-code {
        font-size: 56px;
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }

    .pickup-grid {
        grid-template-columns: repeat(2, 1fr); /* 小屏幕每行显示两个卡片 */
        padding: 15px;
        gap: 8px;
    }

    .pickup-code {
        font-size: 28px;
        padding: 10px 12px;
    }

    .section-header h2 {
        font-size: 80px;
    }
}

/* 滚动条样式 - 隐藏滚动条 */
.pickup-grid::-webkit-scrollbar {
    display: none; /* 隐藏滚动条 */
}

.pickup-grid {
    -ms-overflow-style: none; /* IE和Edge */
    scrollbar-width: none; /* Firefox */
}

/* 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #ccc;
    font-size: 18px;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}