/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background: #f0f2f5;
}

.restaurant-container {
    padding: 20px;
}

/* 搜索面板样式 */
.search-panel {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-item label {
    color: #666;
}

.form-item input,
.form-item select {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    outline: none;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-range input {
    width: 120px;
}

.form-actions {
    display: flex;
    gap: 10px;
}

.form-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-btn {
    background: #1890ff;
    color: #fff;
}

.reset-btn {
    background: #f5f5f5;
    color: #666;
}

.add-btn {
    background: #52c41a;
    color: #fff;
}

/* 表格样式 */
.restaurant-table-container {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow-x: auto;
}

.restaurant-table {
    width: 100%;
    border-collapse: collapse;
}

.restaurant-table th,
.restaurant-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.restaurant-table th {
    background: #fafafa;
    font-weight: 500;
}

/* 餐厅信息样式 */
.restaurant-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.restaurant-name {
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quality-level {
    color: #fa8c16;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.quality-level i {
    font-size: 14px;
}

.restaurant-address {
    color: #666;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.restaurant-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 菜品信息样式 */
.dish-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dish-list {
    color: #333;
}

.dish-type {
    color: #666;
    font-size: 12px;
}

/* 价格信息样式 */
.price-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-range {
    color: #f5222d;
    font-weight: 500;
}

.price-avg {
    color: #666;
    font-size: 12px;
}

/* 评分样式 */
.rating {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.score {
    color: #fa8c16;
    font-size: 16px;
    font-weight: 500;
}

.comment-count {
    color: #666;
    font-size: 12px;
}

/* 订单信息样式 */
.order-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.month-order {
    color: #1890ff;
    font-weight: 500;
}

.total-order {
    color: #666;
    font-size: 12px;
}

/* 状态标签样式 */
.status-tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-tag.active {
    background: #f6ffed;
    color: #52c41a;
}

.status-tag.pending {
    background: #e6f7ff;
    color: #1890ff;
}

.status-tag.suspended {
    background: #fff7e6;
    color: #fa8c16;
}

.status-tag.terminated {
    background: #fff1f0;
    color: #f5222d;
}

/* 操作按钮样式 */
.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn.view {
    background: #e6f7ff;
    color: #1890ff;
}

.action-btn.edit {
    background: #f6ffed;
    color: #52c41a;
}

.action-btn.menu {
    background: #fff7e6;
    color: #fa8c16;
}

/* 分页样式 */
.pagination {
    background: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn.active {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.page-size {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-size select {
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}

/* 响应式适配 */
@media screen and (max-width: 1200px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .restaurant-table {
        font-size: 13px;
    }
    
    .restaurant-tags {
        display: none;
    }
}