* {
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* 组件容器样式 */
#header-component,
#footer-component {
    position: relative;
    z-index: 100;
}

/* 底部菜单样式增强 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 900;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

/* 底部菜单项样式调整（作为链接时） */
.bottom-nav .nav-item {
    flex: 1;
    text-align: center;
    padding: 5px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
}

/* 活动菜单项样式 */
.bottom-nav .nav-item.active {
    color: #4CAF50;
    font-weight: bold;
    transform: translateY(-5px);
}

.bottom-nav .nav-item.active .nav-icon {
    background: #4CAF50;
    color: white;
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.3);
}

.nav-item.active {
    color: #4CAF50;
    font-weight: bold;
}

.nav-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 3px;
    width: 35px;
    height: 35px;

    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    transition: all 0.3s;
    font-style: normal; /* 防止斜体 */
}

/* 结果列表底部边距调整 */
.results {
    margin-bottom: 70px;
}




body {
    background-color: #f5f5f5;
    color: #333;
    padding: 15px;
    min-height: 100vh;
    position: relative;
    padding-bottom: 70px; /* 为底部菜单留出空间 */
}
.container {
    max-width: 100%;
}

/* 轮播图样式优化 */
.carousel-container {
    position: relative;
    height: 120px;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

        .carousel {
            display: flex;
            width: 300%;
            height: 100%;
            transition: transform 0.5s ease;
        }

        .slide {
            width: 33.3333%;
            height: 100%;
            position: relative;
        }

        .slide img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* 保持比例填充整个容器 */
        }

        .slide-content {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
            color: white;
            padding: 10px 15px;
        }

        .slide-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .slide-subtitle {
            font-size: 13px;
        }

        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0,0,0,0.3);
            color: white;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }

        .prev {
            left: 10px;
        }

        .next {
            right: 10px;
        }

        .carousel-indicators {
            position: absolute;
            bottom: 10px;
            left: 0;
            width: 100%;
            display: flex;
            justify-content: center;
            gap: 8px;
            z-index: 10;
        }

        .indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255,255,255,0.5);
            cursor: pointer;
        }

        .indicator.active {
            background: white;
        }


/* 统计面板样式 */
.stats-panel {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.system-notify {
    background-color: #fff8e6;
    color: #e67e22;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 15px;
    text-align: center;
    border-left: 4px solid #f39c12;
}

 .bottom-nav {
        background-color: rgba(255, 255, 255, 0.8); /* 全透明 */
        backdrop-filter: none; /* 移除模糊效果 */
        box-shadow: none; /* 移除阴影 */
        border-top: none; /* 移除边框 */
    }
#footer-component {
     position: fixed;
     bottom: 0;
     left: 0;
     right: 0;
     background: rgba(255, 255, 255, 0.7);
     box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
     z-index: 1000;
     display: flex;
     justify-content: space-around;
     padding: 8px 0;
 }
 .nav-item {
     display: flex;
     flex-direction: column;
     align-items: center;
     text-decoration: none;
     color: #666;
     font-size: 0.75rem;
     flex: 1;
     max-width: 25%;
 }
 .nav-item.active {
     color: #2196F3;
 }
 .nav-icon {
     display: block;
     font-size: 1.3rem;
     margin-bottom: 3px;
     width: 32px;
     height: 32px;
     display: flex;
     align-items: center;
     justify-content: center;
     border-radius: 50%;
     background: #f5f5f5;
     transition: all 0.3s;
 }
 .nav-item.active .nav-icon {
     background: #e3f2fd;
     color: #2196F3;
 }
 /* 移动端适配 */
 @media (max-width: 768px) {
     .nav-item {
         font-size: 0.65rem;
     }
     .nav-icon {
         font-size: 1.1rem;
         width: 28px;
         height: 28px;
     }
 }
 @media (max-width: 480px) {
     .nav-item {
         font-size: 0.6rem;
     }
     .nav-icon {
         font-size: 1rem;
         width: 26px;
         height: 26px;
     }
 }
.stat-item:first-child {
    text-align: left;
}
.stat-item:last-child {
    text-align: right;
    padding-right: 15px;
}

