/* 全局样式 */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    height: auto;
    min-height: 100vh;
}

/* 订单列表容器 */
.order-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 15px;
    box-sizing: border-box;
}

/* 搜索栏 */
.search-bar {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-bar input[type="text"] {
    width: 80%; /* 占据大部分宽度 */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.search-bar button {
    width: 18%; /* 按钮占小部分宽度 */
    padding: 10px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.search-bar button:hover {
    background-color: #0056b3;
}

/* 订单项样式 */
.order-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/*------------------------- 公共头部start --------------------------------------*/
/* 新增公共头部样式 */
.common-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
    /*max-width: 600px;*/
    right: 0;
    margin: 0 auto;
}

.back-button {
    width: 30px;
    height: 30px;
    border: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23333"><path d="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"/></svg>') no-repeat center;
    background-size: 24px;
    cursor: pointer;
}

/* 新增的添加订单按钮样式 */
.add-button {
    width: 30px;
    height: 30px;
    border: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23333"><path d="M19 13H13V19H11V13H5V11H11V5H13V11H19V13Z"/></svg>') no-repeat center;
    background-size: 24px;
    cursor: pointer;
    position: absolute;
    right: 15px; /* 距离右边15px */
    display: none;
}

.header-title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    color: #333;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    top:15px;
}

/* 调整原有容器位置 */
.order-container,
.order-detail-container {
    margin-top: 50px; /* 给头部留出空间 */
}

/* 点击态效果 */
.back-button:active {
    opacity: 0.6;
    transform: scale(0.95);
    transition: all 0.2s ease;
}

/* 适配iOS安全区域 */
@media (max-width: 600px) {
    .common-header {
        padding-top: env(safe-area-inset-top);
        height: calc(50px + env(safe-area-inset-top));
    }
    .order-container, .order-detail-container {
        margin-top: calc(50px + env(safe-area-inset-top));
    }
}
/*------------------------- 公共头部end --------------------------------------*/

/*------------------------- 返回顶部start --------------------------------------*/
/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #2196F3;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* 默认隐藏 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: opacity 0.3s;
}

/* 箭头样式 */
.back-to-top::before {
    content: '↑';
    position: absolute;
    color: white;
    font-size: 24px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* 响应式设计 - 移动端适配 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 10px;
    }
}
/*------------------------- 返回顶部end --------------------------------------*/

/*------------------------- action sheet start --------------------------------------*/
.seach_name {
    display: block;
    color: #666;
    border: 1px solid #e0e0e0;
    padding: 4px;
    width: 88%;
    margin: 8px auto;
    border-radius: 4px;
}

#mymodal {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 10px;
    background-color: rgba(0, 0, 0, .6);
    display: none;
    z-index: 9999;
}

.modal-main {
    position: fixed;
    bottom: -900px;
    left: 0;
    height: 75%;
    width: 100%;
    background-color: #fff;
    font-size: 14px;
}

.address-title {
    font-size: 16px;
    text-align: center;
    padding: 12px 0;
    color: #222;
    border-bottom: 1px solid #EFEFEF;
    display: flex;
}

.address-title .cancel {
    color: #666;
}

.address-title .ensure {
    color: #1e83d3;
}

.address-title .title {
    font-weight: 700;
    flex: 2;
}

.option-content {
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    bottom: 0;
    padding-bottom: 30px;
}

.option-group {
    display: none;
    overflow: auto;
    height: 100%;
    border-top: 1px solid #EFEFEF;
    /*padding: 0 24px;*/
    padding: 0 24px 50px;
}

.option-list {
    padding: 8px 4px;
    display: flex;
    border-bottom: 1px solid #efefef;
}

.checked {
    width: 6px;
    height: 6px;
    background-color: #FF304A;
    display: inline-block;
    margin-left: 10px;
    border-radius: 50%;
    display: none;
    margin-top: 8px;
}
/*------------------------- action sheet end --------------------------------------*/