/* 统计面板网格布局保持不变，但调整第二个卡片的文本对齐 */
.stats-grid {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.stat-item {
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-width: 0;
    overflow: hidden;
      flex: 1; /* 使两个统计项等宽 */
  min-width: 0; /* 防止内容溢出 */
}
.stat-label {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.merged-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.merged-label {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.merged-value {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.merged-value-gray {
    font-weight: normal;
    font-size: 16px;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 搜索框样式 */
.search-box {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 16px;
}

/* 筛选器样式 */
.filter-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    margin-bottom: 15px;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
}
.filter-row::-webkit-scrollbar {
    display: none;
}
.filter-col {
    flex: 0 0 auto;
    width: 32%;
    min-width: 110px;
}
.filter-title {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
}
.filter-header {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
    font-size: 13px;
}
.filter-header-text {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dropdown-arrow {
    color: #999;
    font-size: 12px;
    margin-left: 5px;
}

/* 调整筛选器模态框的 z-index */
.filter-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70vh;
    background: white;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.15);
    z-index: 1000; /* 确保高于底部菜单 */
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.filter-modal.active {
    display: flex;
    animation: slideUp 0.3s ease-out;
}
.modal-footer {
    padding-bottom: 70px; /* 等于底部菜单高度 */
}
@media (max-height: 700px) {
    .filter-modal {
        height: 60vh; /* 在小屏幕上减少高度 */
    }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
}
.modal-title {
    font-weight: bold;
    font-size: 16px;
}
.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
}
.select-all-container {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}
.select-all-checkbox {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}
.select-all-label {
    font-size: 14px;
    color: #333;
}
.options-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}
.option-item {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}
.option-item:hover {
    border-color: #4CAF50;
}
.option-item.selected {
    background-color: #e8f4ff;
    border-color: #2196F3;
    color: #2196F3;
    font-weight: bold;
}
.modal-footer {
    display: flex;
    padding: 15px;
    gap: 10px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}
.filter-reset, .filter-confirm {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}
.filter-reset {
    background-color: #f1f1f1;
    color: #555;
}
.filter-confirm {
    background-color: #4CAF50;
    color: white;
}

/* 搜索按钮 */
.search-btn {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
    transition: background-color 0.3s;
}
.search-btn:hover {
    background-color: #3e8e41;
}

/* 结果列表样式 */
.results {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 70px;
}
.order-card {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}
.order-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}
.order-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}
.nick-name {
    color: #4CAF50
}
.order-content {
    color: #444;
    line-height: 1.5;
    white-space: pre-line;
}
.no-results {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* 复制按钮样式 */
.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.3s;
}
.copy-btn:hover {
    background-color: #e0e0e0;
}
.copy-icon {
    width: 14px;
    height: 14px;
}
.copy-success {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    z-index: 1000;
    display: none;
}

/* 微信图标样式 */
.wechat-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* 微信按钮样式 */
.wechat-btn {
    background-color: #07C160;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.3s;
}
.wechat-btn:hover {
    background-color: #06ae56;
}

/* 页脚样式 */
.footer {
    margin-top: 30px;
    padding: 20px 0;
    text-align: center;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #eee;
}
.copyright {
    margin: 0 auto;
    max-width: 600px;
    line-height: 1.6;
}

/* 调整遮罩层的 z-index */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999; /* 确保高于底部菜单但低于模态框 */
    display: none;
}
.modal-overlay.active {
    display: block;
}

/* 微信二维码模态框 */
.wechat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}
.wechat-modal.active {
    display: flex;
}
.qrcode-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    position: relative;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.close-qrcode {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #777;
    cursor: pointer;
    transition: color 0.3s;
}
.close-qrcode:hover {
    color: #ff0000;
}
.qrcode-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}
.qrcode-img {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}
.qrcode-img img {
    max-width: 100%;
    max-height: 100%;
}
.qrcode-footer {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}
.qrcode-footer strong {
    color: #07C160;
}

/* 标签按钮样式 */
.tag-btn {
    padding: 6px 12px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
}
.tag-btn:hover {
    background-color: #e0e0e0;
}

.tag-btn.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .stats-grid {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        padding-bottom: 5px;
    }
    .stats-grid::-webkit-scrollbar {
        display: none;
    }
    .stat-item {
        flex: 0 0 auto;
        width: 150px;
        min-width: 0;
    }
    .filter-col {
        min-width: 90px;
        width: 30%;
    }
    .filter-title {
        font-size: 15px;
        margin-bottom: 4px;
    }
    .filter-header {
        padding: 6px 8px;
    }
    .filter-row {
        gap: 6px;
    }
    .qrcode-container {
        padding: 20px;
        width: 90%;
    }
    .qrcode-img {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 360px) {
    .stat-item {
        width: 130px;
    }
    .filter-col {
        min-width: 85px;
    }
    .filter-header-text {
        font-size: 12px;
    }
}